Skip to content

Commit

Permalink
refactor(topology/metric_space): simplify dist_triangle proofs (#5916)
Browse files Browse the repository at this point in the history
Co-authors: `lean-gptf`, Stanislas Polu
  • Loading branch information
Jesse Michael Han committed Jan 27, 2021
1 parent 4e4298e commit d41781c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/topology/metric_space/basic.lean
Expand Up @@ -242,13 +242,13 @@ by simp only [← nnreal.eq_iff, ← dist_nndist, imp_self, nnreal.coe_zero, zer

/--Triangle inequality for the nonnegative distance-/
theorem nndist_triangle (x y z : α) : nndist x z ≤ nndist x y + nndist y z :=
by simpa [nnreal.coe_le_coe] using dist_triangle x y z
dist_triangle _ _ _

theorem nndist_triangle_left (x y z : α) : nndist x y ≤ nndist z x + nndist z y :=
by simpa [nnreal.coe_le_coe] using dist_triangle_left x y z
dist_triangle_left _ _ _

theorem nndist_triangle_right (x y z : α) : nndist x y ≤ nndist x z + nndist y z :=
by simpa [nnreal.coe_le_coe] using dist_triangle_right x y z
dist_triangle_right _ _ _

/--Express `dist` in terms of `edist`-/
lemma dist_edist (x y : α) : dist x y = (edist x y).to_real :=
Expand Down

0 comments on commit d41781c

Please sign in to comment.