The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V14. Topological algebra and infinite sums

Mathlib.Topology.Algebra.Valued.ValuationTopology

35 declarations. Mathlib docs · Source

The topology on a valued ring

In this file, we define the non-Archimedean topology induced by a valuation on a ring. The main definition is a Valued type class which equips a ring with a valuation taking values in a group with zero. Other instances are then deduced from this.

NOTE (2025-07-02): The Valued class defined in this file will eventually get replaced with ValuativeRel from Mathlib.RingTheory.Valuation.ValuativeRel.Basic. New developments on valued rings/fields should take this into consideration.

def Valued.ctorIdx E1 #

{R : Type u} →
  {inst : Ring R} → {Γ₀ : outParam (Type v)} → {inst_1 : LinearOrderedCommGroupWithZero Γ₀} → Valued R Γ₀ → ℕ

theorem Valuation.map_eq_one_of_forall_lt E0 #

∀ {K : Type u} [inst : DivisionRing K] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [MulArchimedean Γ₀]
  {v : Valuation K Γ₀} {r : Γ₀}, r ≠ 0 → (∀ (x : K), v x ≠ 0 → r < v x) → ∀ (x : K), v x ≠ 0 → v x = 1

theorem Valuation.subgroups_basis E1 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] (v : Valuation R Γ₀),
  RingSubgroupsBasis fun γ ↦ v.ltAddSubgroup ((Units.map ↑MonoidWithZeroHom.ValueGroup₀.embedding) γ)

The basis of open subgroups for the topology on a ring determined by a valuation.

class Valued E3 #

(R : Type u) → [Ring R] → (Γ₀ : outParam (Type v)) → [LinearOrderedCommGroupWithZero Γ₀] → Type (max u v)

A valued ring is a ring that comes equipped with a distinguished valuation. The class Valued is designed for the situation that there is a canonical valuation on the ring.

TODO: show that there always exists an equivalent valuation taking values in a type belonging to the same universe as the ring.

See Note [forgetful inheritance] for why we extend UniformSpace, IsUniformAddGroup.

instance Valued.toIsUniformAddGroup E0 #

∀ {R : Type u} {inst : Ring R} {Γ₀ : outParam (Type v)} {inst_1 : LinearOrderedCommGroupWithZero Γ₀}
  [self : Valued R Γ₀], IsUniformAddGroup R

instance Valued.toUniformSpace E0 #

{R : Type u} →
  {inst : Ring R} →
    {Γ₀ : outParam (Type v)} → {inst_1 : LinearOrderedCommGroupWithZero Γ₀} → [self : Valued R Γ₀] → UniformSpace R

ctor Valued.mk E0 #

{R : Type u} →
  [inst : Ring R] →
    {Γ₀ : outParam (Type v)} →
      [inst_1 : LinearOrderedCommGroupWithZero Γ₀] →
        [toUniformSpace : UniformSpace R] →
          [toIsUniformAddGroup : IsUniformAddGroup R] →
            (v : Valuation R Γ₀) → (∀ (s : Set R), s ∈ nhds 0 ↔ ∃ γ, {x | v.restrict x < ↑γ} ⊆ s) → Valued R Γ₀

abbrev Valued.v E1 #

{R : Type u} →
  {inst : Ring R} →
    {Γ₀ : outParam (Type v)} → {inst_1 : LinearOrderedCommGroupWithZero Γ₀} → [self : Valued R Γ₀] → Valuation R Γ₀

theorem Valued.is_topological_valuation E1 #

∀ {R : Type u} {inst : Ring R} {Γ₀ : outParam (Type v)} {inst_1 : LinearOrderedCommGroupWithZero Γ₀}
  [self : Valued R Γ₀] (s : Set R), s ∈ nhds 0 ↔ ∃ γ, {x | Valued.v.restrict x < ↑γ} ⊆ s

def Valued.mk' E1 #

{R : Type u} →
  [inst : Ring R] → {Γ₀ : Type v} → [inst_1 : LinearOrderedCommGroupWithZero Γ₀] → Valuation R Γ₀ → Valued R Γ₀

Alternative Valued constructor for use when there is no preferred UniformSpace structure.

theorem Valued.hasBasis_nhds_zero E1 #

∀ (R : Type u) [inst : Ring R] (Γ₀ : Type v) [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  (nhds 0).HasBasis (fun x ↦ True) fun γ ↦ {x | Valued.v.restrict x < ↑γ}

theorem Valued.hasBasis_uniformity E1 #

∀ (R : Type u) [inst : Ring R] (Γ₀ : Type v) [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  (uniformity R).HasBasis (fun x ↦ True) fun γ ↦ {p | Valued.v.restrict (p.2 - p.1) < ↑γ}

theorem Valued.toUniformSpace_eq E0 #

∀ (R : Type u) [inst : Ring R] (Γ₀ : Type v) [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  _i.toUniformSpace = IsTopologicalAddGroup.rightUniformSpace R

theorem Valued.mem_nhds E0 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀] {s : Set R}
  {x : R}, s ∈ nhds x ↔ ∃ γ, {y | Valued.v.restrict (y - x) < ↑γ} ⊆ s

theorem Valued.mem_nhds_zero E0 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  {s : Set R}, s ∈ nhds 0 ↔ ∃ γ, {x | Valued.v.restrict x < ↑γ} ⊆ s

theorem Valued.locally_const E1 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀] {x : R},
  Valued.v x ≠ 0 → {y | Valued.v y = Valued.v x} ∈ nhds x

The set { y : R | v y = v x } is a neighbourhood of x. This does not imply that v is locally constant everywhere (since v ⁻¹' {0} is not open), but it is equivalent to the restriction of v to the complement of its support being locally constant.

instance Valued.instIsTopologicalRing E0 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  IsTopologicalRing R

theorem Valued.discreteTopology_of_forall_map_eq_one E1 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  (∀ (x : R), x ≠ 0 → Valued.v x = 1) → DiscreteTopology R

theorem Valued.discreteTopology_of_forall_lt E1 #

∀ {K : Type u} [inst : DivisionRing K] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [MulArchimedean Γ₀]
  [inst_3 : Valued K Γ₀] {r : Γ₀}, r ≠ 0 → (∀ (x : K), Valued.v x ≠ 0 → r < Valued.v x) → DiscreteTopology K

theorem Valued.cauchy_iff E0 #

∀ {R : Type u} [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  {F : Filter R},
  Cauchy F ↔ F.NeBot ∧ ∀ (γ : (↑Valued.v).ValueGroup₀ˣ), ∃ M ∈ F, ∀ x ∈ M, ∀ y ∈ M, Valued.v.restrict (y - x) < ↑γ

theorem Valued.isOpen_ball E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  (r : (↑Valued.v).ValueGroup₀), IsOpen {x | Valued.v.restrict x < r}

An open ball centred at the origin in a valued ring is open.

theorem Valued.isClosed_ball E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  (r : (↑Valued.v).ValueGroup₀), IsClosed {x | Valued.v.restrict x < r}

An open ball centred at the origin in a valued ring is closed.

theorem Valued.isClopen_ball E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  (r : (↑Valued.v).ValueGroup₀), IsClopen {x | Valued.v.restrict x < r}

An open ball centred at the origin in a valued ring is clopen.

theorem Valued.isOpen_closedBall E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  {r : (↑Valued.v).ValueGroup₀}, r ≠ 0 → IsOpen {x | Valued.v.restrict x ≤ r}

A closed ball centred at the origin in a valued ring is open.

theorem Valued.isClosed_closedBall E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  (r : (↑Valued.v).ValueGroup₀), IsClosed {x | Valued.v.restrict x ≤ r}

A closed ball centred at the origin in a valued ring is closed.

theorem Valued.isClopen_closedBall E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  {r : (↑Valued.v).ValueGroup₀}, r ≠ 0 → IsClopen {x | Valued.v.restrict x ≤ r}

A closed ball centred at the origin in a valued ring is clopen.

theorem Valued.isClopen_sphere E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  {r : (↑Valued.v).ValueGroup₀}, r ≠ 0 → IsClopen {x | Valued.v.restrict x = r}

A sphere centred at the origin in a valued ring is clopen.

theorem Valued.isOpen_sphere E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  {r : (↑Valued.v).ValueGroup₀}, r ≠ 0 → IsOpen {x | Valued.v.restrict x = r}

A sphere centred at the origin in a valued ring is open.

theorem Valued.isClosed_sphere E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀]
  (r : (↑Valued.v).ValueGroup₀), IsClosed {x | Valued.v.restrict x = r}

A sphere centred at the origin in a valued ring is closed.

theorem Valued.isOpen_integer E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  IsOpen ↑Valued.v.integer

The closed unit ball in a valued ring is open.

theorem Valued.isClosed_integer E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  IsClosed ↑Valued.v.integer

The closed unit ball of a valued ring is closed.

theorem Valued.isClopen_integer E1 #

∀ (R : Type u) [inst : Ring R] {Γ₀ : Type v} [inst_1 : LinearOrderedCommGroupWithZero Γ₀] [_i : Valued R Γ₀],
  IsClopen ↑Valued.v.integer

The closed unit ball of a valued ring is clopen.

theorem Valued.isOpen_valuationSubring E1 #

∀ {Γ₀ : Type v} [inst : LinearOrderedCommGroupWithZero Γ₀] (K : Type u) [inst_1 : Field K] [hv : Valued K Γ₀],
  IsOpen ↑Valued.v.valuationSubring

The valuation subring of a valued field is open.

theorem Valued.isClosed_valuationSubring E1 #

∀ {Γ₀ : Type v} [inst : LinearOrderedCommGroupWithZero Γ₀] (K : Type u) [inst_1 : Field K] [hv : Valued K Γ₀],
  IsClosed ↑Valued.v.valuationSubring

The valuation subring of a valued field is closed.

theorem Valued.isClopen_valuationSubring E1 #

∀ {Γ₀ : Type v} [inst : LinearOrderedCommGroupWithZero Γ₀] (K : Type u) [inst_1 : Field K] [hv : Valued K Γ₀],
  IsClopen ↑Valued.v.valuationSubring

The valuation subring of a valued field is clopen.