/-
Copyright (c) 2026 María Inés de Frutos-Fernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández, Filippo A. E. Nuccio
-/
module
public import Mathlib.Data.Int.WithZero
public import Mathlib.RingTheory.Valuation.Discrete.Basic
public import Mathlib.RingTheory.Valuation.RankOne
/-!
# Discrete valuations have rank one
## Main Definitions and Results
* `Valuation.IsRankOneDiscrete.valueGroup₀_equiv_withZeroMulInt` : the order-preserving isomorphism
between the `ValueGroup₀` of a discrete valuation and `ℤᵐ⁰`.
* `Valuation.IsRankOneDiscrete.rankOne` : a discrete valuation has rank one.
## Tags
valuation, discrete, rank one
-/
@[expose] public section
namespace Valuation.IsRankOneDiscrete
open WithZero MonoidWithZeroHom NNReal WithZeroMulInt
variable {Γ : Type*} [LinearOrderedCommGroupWithZero Γ]
section Ring
variable {R : Type*} [Ring R]
section LinearOrderedCommGroupWithZero
variable (v : Valuation R Γ) [hv : v.IsRankOneDiscrete]
/-- An order-preserving isomorphism between the `ValueGroup₀` of a discrete valuation and `ℤᵐ⁰`.
TODO: rename this into lowerCamelCase. -/
@[simps!]
noncomputable def valueGroup₀_equiv_withZeroMulInt : v.ValueGroup₀ ≃*o ℤᵐ⁰ where
__ := MulEquiv.withZero (intEquivOfZPowersEqTop _
(Subgroup.zpowers_inv (g := hv.generator') ▸ hv.generator'_zpowers_eq_top)).symm
map_le_map_iff' {x y} := by
rw [(WithZero.map'_strictMono (MulEquiv.strictMono_symm (mulintEquivOfZPowersEqTop_strictMono
(Subgroup.zpowers_inv (g := hv.generator') ▸ hv.generator'_zpowers_eq_top)
(Left.one_lt_inv_iff.mpr hv.generator'_lt_one)))).le_iff_le]
lemma valueGroup₀_equiv_withZeroMulInt_apply_zero :
valueGroup₀_equiv_withZeroMulInt v 0 = 0 := by simp
lemma valueGroup₀_equiv_withZeroMulInt_apply_zpow (k : ℤ) :
valueGroup₀_equiv_withZeroMulInt v (hv.generator' ^ k) = WithZero.exp (- k) := by
simp [WithZero.exp, ← mulintEquivOfZPowersEqTop_symm_apply_zpow
(Subgroup.zpowers_inv (g := hv.generator') ▸ hv.generator'_zpowers_eq_top)]
lemma valueGroup₀_equiv_withZeroMulInt_strictMono :
StrictMono (valueGroup₀_equiv_withZeroMulInt v) := by
intro x y hxy
rwa [(WithZero.map'_strictMono (MulEquiv.strictMono_symm (mulintEquivOfZPowersEqTop_strictMono
(Subgroup.zpowers_inv (g := hv.generator') ▸ hv.generator'_zpowers_eq_top)
(Left.one_lt_inv_iff.mpr hv.generator'_lt_one)))).lt_iff_lt]
/-- A discrete valuation has rank one. -/
@[instance_reducible]
noncomputable def rankOne {e : ℝ≥0} (he : 1 < e) : v.RankOne where
hom' := (toNNReal (ne_of_gt (lt_trans zero_lt_one he))).comp (valueGroup₀_equiv_withZeroMulInt v)
strictMono' := (toNNReal_strictMono he).comp (valueGroup₀_equiv_withZeroMulInt_strictMono v)
exists_val_nontrivial := IsNontrivial.exists_val_nontrivial
end LinearOrderedCommGroupWithZero
section WithZeroMulInt
variable {v : Valuation R ℤᵐ⁰} [hv : v.IsRankOneDiscrete]
lemma valueGroup₀_equiv_withZeroMulInt_restrict_apply_of_surjective (hsurj : Function.Surjective v)
(x : R) : (valueGroup₀_equiv_withZeroMulInt v) (v.restrict x) = v x := by
simp only [Valuation.restrict_def, ValueGroup₀.restrict₀_apply,
valueGroup₀_equiv_withZeroMulInt_apply]
split_ifs with h0 <;>
simp only [coe_toMonoidWithZeroHom] at h0
· simp [h0]
· rw [WithZero.map'_coe, ← coe_unzero h0, WithZero.coe_inj,
← (MulEquiv.injective (intEquivOfZPowersEqTop _
(Subgroup.zpowers_inv (g := hv.generator') ▸ hv.generator'_zpowers_eq_top))).eq_iff]
ext
simp [generator', generator_eq_exp_neg_one_of_surjective hsurj, toAdd_unzero_eq_log h0,
exp_log h0]
end WithZeroMulInt
end Ring
end Valuation.IsRankOneDiscrete
¤ Dauer der Verarbeitung: 0.3 Sekunden
¤
*© Formatika GbR, Deutschland