-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix definition of InnerProductSpace #17
fix definition of InnerProductSpace #17
Conversation
@@ -88,7 +89,9 @@ Class InnerProductSpace (K V : Type) | |||
; in_srorder :>> SemiRingOrder Kle | |||
; in_comm :> Commutative inprod | |||
; in_linear_l : ∀ a u v, ⟨a·u,v⟩ = a*⟨u,v⟩ | |||
; in_nonneg :> ∀ v, PropHolds (0 ≤ ⟨v,v⟩) (* TODO Le to strong? *) | |||
; in_pos_def1 :> ∀ v, PropHolds (0 ≤ ⟨v,v⟩) (* TODO Le to strong? *) |
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.
What do you think about preserving the original name for in_nonneg
? The names in_pos_def1
and in_pos_def2
are not descriptive.
@urkud What do you think about these names? |
; in_comm :> Commutative inprod | ||
; in_linear_l : ∀ a u v, ⟨a·u,v⟩ = a*⟨u,v⟩ | ||
; in_nonneg :> ∀ v, PropHolds (0 ≤ ⟨v,v⟩) (* TODO Le to strong? *) | ||
; in_mon_unit_zero :> ∀ v, 0 = ⟨v,v⟩ <-> v = mon_unit |
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.
Slightly offtopic: is there any good example of a module over a ring with something but "+" as the group operation? If not, why do we use a generic AbGroup
instead of Add V
and AbGroup (Aop := (+))
?
ping @spitters |
@siddharthist Sorry for the delay. |
@spitters Thanks for the review & merge! |
fixes:
I'm very open to feedback on the names especially!