#45534 [ignore me] Valuativerel int refactor
PR description
Conversation on GitHub 1
PR summary ed1556381f
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
|<details><summary>3 files</summary> Mathlib.NumberTheory.LocalField.Basic Mathlib.NumberTheory.Padics.LocalField Mathlib.Topology.Algebra.Valued.ValuativeRel</details>|1|
| Mathlib.RingTheory.Valuation.ValuativeRel.Integer (new file)|1411|
| Mathlib.RingTheory.Valuation.ValuativeRel.ValuationSubring (new file)|2003|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ IsValuativeTopology.mem_nhds_iff_exists_image_vlt_subset
+ ValuativeRel.integer.isDiscreteValuationRing_of_compactSpace
+ ValuativeRel.integer.isPrincipalIdealRing_of_compactSpace
+ add_vlt_of_vlt_of_vlt
+ div_vlt_iff
+ equivValuationSubring
+ instance : CompactSpace 𝒪[K] := isCompact_iff_compactSpace.mp (isCompact_vle K 1)
+ instance : Finite 𝓀[K] := by
+ instance : ValuationRing (integer K)
+ integer
+ integer_eq_valuationInteger
+ isClosed_vle
+ isCompact_vle
+ isOpen_vlt
+ mem_integer_iff
+ mem_nhds_iff_exists_image_vlt_subset'
+ mem_valuationSubring_iff
+ neg_veq_iff
+ neg_veq_self
+ neg_vle_iff
+ neg_vle_self
+ neg_vlt_iff
+ ofValuationSubring
+ ofValuationSubring.vle_def
+ ofValuationSubring.vle_iff_exists
+ ofValuation_valuationSubringValuation_eq_ofValuationSubring
+ self_vle_neg
+ valuationInteger_valuation_eq_integer
+ valuationSubring
+ valuationSubring_eq_valuationValuationSubring
+ valuationValuationSubring_valuation_eq_valuationSubring
+ veq_neg_iff
+ vle_neg_iff
+ vle_one_or_inv_vle_one
+ vle_one_or_inv_vlt_one
+ vlt_div_iff
+ vlt_neg_iff
- instance : CompactSpace 𝒪[K] := isCompact_iff_compactSpace.mp (isCompact_closedBall K 1)
- instance : Finite 𝓀[K]
<details>
<summary>You can run this locally as follows</summary>
## 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>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
Declarations diff (Lean -- pending)
Computed after the build finishes.
No changes to strong technical debt. No changes to weak technical debt.
Current commit ed1556381f Reference commit 0d3fb85496
This script lives in the undefined 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
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
Mathlib.lean +2 −0
public import Mathlib.RingTheory.Valuation.RankOneMathlib/NumberTheory/LocalField/Basic.lean +79 −11
lemma isCompact_closedBall (γ : ValueGroupWithZero K) : IsCompact { x | valuatiinstance : ValuativeRel.IsRankLeOne K :=instance : CompleteSpace 𝒪[K] :=- L241 Leftover debugging or forbidden tactic. guide
Mathlib/RingTheory/Valuation/ValuativeRel/Basic.lean +56 −0
theorem vle_add_cases (x y : R) : x + y ≤ᵥ x ∨ x + y ≤ᵥ y :=lemma vle_div_iff (hc : c ≠ 0) : a ≤ᵥ b / c ↔ a * c ≤ᵥ b := bylemma inv_vlt_one (hx : x ≠ 0) : x⁻¹ <ᵥ 1 ↔ 1 <ᵥ x :=Mathlib/RingTheory/Valuation/ValuativeRel/Integer.lean +71 −0 new file
Mathlib/RingTheory/Valuation/ValuativeRel/ValuationSubring.lean +111 −0 new file
Mathlib/Topology/Algebra/ValuativeRel/ValuativeTopology.lean +60 −0
class IsValuativeTopology [TopologicalSpace R] wherelemma hasBasis_nhds_zero' :Mathlib/Topology/Algebra/Valued/ValuativeRel.lean +2 −1
Authors: Yakov Pechersky