mathlib4 review helperopen PRs by @wwylele on leanprover-community/mathlib4

← queue

#45549 feat(ValuativeTopology): open/closed ball without Valuation

blocked-by-other-PR CI success

+219 −3 · 2 files · 3 commits · head 9edf6fd · updated 35 days ago · Files changed on GitHub

PR description

This PR introduces the following that are expressed with only ValuativeRel without Valuation

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


Conversation on GitHub 2
github-actions[bot] · comment · 2026-11-01
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 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).
mathlib-dependent-issues[bot] · comment · 2026-11-01

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_comm
123macro_rules | `($a =ᵥ $b) => `(binrel% ValuativeRel.veq $a $b)
lemma not_vle removedLundefined–undefined
−@[simp, grind =] lemma not_vle : ¬ x ≤ᵥ y ↔ y <ᵥ x := .rfl
lemma not_vlt removedLundefined–undefined
−@[simp, grind =] lemma not_vlt : ¬ x <ᵥ y ↔ y ≤ᵥ x := not_vle.not_left
lemma not_vle newL125–125
125@[simp, grind =, push] lemma not_vle : ¬ x ≤ᵥ y ↔ y <ᵥ x := .rfl
lemma not_vlt newL126–126
126@[simp, grind =, push] lemma not_vlt : ¬ x <ᵥ y ↔ y ≤ᵥ x := not_vle.not_left
127lemma veq_def : x =ᵥ y ↔ x ≤ᵥ y ∧ y ≤ᵥ x := .rfl
129protected alias ⟨_, vle.not_vlt⟩ := not_vlt
theorem vle_add_cases (x y : R) : x + y ≤ᵥ x ∨ x + y ≤ᵥ y :=
295 grw [show (0 : R) = x * 0 by simp, veq_mul_comm, veq_mul_comm x] at hy
296 exact vle_mul_cancel hx hy
lemma add_vlt_of_vlt_of_vlt newL298–301
298lemma add_vlt_of_vlt_of_vlt {x y z : R} (hx : x <ᵥ z) (hy : y <ᵥ z) : x + y <ᵥ z := by
299 rcases vle_add_cases x y with h | h
300 · exact h.trans_vlt hx
301 · exact h.trans_vlt hy
303section Ring
304variable {R : Type*} [Ring R] [ValuativeRel R]
lemma neg_vle_self newL306–309
306lemma neg_vle_self (x : R) : -x ≤ᵥ x := by
307 rcases vle_total (-x) x with h | h
308 · exact h
309 · simpa using mul_vle_mul_left h (-1)
lemma self_vle_neg newL311–311
311lemma self_vle_neg (x : R) : x ≤ᵥ -x := by simpa using neg_vle_self (-x)
lemma neg_veq_self newL313–313
313lemma neg_veq_self (x : R) : -x =ᵥ x := ⟨neg_vle_self x, self_vle_neg x⟩
lemma neg_vle_iff newL315–318
315@[simp]
316lemma neg_vle_iff {x y : R} : -x ≤ᵥ y ↔ x ≤ᵥ y where
317 mp h := vle_trans (self_vle_neg x) h
318 mpr h := vle_trans (neg_vle_self x) h
lemma vle_neg_iff newL320–323
320@[simp]
321lemma vle_neg_iff {x y : R} : x ≤ᵥ -y ↔ x ≤ᵥ y where
322 mp h := vle_trans h (neg_vle_self y)
323 mpr h := vle_trans h (self_vle_neg y)
lemma neg_vlt_iff newL325–326
325@[simp]
326lemma neg_vlt_iff {x y : R} : -x <ᵥ y ↔ x <ᵥ y := vle_neg_iff.not
lemma vlt_neg_iff newL328–329
328@[simp]
329lemma vlt_neg_iff {x y : R} : x <ᵥ -y ↔ x <ᵥ y := neg_vle_iff.not
lemma neg_veq_iff newL331–332
331@[simp]
332lemma neg_veq_iff {x y : R} : -x =ᵥ y ↔ x =ᵥ y := by simp [veq_def]
lemma veq_neg_iff newL334–335
334@[simp]
335lemma veq_neg_iff {x y : R} : x =ᵥ -y ↔ x =ᵥ y := by simp [veq_def]
337end Ring
339variable (R) in
340/-- The submonoid of elements `x : R` whose valuation is positive. -/
341def posSubmonoid : Submonoid R where
lemma vle_div_iff (hc : c ≠ 0) : a ≤ᵥ b / c ↔ a * c ≤ᵥ b := by
946lemma div_vle_iff (hc : c ≠ 0) : a / c ≤ᵥ b ↔ a ≤ᵥ b * c := by
947 rw [← mul_vle_mul_iff_left (by simpa), div_mul_cancel₀ _ (by lia)]
lemma vlt_div_iff newL949–949
949lemma vlt_div_iff (hc : c ≠ 0) : a <ᵥ b / c ↔ a * c <ᵥ b := (div_vle_iff hc).not
lemma div_vlt_iff newL951–951
951lemma div_vlt_iff (hc : c ≠ 0) : a / c <ᵥ b ↔ a <ᵥ b * c := (vle_div_iff hc).not
lemma div_veq_iff newL953–954
953lemma div_veq_iff (hc : c ≠ 0) : a / c =ᵥ b ↔ a =ᵥ b * c := by
954 simp [veq_def, vle_div_iff hc, div_vle_iff hc]
lemma veq_div_iff newL956–957
956lemma veq_div_iff (hc : c ≠ 0) : b =ᵥ a / c ↔ b * c =ᵥ a := by
957 simp [veq_def, vle_div_iff hc, div_vle_iff hc]
959lemma one_vle_div_iff (hb : b ≠ 0) : 1 ≤ᵥ a / b ↔ b ≤ᵥ a := by
960 simp [vle_div_iff hb]
962lemma div_vle_one_iff (hb : b ≠ 0) : a / b ≤ᵥ 1 ↔ a ≤ᵥ b := by
963 simp [div_vle_iff hb]
lemma one_vlt_div_iff newL965–965
965lemma one_vlt_div_iff (hb : b ≠ 0) : 1 <ᵥ a / b ↔ b <ᵥ a := (div_vle_one_iff hb).not
lemma div_vlt_one_iff newL967–967
967lemma div_vlt_one_iff (hb : b ≠ 0) : a / b <ᵥ 1 ↔ a <ᵥ b := (one_vle_div_iff hb).not
lemma div_veq_one_iff newL969–970
969lemma div_veq_one_iff (hb : b ≠ 0) : a / b =ᵥ 1 ↔ a =ᵥ b := by
970 simp [veq_def, one_vle_div_iff hb, div_vle_one_iff hb]
972lemma one_vle_inv (hx : x ≠ 0) : 1 ≤ᵥ x⁻¹ ↔ x ≤ᵥ 1 := by
973 simpa using one_vle_div_iff (a := 1) hx
lemma inv_vlt_one (hx : x ≠ 0) : x⁻¹ <ᵥ 1 ↔ 1 <ᵥ x :=
981lemma one_vlt_inv (hx : x ≠ 0) : 1 <ᵥ x⁻¹ ↔ x <ᵥ 1 :=
982 (inv_vle_one hx).not
lemma inv_veq_one newL984–988
984@[simp]
985lemma inv_veq_one : x⁻¹ =ᵥ 1 ↔ x =ᵥ 1 := by
986 by_cases hx : x = 0
987 · simp [hx]
988 grind [veq_def, one_vle_inv, inv_vle_one]
lemma one_veq_inv newL990–994
990@[simp]
991lemma one_veq_inv : 1 =ᵥ x⁻¹ ↔ 1 =ᵥ x := by
992 by_cases hx : x = 0
993 · simp [hx]
994 grind [veq_def, one_vle_inv, inv_vle_one]
lemma vle_one_or_inv_vlt_one newL996–999
996lemma vle_one_or_inv_vlt_one : x ≤ᵥ 1 ∨ x⁻¹ <ᵥ 1 := by
997 by_cases h : x = 0
998 · simp [h]
999 · simp [or_iff_not_imp_right, one_vle_inv h]
1001/- This theorem is a weaker version of `ValuativeRel.vle_one_or_inv_vlt_one`,
1002but more symmetric in x and x⁻¹. -/
lemma vle_one_or_inv_vle_one newL1003–1006
1003lemma vle_one_or_inv_vle_one : x ≤ᵥ 1 ∨ x⁻¹ ≤ᵥ 1 := by
1004 by_cases h : x = 0
1005 · simp [h]
1006 · simpa [inv_vle_one h] using vle_total x 1
1008end DivisionRing
1010open NNReal in variable (R) in

Mathlib/Topology/Algebra/ValuativeRel/ValuativeTopology.lean +135 −1

class IsValuativeTopology [TopologicalSpace R] where
59 mem_nhds_iff {s : Set R} {x : R} : s ∈ 𝓝 (x : R) ↔
60 ∃ γ : (ValueGroupWithZero R)ˣ, (x + ·) '' { z | valuation _ z < γ } ⊆ s
theorem isValuativeTopology_iff newL62–65
62theorem isValuativeTopology_iff [TopologicalSpace R] :
63 IsValuativeTopology R ↔ ∀ {s : Set R} {x : R},
64 s ∈ 𝓝 x ↔ ∃ γ : (ValueGroupWithZero R)ˣ, (x + ·) '' { z | valuation _ z < γ } ⊆ s :=
65 ⟨fun h ↦ h.mem_nhds_iff, fun h ↦ ⟨h⟩⟩
67namespace ValuativeRel
69/-- The topology induced by a valuative relation. Note that this is not made into a global instance
variable {K : Type*} [DivisionRing K] [ValuativeRel K] {Γ₀ : Type*}
101section TopologicalSpace
−variable [TopologicalSpace R] (v : Valuation R Γ₀) [v.Compatible]
103variable [TopologicalSpace R] [TopologicalSpace K] (v : Valuation R Γ₀) [v.Compatible]
105namespace IsValuativeTopology
theorem _root_.isValuativeTopology_iff_mem_nhds_iff_exists_mul_vlt_subset newL107–123
107theorem _root_.isValuativeTopology_iff_mem_nhds_iff_exists_mul_vlt_subset :
108 IsValuativeTopology R ↔ ∀ {s : Set R} {x : R},
109 s ∈ 𝓝 x ↔ ∃ (a b : posSubmonoid R), {z | (z - x) * a <ᵥ b} ⊆ s := by
110 rw [isValuativeTopology_iff]
111 congrm ∀ s x, _ ↔ $(⟨fun h ↦ ?_, fun h ↦ ?_⟩)
112 · obtain ⟨γ, h⟩ := h
113 obtain ⟨b, a, hab⟩ := exists_valuation_posSubmonoid_div_valuation_posSubmonoid_eq γ
114 use a, b
115 convert h with z
116 suffices (z - x) * a <ᵥ b ↔ valuation R (-x + z) < γ by simpa
117 rw [← hab, lt_div_iff₀ (by simp), ← map_mul, (valuation R).vlt_iff_lt, neg_add_eq_sub]
118 · obtain ⟨a, b, hab⟩ := h
119 use .mk0 (valuation R b / valuation R a) (by simp)
120 convert hab with z
121 suffices valuation R (-x + z) < valuation R b / valuation R a ↔ (z - x) * a <ᵥ b by
122 simpa
123 rw [lt_div_iff₀ (by simp), ← map_mul, (valuation R).vlt_iff_lt, neg_add_eq_sub]
theorem mem_nhds_iff_exists_mul_vlt_subset newL125–127
125theorem mem_nhds_iff_exists_mul_vlt_subset [IsValuativeTopology R] {s : Set R} {x : R} :
126 s ∈ 𝓝 x ↔ ∃ (a b : posSubmonoid R), {z | (z - x) * a <ᵥ b} ⊆ s :=
127 (isValuativeTopology_iff_mem_nhds_iff_exists_mul_vlt_subset).mp ‹_›
theorem _root_.isValuativeTopology_iff_mem_nhds_iff_exists_vlt_subset newL129–140
129theorem _root_.isValuativeTopology_iff_mem_nhds_iff_exists_vlt_subset :
130 IsValuativeTopology K ↔ ∀ {s : Set K} {x : K}, s ∈ 𝓝 x ↔ ∃ y ≠ 0, {z | z - x <ᵥ y} ⊆ s := by
131 rw [isValuativeTopology_iff_mem_nhds_iff_exists_mul_vlt_subset]
132 congrm ∀ s x, _ ↔ $(⟨fun h ↦ ?_, fun h ↦ ?_⟩)
133 · obtain ⟨a, b, h⟩ := h
134 use b.val / a.val, (by simp)
135 convert h using 3 with z
136 rw [vlt_div_iff (by simp)]
137 · obtain ⟨y, hy, h⟩ := h
138 use 1, ⟨y, by simpa using hy⟩
139 convert h with x
140 simp
theorem mem_nhds_iff_exists_vlt_subset newL142–144
142theorem mem_nhds_iff_exists_vlt_subset [IsValuativeTopology K] {s : Set K} {x : K} :
143 s ∈ 𝓝 x ↔ ∃ y ≠ 0, {z | z - x <ᵥ y} ⊆ s :=
144 (isValuativeTopology_iff_mem_nhds_iff_exists_vlt_subset).mp ‹_›
146/-- If the neighborhoods of every point for a given topology are defined by a valuation `v`
147compatible with the valuative relation, then the topology is a valuative topology. -/
148theorem of_mem_nhds_iff_vle (H : ∀ {s : Set R} {x : R}, s ∈ 𝓝 x ↔
lemma hasBasis_nhds_zero' :
204 (hasBasis_nhds_zero R).to_hasBasis (fun γ _ ↦ ⟨γ, by simp⟩)
205 fun γ hγ ↦ ⟨.mk0 γ hγ, by simp⟩
theorem isOpen_mul_vlt newL207–217
207theorem isOpen_mul_vlt (a b : R) : IsOpen {x | x * a <ᵥ b} := by
208 refine isOpen_iff_mem_nhds.mpr fun x hx ↦ ?_
209 rw [mem_ofPred_eq] at hx
210 have hb : 0 <ᵥ b := fun hb ↦ by simpa using hx.trans_vle hb
211 by_cases ha : a ≤ᵥ 0
212 · have (z : R) : z * a <ᵥ b := vle.trans_vlt (by simpa using mul_vle_mul (vle_refl z) ha) hb
213 simp [this]
214 refine mem_nhds_iff_exists_mul_vlt_subset.mpr ⟨⟨a, ha⟩, ⟨b, hb⟩, ?_⟩
215 suffices ∀ z, (z - x) * a <ᵥ b → z * a <ᵥ b by simpa
216 intro z hz
217 simpa [← add_mul] using add_vlt_of_vlt_of_vlt hx hz
theorem isOpen_vlt newL219–219
219theorem isOpen_vlt (a : R) : IsOpen {x | x <ᵥ a} := by simpa using isOpen_mul_vlt 1 a
theorem isClosed_mul_vlt newL221–233
221theorem isClosed_mul_vlt (a b : R) : IsClosed {x | x * a <ᵥ b} := by
222 simp_rw [← isOpen_compl_iff, isOpen_iff_mem_nhds, mem_compl_iff, mem_ofPred_eq, not_vlt]
223 intro x hx
224 by_cases hb : b ≤ᵥ 0
225 · have (z : R) : b ≤ᵥ z * a := hb.trans (zero_vle (z * a))
226 simp [Set.compl_ofPred, this]
227 have ha : 0 <ᵥ a := fun ha ↦ hb <| by simpa using hx.trans (mul_vle_mul (vle_refl x) ha)
228 refine mem_nhds_iff_exists_mul_vlt_subset.mpr ⟨⟨a, ha⟩, ⟨b, hb⟩, ?_⟩
229 suffices ∀ z, (z - x) * a <ᵥ b → b ≤ᵥ z * a by simpa [Set.compl_ofPred]
230 intro z hz
231 rw [← neg_sub, neg_mul, neg_vlt_iff] at hz
232 contrapose! hx
233 simpa [← add_mul] using add_vlt_of_vlt_of_vlt hz hx
theorem isClosed_vlt newL235–235
235theorem isClosed_vlt (a : R) : IsClosed {x | x <ᵥ a} := by simpa using isClosed_mul_vlt 1 a
theorem isClopen_mul_vlt newL237–238
237theorem isClopen_mul_vlt (a b : R) : IsClopen {x | x * a <ᵥ b} :=
238 ⟨isClosed_mul_vlt a b, isOpen_mul_vlt a b⟩
theorem isClopen_vlt newL240–240
240theorem isClopen_vlt (a : R) : IsClopen {x | x <ᵥ a} := ⟨isClosed_vlt a, isOpen_vlt a⟩
theorem isOpen_mul_vle newL242–251
242theorem isOpen_mul_vle (a : R) {b : R} (hb : 0 <ᵥ b) : IsOpen {x | x * a ≤ᵥ b} := by
243 refine isOpen_iff_mem_nhds.mpr fun x hx ↦ ?_
244 rw [mem_ofPred_eq] at hx
245 by_cases ha : a ≤ᵥ 0
246 · have (z : R) : z * a ≤ᵥ b := vle.trans (by simpa using mul_vle_mul (vle_refl z) ha) (zero_vle b)
247 simp [this]
248 refine mem_nhds_iff_exists_mul_vlt_subset.mpr ⟨⟨a, ha⟩, ⟨b, hb⟩, ?_⟩
249 suffices ∀ z, (z - x) * a <ᵥ b → z * a ≤ᵥ b by simpa
250 intro z hz
251 simpa [← add_mul] using vle_add hx hz.vle
theorem isOpen_vle newL253–253
253theorem isOpen_vle {a : R} (ha : 0 <ᵥ a) : IsOpen {x | x ≤ᵥ a} := by simpa using isOpen_mul_vle 1 ha
theorem isClosed_mul_vle newL255–266
255theorem isClosed_mul_vle (a b : R) : IsClosed {x | x * a ≤ᵥ b} := by
256 simp_rw [← isOpen_compl_iff, isOpen_iff_mem_nhds, mem_compl_iff, mem_ofPred_eq, not_vle]
257 intro x hx
258 have ha : 0 <ᵥ a := fun h ↦ by
259 have : b <ᵥ 0 := hx.trans_vle <| by simpa using hx.trans_vle (mul_vle_mul (vle_refl x) h)
260 simp at this
261 refine mem_nhds_iff_exists_mul_vlt_subset.mpr ⟨⟨a, ha⟩, ⟨x * a, (zero_vle b).trans_vlt hx⟩, ?_⟩
262 suffices ∀ z, (z - x) * a <ᵥ x * a → b <ᵥ z * a by simpa [Set.compl_ofPred]
263 intro z hz h
264 rw [← neg_sub, neg_mul, neg_vlt_iff] at hz
265 have : x * a <ᵥ x * a := by simpa [← add_mul] using add_vlt_of_vlt_of_vlt hz (h.trans_vlt hx)
266 exact this (vle_refl (x * a))
theorem isClosed_vle newL268–268
268theorem isClosed_vle (a : R) : IsClosed {x | x ≤ᵥ a} := by simpa using isClosed_mul_vle 1 a
theorem isClopen_mul_vle newL270–271
270theorem isClopen_mul_vle (a : R) {b : R} (hb : 0 <ᵥ b) : IsClopen {x | x * a ≤ᵥ b} :=
271 ⟨isClosed_mul_vle a b, isOpen_mul_vle a hb⟩
theorem isClopen_vle newL273–274
273theorem isClopen_vle {a : R} (ha : 0 <ᵥ a) : IsClopen {x | x ≤ᵥ a} :=
274 ⟨isClosed_vle a, isOpen_vle ha⟩
theorem isClopen_mul_veq newL276–278
276theorem isClopen_mul_veq (a : R) {b : R} (hb : 0 <ᵥ b) : IsClopen {x | x * a =ᵥ b} := by
277 convert (isClopen_mul_vle a hb).diff (isClopen_mul_vlt a b) with x
278 simp [veq_def]
theorem isClopen_veq newL280–281
280theorem isClopen_veq {a : R} (ha : 0 <ᵥ a) : IsClopen {x | x =ᵥ a} := by
281 simpa using isClopen_mul_veq 1 ha
theorem isOpen_mul_veq newL283–284
283theorem isOpen_mul_veq (a : R) {b : R} (hb : 0 <ᵥ b) : IsOpen {x | x * a =ᵥ b} :=
284 (isClopen_mul_veq a hb).isOpen
theorem isOpen_veq newL286–286
286theorem isOpen_veq {a : R} (ha : 0 <ᵥ a) : IsOpen {x | x =ᵥ a} := (isClopen_veq ha).isOpen
theorem isClosed_mul_veq newL288–293
288theorem isClosed_mul_veq (a b : R) : IsClosed {x | x * a =ᵥ b} := by
289 by_cases hb : b ≤ᵥ 0
290 · convert isClosed_mul_vle a 0 with x
291 rw [veq_def]
292 exact ⟨fun h ↦ h.1.trans hb, fun h ↦ ⟨h.trans (zero_vle b), hb.trans (zero_vle _)⟩⟩
293 exact (isClopen_mul_veq a hb).isClosed
theorem isClosed_veq newL295–295
295theorem isClosed_veq (a : R) : IsClosed {x | x =ᵥ a} := by simpa using isClosed_mul_veq 1 a
297end IsValuativeTopology
299open IsValuativeTopology
0/48 declarations checked

Your review, as Markdown

Paste it as a comment or a review on the PR. Line links to the head commit unfold into code snippets on GitHub.