chore: rename SemilinearMapClass.semilinearMap to LinearMap.ofClass - #43376
chore: rename SemilinearMapClass.semilinearMap to LinearMap.ofClass#43376grunweg wants to merge 9 commits into
Conversation
PR summary 4b21aa9501Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
I think your deprecation is not correct, see the bot above |
|
Good catch! Should be fixed now. |
573303e to
4996b16
Compare
|
|
||
| /-- The range of a linear map from a finite module is finite. -/ | ||
| instance range [Module.Finite R M] (f : M →ₗ[R] N) : Module.Finite R f.range := | ||
| of_surjective (SemilinearMapClass.semilinearMap f).rangeRestrict |
There was a problem hiding this comment.
This proof was just unnecessarily convoluted: the SemilinearMapClass.semilinearMap was already doing nothing.
…ingly And deprecate a lemma which is now an exact duplicate
| theorem coe_semilinearMap {F : Type*} [FunLike F M M₃] [SemilinearMapClass F σ M M₃] (f : F) : | ||
| ((f : M →ₛₗ[σ] M₃) : M → M₃) = f := | ||
| rfl | ||
| @[deprecated (since := "2026-09-07")] alias coe_semilinearMap := coe_ofClass |
There was a problem hiding this comment.
These statements were exact duplicates even before this PR.
|
I have reworked the PR. |
Co-authored-by: Monica Omar <23701951+themathqueen@users.noreply.github.com>
themathqueen
left a comment
There was a problem hiding this comment.
Thanks!
maintainer delegate
|
🚀 Pull request has been placed on the maintainer queue by themathqueen. |
Co-authored-by: Monica Omar <23701951+themathqueen@users.noreply.github.com>
…43376) This rename is a small part of #31365, step (2) and the analogue of #43368 for semi-linear maps. In addition, this PR goes one step further by removing the existing `LinearMap.ofClass`: both definitions mean the same, so we only need one. Note that neither `LinearMap` nor `SemilinearMap` is a definition, and `LinearMapClass` is defined in terms of `SemilinearMapClass`. Rename a few lemmas using `ofClass`, so their names match the naming convention. And delete `LinearMap.coe_semilinearMap`, which would have been misnamed now, as an exact duplicate of the now-called `LinearMap.coe_ofClass`.
|
Build failed: Fix if necessary, and then someone with permission can run |
This rename is a small part of #31365, step (2) and the analogue of #43368 for semi-linear maps.
In addition, this PR goes one step further by removing the existing
LinearMap.ofClass: both definitions mean the same, so we only need one. Note that neitherLinearMapnorSemilinearMapis a definition, andLinearMapClassis defined in terms ofSemilinearMapClass.Rename a few lemmas using
ofClass, so their names match the naming convention.And delete
LinearMap.coe_semilinearMap, which would have been misnamed now, as an exact duplicate of the now-calledLinearMap.coe_ofClass.