The areas / V13. General topology
Mathlib.Topology.MetricSpace.BundledFun
42 declarations. Mathlib docs · Source
theorem PseudoMetric.mk.injEq E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (toFun : X → X → R)
(refl' : ∀ (x : X), toFun x x = 0) (symm' : ∀ (x y : X), toFun x y = toFun y x)
(triangle' : ∀ (x y z : X), toFun x z ≤ toFun x y + toFun y z) (toFun_1 : X → X → R)
(refl'_1 : ∀ (x : X), toFun_1 x x = 0) (symm'_1 : ∀ (x y : X), toFun_1 x y = toFun_1 y x)
(triangle'_1 : ∀ (x y z : X), toFun_1 x z ≤ toFun_1 x y + toFun_1 y z),
({ toFun := toFun, refl' := refl', symm' := symm', triangle' := triangle' } =
{ toFun := toFun_1, refl' := refl'_1, symm' := symm'_1, triangle' := triangle'_1 }) =
(toFun = toFun_1)
def PseudoMetric.ctorIdx E1 #
{X : Type u_1} → {R : Type u_2} → {inst : Zero R} → {inst_1 : Add R} → {inst_2 : LE R} → PseudoMetric X R → ℕ
theorem PseudoMetric.mk.inj E1 #
∀ {X : Type u_1} {R : Type u_2} {inst : Zero R} {inst_1 : Add R} {inst_2 : LE R} {toFun : X → X → R}
{refl' : ∀ (x : X), toFun x x = 0} {symm' : ∀ (x y : X), toFun x y = toFun y x}
{triangle' : ∀ (x y z : X), toFun x z ≤ toFun x y + toFun y z} {toFun_1 : X → X → R}
{refl'_1 : ∀ (x : X), toFun_1 x x = 0} {symm'_1 : ∀ (x y : X), toFun_1 x y = toFun_1 y x}
{triangle'_1 : ∀ (x y z : X), toFun_1 x z ≤ toFun_1 x y + toFun_1 y z},
{ toFun := toFun, refl' := refl', symm' := symm', triangle' := triangle' } =
{ toFun := toFun_1, refl' := refl'_1, symm' := symm'_1, triangle' := triangle'_1 } →
toFun = toFun_1
structure PseudoMetric E1 #
Type u_1 → (R : Type u_2) → [Zero R] → [Add R] → [LE R] → Type (max u_1 u_2)
A pseudometric as a bundled function.
theorem PseudoMetric.ext E1 #
∀ {X : Type u_1} {R : Type u_2} {inst : Zero R} {inst_1 : Add R} {inst_2 : LE R} {x y : PseudoMetric X R},
x.toFun = y.toFun → x = y
theorem PseudoMetric.ext_iff E0 #
∀ {X : Type u_1} {R : Type u_2} {inst : Zero R} {inst_1 : Add R} {inst_2 : LE R} {x y : PseudoMetric X R},
x = y ↔ x.toFun = y.toFun
ctor PseudoMetric.mk E0 #
{X : Type u_1} →
{R : Type u_2} →
[inst : Zero R] →
[inst_1 : Add R] →
[inst_2 : LE R] →
(toFun : X → X → R) →
(∀ (x : X), toFun x x = 0) →
(∀ (x y : X), toFun x y = toFun y x) →
(∀ (x y z : X), toFun x z ≤ toFun x y + toFun y z) → PseudoMetric X R
abbrev PseudoMetric.toFun E1 #
{X : Type u_1} → {R : Type u_2} → [inst : Zero R] → [inst_1 : Add R] → [inst_2 : LE R] → PseudoMetric X R → X → X → R
The underlying binary function mapping into a linearly ordered additive monoid.
theorem PseudoMetric.refl' E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (self : PseudoMetric X R) (x : X),
self.toFun x x = 0
A pseudometric must take identical elements to 0.
theorem PseudoMetric.symm' E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (self : PseudoMetric X R) (x y : X),
self.toFun x y = self.toFun y x
A pseudometric must be symmetric.
theorem PseudoMetric.triangle' E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (self : PseudoMetric X R) (x y z : X),
self.toFun x z ≤ self.toFun x y + self.toFun y z
A pseudometric must respect the triangle inequality.
instance PseudoMetric.instFunLikeForall E0 #
{X : Type u_1} →
{R : Type u_2} → [inst : Zero R] → [inst_1 : Add R] → [inst_2 : LE R] → FunLike (PseudoMetric X R) X (X → R)
theorem PseudoMetric.coe_mk E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (d : X → X → R)
(refl : ∀ (x : X), d x x = 0) (symm : ∀ (x y : X), d x y = d y x) (triangle : ∀ (x y z : X), d x z ≤ d x y + d y z),
⇑{ toFun := d, refl' := refl, symm' := symm, triangle' := triangle } = d
theorem PseudoMetric.mk_apply E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (d : X → X → R)
(refl : ∀ (x : X), d x x = 0) (symm : ∀ (x y : X), d x y = d y x) (triangle : ∀ (x y z : X), d x z ≤ d x y + d y z)
(x y : X), { toFun := d, refl' := refl, symm' := symm, triangle' := triangle } x y = d x y
theorem PseudoMetric.refl E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (d : PseudoMetric X R) (x : X),
d x x = 0
theorem PseudoMetric.symm E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (d : PseudoMetric X R) (x y : X),
d x y = d y x
theorem PseudoMetric.triangle E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] (d : PseudoMetric X R) (x y z : X),
d x z ≤ d x y + d y z
instance PseudoMetric.instLE E0 #
{X : Type u_1} → {R : Type u_2} → [inst : Zero R] → [inst_1 : Add R] → [inst_2 : LE R] → LE (PseudoMetric X R)
theorem PseudoMetric.coe_le_coe E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] {d d' : PseudoMetric X R},
⇑d ≤ ⇑d' ↔ d ≤ d'
instance PseudoMetric.instPartialOrder E0 #
{X : Type u_1} →
{R : Type u_2} → [inst : Zero R] → [inst_1 : Add R] → [inst_2 : PartialOrder R] → PartialOrder (PseudoMetric X R)
instance PseudoMetric.instBot E0 #
{X : Type u_1} → {R : Type u_2} → [inst : AddZeroClass R] → [inst_1 : Preorder R] → Bot (PseudoMetric X R)
theorem PseudoMetric.coe_bot E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddZeroClass R] [inst_1 : Preorder R], ⇑⊥ = 0
theorem PseudoMetric.bot_apply E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddZeroClass R] [inst_1 : Preorder R] (x y : X), ⊥ x y = 0
instance PseudoMetric.instMaxOfAddLeftMonoOfAddRightMono E0 #
{X : Type u_1} →
{R : Type u_2} →
[inst : AddZeroClass R] → [inst_1 : SemilatticeSup R] → [AddLeftMono R] → [AddRightMono R] → Max (PseudoMetric X R)
theorem PseudoMetric.coe_sup E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddZeroClass R] [inst_1 : SemilatticeSup R] [inst_2 : AddLeftMono R]
[inst_3 : AddRightMono R] (d d' : PseudoMetric X R), ⇑(d ⊔ d') = ⇑d ⊔ ⇑d'
theorem PseudoMetric.sup_apply E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddZeroClass R] [inst_1 : SemilatticeSup R] [inst_2 : AddLeftMono R]
[inst_3 : AddRightMono R] (d d' : PseudoMetric X R) (x y : X), (d ⊔ d') x y = d x y ⊔ d' x y
instance PseudoMetric.instSemilatticeSupOfAddLeftMonoOfAddRightMono E0 #
{X : Type u_1} →
{R : Type u_2} →
[inst : AddZeroClass R] →
[inst_1 : SemilatticeSup R] → [AddLeftMono R] → [AddRightMono R] → SemilatticeSup (PseudoMetric X R)
theorem PseudoMetric.nonneg E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddCommMonoid R] [inst_1 : LinearOrder R] [AddLeftStrictMono R]
(d : PseudoMetric X R) (x y : X), 0 ≤ d x y
instance PseudoMetric.instOrderBot E0 #
{X : Type u_1} →
{R : Type u_2} →
[inst : AddCommMonoid R] → [inst_1 : LinearOrder R] → [AddLeftStrictMono R] → OrderBot (PseudoMetric X R)
theorem PseudoMetric.coe_finsetSup E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddCommMonoid R] [inst_1 : LinearOrder R] [inst_2 : AddLeftStrictMono R]
[inst_3 : IsOrderedAddMonoid R] {Y : Type u_3} {f : Y → PseudoMetric X R} {s : Finset Y} (hs : s.Nonempty),
⇑(s.sup f) = ⇑(s.sup' hs fun x ↦ f x)
theorem PseudoMetric.finsetSup_apply E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddCommMonoid R] [inst_1 : LinearOrder R] [inst_2 : AddLeftStrictMono R]
[inst_3 : IsOrderedAddMonoid R] {Y : Type u_3} {f : Y → PseudoMetric X R} {s : Finset Y} (hs : s.Nonempty) (x y : X),
(s.sup f) x y = s.sup' hs fun i ↦ (f i) x y
class PseudoMetric.IsUltra E1 #
{X : Type u_1} →
{R : Type u_2} → [inst : Zero R] → [inst_1 : Add R] → [inst_2 : LE R] → [Max R] → PseudoMetric X R → Prop
A pseudometric can be nonarchimedean (or ultrametric), with a stronger triangle
inequality such that d x z ≤ max (d x y) (d y z).
ctor PseudoMetric.IsUltra.mk E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] [inst_3 : Max R]
{d : PseudoMetric X R}, (∀ (x y z : X), d x z ≤ d x y ⊔ d y z) → d.IsUltra
theorem PseudoMetric.IsUltra.le_sup' E1 #
∀ {X : Type u_1} {R : Type u_2} {inst : Zero R} {inst_1 : Add R} {inst_2 : LE R} {inst_3 : Max R} {d : PseudoMetric X R}
[self : d.IsUltra] (x y z : X), d x z ≤ d x y ⊔ d y z
Strong triangle inequality of an ultrametric.
theorem PseudoMetric.IsUltra.le_sup E1 #
∀ {X : Type u_1} {R : Type u_2} [inst : Zero R] [inst_1 : Add R] [inst_2 : LE R] [inst_3 : Max R] {d : PseudoMetric X R}
[hd : d.IsUltra] {x y z : X}, d x z ≤ d x y ⊔ d y z
instance PseudoMetric.IsUltra.bot E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddZeroClass R] [inst_1 : SemilatticeSup R], ⊥.IsUltra
instance PseudoMetric.IsUltra.sup E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : AddZeroClass R] [inst_1 : SemilatticeSup R] [inst_2 : AddLeftMono R]
[inst_3 : AddRightMono R] {d d' : PseudoMetric X R} [d.IsUltra] [d'.IsUltra], (d ⊔ d').IsUltra
theorem PseudoMetric.IsUltra.finsetSup E1 #
∀ {X : Type u_1} {R : Type u_2} {Y : Type u_3} [inst : AddCommMonoid R] [inst_1 : LinearOrder R]
[inst_2 : AddLeftStrictMono R] [inst_3 : IsOrderedAddMonoid R] {f : Y → PseudoMetric X R} {s : Finset Y},
(∀ d ∈ s, (f d).IsUltra) → (s.sup f).IsUltra
instance PseudoMetric.isSymm_ball E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Add R] [inst_1 : Zero R] [inst_2 : Preorder R] (d : PseudoMetric X R) {ε : R},
SetRel.IsSymm {xy | d xy.1 xy.2 < ε}
instance PseudoMetric.isSymm_closedBall E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Add R] [inst_1 : Zero R] [inst_2 : LE R] (d : PseudoMetric X R) {ε : R},
SetRel.IsSymm {xy | d xy.1 xy.2 ≤ ε}
instance PseudoMetric.IsUltra.isTrans_ball E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Add R] [inst_1 : Zero R] [inst_2 : LinearOrder R] (d : PseudoMetric X R)
[d.IsUltra] {ε : R}, SetRel.IsTrans {xy | d xy.1 xy.2 < ε}
instance PseudoMetric.IsUltra.isTrans_closedBall E0 #
∀ {X : Type u_1} {R : Type u_2} [inst : Add R] [inst_1 : Zero R] [inst_2 : SemilatticeSup R] (d : PseudoMetric X R)
[d.IsUltra] {ε : R}, SetRel.IsTrans {xy | d xy.1 xy.2 ≤ ε}