Documentation

Mathlib.Topology.Instances.Nat

Topology on the natural numbers #

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

noncomputable instance Nat.instDistNat :
Equations
theorem Nat.dist_eq (x : ℕ) (y : ℕ) :
dist x y = |↑x - ↑y|
theorem Nat.dist_coe_int (x : ℕ) (y : ℕ) :
dist ↑x ↑y = dist x y
@[simp]
theorem Nat.dist_cast_real (x : ℕ) (y : ℕ) :
dist ↑x ↑y = dist x y
theorem Nat.pairwise_one_le_dist :
Pairwise fun (m n : ℕ) => 1 ≤ dist m n
theorem Nat.preimage_ball (x : ℕ) (r : ℝ) :
Nat.cast ⁻¹' Metric.ball (↑x) r = Metric.ball x r