The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V04. Order and lattices

Mathlib.Order.Interval.Set.Pi

62 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem Set.pi_univ_Iic E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x : (i : ι) → α i),
  (Set.univ.pi fun i ↦ Set.Iic (x i)) = Set.Iic x

theorem Set.pi_univ_Ici E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x : (i : ι) → α i),
  (Set.univ.pi fun i ↦ Set.Ici (x i)) = Set.Ici x

theorem Set.pi_univ_Icc E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x y : (i : ι) → α i),
  (Set.univ.pi fun i ↦ Set.Icc (x i) (y i)) = Set.Icc x y

theorem Set.piecewise_mem_Icc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] {s : Set ι} [inst_1 : (j : ι) → Decidable (j ∈ s)]
  {f₁ f₂ g₁ g₂ : (i : ι) → α i},
  (∀ i ∈ s, f₁ i ∈ Set.Icc (g₁ i) (g₂ i)) → (∀ i ∉ s, f₂ i ∈ Set.Icc (g₁ i) (g₂ i)) → s.piecewise f₁ f₂ ∈ Set.Icc g₁ g₂

theorem Set.piecewise_mem_Icc' E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] {s : Set ι} [inst_1 : (j : ι) → Decidable (j ∈ s)]
  {f₁ f₂ g₁ g₂ : (i : ι) → α i}, f₁ ∈ Set.Icc g₁ g₂ → f₂ ∈ Set.Icc g₁ g₂ → s.piecewise f₁ f₂ ∈ Set.Icc g₁ g₂

theorem Set.pi_univ_Ioi_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x : (i : ι) → α i) [Nonempty ι],
  (Set.univ.pi fun i ↦ Set.Ioi (x i)) ⊆ Set.Ioi x

theorem Set.pi_univ_Iio_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x : (i : ι) → α i) [Nonempty ι],
  (Set.univ.pi fun i ↦ Set.Iio (x i)) ⊆ Set.Iio x

theorem Set.pi_univ_Ioo_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x y : (i : ι) → α i) [Nonempty ι],
  (Set.univ.pi fun i ↦ Set.Ioo (x i) (y i)) ⊆ Set.Ioo x y

theorem Set.pi_univ_Ioc_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x y : (i : ι) → α i) [Nonempty ι],
  (Set.univ.pi fun i ↦ Set.Ioc (x i) (y i)) ⊆ Set.Ioc x y

theorem Set.pi_univ_Ico_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] (x y : (i : ι) → α i) [Nonempty ι],
  (Set.univ.pi fun i ↦ Set.Ico (y i) (x i)) ⊆ Set.Ico y x

theorem Set.pi_univ_Ioc_update_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : DecidableEq ι] {x y : (i : ι) → α i}
  {i₀ : ι} {m : α i₀},
  x i₀ ≤ m →
    (Set.univ.pi fun i ↦ Set.Ioc (Function.update x i₀ m i) (y i)) =
      {z | m < z i₀} ∩ Set.univ.pi fun i ↦ Set.Ioc (x i) (y i)

theorem Set.pi_univ_Ioc_update_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : DecidableEq ι] {x y : (i : ι) → α i}
  {i₀ : ι} {m : α i₀},
  m ≤ y i₀ →
    (Set.univ.pi fun i ↦ Set.Ioc (x i) (Function.update y i₀ m i)) =
      {z | z i₀ ≤ m} ∩ Set.univ.pi fun i ↦ Set.Ioc (x i) (y i)

theorem Set.disjoint_pi_univ_Ioc_update_left_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : DecidableEq ι] {x y : (i : ι) → α i}
  {i₀ : ι} {m : α i₀},
  Disjoint (Set.univ.pi fun i ↦ Set.Ioc (x i) (Function.update y i₀ m i))
    (Set.univ.pi fun i ↦ Set.Ioc (Function.update x i₀ m i) (y i))

theorem Set.image_update_Icc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a b : α i), Function.update f i '' Set.Icc a b = Set.Icc (Function.update f i a) (Function.update f i b)

theorem Set.image_update_Ico E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a b : α i), Function.update f i '' Set.Ico a b = Set.Ico (Function.update f i a) (Function.update f i b)

theorem Set.image_update_Ioc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a b : α i), Function.update f i '' Set.Ioc a b = Set.Ioc (Function.update f i a) (Function.update f i b)

theorem Set.image_update_Ioo E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a b : α i), Function.update f i '' Set.Ioo a b = Set.Ioo (Function.update f i a) (Function.update f i b)

theorem Set.image_update_Icc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a : α i), Function.update f i '' Set.Icc a (f i) = Set.Icc (Function.update f i a) f

theorem Set.image_update_Ico_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a : α i), Function.update f i '' Set.Ico a (f i) = Set.Ico (Function.update f i a) f

theorem Set.image_update_Ioc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a : α i), Function.update f i '' Set.Ioc a (f i) = Set.Ioc (Function.update f i a) f

theorem Set.image_update_Ioo_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (a : α i), Function.update f i '' Set.Ioo a (f i) = Set.Ioo (Function.update f i a) f

theorem Set.image_update_Icc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (b : α i), Function.update f i '' Set.Icc (f i) b = Set.Icc f (Function.update f i b)

theorem Set.image_update_Ico_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (b : α i), Function.update f i '' Set.Ico (f i) b = Set.Ico f (Function.update f i b)

theorem Set.image_update_Ioc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (b : α i), Function.update f i '' Set.Ioc (f i) b = Set.Ioc f (Function.update f i b)

theorem Set.image_update_Ioo_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)] (f : (i : ι) → α i)
  (i : ι) (b : α i), Function.update f i '' Set.Ioo (f i) b = Set.Ioo f (Function.update f i b)

theorem Set.image_mulSingle_Icc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a b : α i),
  Pi.mulSingle i '' Set.Icc a b = Set.Icc (Pi.mulSingle i a) (Pi.mulSingle i b)

theorem Set.image_single_Icc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a b : α i),
  Pi.single i '' Set.Icc a b = Set.Icc (Pi.single i a) (Pi.single i b)

theorem Set.image_single_Ico E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a b : α i),
  Pi.single i '' Set.Ico a b = Set.Ico (Pi.single i a) (Pi.single i b)

theorem Set.image_mulSingle_Ico E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a b : α i),
  Pi.mulSingle i '' Set.Ico a b = Set.Ico (Pi.mulSingle i a) (Pi.mulSingle i b)

theorem Set.image_single_Ioc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a b : α i),
  Pi.single i '' Set.Ioc a b = Set.Ioc (Pi.single i a) (Pi.single i b)

theorem Set.image_mulSingle_Ioc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a b : α i),
  Pi.mulSingle i '' Set.Ioc a b = Set.Ioc (Pi.mulSingle i a) (Pi.mulSingle i b)

theorem Set.image_mulSingle_Ioo E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a b : α i),
  Pi.mulSingle i '' Set.Ioo a b = Set.Ioo (Pi.mulSingle i a) (Pi.mulSingle i b)

theorem Set.image_single_Ioo E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a b : α i),
  Pi.single i '' Set.Ioo a b = Set.Ioo (Pi.single i a) (Pi.single i b)

theorem Set.image_single_Icc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a : α i), Pi.single i '' Set.Icc a 0 = Set.Icc (Pi.single i a) 0

theorem Set.image_mulSingle_Icc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a : α i), Pi.mulSingle i '' Set.Icc a 1 = Set.Icc (Pi.mulSingle i a) 1

theorem Set.image_mulSingle_Ico_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a : α i), Pi.mulSingle i '' Set.Ico a 1 = Set.Ico (Pi.mulSingle i a) 1

theorem Set.image_single_Ico_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a : α i), Pi.single i '' Set.Ico a 0 = Set.Ico (Pi.single i a) 0

theorem Set.image_single_Ioc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a : α i), Pi.single i '' Set.Ioc a 0 = Set.Ioc (Pi.single i a) 0

theorem Set.image_mulSingle_Ioc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a : α i), Pi.mulSingle i '' Set.Ioc a 1 = Set.Ioc (Pi.mulSingle i a) 1

theorem Set.image_mulSingle_Ioo_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a : α i), Pi.mulSingle i '' Set.Ioo a 1 = Set.Ioo (Pi.mulSingle i a) 1

theorem Set.image_single_Ioo_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a : α i), Pi.single i '' Set.Ioo a 0 = Set.Ioo (Pi.single i a) 0

theorem Set.image_mulSingle_Icc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (b : α i), Pi.mulSingle i '' Set.Icc 1 b = Set.Icc 1 (Pi.mulSingle i b)

theorem Set.image_single_Icc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (b : α i), Pi.single i '' Set.Icc 0 b = Set.Icc 0 (Pi.single i b)

theorem Set.image_mulSingle_Ico_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (b : α i), Pi.mulSingle i '' Set.Ico 1 b = Set.Ico 1 (Pi.mulSingle i b)

theorem Set.image_single_Ico_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (b : α i), Pi.single i '' Set.Ico 0 b = Set.Ico 0 (Pi.single i b)

theorem Set.image_mulSingle_Ioc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (b : α i), Pi.mulSingle i '' Set.Ioc 1 b = Set.Ioc 1 (Pi.mulSingle i b)

theorem Set.image_single_Ioc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (b : α i), Pi.single i '' Set.Ioc 0 b = Set.Ioc 0 (Pi.single i b)

theorem Set.image_mulSingle_Ioo_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (b : α i), Pi.mulSingle i '' Set.Ioo 1 b = Set.Ioo 1 (Pi.mulSingle i b)

theorem Set.image_single_Ioo_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (b : α i), Pi.single i '' Set.Ioo 0 b = Set.Ioo 0 (Pi.single i b)

theorem Set.pi_univ_uIcc E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] (a b : (i : ι) → α i),
  (Set.univ.pi fun i ↦ Set.uIcc (a i) (b i)) = Set.uIcc a b

theorem Set.image_update_uIcc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι] (f : (i : ι) → α i)
  (i : ι) (a b : α i), Function.update f i '' Set.uIcc a b = Set.uIcc (Function.update f i a) (Function.update f i b)

theorem Set.image_update_uIcc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι] (f : (i : ι) → α i)
  (i : ι) (a : α i), Function.update f i '' Set.uIcc a (f i) = Set.uIcc (Function.update f i a) f

theorem Set.image_update_uIcc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι] (f : (i : ι) → α i)
  (i : ι) (b : α i), Function.update f i '' Set.uIcc (f i) b = Set.uIcc f (Function.update f i b)

theorem Set.image_mulSingle_uIcc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a b : α i),
  Pi.mulSingle i '' Set.uIcc a b = Set.uIcc (Pi.mulSingle i a) (Pi.mulSingle i b)

theorem Set.image_single_uIcc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a b : α i),
  Pi.single i '' Set.uIcc a b = Set.uIcc (Pi.single i a) (Pi.single i b)

theorem Set.image_mulSingle_uIcc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (a : α i), Pi.mulSingle i '' Set.uIcc a 1 = Set.uIcc (Pi.mulSingle i a) 1

theorem Set.image_single_uIcc_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (a : α i), Pi.single i '' Set.uIcc a 0 = Set.uIcc (Pi.single i a) 0

theorem Set.image_single_uIcc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → Zero (α i)] (i : ι) (b : α i), Pi.single i '' Set.uIcc 0 b = Set.uIcc 0 (Pi.single i b)

theorem Set.image_mulSingle_uIcc_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Lattice (α i)] [inst_1 : DecidableEq ι]
  [inst_2 : (i : ι) → One (α i)] (i : ι) (b : α i), Pi.mulSingle i '' Set.uIcc 1 b = Set.uIcc 1 (Pi.mulSingle i b)

theorem Set.pi_univ_Ioc_update_union E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → LinearOrder (α i)] (x y : (i : ι) → α i)
  (i₀ : ι),
  ∀ m ∈ Set.Icc (x i₀) (y i₀),
    ((Set.univ.pi fun i ↦ Set.Ioc (x i) (Function.update y i₀ m i)) ∪
        Set.univ.pi fun i ↦ Set.Ioc (Function.update x i₀ m i) (y i)) =
      Set.univ.pi fun i ↦ Set.Ioc (x i) (y i)

theorem Set.Icc_sdiff_pi_univ_Ioo_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → LinearOrder (α i)]
  (x y x' y' : (i : ι) → α i),
  (Set.Icc x y \ Set.univ.pi fun i ↦ Set.Ioo (x' i) (y' i)) ⊆
    (⋃ i, Set.Icc x (Function.update y i (x' i))) ∪ ⋃ i, Set.Icc (Function.update x i (y' i)) y

If x, y, x', and y' are functions Π i : ι, α i, then the set difference between the box [x, y] and the product of the open intervals (x' i, y' i) is covered by the union of the following boxes: for each i : ι, we take [x, update y i (x' i)] and [update x i (y' i), y].

E.g., if x' = x and y' = y, then this lemma states that the difference between a closed box [x, y] and the corresponding open box {z | ∀ i, x i < z i < y i} is covered by the union of the faces of [x, y].

theorem Set.Icc_sdiff_pi_univ_Ioc_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → LinearOrder (α i)]
  (x y z : (i : ι) → α i),
  (Set.Icc x z \ Set.univ.pi fun i ↦ Set.Ioc (y i) (z i)) ⊆ ⋃ i, Set.Icc x (Function.update z i (y i))

If x, y, z are functions Π i : ι, α i, then the set difference between the box [x, z] and the product of the intervals (y i, z i] is covered by the union of the boxes [x, update z i (y i)].

E.g., if x = y, then this lemma states that the difference between a closed box [x, y] and the product of half-open intervals {z | ∀ i, x i < z i ≤ y i} is covered by the union of the faces of [x, y] adjacent to x.

Deprecated aliases

NameNew nameSince
Set.Icc_diff_pi_univ_Ioc_subsetSet.Icc_sdiff_pi_univ_Ioc_subset2026-06-03
Set.Icc_diff_pi_univ_Ioo_subsetSet.Icc_sdiff_pi_univ_Ioo_subset2026-06-03