-
Notifications
You must be signed in to change notification settings - Fork 384
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
[Merged by Bors] - refactor(Algebra/Star/StarAlgHom): mk_coe
and coe_mk
in StarAlgHom
#13267
Conversation
Mathlib/Algebra/Star/StarAlgHom.lean
Outdated
theorem mk_coe' (e : A ≃⋆ₐ[R] B) (f h₁ h₂ h₃ h₄ h₅ h₆) : | ||
(⟨⟨⟨f, e, h₁, h₂⟩, h₃, h₄⟩, h₅, h₆⟩ : B ≃⋆ₐ[R] A) = e.symm := |
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.
we should still have a version of this (although the current statement is garbage), but only unbundled one level instead of three. That is, (⟨e, h₁, h₂⟩ : A ≃⋆[R] B)
where e : A ≃+* B
. See RingEquiv.coe_mk and RingEquiv.mk_coe.
So let's note deprecate.
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.
So, like this?
@[simp]
theorem coe_mk (e h₁ h₂) : ⇑(⟨e, h₁, h₂⟩ : A ≃⋆ₐ[R] B) = e := rfl
@[simp]
theorem mk_coe (e : A ≃⋆ₐ[R] B) (e' h₁ h₂ h₃ h₄ h₅ h₆) :
(⟨⟨⟨e, e', h₁, h₂⟩, h₃, h₄⟩, h₅, h₆⟩ : A ≃⋆ₐ[R] B) = e := ext fun _ => rfl
This reverts commit 5c78888.
mk
in StarAlgHommk_coe
and coe_mk
in StarAlgHom
Import summaryNo significant changes to the import graph |
PR summary ae64441ec3Import changesNo significant changes to the import graph Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>
## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit> |
Sorry this has been sitting. bors merge |
#13267) Add `mk_coe` and `coe_mk` results to `Algebra/Star/StarAlgHom` in analogy with `RingEquiv`. Co-authored-by: Christopher Hoskin <[email protected]>
Pull request successfully merged into master. Build succeeded: |
mk_coe
and coe_mk
in StarAlgHommk_coe
and coe_mk
in StarAlgHom
#13267) Add `mk_coe` and `coe_mk` results to `Algebra/Star/StarAlgHom` in analogy with `RingEquiv`. Co-authored-by: Christopher Hoskin <[email protected]>
#13267) Add `mk_coe` and `coe_mk` results to `Algebra/Star/StarAlgHom` in analogy with `RingEquiv`. Co-authored-by: Christopher Hoskin <[email protected]>
Add
mk_coe
andcoe_mk
results toAlgebra/Star/StarAlgHom
in analogy withRingEquiv
.