Module docstring
{"# Intervals in WithTop α and WithBot α
In this file we prove various lemmas about Set.images and Set.preimages of intervals under
some : α → WithTop α and some : α → WithBot α.
","### WithTop ","### WithBot "}
{"# Intervals in WithTop α and WithBot α
In this file we prove various lemmas about Set.images and Set.preimages of intervals under
some : α → WithTop α and some : α → WithBot α.
","### WithTop ","### WithBot "}
WithTop.preimage_coe_top
theorem
: (some : α → WithTop α) ⁻¹' {⊤} = (∅ : Set α)
@[simp]
theorem preimage_coe_top : (some : α → WithTop α) ⁻¹' {⊤} = (∅ : Set α) :=
eq_empty_of_subset_empty fun _ => coe_ne_top
WithTop.range_coe
theorem
: range (some : α → WithTop α) = Iio ⊤
WithTop.preimage_coe_Ioi
theorem
: (some : α → WithTop α) ⁻¹' Ioi a = Ioi a
@[simp]
theorem preimage_coe_Ioi : (some : α → WithTop α) ⁻¹' Ioi a = Ioi a :=
ext fun _ => coe_lt_coe
WithTop.preimage_coe_Ici
theorem
: (some : α → WithTop α) ⁻¹' Ici a = Ici a
@[simp]
theorem preimage_coe_Ici : (some : α → WithTop α) ⁻¹' Ici a = Ici a :=
ext fun _ => coe_le_coe
WithTop.preimage_coe_Iio
theorem
: (some : α → WithTop α) ⁻¹' Iio a = Iio a
@[simp]
theorem preimage_coe_Iio : (some : α → WithTop α) ⁻¹' Iio a = Iio a :=
ext fun _ => coe_lt_coe
WithTop.preimage_coe_Iic
theorem
: (some : α → WithTop α) ⁻¹' Iic a = Iic a
@[simp]
theorem preimage_coe_Iic : (some : α → WithTop α) ⁻¹' Iic a = Iic a :=
ext fun _ => coe_le_coe
WithTop.preimage_coe_Icc
theorem
: (some : α → WithTop α) ⁻¹' Icc a b = Icc a b
@[simp]
theorem preimage_coe_Icc : (some : α → WithTop α) ⁻¹' Icc a b = Icc a b := by simp [← Ici_inter_Iic]
WithTop.preimage_coe_Ico
theorem
: (some : α → WithTop α) ⁻¹' Ico a b = Ico a b
@[simp]
theorem preimage_coe_Ico : (some : α → WithTop α) ⁻¹' Ico a b = Ico a b := by simp [← Ici_inter_Iio]
WithTop.preimage_coe_Ioc
theorem
: (some : α → WithTop α) ⁻¹' Ioc a b = Ioc a b
@[simp]
theorem preimage_coe_Ioc : (some : α → WithTop α) ⁻¹' Ioc a b = Ioc a b := by simp [← Ioi_inter_Iic]
WithTop.preimage_coe_Ioo
theorem
: (some : α → WithTop α) ⁻¹' Ioo a b = Ioo a b
@[simp]
theorem preimage_coe_Ioo : (some : α → WithTop α) ⁻¹' Ioo a b = Ioo a b := by simp [← Ioi_inter_Iio]
WithTop.preimage_coe_Iio_top
theorem
: (some : α → WithTop α) ⁻¹' Iio ⊤ = univ
@[simp]
theorem preimage_coe_Iio_top : (some : α → WithTop α) ⁻¹' Iio ⊤ = univ := by
rw [← range_coe, preimage_range]
WithTop.preimage_coe_Ico_top
theorem
: (some : α → WithTop α) ⁻¹' Ico a ⊤ = Ici a
@[simp]
theorem preimage_coe_Ico_top : (some : α → WithTop α) ⁻¹' Ico a ⊤ = Ici a := by
simp [← Ici_inter_Iio]
WithTop.preimage_coe_Ioo_top
theorem
: (some : α → WithTop α) ⁻¹' Ioo a ⊤ = Ioi a
@[simp]
theorem preimage_coe_Ioo_top : (some : α → WithTop α) ⁻¹' Ioo a ⊤ = Ioi a := by
simp [← Ioi_inter_Iio]
WithTop.image_coe_Ioi
theorem
: (some : α → WithTop α) '' Ioi a = Ioo (a : WithTop α) ⊤
theorem image_coe_Ioi : (some : α → WithTop α) '' Ioi a = Ioo (a : WithTop α) ⊤ := by
rw [← preimage_coe_Ioi, image_preimage_eq_inter_range, range_coe, Ioi_inter_Iio]
WithTop.image_coe_Ici
theorem
: (some : α → WithTop α) '' Ici a = Ico (a : WithTop α) ⊤
theorem image_coe_Ici : (some : α → WithTop α) '' Ici a = Ico (a : WithTop α) ⊤ := by
rw [← preimage_coe_Ici, image_preimage_eq_inter_range, range_coe, Ici_inter_Iio]
WithTop.image_coe_Iio
theorem
: (some : α → WithTop α) '' Iio a = Iio (a : WithTop α)
theorem image_coe_Iio : (some : α → WithTop α) '' Iio a = Iio (a : WithTop α) := by
rw [← preimage_coe_Iio, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Iio_subset_Iio le_top)]
WithTop.image_coe_Iic
theorem
: (some : α → WithTop α) '' Iic a = Iic (a : WithTop α)
theorem image_coe_Iic : (some : α → WithTop α) '' Iic a = Iic (a : WithTop α) := by
rw [← preimage_coe_Iic, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Iic_subset_Iio.2 <| coe_lt_top a)]
WithTop.image_coe_Icc
theorem
: (some : α → WithTop α) '' Icc a b = Icc (a : WithTop α) b
theorem image_coe_Icc : (some : α → WithTop α) '' Icc a b = Icc (a : WithTop α) b := by
rw [← preimage_coe_Icc, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left
(Subset.trans Icc_subset_Iic_self <| Iic_subset_Iio.2 <| coe_lt_top b)]
WithTop.image_coe_Ico
theorem
: (some : α → WithTop α) '' Ico a b = Ico (a : WithTop α) b
theorem image_coe_Ico : (some : α → WithTop α) '' Ico a b = Ico (a : WithTop α) b := by
rw [← preimage_coe_Ico, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Subset.trans Ico_subset_Iio_self <| Iio_subset_Iio le_top)]
WithTop.image_coe_Ioc
theorem
: (some : α → WithTop α) '' Ioc a b = Ioc (a : WithTop α) b
theorem image_coe_Ioc : (some : α → WithTop α) '' Ioc a b = Ioc (a : WithTop α) b := by
rw [← preimage_coe_Ioc, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left
(Subset.trans Ioc_subset_Iic_self <| Iic_subset_Iio.2 <| coe_lt_top b)]
WithTop.image_coe_Ioo
theorem
: (some : α → WithTop α) '' Ioo a b = Ioo (a : WithTop α) b
theorem image_coe_Ioo : (some : α → WithTop α) '' Ioo a b = Ioo (a : WithTop α) b := by
rw [← preimage_coe_Ioo, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Subset.trans Ioo_subset_Iio_self <| Iio_subset_Iio le_top)]
WithBot.preimage_coe_bot
theorem
: (some : α → WithBot α) ⁻¹' {⊥} = (∅ : Set α)
@[simp]
theorem preimage_coe_bot : (some : α → WithBot α) ⁻¹' {⊥} = (∅ : Set α) :=
@WithTop.preimage_coe_top αᵒᵈ
WithBot.range_coe
theorem
: range (some : α → WithBot α) = Ioi ⊥
WithBot.preimage_coe_Ioi
theorem
: (some : α → WithBot α) ⁻¹' Ioi a = Ioi a
@[simp]
theorem preimage_coe_Ioi : (some : α → WithBot α) ⁻¹' Ioi a = Ioi a :=
ext fun _ => coe_lt_coe
WithBot.preimage_coe_Ici
theorem
: (some : α → WithBot α) ⁻¹' Ici a = Ici a
@[simp]
theorem preimage_coe_Ici : (some : α → WithBot α) ⁻¹' Ici a = Ici a :=
ext fun _ => coe_le_coe
WithBot.preimage_coe_Iio
theorem
: (some : α → WithBot α) ⁻¹' Iio a = Iio a
@[simp]
theorem preimage_coe_Iio : (some : α → WithBot α) ⁻¹' Iio a = Iio a :=
ext fun _ => coe_lt_coe
WithBot.preimage_coe_Iic
theorem
: (some : α → WithBot α) ⁻¹' Iic a = Iic a
@[simp]
theorem preimage_coe_Iic : (some : α → WithBot α) ⁻¹' Iic a = Iic a :=
ext fun _ => coe_le_coe
WithBot.preimage_coe_Icc
theorem
: (some : α → WithBot α) ⁻¹' Icc a b = Icc a b
@[simp]
theorem preimage_coe_Icc : (some : α → WithBot α) ⁻¹' Icc a b = Icc a b := by simp [← Ici_inter_Iic]
WithBot.preimage_coe_Ico
theorem
: (some : α → WithBot α) ⁻¹' Ico a b = Ico a b
@[simp]
theorem preimage_coe_Ico : (some : α → WithBot α) ⁻¹' Ico a b = Ico a b := by simp [← Ici_inter_Iio]
WithBot.preimage_coe_Ioc
theorem
: (some : α → WithBot α) ⁻¹' Ioc a b = Ioc a b
@[simp]
theorem preimage_coe_Ioc : (some : α → WithBot α) ⁻¹' Ioc a b = Ioc a b := by simp [← Ioi_inter_Iic]
WithBot.preimage_coe_Ioo
theorem
: (some : α → WithBot α) ⁻¹' Ioo a b = Ioo a b
@[simp]
theorem preimage_coe_Ioo : (some : α → WithBot α) ⁻¹' Ioo a b = Ioo a b := by simp [← Ioi_inter_Iio]
WithBot.preimage_coe_Ioi_bot
theorem
: (some : α → WithBot α) ⁻¹' Ioi ⊥ = univ
@[simp]
theorem preimage_coe_Ioi_bot : (some : α → WithBot α) ⁻¹' Ioi ⊥ = univ := by
rw [← range_coe, preimage_range]
WithBot.preimage_coe_Ioc_bot
theorem
: (some : α → WithBot α) ⁻¹' Ioc ⊥ a = Iic a
@[simp]
theorem preimage_coe_Ioc_bot : (some : α → WithBot α) ⁻¹' Ioc ⊥ a = Iic a := by
simp [← Ioi_inter_Iic]
WithBot.preimage_coe_Ioo_bot
theorem
: (some : α → WithBot α) ⁻¹' Ioo ⊥ a = Iio a
@[simp]
theorem preimage_coe_Ioo_bot : (some : α → WithBot α) ⁻¹' Ioo ⊥ a = Iio a := by
simp [← Ioi_inter_Iio]
WithBot.image_coe_Iio
theorem
: (some : α → WithBot α) '' Iio a = Ioo (⊥ : WithBot α) a
theorem image_coe_Iio : (some : α → WithBot α) '' Iio a = Ioo (⊥ : WithBot α) a := by
rw [← preimage_coe_Iio, image_preimage_eq_inter_range, range_coe, inter_comm, Ioi_inter_Iio]
WithBot.image_coe_Iic
theorem
: (some : α → WithBot α) '' Iic a = Ioc (⊥ : WithBot α) a
theorem image_coe_Iic : (some : α → WithBot α) '' Iic a = Ioc (⊥ : WithBot α) a := by
rw [← preimage_coe_Iic, image_preimage_eq_inter_range, range_coe, inter_comm, Ioi_inter_Iic]
WithBot.image_coe_Ioi
theorem
: (some : α → WithBot α) '' Ioi a = Ioi (a : WithBot α)
theorem image_coe_Ioi : (some : α → WithBot α) '' Ioi a = Ioi (a : WithBot α) := by
rw [← preimage_coe_Ioi, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Ioi_subset_Ioi bot_le)]
WithBot.image_coe_Ici
theorem
: (some : α → WithBot α) '' Ici a = Ici (a : WithBot α)
theorem image_coe_Ici : (some : α → WithBot α) '' Ici a = Ici (a : WithBot α) := by
rw [← preimage_coe_Ici, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Ici_subset_Ioi.2 <| bot_lt_coe a)]
WithBot.image_coe_Icc
theorem
: (some : α → WithBot α) '' Icc a b = Icc (a : WithBot α) b
theorem image_coe_Icc : (some : α → WithBot α) '' Icc a b = Icc (a : WithBot α) b := by
rw [← preimage_coe_Icc, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left
(Subset.trans Icc_subset_Ici_self <| Ici_subset_Ioi.2 <| bot_lt_coe a)]
WithBot.image_coe_Ioc
theorem
: (some : α → WithBot α) '' Ioc a b = Ioc (a : WithBot α) b
theorem image_coe_Ioc : (some : α → WithBot α) '' Ioc a b = Ioc (a : WithBot α) b := by
rw [← preimage_coe_Ioc, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Subset.trans Ioc_subset_Ioi_self <| Ioi_subset_Ioi bot_le)]
WithBot.image_coe_Ico
theorem
: (some : α → WithBot α) '' Ico a b = Ico (a : WithBot α) b
theorem image_coe_Ico : (some : α → WithBot α) '' Ico a b = Ico (a : WithBot α) b := by
rw [← preimage_coe_Ico, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left
(Subset.trans Ico_subset_Ici_self <| Ici_subset_Ioi.2 <| bot_lt_coe a)]
WithBot.image_coe_Ioo
theorem
: (some : α → WithBot α) '' Ioo a b = Ioo (a : WithBot α) b
theorem image_coe_Ioo : (some : α → WithBot α) '' Ioo a b = Ioo (a : WithBot α) b := by
rw [← preimage_coe_Ioo, image_preimage_eq_inter_range, range_coe,
inter_eq_self_of_subset_left (Subset.trans Ioo_subset_Ioi_self <| Ioi_subset_Ioi bot_le)]