Skip to content

[Merged by Bors] - chore(Algebra): move LinearMap.ker_restrictScalars#33788

Closed
harahu wants to merge 1 commit intoleanprover-community:masterfrom
harahu:chore/move-ker_restrictScalars
Closed

[Merged by Bors] - chore(Algebra): move LinearMap.ker_restrictScalars#33788
harahu wants to merge 1 commit intoleanprover-community:masterfrom
harahu:chore/move-ker_restrictScalars

Conversation

@harahu
Copy link
Copy Markdown
Contributor

@harahu harahu commented Jan 9, 2026

Resolve an old TODO by moving LinearMap.ker_restrictScalars to a location in Mathlib/Algebra/Module/Submodule.

The TODO referenced lemmas in plural, but only LinearMap.ker_restrictScalars seemed to fit. I assume any other lemmas might already have been moved at an earlier point.


Note for reviewers:

  • The new location in Mathlib/Algebra/Module/Submodule/Ker.lean was chosen somewhat arbitrarily in favor of Mathlib/Algebra/Module/Submodule/RestrictScalars.lean. Please consider whether Ker.lean is the optimal location for this lemma.

Open in Gitpod

@harahu harahu changed the title chore(Algebra): move chore(Algebra): move LinearMap.ker_restrictScalars Jan 9, 2026
@github-actions github-actions Bot added large-import Automatically added label for PRs with a significant increase in transitive imports t-algebra Algebra (groups, rings, fields, etc) labels Jan 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 9, 2026

PR summary 55f4562994

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.Module.Submodule.Ker 642 644 +2 (+0.31%)
Import changes for all files
Files Import difference
3 files Mathlib.Algebra.Module.Submodule.EqLocus Mathlib.Algebra.Module.Submodule.IterateMapComap Mathlib.Algebra.Module.Submodule.Ker
2

Declarations diff

+ ker_restrictScalars
- LinearMap.ker_restrictScalars

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@harahu harahu force-pushed the chore/move-ker_restrictScalars branch from e088965 to 36c799a Compare January 9, 2026 11:26
@github-actions github-actions Bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Jan 9, 2026
@harahu harahu marked this pull request as ready for review January 9, 2026 11:31
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 12, 2026
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@harahu harahu force-pushed the chore/move-ker_restrictScalars branch from 36c799a to f6bb616 Compare January 12, 2026 22:23
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 12, 2026
@tb65536
Copy link
Copy Markdown
Contributor

tb65536 commented Jan 13, 2026

I haven't moved content in mathlib before – do I need to add a deprecation alias in the original file, or is the way I've done it fine?

Probably fine (especially if you're just moving to a strictly earlier file, since then nothing will break).

Comment thread Mathlib/Algebra/Module/Submodule/Ker.lean
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 26, 2026
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@harahu harahu force-pushed the chore/move-ker_restrictScalars branch from 6e3321e to e7d6514 Compare January 27, 2026 13:47
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 27, 2026
Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up! I am slightly annoyed that we had to add an extra import. But its impact is very local so I am okay with it.

bors r+

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 29, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jan 29, 2026
Resolve an old TODO by moving `LinearMap.ker_restrictScalars` to a location in `Mathlib/Algebra/Module/Submodule`.

The TODO referenced lemmas in plural, but only `LinearMap.ker_restrictScalars` seemed to fit. I assume any other lemmas might already have been moved at an earlier point.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented Jan 29, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(Algebra): move LinearMap.ker_restrictScalars [Merged by Bors] - chore(Algebra): move LinearMap.ker_restrictScalars Jan 29, 2026
@mathlib-bors mathlib-bors Bot closed this Jan 29, 2026
@harahu harahu deleted the chore/move-ker_restrictScalars branch January 29, 2026 18:02
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…unity#33788)

Resolve an old TODO by moving `LinearMap.ker_restrictScalars` to a location in `Mathlib/Algebra/Module/Submodule`.

The TODO referenced lemmas in plural, but only `LinearMap.ker_restrictScalars` seemed to fit. I assume any other lemmas might already have been moved at an earlier point.
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Feb 15, 2026
…unity#33788)

Resolve an old TODO by moving `LinearMap.ker_restrictScalars` to a location in `Mathlib/Algebra/Module/Submodule`.

The TODO referenced lemmas in plural, but only `LinearMap.ker_restrictScalars` seemed to fit. I assume any other lemmas might already have been moved at an earlier point.
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…unity#33788)

Resolve an old TODO by moving `LinearMap.ker_restrictScalars` to a location in `Mathlib/Algebra/Module/Submodule`.

The TODO referenced lemmas in plural, but only `LinearMap.ker_restrictScalars` seemed to fit. I assume any other lemmas might already have been moved at an earlier point.
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.

5 participants