-
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.
- Loading branch information
Showing
10 changed files
with
57 additions
and
44 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
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 |
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