Projection of a line onto a closed interval #
Given a linearly ordered type α
, in this file we define
Set.projIci (a : α)
to be the mapα → [a, ∞)
sending(-∞, a]
toa
, and each pointx ∈ [a, ∞)
to itself;Set.projIic (b : α)
to be the mapα → (-∞, b[
sending[b, ∞)
tob
, and each pointx ∈ (-∞, b]
to itself;Set.projIcc (a b : α) (h : a ≤ b)
to be the mapα → [a, b]
sending(-∞, a]
toa
,[b, ∞)
tob
, and each pointx ∈ [a, b]
to itself;Set.IccExtend {a b : α} (h : a ≤ b) (f : Icc a b → β)
to be the extension off
toα
defined asf ∘ projIcc a b h
.Set.IciExtend {a : α} (f : Ici a → β)
to be the extension off
toα
defined asf ∘ projIci a
.Set.IicExtend {b : α} (f : Iic b → β)
to be the extension off
toα
defined asf ∘ projIic b
.
We also prove some trivial properties of these maps.
Projection of α
to the closed interval [a, ∞)
.
Equations
- Set.projIci a x = { val := max a x, property := ⋯ }
Instances For
Projection of α
to the closed interval (-∞, b]
.
Equations
- Set.projIic b x = { val := min b x, property := ⋯ }
Instances For
Projection of α
to the closed interval [a, b]
.
Equations
- Set.projIcc a b h x = { val := max a (min b x), property := ⋯ }
Instances For
theorem
Set.coe_projIci
{α : Type u_1}
[LinearOrder α]
(a : α)
(x : α)
:
↑(Set.projIci a x) = max a x
theorem
Set.coe_projIic
{α : Type u_1}
[LinearOrder α]
(b : α)
(x : α)
:
↑(Set.projIic b x) = min b x
theorem
Set.coe_projIcc
{α : Type u_1}
[LinearOrder α]
(a : α)
(b : α)
(h : a ≤ b)
(x : α)
:
↑(Set.projIcc a b h x) = max a (min b x)
theorem
Set.projIci_of_le
{α : Type u_1}
[LinearOrder α]
{a : α}
{x : α}
(hx : x ≤ a)
:
Set.projIci a x = { val := a, property := ⋯ }
theorem
Set.projIic_of_le
{α : Type u_1}
[LinearOrder α]
{b : α}
{x : α}
(hx : b ≤ x)
:
Set.projIic b x = { val := b, property := ⋯ }
theorem
Set.projIcc_of_le_left
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
{x : α}
(hx : x ≤ a)
:
Set.projIcc a b h x = { val := a, property := ⋯ }
theorem
Set.projIcc_of_right_le
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
{x : α}
(hx : b ≤ x)
:
Set.projIcc a b h x = { val := b, property := ⋯ }
@[simp]
theorem
Set.projIci_self
{α : Type u_1}
[LinearOrder α]
(a : α)
:
Set.projIci a a = { val := a, property := ⋯ }
@[simp]
theorem
Set.projIic_self
{α : Type u_1}
[LinearOrder α]
(b : α)
:
Set.projIic b b = { val := b, property := ⋯ }
@[simp]
theorem
Set.projIcc_left
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
Set.projIcc a b h a = { val := a, property := ⋯ }
@[simp]
theorem
Set.projIcc_right
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
Set.projIcc a b h b = { val := b, property := ⋯ }
theorem
Set.projIci_eq_self
{α : Type u_1}
[LinearOrder α]
{a : α}
{x : α}
:
Set.projIci a x = { val := a, property := ⋯ } ↔ x ≤ a
theorem
Set.projIic_eq_self
{α : Type u_1}
[LinearOrder α]
{b : α}
{x : α}
:
Set.projIic b x = { val := b, property := ⋯ } ↔ b ≤ x
theorem
Set.projIcc_eq_left
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
{x : α}
(h : a < b)
:
Set.projIcc a b ⋯ x = { val := a, property := ⋯ } ↔ x ≤ a
theorem
Set.projIcc_eq_right
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
{x : α}
(h : a < b)
:
Set.projIcc a b ⋯ x = { val := b, property := ⋯ } ↔ b ≤ x
theorem
Set.projIci_of_mem
{α : Type u_1}
[LinearOrder α]
{a : α}
{x : α}
(hx : x ∈ Set.Ici a)
:
Set.projIci a x = { val := x, property := hx }
theorem
Set.projIic_of_mem
{α : Type u_1}
[LinearOrder α]
{b : α}
{x : α}
(hx : x ∈ Set.Iic b)
:
Set.projIic b x = { val := x, property := hx }
theorem
Set.projIcc_of_mem
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
{x : α}
(hx : x ∈ Set.Icc a b)
:
Set.projIcc a b h x = { val := x, property := hx }
@[simp]
theorem
Set.projIci_coe
{α : Type u_1}
[LinearOrder α]
{a : α}
(x : ↑(Set.Ici a))
:
Set.projIci a ↑x = x
@[simp]
theorem
Set.projIic_coe
{α : Type u_1}
[LinearOrder α]
{b : α}
(x : ↑(Set.Iic b))
:
Set.projIic b ↑x = x
@[simp]
theorem
Set.projIcc_val
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(x : ↑(Set.Icc a b))
:
Set.projIcc a b h ↑x = x
theorem
Set.projIci_surjOn
{α : Type u_1}
[LinearOrder α]
{a : α}
:
Set.SurjOn (Set.projIci a) (Set.Ici a) Set.univ
theorem
Set.projIic_surjOn
{α : Type u_1}
[LinearOrder α]
{b : α}
:
Set.SurjOn (Set.projIic b) (Set.Iic b) Set.univ
theorem
Set.projIcc_surjOn
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
Set.SurjOn (Set.projIcc a b h) (Set.Icc a b) Set.univ
theorem
Set.projIcc_surjective
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
Function.Surjective (Set.projIcc a b h)
@[simp]
theorem
Set.range_projIci
{α : Type u_1}
[LinearOrder α]
{a : α}
:
Set.range (Set.projIci a) = Set.univ
@[simp]
theorem
Set.range_projIic
{α : Type u_1}
[LinearOrder α]
{a : α}
:
Set.range (Set.projIic a) = Set.univ
@[simp]
theorem
Set.range_projIcc
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
Set.range (Set.projIcc a b h) = Set.univ
theorem
Set.monotone_projIcc
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
Monotone (Set.projIcc a b h)
theorem
Set.strictMonoOn_projIci
{α : Type u_1}
[LinearOrder α]
{a : α}
:
StrictMonoOn (Set.projIci a) (Set.Ici a)
theorem
Set.strictMonoOn_projIic
{α : Type u_1}
[LinearOrder α]
{b : α}
:
StrictMonoOn (Set.projIic b) (Set.Iic b)
theorem
Set.strictMonoOn_projIcc
{α : Type u_1}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
:
StrictMonoOn (Set.projIcc a b h) (Set.Icc a b)
def
Set.IciExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
(f : ↑(Set.Ici a) → β)
:
α → β
Extend a function [a, ∞) → β
to a map α → β
.
Equations
- Set.IciExtend f = f ∘ Set.projIci a
Instances For
def
Set.IicExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
(f : ↑(Set.Iic b) → β)
:
α → β
Extend a function (-∞, b] → β
to a map α → β
.
Equations
- Set.IicExtend f = f ∘ Set.projIic b
Instances For
def
Set.IccExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : ↑(Set.Icc a b) → β)
:
α → β
Extend a function [a, b] → β
to a map α → β
.
Equations
- Set.IccExtend h f = f ∘ Set.projIcc a b h
Instances For
theorem
Set.IciExtend_apply
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
(f : ↑(Set.Ici a) → β)
(x : α)
:
Set.IciExtend f x = f { val := max a x, property := ⋯ }
theorem
Set.IicExtend_apply
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
(f : ↑(Set.Iic b) → β)
(x : α)
:
Set.IicExtend f x = f { val := min b x, property := ⋯ }
theorem
Set.IccExtend_apply
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : ↑(Set.Icc a b) → β)
(x : α)
:
Set.IccExtend h f x = f { val := max a (min b x), property := ⋯ }
@[simp]
theorem
Set.range_IciExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
(f : ↑(Set.Ici a) → β)
:
Set.range (Set.IciExtend f) = Set.range f
@[simp]
theorem
Set.range_IicExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
(f : ↑(Set.Iic b) → β)
:
Set.range (Set.IicExtend f) = Set.range f
@[simp]
theorem
Set.IccExtend_range
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : ↑(Set.Icc a b) → β)
:
Set.range (Set.IccExtend h f) = Set.range f
theorem
Set.IciExtend_of_le
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{x : α}
(f : ↑(Set.Ici a) → β)
(hx : x ≤ a)
:
Set.IciExtend f x = f { val := a, property := ⋯ }
theorem
Set.IicExtend_of_le
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
{x : α}
(f : ↑(Set.Iic b) → β)
(hx : b ≤ x)
:
Set.IicExtend f x = f { val := b, property := ⋯ }
theorem
Set.IccExtend_of_le_left
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
{x : α}
(f : ↑(Set.Icc a b) → β)
(hx : x ≤ a)
:
Set.IccExtend h f x = f { val := a, property := ⋯ }
theorem
Set.IccExtend_of_right_le
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
{x : α}
(f : ↑(Set.Icc a b) → β)
(hx : b ≤ x)
:
Set.IccExtend h f x = f { val := b, property := ⋯ }
@[simp]
theorem
Set.IciExtend_self
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
(f : ↑(Set.Ici a) → β)
:
Set.IciExtend f a = f { val := a, property := ⋯ }
@[simp]
theorem
Set.IicExtend_self
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
(f : ↑(Set.Iic b) → β)
:
Set.IicExtend f b = f { val := b, property := ⋯ }
@[simp]
theorem
Set.IccExtend_left
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : ↑(Set.Icc a b) → β)
:
Set.IccExtend h f a = f { val := a, property := ⋯ }
@[simp]
theorem
Set.IccExtend_right
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : ↑(Set.Icc a b) → β)
:
Set.IccExtend h f b = f { val := b, property := ⋯ }
theorem
Set.IciExtend_of_mem
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{x : α}
(f : ↑(Set.Ici a) → β)
(hx : x ∈ Set.Ici a)
:
Set.IciExtend f x = f { val := x, property := hx }
theorem
Set.IicExtend_of_mem
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
{x : α}
(f : ↑(Set.Iic b) → β)
(hx : x ∈ Set.Iic b)
:
Set.IicExtend f x = f { val := x, property := hx }
theorem
Set.IccExtend_of_mem
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
{x : α}
(f : ↑(Set.Icc a b) → β)
(hx : x ∈ Set.Icc a b)
:
Set.IccExtend h f x = f { val := x, property := hx }
@[simp]
theorem
Set.IciExtend_coe
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
(f : ↑(Set.Ici a) → β)
(x : ↑(Set.Ici a))
:
Set.IciExtend f ↑x = f x
@[simp]
theorem
Set.IicExtend_coe
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{b : α}
(f : ↑(Set.Iic b) → β)
(x : ↑(Set.Iic b))
:
Set.IicExtend f ↑x = f x
@[simp]
theorem
Set.IccExtend_val
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : ↑(Set.Icc a b) → β)
(x : ↑(Set.Icc a b))
:
Set.IccExtend h f ↑x = f x
theorem
Set.IccExtend_eq_self
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
{a : α}
{b : α}
(h : a ≤ b)
(f : α → β)
(ha : ∀ x < a, f x = f a)
(hb : ∀ (x : α), b < x → f x = f b)
:
Set.IccExtend h (f ∘ Subtype.val) = f
If f : α → β
is a constant both on $(-∞, a]$ and on $[b, +∞)$, then the extension of this
function from $[a, b]$ to the whole line is equal to the original function.
theorem
Monotone.IciExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[Preorder β]
{a : α}
{f : ↑(Set.Ici a) → β}
(hf : Monotone f)
:
theorem
Monotone.IicExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[Preorder β]
{b : α}
{f : ↑(Set.Iic b) → β}
(hf : Monotone f)
:
theorem
Monotone.IccExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[Preorder β]
{a : α}
{b : α}
(h : a ≤ b)
{f : ↑(Set.Icc a b) → β}
(hf : Monotone f)
:
Monotone (Set.IccExtend h f)
theorem
StrictMono.strictMonoOn_IciExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[Preorder β]
{a : α}
{f : ↑(Set.Ici a) → β}
(hf : StrictMono f)
:
StrictMonoOn (Set.IciExtend f) (Set.Ici a)
theorem
StrictMono.strictMonoOn_IicExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[Preorder β]
{b : α}
{f : ↑(Set.Iic b) → β}
(hf : StrictMono f)
:
StrictMonoOn (Set.IicExtend f) (Set.Iic b)
theorem
StrictMono.strictMonoOn_IccExtend
{α : Type u_1}
{β : Type u_2}
[LinearOrder α]
[Preorder β]
{a : α}
{b : α}
(h : a ≤ b)
{f : ↑(Set.Icc a b) → β}
(hf : StrictMono f)
:
StrictMonoOn (Set.IccExtend h f) (Set.Icc a b)
theorem
Set.OrdConnected.IciExtend
{α : Type u_1}
[LinearOrder α]
{a : α}
{s : Set ↑(Set.Ici a)}
(hs : Set.OrdConnected s)
:
Set.OrdConnected {x : α | Set.IciExtend (fun (x : ↑(Set.Ici a)) => x ∈ s) x}
theorem
Set.OrdConnected.IicExtend
{α : Type u_1}
[LinearOrder α]
{b : α}
{s : Set ↑(Set.Iic b)}
(hs : Set.OrdConnected s)
:
Set.OrdConnected {x : α | Set.IicExtend (fun (x : ↑(Set.Iic b)) => x ∈ s) x}
theorem
Set.OrdConnected.restrict
{α : Type u_1}
[LinearOrder α]
{s : Set α}
{t : Set α}
(hs : Set.OrdConnected s)
:
Set.OrdConnected {x : ↑t | Set.restrict t (fun (x : α) => x ∈ s) x}