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

[Merged by Bors] - refactor(Algebra/Star/StarAlgHom): mk_coe and coe_mk in StarAlgHom #13267

Closed
wants to merge 7 commits into from

Conversation

mans0954
Copy link
Collaborator

@mans0954 mans0954 commented May 27, 2024

Add mk_coe and coe_mk results to Algebra/Star/StarAlgHom in analogy with RingEquiv.


Open in Gitpod

Comment on lines 904 to 905
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 :=
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

@j-loreaux j-loreaux added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review labels Jun 3, 2024
@mans0954 mans0954 changed the title refactor(Algebra/Star/StarAlgHom): Deprecate mk in StarAlgHom refactor(Algebra/Star/StarAlgHom): mk_coe and coe_mk in StarAlgHom Jun 4, 2024
@mans0954 mans0954 added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes labels Jun 4, 2024
Copy link

github-actions bot commented Jun 7, 2024

Import summary

No significant changes to the import graph

Copy link

github-actions bot commented Jun 15, 2024

PR summary ae64441ec3

Import changes

No significant changes to the import graph


Declarations diff

+ coe_mk
+ mk_coe
- mk_coe'

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>

@j-loreaux
Copy link
Collaborator

Sorry this has been sitting.

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jun 24, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jun 24, 2024
#13267)

Add `mk_coe` and `coe_mk` results to `Algebra/Star/StarAlgHom` in analogy with `RingEquiv`.



Co-authored-by: Christopher Hoskin <[email protected]>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jun 24, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor(Algebra/Star/StarAlgHom): mk_coe and coe_mk in StarAlgHom [Merged by Bors] - refactor(Algebra/Star/StarAlgHom): mk_coe and coe_mk in StarAlgHom Jun 24, 2024
@mathlib-bors mathlib-bors bot closed this Jun 24, 2024
@mathlib-bors mathlib-bors bot deleted the mans0954/deprecate-StarAlgHom-mk branch June 24, 2024 22:12
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
#13267)

Add `mk_coe` and `coe_mk` results to `Algebra/Star/StarAlgHom` in analogy with `RingEquiv`.



Co-authored-by: Christopher Hoskin <[email protected]>
dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
#13267)

Add `mk_coe` and `coe_mk` results to `Algebra/Star/StarAlgHom` in analogy with `RingEquiv`.



Co-authored-by: Christopher Hoskin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants