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] - feat: port Algebra.Hom.NonUnitalAlg #2414
Conversation
jcommelin
commented
Feb 21, 2023
Mathbin -> Mathlib fix certain import statements move "by" to end of line add import to Mathlib.lean
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.
There are currently no build errors but six linter errors, all from the simpNF
linter. These six come in pairs associated to the definitions of NonUnitalAlgHom.fst
, NonUnitalAlgHom.snd
, NonUnitalAlgHom.prod
.
The errors can be solved by writing three simp
lemmas manually instead of using simps
(as shown in suggestions). It would be good to know if this is a limitation of simps
or a case of pilot error.
In particular it would be good to understand why simps
is generating lemmas of the form:
NonUnitalAlgHom.fst_toDistribMulActionHom_toMulActionHom_toFun
This is just a misconfiguration. |
And other very minor tweaks.
Thanks @fpvandoorn What do we need to do to get #2045 / #2042 merged? Are they just waiting for final review? |
Thanks 🎉 bors merge |
Co-authored-by: Lukas Miaskiwskyi <lukas.mias@gmail.com> Co-authored-by: Oliver Nash <github@olivernash.org>
#align non_unital_alg_hom.coe_mk NonUnitalAlgHom.coe_mk | ||
|
||
@[simp] | ||
theorem mk_coe (f : A →ₙₐ[R] B) (h₁ h₂ h₃ h₄) : (⟨⟨⟨f, h₁⟩, h₂, h₃⟩, h₄⟩ : A →ₙₐ[R] B) = f := by |
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 mk_coe (f : A →ₙₐ[R] B) (h₁ h₂ h₃ h₄) : (⟨⟨⟨f, h₁⟩, h₂, h₃⟩, h₄⟩ : A →ₙₐ[R] B) = f := by | |
theorem mk_coe (f : A →ₙₐ[R] B) (h₁ h₂ h₃ h₄) : (⟨⟨⟨f, h₁⟩, h₂, h₃⟩, h₄⟩ : A →ₙₐ[R] B) = f := |
and similarly elsewhere
Pull request successfully merged into master. Build succeeded:
|