Skip to content

Commit 8a838ae

Browse files
committed
feat(RingTheory/Valuation): add IsTrivialOn_lemmas (leanprover-community#35503)
Co-authored by : @xgenereux Co-authored-by: mariainesdff <mariaines.dff@gmail.com>
1 parent 8f43e50 commit 8a838ae

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Mathlib/RingTheory/Valuation/Basic.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,14 @@ lemma one_lt_iff_one_lt (h : v₁.IsEquiv v₂) {x : R} :
651651
1 < v₁ x ↔ 1 < v₂ x := by
652652
rw [← v₁.map_one, h.lt_iff_lt, map_one]
653653

654+
theorem isTrivialOn {A : Type*} [CommSemiring A] [Algebra A R] (h : v₁.IsEquiv v₂)
655+
(h₁ : IsTrivialOn A v₁) : IsTrivialOn A v₂ where
656+
eq_one _ ha := h.eq_one_iff_eq_one.mp (IsTrivialOn.eq_one _ ha)
657+
658+
theorem isTrivialOn_iff {A : Type*} [CommSemiring A] [Algebra A R] (h : v₁.IsEquiv v₂) :
659+
IsTrivialOn A v₁ ↔ IsTrivialOn A v₂ :=
660+
fun h₁ ↦ h.isTrivialOn h₁, fun h₂ ↦ h.symm.isTrivialOn h₂⟩
661+
654662
end IsEquiv
655663

656664
section LinearOrderedCommMonoidWithZero

Mathlib/RingTheory/Valuation/Integers.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ lemma nontrivial_iff (hv : v.Integers O) : Nontrivial O ↔ Nontrivial R := by
109109

110110
end Integers
111111

112+
theorem IsTrivialOn.of_le_one {k : Type*} [Field k] [Algebra k R] (v : Valuation R Γ₀)
113+
(hle : ∀ (x : k), v (algebraMap k R x) ≤ 1) : v.IsTrivialOn k where
114+
eq_one a ha := Valuation.Integers.one_of_isUnit' (IsUnit.mk0 a ha) hle
115+
112116
lemma integers_nontrivial (v : Valuation R Γ₀) :
113117
Nontrivial v.integer ↔ Nontrivial R :=
114118
(Valuation.integer.integers v).nontrivial_iff

0 commit comments

Comments
 (0)