/-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public import Mathlib.Algebra.Order.AbsoluteValue.Basic
public import Mathlib.Algebra.Order.Field.Basic
public import Mathlib.Topology.UniformSpace.OfFun
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutative ring `R` equipped with an absolute value into
a linear ordered field ``. Of course in the case `R` is `ℚ`, `ℝ` or `ℂ` and
` = ℝ`, we get the same thing as the metric space construction, and the general construction
follows exactly the same path.
## References
* [N. Bourbaki, *Topologie générale*][bourbaki1966]
## Tags
absolute value, uniform spaces
-/
@[expose] public section
open Set Filter
open scoped Uniformity
namespace AbsoluteValue
variable { : Type*} [Field ] [LinearOrder ] [IsStrictOrderedRing ]
variable {R : Type*} [CommRing R] (abv : AbsoluteValue R )
/-- The uniform structure coming from an absolute value. -/
@[instance_reducible]
def uniformSpace : UniformSpace R :=
.ofFun (fun x y => abv (y - x)) (by simp) (fun x y => abv.map_sub y x)
(fun _ _ _ => (abv.sub_le _ _ _).trans_eq (add_comm _ _))
fun ε ε0 => ⟨ε / 2, half_pos ε0, fun _ h₁ _ h₂ => (add_lt_add h₁ h₂).trans_eq (add_halves ε)⟩
theorem hasBasis_uniformity :
[abv.uniformSpace].HasBasis ((0 : ) < ·) fun ε => { p : R × R | abv (p.2 - p.1) < ε } :=
UniformSpace.hasBasis_ofFun (exists_gt _) _ _ _ _ _
end AbsoluteValue
[Verzeichnis aufwärts0.51unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-11-24]