-
Notifications
You must be signed in to change notification settings - Fork 331
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
feat(LinearAlgebra/UnitaryGroup): Add properties of Special Unitary Group #12799
base: master
Are you sure you want to change the base?
Conversation
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 left some comments.
theorem star_mem_iff {U : Matrix n n α} : | ||
star U ∈ specialUnitaryGroup n α ↔ U ∈ specialUnitaryGroup n α := | ||
⟨fun h => star_star U ▸ star_mem h, star_mem⟩ | ||
|
||
instance : Star (specialUnitaryGroup n α) := | ||
⟨fun U => ⟨star U, star_mem U.prop⟩⟩ |
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.
theorem star_mem_iff {U : Matrix n n α} : | |
star U ∈ specialUnitaryGroup n α ↔ U ∈ specialUnitaryGroup n α := | |
⟨fun h => star_star U ▸ star_mem h, star_mem⟩ | |
instance : Star (specialUnitaryGroup n α) := | |
⟨fun U => ⟨star U, star_mem U.prop⟩⟩ | |
theorem star_mem_iff {U : Matrix n n α} : | |
star U ∈ specialUnitaryGroup n α ↔ U ∈ specialUnitaryGroup n α := | |
⟨fun h ↦ star_star U ▸ star_mem h, star_mem⟩ | |
instance : Star (specialUnitaryGroup n α) := | |
⟨fun U ↦ ⟨star U, star_mem U.prop⟩⟩ |
I think this is the preferred style.
instance : Group (specialUnitaryGroup n α) := | ||
{ Submonoid.toMonoid _ with | ||
inv := star | ||
mul_left_inv := star_mul_self } |
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.
instance : Group (specialUnitaryGroup n α) := | |
{ Submonoid.toMonoid _ with | |
inv := star | |
mul_left_inv := star_mul_self } | |
instance : Group (specialUnitaryGroup n α) where | |
inv := star | |
mul_left_inv := star_mul_self |
instance : InvolutiveStar (specialUnitaryGroup n α) := | ||
⟨by | ||
intro x | ||
ext | ||
rw [coe_star, coe_star, star_star]⟩ |
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.
instance : InvolutiveStar (specialUnitaryGroup n α) := | |
⟨by | |
intro x | |
ext | |
rw [coe_star, coe_star, star_star]⟩ | |
instance : InvolutiveStar (specialUnitaryGroup n α) := | |
star_involutive x := by | |
ext | |
rw [coe_star, coe_star, star_star] |
instance : StarMul (specialUnitaryGroup n α) := | ||
⟨by | ||
intro x y | ||
ext | ||
rw [coe_star, Submonoid.coe_mul, Submonoid.coe_mul, coe_star, coe_star, star_mul]⟩ |
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.
instance : StarMul (specialUnitaryGroup n α) := | |
⟨by | |
intro x y | |
ext | |
rw [coe_star, Submonoid.coe_mul, Submonoid.coe_mul, coe_star, coe_star, star_mul]⟩ | |
instance : StarMul (specialUnitaryGroup n α) := | |
star_mul x y := by | |
ext | |
rw [coe_star, Submonoid.coe_mul, Submonoid.coe_mul, coe_star, coe_star, star_mul] |
@[simp] | ||
theorem star_mul_self (U : specialUnitaryGroup n α) : star U * U = 1 := | ||
Subtype.ext <| coe_star_mul_self U | ||
|
||
@[simp] | ||
theorem mul_star_self (U : specialUnitaryGroup n α) : U * star U = 1 := | ||
Subtype.ext <| coe_mul_star_self U | ||
|
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.
Currently
example (U : specialUnitaryGroup n α) : U * star U = 1 := by
simp
right after these lemmas fails because simp
is running out of heartbeats. Changing abbrev specialUnitaryGroup
to def specialUnitaryGroup
fixes this. Maybe the other abbrev
s in this file should also be def
s?
|
||
theorem star_eq_inv (U : specialUnitaryGroup n α) : star U = U⁻¹ := | ||
rfl | ||
|
||
theorem star_eq_inv' : (star : specialUnitaryGroup n α → specialUnitaryGroup n α) = Inv.inv := | ||
rfl | ||
|
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.
Currently this
example (U : unitaryGroup n α) : U⁻¹ = (star U : Matrix n n α) := by
simp
works, but
example (U : specialUnitaryGroup n α) : U⁻¹ = (star U : Matrix n n α) := by
simp
does not. I am not sure what the correct behavior should be, but it should probably be consistent.
This PR looks mostly fine, but there are still some places where it needs some work. Are you planning to continue working on this PR? Would you like some help from others, or do you want to hand it over completely? (In the latter case, please label it with |
Add properties of the special unitary group, mirroring the properties of found in Algebra/Star/Unitary.lean. In particular, I add an instance of
specialUnitaryGroup
as aGroup
,Star
,InvolutiveStar
, andStarMul
.