Skip to content

[Merged by Bors] - perf: set IsScalarTower.right to high priority - #33908

Closed
erdOne wants to merge 2 commits into
leanprover-community:masterfrom
erdOne:erd1/highIsScalarTowerRight
Closed

erdOne wants to merge 2 commits into
leanprover-community:masterfrom
erdOne:erd1/highIsScalarTowerRight

Conversation

@erdOne

@erdOne erdOne commented Jan 13, 2026

Copy link
Copy Markdown
Member

Open in Gitpod

@erdOne

erdOne commented Jan 13, 2026

Copy link
Copy Markdown
Member Author

!radar

@leanprover-radar

leanprover-radar commented Jan 13, 2026 •

Copy link
Copy Markdown

Benchmark results for 4cbf0ea against bd33e8d are in! @erdOne

Warnings (2)

These warnings may indicate that the benchmark results are not directly comparable, for example due to changes in the runner configuration or hardware.

  • Runner for run main has different system configurations between commits.
  • Runners for run main differ between commits.
Large changes (7✅)
  • ✅ build/module/Mathlib.Analysis.Matrix.Order//instructions: -37.0G (-25.5%)
  • ✅ build/module/Mathlib.RingTheory.Etale.QuasiFinite//instructions: -22.2G (-15.8%)
  • ✅ build/module/Mathlib.RingTheory.LocalRing.ResidueField.Fiber//instructions: -11.3G (-11.9%)
  • ✅ build/module/Mathlib.RingTheory.LocalRing.ResidueField.Polynomial//instructions: -43.3G (-32.5%)
  • ✅ build/module/Mathlib.RingTheory.NormalClosure//instructions: -18.2G (-10.9%)
  • ✅ build/module/Mathlib.RingTheory.QuasiFinite.Basic//instructions: -60.2G (-24.0%)
  • ✅ build/module/Mathlib.RingTheory.Spectrum.Prime.Polynomial//instructions: -60.5G (-36.8%)
Medium changes (13✅, 4🟥)
  • 🟥 build/module/Mathlib.Analysis.CStarAlgebra.ApproximateUnit//instructions: +5.1G (+3.1%)
  • 🟥 build/module/Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Isometric//instructions: +2.5G (+1.6%)
  • 🟥 build/module/Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order//instructions: +2.8G (+1.8%)
  • ✅ build/module/Mathlib.Analysis.Complex.Conformal//instructions: -1.6G (-3.7%)
  • ✅ build/module/Mathlib.Analysis.Complex.Harmonic.Analytic//instructions: -1.9G (-5.8%)
  • ✅ build/module/Mathlib.Analysis.Fourier.FourierTransformDeriv//instructions: -15.3G (-5.1%)
  • ✅ build/module/Mathlib.Analysis.Matrix.HermitianFunctionalCalculus//instructions: -5.5G (-13.0%)
  • ✅ build/module/Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.PosPart.Basic//instructions: -2.1G (-2.2%)
  • ✅ build/module/Mathlib.FieldTheory.MvRatFunc.Rank//instructions: -1.4G (-9.2%)
  • ✅ build/module/Mathlib.Geometry.Manifold.Riemannian.Basic//instructions: -1.1G (-1.1%)
  • ✅ build/module/Mathlib.Geometry.Manifold.VectorBundle.Riemannian//instructions: -4.5G (-2.7%) (reduced significance based on absolute threshold)
  • ✅ build/module/Mathlib.MeasureTheory.Measure.Haar.Unique//instructions: -4.2G (-4.8%)
  • ✅ build/module/Mathlib.NumberTheory.NumberField.CanonicalEmbedding.FundamentalCone//instructions: -2.0G (-2.3%)
  • 🟥 build/module/Mathlib.RingTheory.AdicCompletion.AsTensorProduct//instructions: +11.6G (+9.7%)
  • ✅ build/module/Mathlib.RingTheory.Flat.Domain//instructions: -5.6G (-10.0%)
  • ✅ build/module/Mathlib.RingTheory.LocalRing.Module//instructions: -12.6G (-8.5%)
  • ✅ build/module/Mathlib.RingTheory.Spectrum.Prime.FreeLocus//instructions: -12.7G (-10.8%)
Small changes (465✅, 8🟥)

Too many entries to display here. View the full report on radar instead.

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Jan 13, 2026
@github-actions

github-actions Bot commented Jan 13, 2026 •

Copy link
Copy Markdown

PR summary b2f24e70b3

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ instance (priority := high) _root_.IsScalarTower.right : IsScalarTower R A A
- instance _root_.IsScalarTower.right : IsScalarTower R A A

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

@grunweg

grunweg commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Can you rebase this PR on current master and re-bench? That will hopefully give useful numbers. (You got unlucky in that your PR straddles the boundary of benchmark runner changes...)

@erdOne

erdOne commented Jan 13, 2026

Copy link
Copy Markdown
Member Author

!radar

@leanprover-radar

leanprover-radar commented Jan 13, 2026 •

Copy link
Copy Markdown

Benchmark results for 37c544b against b2f24e7 are in! @erdOne

Large changes (7✅)
  • ✅ build/module/Mathlib.Analysis.Matrix.Order//instructions: -37.0G (-25.5%)
  • ✅ build/module/Mathlib.RingTheory.Etale.QuasiFinite//instructions: -22.1G (-15.8%)
  • ✅ build/module/Mathlib.RingTheory.LocalRing.ResidueField.Fiber//instructions: -11.3G (-11.8%)
  • ✅ build/module/Mathlib.RingTheory.LocalRing.ResidueField.Polynomial//instructions: -43.3G (-32.5%)
  • ✅ build/module/Mathlib.RingTheory.NormalClosure//instructions: -18.0G (-10.8%)
  • ✅ build/module/Mathlib.RingTheory.QuasiFinite.Basic//instructions: -60.6G (-24.1%)
  • ✅ build/module/Mathlib.RingTheory.Spectrum.Prime.Polynomial//instructions: -64.6G (-38.3%)
Medium changes (11✅, 4🟥)
  • 🟥 build/module/Mathlib.Analysis.CStarAlgebra.ApproximateUnit//instructions: +5.1G (+3.1%)
  • 🟥 build/module/Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Isometric//instructions: +2.5G (+1.7%)
  • 🟥 build/module/Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order//instructions: +2.9G (+2.0%)
  • ✅ build/module/Mathlib.Analysis.Complex.Harmonic.Analytic//instructions: -1.6G (-5.1%)
  • ✅ build/module/Mathlib.Analysis.Fourier.FourierTransformDeriv//instructions: -15.0G (-5.1%)
  • ✅ build/module/Mathlib.Analysis.Matrix.HermitianFunctionalCalculus//instructions: -5.6G (-13.2%)
  • ✅ build/module/Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.PosPart.Basic//instructions: -2.1G (-2.2%)
  • ✅ build/module/Mathlib.FieldTheory.MvRatFunc.Rank//instructions: -1.2G (-8.2%)
  • ✅ build/module/Mathlib.Geometry.Manifold.VectorBundle.Riemannian//instructions: -4.2G (-2.5%)
  • ✅ build/module/Mathlib.MeasureTheory.Measure.Haar.Unique//instructions: -4.2G (-4.8%)
  • ✅ build/module/Mathlib.NumberTheory.NumberField.CanonicalEmbedding.FundamentalCone//instructions: -1.9G (-2.2%)
  • 🟥 build/module/Mathlib.RingTheory.AdicCompletion.AsTensorProduct//instructions: +11.2G (+9.4%)
  • ✅ build/module/Mathlib.RingTheory.Flat.Domain//instructions: -5.3G (-9.5%)
  • ✅ build/module/Mathlib.RingTheory.LocalRing.Module//instructions: -12.5G (-8.4%)
  • ✅ build/module/Mathlib.RingTheory.Spectrum.Prime.FreeLocus//instructions: -12.7G (-10.7%)
Small changes (32✅, 23🟥)

Too many entries to display here. View the full report on radar instead.

@erdOne
erdOne marked this pull request as ready for review January 13, 2026 16:55
@robin-carlier

Copy link
Copy Markdown
Contributor

Thanks!

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by robin-carlier.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 16, 2026

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@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 Jan 16, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jan 16, 2026
@mathlib-bors

mathlib-bors Bot commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title perf: set IsScalarTower.right to high priority [Merged by Bors] - perf: set IsScalarTower.right to high priority Jan 16, 2026
@mathlib-bors mathlib-bors Bot closed this Jan 16, 2026
@github-actions github-actions Bot mentioned this pull request Jan 16, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jan 17, 2026
eliasjudin pushed a commit to eliasjudin/mathlib4 that referenced this pull request Jan 18, 2026
bilichboris pushed a commit to bilichboris/mathlib4 that referenced this pull request Jan 18, 2026
goliath-klein pushed a commit to PrParadoxy/mathlib4 that referenced this pull request Jan 24, 2026
@YaelDillies
YaelDillies deleted the erd1/highIsScalarTowerRight branch April 3, 2026 14:55
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