Repository navigation
[Merged by Bors] - refactor(Algebra/Module): Use coercion from SemilinearMapClass to SemilinearMap - #10758
Closed
Vierkantor wants to merge 2 commits into
Closed
[Merged by Bors] - refactor(Algebra/Module): Use coercion from SemilinearMapClass to SemilinearMap#10758Vierkantor wants to merge 2 commits into
Vierkantor wants to merge 2 commits into
Conversation
dupuisf
reviewed
Mar 5, 2024
dupuisf
reviewed
Mar 18, 2024
dupuisf
left a comment
Contributor
There was a problem hiding this comment.
Looks good! Could you give explicit names to the instances before merging?
bors d+
Contributor
|
✌️ Vierkantor can now approve this pull request. To approve and merge a pull request, simply reply with |
Previously coercions would go via DistribMulActionHom to LinearMap, we want to follow standard practice and make them go via the morphism class.
Vierkantor
force-pushed
the
semilinear_coe
branch
from
April 3, 2024 16:00
48ce955 to
12d70df
Compare
Contributor
Author
|
Everything builds so: bors merge |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Apr 3, 2024
…ilinearMap (#10758) This PR adds a coercion from any instance of `SemilinearMapClass` to `SemilinearMap`. This is the standard practice for other parts of the library, such as ring homs (see also the recent change #10368). I also expect this change will help with some rough edges in #6057. Previously, a coercion from `f : AlgHom` to `LinearMap` would look like `f.toNonUnitalAlgHom.toDistribMulActionHom.toLinearMap`, now it should look like `SemilinearMapClass.semilinearMap f`. The new coercion instances are `CoeHead` since the left hand side is a free variable `F`. I redefined the existing `DistribMulActionHom → LinearMap` coercion in terms of the `SemilinearMapClass` coercion to ensure we don't get any diamonds.
Contributor
|
Pull request successfully merged into master. Build succeeded: |
101damnations
pushed a commit
that referenced
this pull request
Apr 5, 2024
xgenereux
pushed a commit
that referenced
this pull request
Apr 15, 2024
…ilinearMap (#10758) This PR adds a coercion from any instance of `SemilinearMapClass` to `SemilinearMap`. This is the standard practice for other parts of the library, such as ring homs (see also the recent change #10368). I also expect this change will help with some rough edges in #6057. Previously, a coercion from `f : AlgHom` to `LinearMap` would look like `f.toNonUnitalAlgHom.toDistribMulActionHom.toLinearMap`, now it should look like `SemilinearMapClass.semilinearMap f`. The new coercion instances are `CoeHead` since the left hand side is a free variable `F`. I redefined the existing `DistribMulActionHom → LinearMap` coercion in terms of the `SemilinearMapClass` coercion to ensure we don't get any diamonds.
atarnoam
pushed a commit
that referenced
this pull request
Apr 16, 2024
…ilinearMap (#10758) This PR adds a coercion from any instance of `SemilinearMapClass` to `SemilinearMap`. This is the standard practice for other parts of the library, such as ring homs (see also the recent change #10368). I also expect this change will help with some rough edges in #6057. Previously, a coercion from `f : AlgHom` to `LinearMap` would look like `f.toNonUnitalAlgHom.toDistribMulActionHom.toLinearMap`, now it should look like `SemilinearMapClass.semilinearMap f`. The new coercion instances are `CoeHead` since the left hand side is a free variable `F`. I redefined the existing `DistribMulActionHom → LinearMap` coercion in terms of the `SemilinearMapClass` coercion to ensure we don't get any diamonds.
uniwuni
pushed a commit
that referenced
this pull request
Apr 19, 2024
…ilinearMap (#10758) This PR adds a coercion from any instance of `SemilinearMapClass` to `SemilinearMap`. This is the standard practice for other parts of the library, such as ring homs (see also the recent change #10368). I also expect this change will help with some rough edges in #6057. Previously, a coercion from `f : AlgHom` to `LinearMap` would look like `f.toNonUnitalAlgHom.toDistribMulActionHom.toLinearMap`, now it should look like `SemilinearMapClass.semilinearMap f`. The new coercion instances are `CoeHead` since the left hand side is a free variable `F`. I redefined the existing `DistribMulActionHom → LinearMap` coercion in terms of the `SemilinearMapClass` coercion to ensure we don't get any diamonds.
callesonne
pushed a commit
that referenced
this pull request
Apr 22, 2024
…ilinearMap (#10758) This PR adds a coercion from any instance of `SemilinearMapClass` to `SemilinearMap`. This is the standard practice for other parts of the library, such as ring homs (see also the recent change #10368). I also expect this change will help with some rough edges in #6057. Previously, a coercion from `f : AlgHom` to `LinearMap` would look like `f.toNonUnitalAlgHom.toDistribMulActionHom.toLinearMap`, now it should look like `SemilinearMapClass.semilinearMap f`. The new coercion instances are `CoeHead` since the left hand side is a free variable `F`. I redefined the existing `DistribMulActionHom → LinearMap` coercion in terms of the `SemilinearMapClass` coercion to ensure we don't get any diamonds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a coercion from any instance of
SemilinearMapClasstoSemilinearMap. This is the standard practice for other parts of the library, such as ring homs (see also the recent change #10368). I also expect this change will help with some rough edges in #6057. Previously, a coercion fromf : AlgHomtoLinearMapwould look likef.toNonUnitalAlgHom.toDistribMulActionHom.toLinearMap, now it should look likeSemilinearMapClass.semilinearMap f.The new coercion instances are
CoeHeadsince the left hand side is a free variableF. I redefined the existingDistribMulActionHom → LinearMapcoercion in terms of theSemilinearMapClasscoercion to ensure we don't get any diamonds.