Documentation
Extra
.
Topology
.
IMetricSpace
.
Constructions
.
Bool
Search
return to top
source
Imports
Init
Extra.Topology.IMetricSpace
Mathlib.Data.Real.Basic
Mathlib.Data.Set.Defs
Mathlib.Topology.Defs.Basic
Imported by
Bool
.
idist
Bool
.
idist_self
Bool
.
idist_comm
Bool
.
idist_triangle
Bool
.
isOpen_iff
Bool
.
eq_of_idist_eq_zero
Bool
.
instIMetricSpace
source
def
Bool
.
idist
(
x
y
:
Bool
)
:
↑
unitInterval
Equations
x
.
idist
y
=
if
x
=
y
then
⊥
else
⊤
Instances For
source
theorem
Bool
.
idist_self
(
x
:
Bool
)
:
x
.
idist
x
=
0
source
theorem
Bool
.
idist_comm
(
x
y
:
Bool
)
:
x
.
idist
y
=
y
.
idist
x
source
theorem
Bool
.
idist_triangle
(
x
y
z
:
Bool
)
:
↑
(
x
.
idist
z
)
≤
↑
(
x
.
idist
y
)
+
↑
(
y
.
idist
z
)
source
theorem
Bool
.
isOpen_iff
(
s
:
Set
Bool
)
:
IsOpen
s
↔
∀
x
∈
s
,
∃
ε
>
0
,
∀ (
y
:
Bool
),
↑
(
x
.
idist
y
)
<
ε
→
y
∈
s
source
theorem
Bool
.
eq_of_idist_eq_zero
(
x
y
:
Bool
)
(
h
:
x
.
idist
y
=
0
)
:
x
=
y
source
@[implicit_reducible]
instance
Bool
.
instIMetricSpace
:
IMetricSpace
Bool
Equations
Bool.instIMetricSpace
=
IMetricSpace.ofIDistTopology
Bool.idist
Bool.idist_self
Bool.idist_comm
Bool.idist_triangle
Bool.isOpen_iff
Bool.eq_of_idist_eq_zero