Skip to content

[Merged by Bors] - feat(ValuationSubring): eq_self_or_eq_top_of_le#33634

Closed
xgenereux wants to merge 3 commits intoleanprover-community:masterfrom
xgenereux:ValuationSubring_dimLEOne
Closed

[Merged by Bors] - feat(ValuationSubring): eq_self_or_eq_top_of_le#33634
xgenereux wants to merge 3 commits intoleanprover-community:masterfrom
xgenereux:ValuationSubring_dimLEOne

Conversation

@xgenereux
Copy link
Copy Markdown
Collaborator

@xgenereux xgenereux commented Jan 5, 2026

Using primeSpectrumEquiv we get the the corresponding results of IsLocalRing.primeSpectrum_eq_of_KrullDimLEOne(see #33607) for valuation subrings.

Co-authored-by: María Inés de Frutos Fernández <[email protected]>


Open in Gitpod

@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Jan 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 5, 2026

PR summary 5833ef5cdf

Import changes exceeding 2%

% File
+28.90% Mathlib.RingTheory.Valuation.ValuationSubring

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.RingTheory.Valuation.ValuationSubring 1377 1775 +398 (+28.90%)
Import changes for all files
Files Import difference
25 files Mathlib.Analysis.Fourier.ZMod Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar Mathlib.NumberTheory.DirichletCharacter.GaussSum Mathlib.NumberTheory.Fermat Mathlib.NumberTheory.GaussSum Mathlib.NumberTheory.Height.NumberField Mathlib.NumberTheory.JacobiSum.Basic Mathlib.NumberTheory.LSeries.DirichletContinuation Mathlib.NumberTheory.LSeries.Nonvanishing Mathlib.NumberTheory.LSeries.PrimesInAP Mathlib.NumberTheory.LSeries.ZMod Mathlib.NumberTheory.LegendreSymbol.AddCharacter Mathlib.NumberTheory.LegendreSymbol.JacobiSymbol Mathlib.NumberTheory.LegendreSymbol.QuadraticChar.GaussSum Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity Mathlib.NumberTheory.LucasLehmer Mathlib.NumberTheory.MahlerMeasure Mathlib.NumberTheory.NumberField.AdeleRing Mathlib.NumberTheory.NumberField.CMField Mathlib.NumberTheory.NumberField.Completion.FinitePlace Mathlib.NumberTheory.NumberField.Cyclotomic.Embeddings Mathlib.NumberTheory.NumberField.FinitePlaces Mathlib.NumberTheory.NumberField.ProductFormula Mathlib.Tactic.NormNum.LegendreSymbol Mathlib.Tactic
18
30 files Mathlib.AlgebraicGeometry.EllipticCurve.Reduction Mathlib.FieldTheory.Laurent Mathlib.FieldTheory.RatFunc.AsPolynomial Mathlib.FieldTheory.RatFunc.Degree Mathlib.FieldTheory.RatFunc.Luroth Mathlib.NumberTheory.ClassNumber.FunctionField Mathlib.NumberTheory.Cyclotomic.Basic Mathlib.NumberTheory.Cyclotomic.Discriminant Mathlib.NumberTheory.Cyclotomic.Gal Mathlib.NumberTheory.Cyclotomic.PrimitiveRoots Mathlib.NumberTheory.FunctionField Mathlib.NumberTheory.NumberField.Cyclotomic.Galois Mathlib.NumberTheory.Padics.HeightOneSpectrum Mathlib.NumberTheory.PrimesCongruentOne Mathlib.RingTheory.DedekindDomain.AdicValuation Mathlib.RingTheory.DedekindDomain.FiniteAdeleRing Mathlib.RingTheory.DedekindDomain.GaussLemma Mathlib.RingTheory.DedekindDomain.SInteger Mathlib.RingTheory.DedekindDomain.SelmerGroup Mathlib.RingTheory.LaurentSeries Mathlib.RingTheory.LittleWedderburn Mathlib.RingTheory.Polynomial.Cyclotomic.Basic Mathlib.RingTheory.Polynomial.Cyclotomic.Eval Mathlib.RingTheory.Polynomial.Cyclotomic.Expand Mathlib.RingTheory.Polynomial.Cyclotomic.Factorization Mathlib.RingTheory.Polynomial.Cyclotomic.Roots Mathlib.RingTheory.Polynomial.Eisenstein.IsIntegral Mathlib.RingTheory.RootsOfUnity.AlgebraicallyClosed Mathlib.RingTheory.Valuation.Discrete.Basic Mathlib.RingTheory.Valuation.Discrete.RankOne
22
3 files Mathlib.NumberTheory.Padics.Complex Mathlib.NumberTheory.Padics.WithVal Mathlib.Topology.Algebra.Valued.WithVal
29
Mathlib.RingTheory.Valuation.LocalSubring 116
Mathlib.RingTheory.Valuation.AlgebraInstances 138
Mathlib.NumberTheory.LocalField.Basic Mathlib.Topology.Algebra.Valued.LocallyCompact 218
Mathlib.Topology.Algebra.Valued.NormedValued 223
Mathlib.Topology.Algebra.Valued.WithZeroMulInt 294
Mathlib.Analysis.Real.Hyperreal 310
Mathlib.Algebra.Order.Ring.StandardPart Mathlib.Topology.Algebra.Valued.ValuedField 311
Mathlib.Topology.Algebra.Valued.ValuativeRel 312
Mathlib.Topology.Algebra.Valued.ValuationTopology 313
Mathlib.RingTheory.Valuation.Extension 397
Mathlib.RingTheory.Valuation.RamificationGroup Mathlib.RingTheory.Valuation.ValuationSubring 398

Declarations diff

+ eq_of_le_of_ne_self
+ eq_of_le_of_ne_top
+ eq_of_lt
+ eq_self_or_eq_top_of_le

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

@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 Jan 5, 2026
@xgenereux
Copy link
Copy Markdown
Collaborator Author

xgenereux commented Jan 5, 2026

Question:
For the large import should I:

  1. make a ValuationSubring folder
  2. current file would be basic
  3. make a new file for this result (maybe called KrullDimLEOne?)

Or is it fine like this?

Thanks!

Comment thread Mathlib/RingTheory/Valuation/ValuationSubring.lean
alreadydone
alreadydone previously approved these changes Jan 10, 2026
@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 13, 2026
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

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

@joneugster joneugster added the t-algebra Algebra (groups, rings, fields, etc) label Feb 1, 2026
@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 Feb 7, 2026
@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Mar 16, 2026
@xgenereux
Copy link
Copy Markdown
Collaborator Author

!bench

@xgenereux
Copy link
Copy Markdown
Collaborator Author

Checking if the large import is an issue.

@leanprover-radar
Copy link
Copy Markdown

leanprover-radar commented Mar 24, 2026

Benchmark results for 391223c against 5833ef5 are in. Significant changes detected! @xgenereux

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

Small changes (1✅, 20🟥)

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

Copy link
Copy Markdown
Contributor

@dagurtomas dagurtomas left a comment

Choose a reason for hiding this comment

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

Thanks!

maintainer delegate

Comment on lines +412 to +414
obtain h | h := IsLocalRing.Ring.KrullDimLE.eq_bot_or_eq_top
((primeSpectrumEquiv A).symm ⟨B, hle⟩) <;>
(replace h := congr((primeSpectrumEquiv A) $h); simp_all [← idealOfLE_self])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
obtain h | h := IsLocalRing.Ring.KrullDimLE.eq_bot_or_eq_top
((primeSpectrumEquiv A).symm ⟨B, hle⟩) <;>
(replace h := congr((primeSpectrumEquiv A) $h); simp_all [← idealOfLE_self])
obtain h | h := IsLocalRing.Ring.KrullDimLE.eq_bot_or_eq_top
((primeSpectrumEquiv A).symm ⟨B, hle⟩)
all_goals
replace h := congrArg (primeSpectrumEquiv A) h
simp_all

This is more readable

@github-actions
Copy link
Copy Markdown

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


pull_request_review, wf_run

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 26, 2026
@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 27, 2026

✌️ xgenereux can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 27, 2026
@xgenereux
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 27, 2026
Using `primeSpectrumEquiv` we get the the corresponding results of `IsLocalRing.primeSpectrum_eq_of_KrullDimLEOne`(see #33607) for valuation subrings.

Co-authored-by: María Inés de Frutos Fernández <[[email protected]](mailto:[email protected])>
Co-authored-by: Xavier Genereux <[email protected]>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 27, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(ValuationSubring): eq_self_or_eq_top_of_le [Merged by Bors] - feat(ValuationSubring): eq_self_or_eq_top_of_le Mar 27, 2026
@mathlib-bors mathlib-bors bot closed this Mar 27, 2026
justus-springer pushed a commit to justus-springer/mathlib4 that referenced this pull request Mar 28, 2026
…#33634)

Using `primeSpectrumEquiv` we get the the corresponding results of `IsLocalRing.primeSpectrum_eq_of_KrullDimLEOne`(see leanprover-community#33607) for valuation subrings.

Co-authored-by: María Inés de Frutos Fernández <[[email protected]](mailto:[email protected])>
Co-authored-by: Xavier Genereux <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). large-import Automatically added label for PRs with a significant increase in transitive imports t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants