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(Algebra/Module): Use coercion from SemilinearEquivClass to SemilinearEquiv #11966
Conversation
|
||
/-- Reinterpret an element of a type of semilinear equivalences as a semilinear equivalence. -/ | ||
instance instCoeToSemilinearEquiv [RingHomInvPair σ σ'] [RingHomInvPair σ' σ] | ||
[EquivLike F M M₂] [SemilinearEquivClass F σ M M₂] : CoeHead F (M ≃ₛₗ[σ] M₂) where |
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.
[EquivLike F M M₂] [SemilinearEquivClass F σ M M₂] : CoeHead F (M ≃ₛₗ[σ] M₂) where | |
[EquivLike F M M₂] [SemilinearEquivClass F σ M M₂] : CoeTC F (M ≃ₛₗ[σ] M₂) where |
For Equiv
and MulEquiv
this was done using CoeTC
, so I imagine we want that everywhere?
bors d+
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 don't really understand this stuff but judging by this comment it looks like CoeHead
is preferred here
✌️ 101damnations can now approve this pull request. To approve and merge a pull request, simply reply with |
So there's already a coercion from linear equivs to linear maps given by the projection
I don't really understand
on line 153 using |
Thanks for the link. In that case, we should try to fix the existing coercions. bors merge |
Pull request successfully merged into master. Build succeeded: |
Add the coercion from types with a
SemilinearEquivClass
instance to linear equivs, a la #10758.