Skip to content

[Merged by Bors] - chore: move most of Data/Matrix to LinearAlgebra#28966

Closed
grunweg wants to merge 9 commits intoleanprover-community:masterfrom
grunweg:small-data
Closed

[Merged by Bors] - chore: move most of Data/Matrix to LinearAlgebra#28966
grunweg wants to merge 9 commits intoleanprover-community:masterfrom
grunweg:small-data

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Aug 26, 2025

These are not related to data structures at all.
This PR is not exhaustive, likely further files in Data/Matrix should also be moved.

Zulip discussion: #mathlib4 > Cleaning up `Data` @ 💬


A future PR will try to remove all topology imports from data as well.

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 26, 2025

PR summary cefe7b7756

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Data.Matrix.Rank -1511
Mathlib.Data.Matrix.Vec -1210
Mathlib.Data.Matrix.Kronecker -1208
Mathlib.Data.Matrix.Hadamard -947
Mathlib.Data.Matrix.Notation -943
Mathlib.Data.Matrix.RowCol -936
Mathlib.Data.Matrix.ConjTranspose -935
Mathlib.Data.Matrix.CharP -464
Mathlib.Data.Matrix.Defs -430
Mathlib.LinearAlgebra.Matrix.Defs 430
Mathlib.LinearAlgebra.Matrix.CharP 464
Mathlib.LinearAlgebra.Matrix.ConjTranspose 935
Mathlib.LinearAlgebra.Matrix.RowCol 936
Mathlib.LinearAlgebra.Matrix.Notation 943
Mathlib.LinearAlgebra.Matrix.Hadamard 947
Mathlib.LinearAlgebra.Matrix.Kronecker 1208
Mathlib.LinearAlgebra.Matrix.Vec 1210
Mathlib.LinearAlgebra.Matrix.Rank 1511

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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).

note: file Mathlib/Data/Matrix/Kronecker.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/Kronecker.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/ConjTranspose.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/ConjTranspose.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/CharP.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/CharP.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/Rank.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/Rank.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/Vec.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/Vec.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/RowCol.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/RowCol.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/Defs.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/Defs.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/Notation.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/Notation.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Data/Matrix/Hadamard.lean` was renamed to `Mathlib/LinearAlgebra/Matrix/Hadamard.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

@github-actions github-actions bot added the file-removed A Lean module was (re)moved without a `deprecated_module` annotation label Aug 26, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 26, 2025
@github-actions github-actions 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 Aug 26, 2025
@github-actions github-actions bot added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Aug 26, 2025
@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 Aug 26, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 26, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

This PR/issue depends on:

@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

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

@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 Aug 26, 2025
@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 Aug 27, 2025
@grunweg grunweg requested a review from YaelDillies August 27, 2025 08:40
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Thanks! Looks like a great idea. Probably all of Matrix can move eventually.

maintainer delegate

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 27, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Aug 27, 2025

This needs a re-shaking: will do this once CI was completed.

@YaelDillies
Copy link
Copy Markdown
Contributor

I think you can simply replace some (but not all) Data.Matrix with LinearAlgebra.Matrix in noshake.json

Copy link
Copy Markdown
Contributor

@bryangingechen bryangingechen left a comment

Choose a reason for hiding this comment

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

Thanks!
bors r+

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Aug 27, 2025
mathlib-bors bot pushed a commit that referenced this pull request Aug 27, 2025
These are not related to data structures at all.
This PR is not exhaustive, likely further files in `Data/Matrix` should also be moved.

Zulip discussion: [#mathlib4 > Cleaning up &#96;Data&#96; @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Cleaning.20up.20.60Data.60/near/536224905)

Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 27, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: move most of Data/Matrix to LinearAlgebra [Merged by Bors] - chore: move most of Data/Matrix to LinearAlgebra Aug 27, 2025
@mathlib-bors mathlib-bors bot closed this Aug 27, 2025
@grunweg grunweg deleted the small-data branch August 28, 2025 06:23
FormulaRabbit81 pushed a commit to YaelDillies/mathlib4 that referenced this pull request Aug 30, 2025
…y#28966)

These are not related to data structures at all.
This PR is not exhaustive, likely further files in `Data/Matrix` should also be moved.

Zulip discussion: [#mathlib4 > Cleaning up &leanprover-community#96;Data&leanprover-community#96; @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Cleaning.20up.20.60Data.60/near/536224905)

Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

file-removed A Lean module was (re)moved without a `deprecated_module` annotation ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants