Skip to content

[Merged by Bors] - chore(LinearAlgebra/Matrix): generalize equivs and use where#37178

Closed
SnirBroshi wants to merge 1 commit intoleanprover-community:masterfrom
SnirBroshi:feature/matrix/generalize-equivs
Closed

[Merged by Bors] - chore(LinearAlgebra/Matrix): generalize equivs and use where#37178
SnirBroshi wants to merge 1 commit intoleanprover-community:masterfrom
SnirBroshi:feature/matrix/generalize-equivs

Conversation

@SnirBroshi
Copy link
Copy Markdown
Collaborator

  • Generalize Matrix.compAddEquiv from AddCommMonoid to Add
  • Generalize Matrix.transposeRingEquiv from CommSemigroup to CommMagma
  • Generalize Matrix.conjTransposeRingEquiv from Semiring to NonUnitalNonAssocSemiring

Open in Gitpod

@github-actions
Copy link
Copy Markdown

PR summary 36653f0972

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

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/pr_summary/declarations_diff.sh <optional_commit>

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

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


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

@github-actions github-actions bot added the t-algebra Algebra (groups, rings, fields, etc) label Mar 25, 2026
@vihdzp
Copy link
Copy Markdown
Collaborator

vihdzp commented Mar 26, 2026

!bench

@leanprover-radar
Copy link
Copy Markdown

leanprover-radar commented Mar 26, 2026

Benchmark results for d1757f2 against 36653f0 are in. There are no significant changes. @vihdzp

  • build//instructions: -6.7G (-0.00%)

Small changes (1🟥)

  • 🟥 build/module/Mathlib.RingTheory.KrullDimension.Polynomial//instructions: +417.5M (+2.47%)

Copy link
Copy Markdown
Collaborator

@vihdzp vihdzp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

Given that the benchmarking for this was fine, I'm okay with it.

bors merge

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Mar 26, 2026
mathlib-bors bot pushed a commit that referenced this pull request Mar 26, 2026
- Generalize `Matrix.compAddEquiv` from `AddCommMonoid` to `Add`
- Generalize `Matrix.transposeRingEquiv` from `CommSemigroup` to `CommMagma`
- Generalize `Matrix.conjTransposeRingEquiv` from `Semiring` to `NonUnitalNonAssocSemiring`
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 26, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(LinearAlgebra/Matrix): generalize equivs and use where [Merged by Bors] - chore(LinearAlgebra/Matrix): generalize equivs and use where Mar 26, 2026
@mathlib-bors mathlib-bors bot closed this Mar 26, 2026
justus-springer pushed a commit to justus-springer/mathlib4 that referenced this pull request Mar 28, 2026
…rover-community#37178)

- Generalize `Matrix.compAddEquiv` from `AddCommMonoid` to `Add`
- Generalize `Matrix.transposeRingEquiv` from `CommSemigroup` to `CommMagma`
- Generalize `Matrix.conjTransposeRingEquiv` from `Semiring` to `NonUnitalNonAssocSemiring`
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.

4 participants