Skip to content

[Merged by Bors] - fix(Algebra/Module/LinearMap): weaken an over-eager coercion#6786

Closed
eric-wieser wants to merge 5 commits intomasterfrom
eric-wieser/AlgHom.toLinearMap
Closed

[Merged by Bors] - fix(Algebra/Module/LinearMap): weaken an over-eager coercion#6786
eric-wieser wants to merge 5 commits intomasterfrom
eric-wieser/AlgHom.toLinearMap

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser commented Aug 25, 2023

We do not want AlgHom to cast to LinearMap via the rarely-used DistribMulActionHom.

The only places this was used are:

  • ones that I wrote accidentally, which are replaced with AlgHom.toLinearMap (for which lemmas already exist)
  • a non-unital case, where I've inserted the transitive coercion manually (and a TODO); a syntactic change that does not change the underlying term

We could consider adding a LinearMapClass.toLinearMap coercion in a future PR, but I would guess this is just unification hell compared to AlgHom.toLinearMap, so I don't want to volunteer to do it.


Open in Gitpod

We do not want `AlgHom` to cast to `LinearMap` via the rarely-used `DistribMulActionHom`.
@eric-wieser eric-wieser added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-algebra Algebra (groups, rings, fields, etc) labels Aug 25, 2023
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Sep 8, 2023
@ocfnash
Copy link
Copy Markdown
Contributor

ocfnash commented Sep 11, 2023

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Sep 11, 2023
bors bot pushed a commit that referenced this pull request Sep 11, 2023
We do not want `AlgHom` to cast to `LinearMap` via the rarely-used `DistribMulActionHom`.

The only places this was used are:
* ones that I wrote accidentally, which are replaced with `AlgHom.toLinearMap` (for which lemmas already exist)
* a non-unital case, where I've inserted the transitive coercion manually (and a TODO); a syntactic change that does not change the underlying term

We could consider adding a `LinearMapClass.toLinearMap` coercion in a future PR, but I would guess this is just unification hell compared to `AlgHom.toLinearMap`, so I don't want to volunteer to do it.
@bors
Copy link
Copy Markdown

bors bot commented Sep 11, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Sep 11, 2023
We do not want `AlgHom` to cast to `LinearMap` via the rarely-used `DistribMulActionHom`.

The only places this was used are:
* ones that I wrote accidentally, which are replaced with `AlgHom.toLinearMap` (for which lemmas already exist)
* a non-unital case, where I've inserted the transitive coercion manually (and a TODO); a syntactic change that does not change the underlying term

We could consider adding a `LinearMapClass.toLinearMap` coercion in a future PR, but I would guess this is just unification hell compared to `AlgHom.toLinearMap`, so I don't want to volunteer to do it.
@bors
Copy link
Copy Markdown

bors bot commented Sep 11, 2023

Build failed:

@eric-wieser
Copy link
Copy Markdown
Member Author

bors merge

The above was a network failure

bors bot pushed a commit that referenced this pull request Sep 11, 2023
We do not want `AlgHom` to cast to `LinearMap` via the rarely-used `DistribMulActionHom`.

The only places this was used are:
* ones that I wrote accidentally, which are replaced with `AlgHom.toLinearMap` (for which lemmas already exist)
* a non-unital case, where I've inserted the transitive coercion manually (and a TODO); a syntactic change that does not change the underlying term

We could consider adding a `LinearMapClass.toLinearMap` coercion in a future PR, but I would guess this is just unification hell compared to `AlgHom.toLinearMap`, so I don't want to volunteer to do it.
@bors
Copy link
Copy Markdown

bors bot commented Sep 11, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title fix(Algebra/Module/LinearMap): weaken an over-eager coercion [Merged by Bors] - fix(Algebra/Module/LinearMap): weaken an over-eager coercion Sep 11, 2023
@bors bors bot closed this Sep 11, 2023
@bors bors bot deleted the eric-wieser/AlgHom.toLinearMap branch September 11, 2023 22:13
kodyvajjha pushed a commit that referenced this pull request Sep 22, 2023
We do not want `AlgHom` to cast to `LinearMap` via the rarely-used `DistribMulActionHom`.

The only places this was used are:
* ones that I wrote accidentally, which are replaced with `AlgHom.toLinearMap` (for which lemmas already exist)
* a non-unital case, where I've inserted the transitive coercion manually (and a TODO); a syntactic change that does not change the underlying term

We could consider adding a `LinearMapClass.toLinearMap` coercion in a future PR, but I would guess this is just unification hell compared to `AlgHom.toLinearMap`, so I don't want to volunteer to do it.
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. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants