Skip to content

[Merged by Bors] - feat(ValuativeRel): instance IsLinearTopology 𝒪[K] 𝒪[K] - #42817

Closed
WenrongZou wants to merge 2 commits into
leanprover-community:masterfrom
WenrongZou:LinearTop
Closed

WenrongZou wants to merge 2 commits into
leanprover-community:masterfrom
WenrongZou:LinearTop

Conversation

@WenrongZou

@WenrongZou WenrongZou commented Aug 16, 2026 •

Copy link
Copy Markdown
Collaborator

In this PR, we prove the instance IsLinearTopology 𝒪[K] 𝒪[K]. There is a very old PR regarding this #24627. But we are going to deprecate Valued.


Open in Gitpod

@github-actions

github-actions Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

PR summary baae093cc6

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Topology.Algebra.ValuativeRel.ValuativeTopology 1888 1889 +1 (+0.05%)
Import changes for all files
Files Import difference
82 files Mathlib.AlgebraicGeometry.EllipticCurve.Reduction Mathlib.AlgebraicGeometry.Group.Abelian Mathlib.AlgebraicGeometry.Morphisms.QuasiFinite Mathlib.AlgebraicGeometry.Normalization Mathlib.AlgebraicGeometry.OrderOfVanishing Mathlib.AlgebraicGeometry.ZariskisMainTheorem Mathlib.Analysis.Fourier.ZMod Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar Mathlib.FieldTheory.Laurent Mathlib.FieldTheory.RatFunc.AsPolynomial Mathlib.FieldTheory.RatFunc.Degree Mathlib.FieldTheory.RatFunc.IntermediateField Mathlib.FieldTheory.RatFunc.Luroth Mathlib.FieldTheory.RatFunc.Valuation Mathlib.NumberTheory.ClassNumber.FunctionField Mathlib.NumberTheory.Cyclotomic.Basic Mathlib.NumberTheory.Cyclotomic.Discriminant Mathlib.NumberTheory.Cyclotomic.Gal Mathlib.NumberTheory.Cyclotomic.PrimitiveRoots Mathlib.NumberTheory.DirichletCharacter.GaussSum Mathlib.NumberTheory.FLT.Three Mathlib.NumberTheory.Fermat Mathlib.NumberTheory.FunctionField 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.LSeries.ZetaZeros Mathlib.NumberTheory.LegendreSymbol.AddCharacter Mathlib.NumberTheory.LegendreSymbol.Complex Mathlib.NumberTheory.LegendreSymbol.JacobiSymbol Mathlib.NumberTheory.LegendreSymbol.QuadraticChar.GaussSum Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity Mathlib.NumberTheory.LocalField.Basic Mathlib.NumberTheory.LucasLehmer Mathlib.NumberTheory.MahlerMeasure Mathlib.NumberTheory.NumberField.AdeleRing Mathlib.NumberTheory.NumberField.CMField Mathlib.NumberTheory.NumberField.Completion.FinitePlace Mathlib.NumberTheory.NumberField.Cyclotomic.Basic Mathlib.NumberTheory.NumberField.Cyclotomic.Embeddings Mathlib.NumberTheory.NumberField.Cyclotomic.Galois Mathlib.NumberTheory.NumberField.Cyclotomic.Ideal Mathlib.NumberTheory.NumberField.Cyclotomic.PID Mathlib.NumberTheory.NumberField.Cyclotomic.Three Mathlib.NumberTheory.NumberField.Ideal.Basic Mathlib.NumberTheory.NumberField.ProductFormula Mathlib.NumberTheory.Padics.HeightOneSpectrum Mathlib.NumberTheory.Padics.WithVal Mathlib.NumberTheory.PrimesCongruentOne Mathlib.NumberTheory.RamificationInertia.Valuation Mathlib.NumberTheory.RatFunc.Ostrowski Mathlib.RingTheory.DedekindDomain.AdicValuation Mathlib.RingTheory.DedekindDomain.FiniteAdeleRing Mathlib.RingTheory.DedekindDomain.GaussLemma Mathlib.RingTheory.DedekindDomain.SInteger Mathlib.RingTheory.DedekindDomain.SelmerGroup Mathlib.RingTheory.Etale.QuasiFinite Mathlib.RingTheory.LaurentSeries Mathlib.RingTheory.LittleWedderburn Mathlib.RingTheory.LocalRing.ResidueField.Polynomial Mathlib.RingTheory.OrderOfVanishing.Noetherian 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.QuasiFinite.Polynomial Mathlib.RingTheory.RootsOfUnity.AlgebraicallyClosed Mathlib.RingTheory.Smooth.IntegralClosure Mathlib.RingTheory.Unramified.LocalStructure Mathlib.RingTheory.Valuation.Discrete.IsDiscreteValuationRing Mathlib.RingTheory.ZariskisMainTheorem Mathlib.Tactic.NormNum.LegendreSymbol Mathlib.Tactic Mathlib.Topology.Algebra.ValuativeRel.ValuativeTopology Mathlib.Topology.Algebra.Valued.ValuativeRel Mathlib.Topology.Algebra.Valued.WithVal
1

Declarations diff (regex)

++ instance [TopologicalSpace R] [IsValuativeTopology R] :

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

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

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit baae093).

  • +2 new declarations
  • −0 removed declarations
+IsValuativeTopology.instIsLinearTopologySubtypeMemSubringIntegerValueGroupWithZeroValuation
+IsValuativeTopology.instIsLinearTopologySubtypeMemSubringIntegerValueGroupWithZeroValuation_1

No changes to strong technical debt.
No changes to weak technical debt.

Current commit baae093cc6
Reference commit 274ed6d67d

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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-topology Topological spaces, uniform spaces, metric spaces, filters label Aug 16, 2026

@Ruben-VandeVelde Ruben-VandeVelde left a comment

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.

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 27, 2026
@pechersky

Copy link
Copy Markdown
Contributor

@Ruben-VandeVelde and @WenrongZou, I dint understand why you couldn't revive the other PR's other results also, given that the IsValuativeTopology and Valued have the same proof strategy. So like, the IsLinearTopology O[K] K, and the general constructions. Because all the reviews comments and improvements that that PR received are just as relevant here mathematically, even if the exact typeclass syntax differs.

@WenrongZou

Copy link
Copy Markdown
Collaborator Author

Thanks for your suggestion! I am happy to do that.

@WenrongZou

Copy link
Copy Markdown
Collaborator Author

Thanks for your suggestion! @pechersky I have a PR #42998, which prove that IsValuativeTopology ℚ_[p]. Then we will have IsLinearTopology ℤ_[p] ℤ_[p] and IsLinearTopology ℤ_[p] ℚ_[p] using two instances in this PR.

@pechersky

pechersky commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Do you have a plan on including the generalization in the other PR about the open embedding constructor for IsLinearTopology? Or the open embedding nature of the algebraMap?

Separately, how do you think we can deal with the comment that @jcommelin made regarding finding a way to phrase this using a propositional predicate identifying the subring, without relying on defeq on valuation.integer? Is that for a separate TODO / PR?

Because right now, Z_p is only propositionally equal to Q_p's ValuativeRel valuation's integer subring (as far as I understand), so the concrete instance you refer to won't automatically be available, I think it will have to be declared.

@WenrongZou

WenrongZou commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

Do you have a plan on including the generalization in the other PR about the open embedding constructor for IsLinearTopology? Or the open embedding nature of the algebraMap?

I think I am happy to do this in a separated PR.

Because right now, Z_p is only propositionally equal to Q_p's ValuativeRel valuation's integer subring

Yes, you are right. I will think about a way to do that. Btw, could you please point me to where Johan raised that. Edit: I found it in #24627.

@pechersky

Copy link
Copy Markdown
Contributor

Note, we have Valuation.Integers.isIntegrallyClosed_integers. One can likely copy the proof of that, via showing (ValuativeRel K).valuation.Integers O[K]

@riccardobrasca

Copy link
Copy Markdown
Member

What is the situation with this PR? @pechersky have your comments been taken into account?

@faenuccio faenuccio self-assigned this Aug 31, 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

@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 1, 2026
@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 1, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 1, 2026
In this PR, we prove the instance `IsLinearTopology 𝒪[K] 𝒪[K]`. There is a very old PR regarding this [#24627](#24627). But we are going to deprecate `Valued`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 1, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(ValuativeRel): instance IsLinearTopology 𝒪[K] 𝒪[K] [Merged by Bors] - feat(ValuativeRel): instance IsLinearTopology 𝒪[K] 𝒪[K] Sep 1, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 1, 2026
@WenrongZou
WenrongZou deleted the LinearTop branch September 2, 2026 14:47
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…-community#42817)

In this PR, we prove the instance `IsLinearTopology 𝒪[K] 𝒪[K]`. There is a very old PR regarding this [leanprover-community#24627](leanprover-community#24627). But we are going to deprecate `Valued`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants