#45549 feat(ValuativeTopology): open/closed ball without Valuation
PR description
This PR introduces the following that are expressed with only ValuativeRel without Valuation
- Alternative characterization of
IsValuativeTopology - Analog to existing
is{Open/Closed/Clopen}_{ball/closedBall/sphere}
This is preparing for the refactor proposed in #45394. I want to express integer, max ideal and residue purely in ValuativeRel, so these are topology related lemma that will be used in refactor. Though if we don't agree with the proposed refactor, I think these are still useful on their own
- ☐ depends on: #45537
Conversation on GitHub 2
PR summary 9edf6fd8e4
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference| |-|-|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ _root_.isValuativeTopology_iff_mem_nhds_iff_exists_mul_vlt_subset
+ _root_.isValuativeTopology_iff_mem_nhds_iff_exists_vlt_subset
+ add_vlt_of_vlt_of_vlt
+ div_veq_iff
+ div_veq_one_iff
+ div_vlt_iff
+ div_vlt_one_iff
+ inv_veq_one
+ isClopen_mul_veq
+ isClopen_mul_vle
+ isClopen_mul_vlt
+ isClopen_veq
+ isClopen_vle
+ isClopen_vlt
+ isClosed_mul_veq
+ isClosed_mul_vle
+ isClosed_mul_vlt
+ isClosed_veq
+ isClosed_vle
+ isClosed_vlt
+ isOpen_mul_veq
+ isOpen_mul_vle
+ isOpen_mul_vlt
+ isOpen_veq
+ isOpen_vle
+ isOpen_vlt
+ isValuativeTopology_iff
+ mem_nhds_iff_exists_mul_vlt_subset
+ mem_nhds_iff_exists_vlt_subset
+ neg_veq_iff
+ neg_veq_self
+ neg_vle_iff
+ neg_vle_self
+ neg_vlt_iff
+ one_veq_inv
+ one_vlt_div_iff
+ self_vle_neg
+ veq_div_iff
+ veq_neg_iff
+ vle_neg_iff
+ vle_one_or_inv_vle_one
+ vle_one_or_inv_vlt_one
+ vlt_div_iff
+ vlt_neg_iff
<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>
<details><summary>
Declarations diff (Lean)
</summary>
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
9edf6fd).
- +44 new declarations
- −0 removed declarations
+IsValuativeTopology.isClopen_mul_veq
+IsValuativeTopology.isClopen_mul_vle
+IsValuativeTopology.isClopen_mul_vlt
+IsValuativeTopology.isClopen_veq
+IsValuativeTopology.isClopen_vle
+IsValuativeTopology.isClopen_vlt
+IsValuativeTopology.isClosed_mul_veq
+IsValuativeTopology.isClosed_mul_vle
+IsValuativeTopology.isClosed_mul_vlt
+IsValuativeTopology.isClosed_veq
+IsValuativeTopology.isClosed_vle
+IsValuativeTopology.isClosed_vlt
+IsValuativeTopology.isOpen_mul_veq
+IsValuativeTopology.isOpen_mul_vle
+IsValuativeTopology.isOpen_mul_vlt
+IsValuativeTopology.isOpen_veq
+IsValuativeTopology.isOpen_vle
+IsValuativeTopology.isOpen_vlt
+IsValuativeTopology.mem_nhds_iff_exists_mul_vlt_subset
+IsValuativeTopology.mem_nhds_iff_exists_vlt_subset
+ValuativeRel.add_vlt_of_vlt_of_vlt
+ValuativeRel.div_veq_iff
+ValuativeRel.div_veq_one_iff
+ValuativeRel.div_vlt_iff
+ValuativeRel.div_vlt_one_iff
+ValuativeRel.inv_veq_one
+ValuativeRel.neg_veq_iff
+ValuativeRel.neg_veq_self
+ValuativeRel.neg_vle_iff
+ValuativeRel.neg_vle_self
+ValuativeRel.neg_vlt_iff
+ValuativeRel.one_veq_inv
+ValuativeRel.one_vlt_div_iff
+ValuativeRel.self_vle_neg
+ValuativeRel.veq_div_iff
+ValuativeRel.veq_neg_iff
+ValuativeRel.vle_neg_iff
+ValuativeRel.vle_one_or_inv_vle_one
+ValuativeRel.vle_one_or_inv_vlt_one
+ValuativeRel.vlt_div_iff
+ValuativeRel.vlt_neg_iff
+isValuativeTopology_iff
+isValuativeTopology_iff_mem_nhds_iff_exists_mul_vlt_subset
+isValuativeTopology_iff_mem_nhds_iff_exists_vlt_subset
</details>
No changes to strong technical debt. No changes to weak technical debt.
Current commit 9edf6fd8e4 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).
This PR/issue depends on:
- leanprover-community/mathlib4#45537
By Dependent Issues (🤖). Happy coding!
Mathlib/RingTheory/Valuation/ValuativeRel/Basic.lean +84 −2
lemma veq_mul_comm (x y : R) : x * y =ᵥ y * x := ⟨vle_mul_comm, vle_mul_commtheorem 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/Topology/Algebra/ValuativeRel/ValuativeTopology.lean +135 −1
class IsValuativeTopology [TopologicalSpace R] wherevariable {K : Type*} [DivisionRing K] [ValuativeRel K] {Γ₀ : Type*}lemma hasBasis_nhds_zero' :