Skip to content

feat(Valuation/DiscreteValuationRel): val relations with compatible valuations to Zm0 are IsDiscrete #27213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: master
Choose a base branch
from

Conversation

pechersky added 30 commits July 7, 2025 00:08
…LeOne

with a proof_wanted for the reverse implication
…ingleton`

and general DenselyOrdered API and instances
needed for showing that valuations mapping into Zm0 are discrete and thus DVR
for proving that it is not densely ordered
for PIR -> DVR for valuations
and generalize to LT
A helper lemma, in the style of `denselyOrdered_iff_of_orderIsoClass`
but slightly weaker (needs LinearOrder),
but works to transport across order-dual types
like WithBot (X^od) to WithBot X
… Zm0 or NNReal valuation

and then provide it for Q_[p]
This reverts commit 843e33b.
Copy link

github-actions bot commented Jul 16, 2025

PR summary 962b24680e

Import changes exceeding 2%

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

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.NumberTheory.Padics.ValuativeRel 1478 1752 +274 (+18.54%)
Import changes for all files
Files Import difference
Mathlib.NumberTheory.Padics.ValuativeRel 274
Mathlib.RingTheory.Valuation.DiscreteValuativeRel (new file) 1748

Declarations diff

+ IsDiscrete.of_compatible_withZeroMulInt
+ ValuativeRel.IsRankLeOne.of_compatible_mulArchimedean
+ ValueGroupWithZero.embed
+ ValueGroupWithZero.embed_strictMono
+ ValueGroupWithZero.embed_valuation_apply
+ compatible_comap_of_extension
+ instance : IsRankLeOne ℚ_[p] := .of_compatible_mulArchimedean mulValuation
+ instance [IsRankLeOne R] : MulArchimedean (ValueGroupWithZero R) := by
+ nonempty_orderIso_withZeroMul_int_iff
+ val_posSubmonoid_ne_zero
+ valuation_eq_zero_iff
+ valuation_posSubmonoid_ne_zero
+ valuation_posSubmonoid_ne_zero_of_compatible

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

@pechersky pechersky added t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-analysis Analysis (normed *, calculus) t-algebra Algebra (groups, rings, fields, etc) labels Jul 16, 2025
@leanprover-community-bot-assistant
Copy link
Collaborator

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

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 16, 2025
@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 Jul 25, 2025
@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Jul 25, 2025

namespace ValuativeRel

variable {R : Type} [CommRing R] [ValuativeRel R]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
variable {R : Type} [CommRing R] [ValuativeRel R]
variable {R : Type*} [CommRing R] [ValuativeRel R]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) large-import Automatically added label for PRs with a significant increase in transitive imports t-algebra Algebra (groups, rings, fields, etc) t-analysis Analysis (normed *, calculus) 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.

4 participants