-
Notifications
You must be signed in to change notification settings - Fork 4
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
new_design: Alternate proof formulation, maybe more readable? #10
Conversation
def sqr {α : Type u} [has_mul α] (x : α) := x*x | ||
local postfix `²`:80 := sqr |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 := |
There was a problem hiding this comment.
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
418a441
to
98a41b9
Compare
set a := ga.fᵥ aᵥ, | ||
set b := ga.fᵥ bᵥ, |
There was a problem hiding this comment.
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
There was a problem hiding this 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!
Feel free to take bits piecewise