Documentation

Mathlib.Topology.Instances.Rat

Topology on the rational numbers #

The structure of a metric space on ℚ is introduced in this file, induced from ℝ.

@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.
theorem Rat.dist_eq (x y : ℚ) :
dist x y = |↑x - ↑y|
@[simp]
theorem Rat.dist_cast (x y : ℚ) :
dist ↑x ↑y = dist x y
@[simp]
theorem Nat.dist_cast_rat (x y : ℕ) :
dist ↑x ↑y = dist x y
@[simp]
theorem Int.dist_cast_rat (x y : ℤ) :
dist ↑x ↑y = dist x y
@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.
theorem NNRat.dist_eq (p q : ℚ≥0) :
dist p q = dist ↑p ↑q
theorem NNRat.nndist_eq (p q : ℚ≥0) :
nndist p q = nndist ↑p ↑q