Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new_design: Alternate proof formulation, maybe more readable? #10

Merged

Conversation

eric-wieser
Copy link
Member

Feel free to take bits piecewise

@eric-wieser eric-wieser requested a review from utensil July 28, 2020 17:53
Comment on lines +99 to +100
def sqr {α : Type u} [has_mul α] (x : α) := x*x
local postfix `²`:80 := sqr
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This avoids the nasty lambda functions in the expressions, and shows ² in the tactic state for as long as possible.

(fₛ : K →+* G)
(fᵥ : V →+ G)
(fᵥ : V →ₗ[K] G)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is more restrictive, and possibly more correct?

@@ -86,49 +94,54 @@ variables (K : Type u) [field K]

variables (V : Type u) [add_comm_group V] [vector_space K V]

structure GA
(G : Type u)
[ring G] extends algebra K G :=
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently extends is a terrible idea if the target has fewer arguments than the currently declared type

@eric-wieser eric-wieser force-pushed the eric-wieser/new_design branch from 418a441 to 98a41b9 Compare July 28, 2020 17:55
Comment on lines +122 to +123
set a := ga.fᵥ aᵥ,
set b := ga.fᵥ bᵥ,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a super handy command to remember

Copy link
Member

@utensil utensil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I like every bit!

@utensil utensil merged commit 724220b into pygae:utensil/new_design Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants