Skip to content

Commit

Permalink
feat(topology/metric_space/basic): dist_ne_zero (#7552)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindavidson committed May 9, 2021
1 parent 132328c commit bf229dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/topology/metric_space/basic.lean
Expand Up @@ -1755,6 +1755,9 @@ iff.intro eq_of_dist_eq_zero (assume : x = y, this ▸ dist_self _)
@[simp] theorem zero_eq_dist {x y : γ} : 0 = dist x y ↔ x = y :=
by rw [eq_comm, dist_eq_zero]

theorem dist_ne_zero {x y : γ} : dist x y ≠ 0 ↔ x ≠ y :=
by simpa only [not_iff_not] using dist_eq_zero

@[simp] theorem dist_le_zero {x y : γ} : dist x y ≤ 0 ↔ x = y :=
by simpa [le_antisymm_iff, dist_nonneg] using @dist_eq_zero _ _ x y

Expand Down

0 comments on commit bf229dd

Please sign in to comment.