-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: strengthen
instTotallyDisconnectedSpaceOfIsUltrametricDist
to…
… `TotallySeparatedSpace` (#17427) Rename the file it's in to `TotallySeparated`. Also add two lemmas `isClopen_of_disjoint_cover_open` and `totallySeparatedSpace_iff_exists_isClopen`.
- Loading branch information
1 parent
3693fb2
commit 7138640
Showing
5 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
Mathlib/Topology/MetricSpace/Ultra/TotallyDisconnected.lean
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/- | ||
Copyright (c) 2024 Yakov Pechersky. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Yakov Pechersky, David Loeffler | ||
-/ | ||
import Mathlib.Topology.MetricSpace.Defs | ||
import Mathlib.Topology.MetricSpace.Ultra.Basic | ||
|
||
/-! | ||
# Ultrametric spaces are totally separated | ||
In a metric space with an ultrametric, the space is totally separated, hence totally disconnected. | ||
## Tags | ||
ultrametric, nonarchimedean, totally separated, totally disconnected | ||
-/ | ||
open Metric IsUltrametricDist | ||
|
||
instance {X : Type*} [MetricSpace X] [IsUltrametricDist X] : TotallySeparatedSpace X := | ||
totallySeparatedSpace_iff_exists_isClopen.mpr fun x y h ↦ by | ||
obtain ⟨r, hr, hr'⟩ := exists_between (dist_pos.mpr h) | ||
refine ⟨_, IsUltrametricDist.isClopen_ball x r, ?_, ?_⟩ | ||
· simp only [mem_ball, dist_self, hr] | ||
· simp only [Set.mem_compl, mem_ball, dist_comm, not_lt, hr'.le] | ||
|
||
example {X : Type*} [MetricSpace X] [IsUltrametricDist X] : TotallyDisconnectedSpace X := | ||
inferInstance |