Skip to content

[Merged by Bors] - feat(Padics): add an instance IsValuativeTopology ℚ_[p] - #42998

Closed
WenrongZou wants to merge 5 commits into
leanprover-community:masterfrom
WenrongZou:ValuativeRel_Qp
Closed

WenrongZou wants to merge 5 commits into
leanprover-community:masterfrom
WenrongZou:ValuativeRel_Qp

Conversation

@WenrongZou

@WenrongZou WenrongZou commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

In this PR, we prove an instance IsValuativeTopology ℚ_[p]. Then we have the instance IsNonarchimedeanLocalField ℚ_[p].


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 Aug 21, 2026
@github-actions

github-actions Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

PR summary 2413356f11

Import changes exceeding 2%

% File
+17.80% Mathlib.NumberTheory.Padics.ValuativeRel

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.NumberTheory.Padics.ValuativeRel 1843 2171 +328 (+17.80%)
Import changes for all files
Files Import difference
Mathlib.NumberTheory.Padics.ValuativeRel 328
Mathlib.NumberTheory.Padics.LocalField (new file) 2232

Declarations diff (regex)

+ instance : IsNonarchimedeanLocalField ℚ_[p] := ⟨⟩
+ instance : IsValuativeTopology ℚ_[p] := by
+ norm_lt_norm_iff_mulValuation_lt
+ norm_lt_zpow_iff_mulValuation_lt_exp

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

⚠️ No declarations diff yet: there is no built master snapshot at this PR's merge-base (typically a bors-batch intermediate that CI never built). Merge master into this PR and push to refresh.


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

Current commit 2413356f11
Reference commit 1f29011071

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-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Aug 21, 2026
@WenrongZou WenrongZou changed the title feat(Padics): IsValuativeTopology ℚ_[p] feat(Padics): add an instance IsValuativeTopology ℚ_[p] Aug 21, 2026
@pechersky

Copy link
Copy Markdown
Contributor

Perhaps we should wait for the general result for a NontriviallyNormedField first?

@MichaelStollBayreuth

Copy link
Copy Markdown
Contributor

Could somebody who is/was involved in the valuation theory refactor take over the assignment? @faenuccio ? @riccardobrasca ? I know basically nothing about the details, so I'll unassign myself.

@MichaelStollBayreuth MichaelStollBayreuth removed their assignment Aug 30, 2026
@riccardobrasca riccardobrasca self-assigned this Aug 30, 2026

@riccardobrasca riccardobrasca 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.

Can you check IsNonarchimedeanLocalField ℚ_[p] is actually synthesized?

@WenrongZou

WenrongZou commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator Author

Thanks for your review! I have tested that IsNonarchimedeanLocalField ℚ_[p] can be synthesized with two more imports

public import Mathlib.NumberTheory.LocalField.Basic
public import Mathlib.NumberTheory.Padics.ProperSpace

But I don't think we should add these two imports in the file Padic/ValuativeRel.lean. Should I add a file record the result of IsNonarchimedeanLocalField ℚ_[p] with necessary import. @riccardobrasca

@riccardobrasca

Copy link
Copy Markdown
Member

Thanks for your review! I have tested that IsNonarchimedeanLocalField ℚ_[p] can be synthesized with two more imports

public import Mathlib.NumberTheory.LocalField.Basic
public import Mathlib.NumberTheory.Padics.ProperSpace

But I don't think we should add these two imports in the file Padic/ValuativeRel.lean. Should I add a file record the result of IsNonarchimedeanLocalField ℚ_[p] with necessary import. @riccardobrasca

OK good. Maybe add a comment explaining this.

@WenrongZou

Copy link
Copy Markdown
Collaborator Author

I add a comment in the beginning of the file to explain the instance IsNonarchimedeanLocalField ℚ_[p].

@riccardobrasca riccardobrasca 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 d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 31, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

✌️ WenrongZou can now approve this pull request until 2026-09-14 09:11 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, Wanted/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean, Wanted.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@WenrongZou

Copy link
Copy Markdown
Collaborator Author

Thanks!

bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 31, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 31, 2026
In this PR, we prove an instance `IsValuativeTopology ℚ_[p]`. Then we have the instance `IsNonarchimedeanLocalField ℚ_[p]`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 31, 2026
@WenrongZou

Copy link
Copy Markdown
Collaborator Author

bors r-

@mathlib-bors

mathlib-bors Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bors build canceled.

Address comments or fix if necessary, and then someone with permission can run bors r+.

@mathlib-bors mathlib-bors Bot removed the ready-to-merge This PR has been sent to bors. label Aug 31, 2026
@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Aug 31, 2026
@WenrongZou

Copy link
Copy Markdown
Collaborator Author

Thanks!

bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 31, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 31, 2026
In this PR, we prove an instance `IsValuativeTopology ℚ_[p]`. Then we have the instance `IsNonarchimedeanLocalField ℚ_[p]`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 31, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Padics): add an instance IsValuativeTopology ℚ_[p] [Merged by Bors] - feat(Padics): add an instance IsValuativeTopology ℚ_[p] Aug 31, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 31, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 31, 2026
@WenrongZou
WenrongZou deleted the ValuativeRel_Qp branch September 2, 2026 14:47
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…-community#42998)

In this PR, we prove an instance `IsValuativeTopology ℚ_[p]`. Then we have the instance `IsNonarchimedeanLocalField ℚ_[p]`.
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. large-import Automatically added label for PRs with a significant increase in transitive imports ready-to-merge This PR has been sent to bors. t-number-theory Number theory (also use t-algebra or t-analysis to specialize)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants