The areas / V13. General topology
Mathlib.Topology.UnitInterval
102 declarations and 2 deprecated aliases. Mathlib docs · Source
The unit interval, as a topological space
Use open unitInterval to turn on the notation I := Set.Icc (0 : ℝ) (1 : ℝ).
We provide basic instances, as well as a custom tactic for discharging
0 ≤ ↑x, 0 ≤ 1 - ↑x, ↑x ≤ 1, and 1 - ↑x ≤ 1 when x : I.
The unit interval
abbrev unitInterval E1 #
Set ℝ
The unit interval [0,1] in ℝ.
def unitInterval.termI E1 #
Lean.ParserDescr
The unit interval [0,1] in ℝ.
theorem unitInterval.zero_mem E1 #
0 ∈ unitInterval
theorem unitInterval.one_mem E1 #
1 ∈ unitInterval
theorem unitInterval.mul_mem E1 #
∀ {x y : ℝ}, x ∈ unitInterval → y ∈ unitInterval → x * y ∈ unitInterval
theorem unitInterval.div_mem E1 #
∀ {x y : ℝ}, 0 ≤ x → 0 ≤ y → x ≤ y → x / y ∈ unitInterval
theorem unitInterval.fract_mem E1 #
∀ (x : ℝ), Int.fract x ∈ unitInterval
theorem unitInterval.univ_eq_Icc E1 #
Set.univ = Set.Icc 0 1
theorem unitInterval.coe_ne_zero E0 #
∀ {x : ↑unitInterval}, ↑x ≠ 0 ↔ x ≠ 0
theorem unitInterval.coe_ne_one E0 #
∀ {x : ↑unitInterval}, ↑x ≠ 1 ↔ x ≠ 1
theorem unitInterval.coe_pos E0 #
∀ {x : ↑unitInterval}, 0 < ↑x ↔ 0 < x
theorem unitInterval.coe_lt_one E0 #
∀ {x : ↑unitInterval}, ↑x < 1 ↔ x < 1
theorem unitInterval.mul_le_left E1 #
∀ {x y : ↑unitInterval}, x * y ≤ x
theorem unitInterval.mul_le_right E1 #
∀ {x y : ↑unitInterval}, x * y ≤ y
def unitInterval.symm E1 #
↑unitInterval → ↑unitInterval
Unit interval central symmetry.
def unitInterval.termσ E1 #
Lean.ParserDescr
Unit interval central symmetry.
theorem unitInterval.symm_zero E0 #
unitInterval.symm 0 = 1
theorem unitInterval.symm_one E0 #
unitInterval.symm 1 = 0
theorem unitInterval.symm_symm E0 #
∀ (x : ↑unitInterval), unitInterval.symm (unitInterval.symm x) = x
theorem unitInterval.symm_involutive E1 #
Function.Involutive unitInterval.symm
theorem unitInterval.symm_bijective E1 #
Function.Bijective unitInterval.symm
theorem unitInterval.coe_symm_eq E0 #
∀ (x : ↑unitInterval), ↑(unitInterval.symm x) = 1 - ↑x
theorem unitInterval.image_coe_preimage_symm E1 #
∀ {s : Set ↑unitInterval}, Subtype.val '' unitInterval.symm ⁻¹' s = (fun x ↦ 1 - x) ⁻¹' Subtype.val '' s
theorem unitInterval.symm_projIcc E0 #
∀ (x : ℝ), unitInterval.symm (Set.projIcc 0 1 ⋯ x) = Set.projIcc 0 1 ⋯ (1 - x)
theorem unitInterval.continuous_symm E1 #
Continuous unitInterval.symm
def unitInterval.symmHomeomorph E1 #
↑unitInterval ≃ₜ ↑unitInterval
unitInterval.symm as a Homeomorph.
theorem unitInterval.symmHomeomorph_apply E0 #
∀ (a : ↑unitInterval), unitInterval.symmHomeomorph a = unitInterval.symm a
theorem unitInterval.symmHomeomorph_symm_apply E0 #
∀ (a : ↑unitInterval), unitInterval.symmHomeomorph.symm a = unitInterval.symm a
theorem unitInterval.strictAnti_symm E1 #
StrictAnti unitInterval.symm
theorem unitInterval.symm_inj E0 #
∀ {i j : ↑unitInterval}, unitInterval.symm i = unitInterval.symm j ↔ i = j
theorem unitInterval.half_le_symm_iff E0 #
∀ (t : ↑unitInterval), 1 / 2 ≤ ↑(unitInterval.symm t) ↔ ↑t ≤ 1 / 2
theorem unitInterval.symm_eq_one E0 #
∀ {i : ↑unitInterval}, unitInterval.symm i = 1 ↔ i = 0
theorem unitInterval.symm_eq_zero E0 #
∀ {i : ↑unitInterval}, unitInterval.symm i = 0 ↔ i = 1
theorem unitInterval.symm_le_symm E0 #
∀ {i j : ↑unitInterval}, unitInterval.symm i ≤ unitInterval.symm j ↔ j ≤ i
theorem unitInterval.le_symm_comm E1 #
∀ {i j : ↑unitInterval}, i ≤ unitInterval.symm j ↔ j ≤ unitInterval.symm i
theorem unitInterval.symm_le_comm E1 #
∀ {i j : ↑unitInterval}, unitInterval.symm i ≤ j ↔ unitInterval.symm j ≤ i
theorem unitInterval.symm_lt_symm E0 #
∀ {i j : ↑unitInterval}, unitInterval.symm i < unitInterval.symm j ↔ j < i
theorem unitInterval.lt_symm_comm E1 #
∀ {i j : ↑unitInterval}, i < unitInterval.symm j ↔ j < unitInterval.symm i
theorem unitInterval.symm_lt_comm E1 #
∀ {i j : ↑unitInterval}, unitInterval.symm i < j ↔ unitInterval.symm j < i
instance unitInterval.instConnectedSpaceElemReal E0 #
ConnectedSpace ↑unitInterval
theorem unitInterval.nonneg E1 #
∀ (x : ↑unitInterval), 0 ≤ ↑x
theorem unitInterval.one_sub_nonneg E1 #
∀ (x : ↑unitInterval), 0 ≤ 1 - ↑x
theorem unitInterval.le_one E1 #
∀ (x : ↑unitInterval), ↑x ≤ 1
theorem unitInterval.one_sub_le_one E1 #
∀ (x : ↑unitInterval), 1 - ↑x ≤ 1
theorem unitInterval.add_pos E1 #
∀ {t : ↑unitInterval} {x : ℝ}, 0 < x → 0 < x + ↑t
theorem unitInterval.nonneg' E1 #
∀ {t : ↑unitInterval}, 0 ≤ t
like unitInterval.nonneg, but with the inequality in I.
theorem unitInterval.le_one' E1 #
∀ {t : ↑unitInterval}, t ≤ 1
like unitInterval.le_one, but with the inequality in I.
theorem unitInterval.pos_iff_ne_zero E1 #
∀ {x : ↑unitInterval}, 0 < x ↔ x ≠ 0
theorem unitInterval.lt_one_iff_ne_one E1 #
∀ {x : ↑unitInterval}, x < 1 ↔ x ≠ 1
instance unitInterval.instNontrivialElemReal E0 #
Nontrivial ↑unitInterval
theorem unitInterval.mul_pos_mem_iff E0 #
∀ {a t : ℝ}, 0 < a → (a * t ∈ unitInterval ↔ t ∈ Set.Icc 0 (1 / a))
theorem unitInterval.two_mul_sub_one_mem_iff E0 #
∀ {t : ℝ}, 2 * t - 1 ∈ unitInterval ↔ t ∈ Set.Icc (1 / 2) 1
def unitInterval.submonoid E1 #
Submonoid ℝ
The unit interval as a submonoid of ℝ.
theorem unitInterval.coe_unitIntervalSubmonoid E0 #
↑unitInterval.submonoid = unitInterval
theorem unitInterval.mem_unitIntervalSubmonoid E0 #
∀ {x : ℝ}, x ∈ unitInterval.submonoid ↔ x ∈ unitInterval
theorem unitInterval.prod_mem E1 #
∀ {ι : Type u_1} {t : Finset ι} {f : ι → ℝ}, (∀ c ∈ t, f c ∈ unitInterval) → ∏ c ∈ t, f c ∈ unitInterval
instance unitInterval.instLinearOrderedCommMonoidWithZeroElemReal E0 #
LinearOrderedCommMonoidWithZero ↑unitInterval
theorem unitInterval.subtype_Iic_eq_Icc E1 #
∀ (x : ↑unitInterval), Subtype.val ⁻¹' Set.Iic ↑x = Set.Icc 0 x
theorem unitInterval.subtype_Iio_eq_Ico E1 #
∀ (x : ↑unitInterval), Subtype.val ⁻¹' Set.Iio ↑x = Set.Ico 0 x
theorem unitInterval.subtype_Ici_eq_Icc E1 #
∀ (x : ↑unitInterval), Subtype.val ⁻¹' Set.Ici ↑x = Set.Icc x 1
theorem unitInterval.subtype_Ioi_eq_Ioc E1 #
∀ (x : ↑unitInterval), Subtype.val ⁻¹' Set.Ioi ↑x = Set.Ioc x 1
theorem Set.abs_projIcc_sub_projIcc E1 #
∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α] {a b c d : α} (h : a ≤ b),
|↑(Set.projIcc a b h c) - ↑(Set.projIcc a b h d)| ≤ |c - d|
Set.projIcc is a contraction.
def Set.Icc.addNSMul E1 #
{α : Type u_1} → [AddCommGroup α] → [inst : LinearOrder α] → {a b : α} → a ≤ b → α → ℕ → ↑(Set.Icc a b)
When h : a ≤ b and δ > 0, addNSMul h δ is a sequence of points in the closed interval
[a,b], which is initially equally spaced but eventually stays at the right endpoint b.
theorem Set.Icc.addNSMul_zero E1 #
∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : LinearOrder α] {a b : α} (h : a ≤ b) {δ : α},
↑(Set.Icc.addNSMul h δ 0) = a
theorem Set.Icc.addNSMul_eq_right E1 #
∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α] {a b : α} (h : a ≤ b) {δ : α}
[Archimedean α], 0 < δ → ∃ m, ∀ n ≥ m, ↑(Set.Icc.addNSMul h δ n) = b
theorem Set.Icc.monotone_addNSMul E1 #
∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α] {a b : α} (h : a ≤ b) {δ : α},
0 ≤ δ → Monotone (Set.Icc.addNSMul h δ)
theorem Set.Icc.abs_sub_addNSMul_le E1 #
∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α] {a b : α} (h : a ≤ b) {δ : α},
0 ≤ δ →
∀ {t : ↑(Set.Icc a b)} (n : ℕ),
t ∈ Set.Icc (Set.Icc.addNSMul h δ n) (Set.Icc.addNSMul h δ (n + 1)) → |↑t - ↑(Set.Icc.addNSMul h δ n)| ≤ δ
def Set.Icc.convexComb E1 #
{a b : ℝ} → ↑(Set.Icc a b) → ↑(Set.Icc a b) → ↑unitInterval → ↑(Set.Icc a b)
Form a convex linear combination of two points in a closed interval.
This should be removed once a general theory of convex spaces is available in Mathlib.
theorem Set.Icc.coe_convexComb E0 #
∀ {a b : ℝ} (x y : ↑(Set.Icc a b)) (t : ↑unitInterval), ↑(Set.Icc.convexComb x y t) = (1 - ↑t) * ↑x + ↑t * ↑y
theorem Set.Icc.convexComb_zero E0 #
∀ {a b : ℝ} (x y : ↑(Set.Icc a b)), Set.Icc.convexComb x y 0 = x
theorem Set.Icc.convexComb_one E0 #
∀ {a b : ℝ} (x y : ↑(Set.Icc a b)), Set.Icc.convexComb x y 1 = y
theorem Set.Icc.convexComb_zero_one E0 #
∀ (t : ↑unitInterval), Set.Icc.convexComb 0 1 t = t
theorem Set.Icc.convexComb_eq E0 #
∀ {a b : ℝ} (x : ↑(Set.Icc a b)) (t : ↑unitInterval), Set.Icc.convexComb x x t = x
theorem Set.Icc.convexComb_symm E0 #
∀ {a b : ℝ} (x y : ↑(Set.Icc a b)) (t : ↑unitInterval),
Set.Icc.convexComb x y (unitInterval.symm t) = Set.Icc.convexComb y x t
theorem Set.Icc.le_convexComb E1 #
∀ {a b : ℝ} {x y : ↑(Set.Icc a b)}, x ≤ y → ∀ (t : ↑unitInterval), x ≤ Set.Icc.convexComb x y t
theorem Set.Icc.convexComb_le E1 #
∀ {a b : ℝ} {x y : ↑(Set.Icc a b)}, x ≤ y → ∀ (t : ↑unitInterval), Set.Icc.convexComb x y t ≤ y
theorem Set.Icc.continuous_convexComb E1 #
∀ {a b : ℝ} (x y : ↑(Set.Icc a b)), Continuous (Set.Icc.convexComb x y)
theorem Set.Icc.continuous_convexComb_prod E1 #
∀ {a b : ℝ}, Continuous fun x ↦ Set.Icc.convexComb x.1 x.2.1 x.2.2
abbrev Set.Icc.convexComb_assoc_coeff₁ E1 #
↑unitInterval → ↑unitInterval → ↑unitInterval
Helper definition for convexComb_assoc, giving one of the coefficients appearing
when we reassociate a convex combination.
abbrev Set.Icc.convexComb_assoc_coeff₂ E1 #
↑unitInterval → ↑unitInterval → ↑unitInterval
Helper definition for convexComb_assoc, giving one of the coefficients appearing
when we reassociate a convex combination.
theorem Set.Icc.convexComb_assoc E1 #
∀ {a b : ℝ} (x y z : ↑(Set.Icc a b)) (s t : ↑unitInterval),
Set.Icc.convexComb x (Set.Icc.convexComb y z t) s =
Set.Icc.convexComb (Set.Icc.convexComb x y (Set.Icc.convexComb_assoc_coeff₁ s t)) z
(Set.Icc.convexComb_assoc_coeff₂ s t)
abbrev Set.Icc.convexComb_assoc_coeff₁' E1 #
↑unitInterval → ↑unitInterval → ↑unitInterval
Helper definition for convexComb_assoc', giving one of the coefficients appearing
when we reassociate a convex combination in the reverse direction.
abbrev Set.Icc.convexComb_assoc_coeff₂' E1 #
↑unitInterval → ↑unitInterval → ↑unitInterval
Helper definition for convexComb_assoc', giving one of the coefficients appearing
when we reassociate a convex combination in the reverse direction.
theorem Set.Icc.convexComb_assoc' E1 #
∀ {a b : ℝ} (x y z : ↑(Set.Icc a b)) (s t : ↑unitInterval),
Set.Icc.convexComb (Set.Icc.convexComb x y s) z t =
Set.Icc.convexComb x (Set.Icc.convexComb y z (Set.Icc.convexComb_assoc_coeff₂' s t))
(Set.Icc.convexComb_assoc_coeff₁' s t)
theorem exists_monotone_Icc_subset_open_cover_Icc E1 #
∀ {ι : Sort u_1} {a b : ℝ},
a ≤ b →
∀ {c : ι → Set ↑(Set.Icc a b)},
(∀ (i : ι), IsOpen (c i)) →
Set.univ ⊆ ⋃ i, c i →
∃ t, ↑(t 0) = a ∧ Monotone t ∧ (∃ m, ∀ n ≥ m, ↑(t n) = b) ∧ ∀ (n : ℕ), ∃ i, Set.Icc (t n) (t (n + 1)) ⊆ c i
Any open cover c of a closed interval [a, b] in ℝ
can be refined to a finite partition into subintervals.
theorem exists_monotone_Icc_subset_open_cover_unitInterval E1 #
∀ {ι : Sort u_1} {c : ι → Set ↑unitInterval},
(∀ (i : ι), IsOpen (c i)) →
Set.univ ⊆ ⋃ i, c i →
∃ t, t 0 = 0 ∧ Monotone t ∧ (∃ n, ∀ m ≥ n, t m = 1) ∧ ∀ (n : ℕ), ∃ i, Set.Icc (t n) (t (n + 1)) ⊆ c i
Any open cover of the unit interval can be refined to a finite partition into subintervals.
theorem exists_monotone_Icc_subset_open_cover_unitInterval_prod_self E1 #
∀ {ι : Sort u_1} {c : ι → Set (↑unitInterval × ↑unitInterval)},
(∀ (i : ι), IsOpen (c i)) →
Set.univ ⊆ ⋃ i, c i →
∃ t,
t 0 = 0 ∧
Monotone t ∧
(∃ n, ∀ m ≥ n, t m = 1) ∧ ∀ (n m : ℕ), ∃ i, Set.Icc (t n) (t (n + 1)) ×ˢ Set.Icc (t m) (t (m + 1)) ⊆ c i
theorem projIcc_eq_zero E0 #
∀ {x : ℝ}, Set.projIcc 0 1 ⋯ x = 0 ↔ x ≤ 0
theorem projIcc_eq_one E0 #
∀ {x : ℝ}, Set.projIcc 0 1 ⋯ x = 1 ↔ 1 ≤ x
def Mathlib.Tactic.Interactive.tacticUnit_interval E1 #
Lean.ParserDescr
unit_interval solves the goals 0 ≤ ↑x, 0 ≤ 1 - ↑x, ↑x ≤ 1, and 1 - ↑x ≤ 1 for
any expression x : I.
theorem affineHomeomorph_image_I E1 #
∀ {𝕜 : Type u_1} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
[inst_4 : IsTopologicalRing 𝕜] (a b : 𝕜) (h : 0 < a), ⇑(affineHomeomorph a b ⋯) '' Set.Icc 0 1 = Set.Icc b (a + b)
The image of [0,1] under the homeomorphism fun x ↦ a * x + b is [b, a+b].
def iccHomeoI E1 #
{𝕜 : Type u_1} →
[inst : Field 𝕜] →
[inst_1 : LinearOrder 𝕜] →
[IsStrictOrderedRing 𝕜] →
[inst_3 : TopologicalSpace 𝕜] → [IsTopologicalRing 𝕜] → (a b : 𝕜) → a < b → ↑(Set.Icc a b) ≃ₜ ↑(Set.Icc 0 1)
The affine homeomorphism from a nontrivial interval [a,b] to [0,1].
theorem iccHomeoI_apply_coe E0 #
∀ {𝕜 : Type u_1} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [inst_2 : IsStrictOrderedRing 𝕜]
[inst_3 : TopologicalSpace 𝕜] [inst_4 : IsTopologicalRing 𝕜] (a b : 𝕜) (h : a < b) (x : ↑(Set.Icc a b)),
↑((iccHomeoI a b h) x) = (↑x - a) / (b - a)
theorem iccHomeoI_symm_apply_coe E0 #
∀ {𝕜 : Type u_1} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [inst_2 : IsStrictOrderedRing 𝕜]
[inst_3 : TopologicalSpace 𝕜] [inst_4 : IsTopologicalRing 𝕜] (a b : 𝕜) (h : a < b) (x : ↑(Set.Icc 0 1)),
↑((iccHomeoI a b h).symm x) = (b - a) * ↑x + a
def unitInterval.toNNReal E1 #
↑unitInterval → NNReal
The coercion from I to ℝ≥0.
theorem unitInterval.toNNReal_mk E0 #
∀ (x : ℝ) (hx : x ∈ Set.Icc 0 1), unitInterval.toNNReal ⟨x, hx⟩ = NNReal.mk x ⋯
theorem unitInterval.toNNReal_zero E0 #
unitInterval.toNNReal 0 = 0
theorem unitInterval.toNNReal_one E0 #
unitInterval.toNNReal 1 = 1
theorem unitInterval.toNNReal_continuous E1 #
Continuous unitInterval.toNNReal
theorem unitInterval.coe_toNNReal E0 #
∀ (x : ↑unitInterval), ↑(unitInterval.toNNReal x) = ↑x
theorem unitInterval.toNNReal_add_toNNReal_symm E0 #
∀ (x : ↑unitInterval), unitInterval.toNNReal x + unitInterval.toNNReal (unitInterval.symm x) = 1
theorem unitInterval.toNNReal_symm_add_toNNReal E0 #
∀ (x : ↑unitInterval), unitInterval.toNNReal (unitInterval.symm x) + unitInterval.toNNReal x = 1
Deprecated aliases
| Name | New name | Since |
|---|---|---|
unitInterval.one_minus_le_one | unitInterval.one_sub_nonneg | 2026-10-06 |
unitInterval.one_minus_nonneg | unitInterval.one_sub_nonneg | 2026-10-06 |