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 / V16. Normed spaces and functional analysis

Mathlib.Analysis.Convex.Combination

59 declarations. Mathlib docs · Source

def Finset.centerMass E1 #

{R : Type u_1} →
  {E : Type u_3} →
    {ι : Type u_5} → [inst : Field R] → [inst_1 : AddCommGroup E] → [Module R E] → Finset ι → (ι → R) → (ι → E) → E

Center of mass of a finite collection of points with prescribed weights. Note that we require neither 0 ≤ w i nor ∑ w = 1.

theorem Finset.centerMass_empty E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  (w : ι → R) (z : ι → E), ∅.centerMass w z = 0

theorem Finset.centerMass_pair E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  (i j : ι) (w : ι → R) (z : ι → E) [inst_3 : DecidableEq ι],
  i ≠ j → {i, j}.centerMass w z = (w i / (w i + w j)) • z i + (w j / (w i + w j)) • z j

theorem Finset.centerMass_insert E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] (i : ι)
  (t : Finset ι) {w : ι → R} (z : ι → E) [inst_3 : DecidableEq ι],
  i ∉ t →
    ∑ j ∈ t, w j ≠ 0 →
      (insert i t).centerMass w z =
        (w i / (w i + ∑ j ∈ t, w j)) • z i + ((∑ j ∈ t, w j) / (w i + ∑ j ∈ t, w j)) • t.centerMass w z

theorem Finset.centerMass_singleton E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] (i : ι)
  {w : ι → R} (z : ι → E), w i ≠ 0 → {i}.centerMass w z = z i

theorem Finset.centerMass_neg_left E0 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  (t : Finset ι) {w : ι → R} (z : ι → E), t.centerMass (-w) z = t.centerMass w z

theorem Finset.centerMass_smul_left E1 #

∀ {R : Type u_1} {R' : Type u_2} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : Field R']
  [inst_2 : AddCommGroup E] [inst_3 : Module R E] (t : Finset ι) {w : ι → R} (z : ι → E) {c : R'} [inst_4 : Module R' R]
  [inst_5 : Module R' E] [IsScalarTower R' R R] [SMulCommClass R R' E] [IsScalarTower R' R E],
  c ≠ 0 → t.centerMass (c • w) z = t.centerMass w z

theorem Finset.centerMass_eq_of_sum_1 E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  (t : Finset ι) {w : ι → R} (z : ι → E), ∑ i ∈ t, w i = 1 → t.centerMass w z = ∑ i ∈ t, w i • z i

theorem Finset.centerMass_smul E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] (c : R)
  (t : Finset ι) {w : ι → R} (z : ι → E), (t.centerMass w fun i ↦ c • z i) = c • t.centerMass w z

theorem Finset.centerMass_segment' E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} {ι' : Type u_6} [inst : Field R] [inst_1 : AddCommGroup E]
  [inst_2 : Module R E] (s : Finset ι) (t : Finset ι') (ws : ι → R) (zs : ι → E) (wt : ι' → R) (zt : ι' → E),
  ∑ i ∈ s, ws i = 1 →
    ∑ i ∈ t, wt i = 1 →
      ∀ (a b : R),
        a + b = 1 →
          a • s.centerMass ws zs + b • t.centerMass wt zt =
            (s.disjSum t).centerMass (Sum.elim (fun i ↦ a * ws i) fun j ↦ b * wt j) (Sum.elim zs zt)

A convex combination of two centers of mass is a center of mass as well. This version deals with two different index types.

theorem Finset.centerMass_segment E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  (s : Finset ι) (w₁ w₂ : ι → R) (z : ι → E),
  ∑ i ∈ s, w₁ i = 1 →
    ∑ i ∈ s, w₂ i = 1 →
      ∀ (a b : R),
        a + b = 1 → a • s.centerMass w₁ z + b • s.centerMass w₂ z = s.centerMass (fun i ↦ a * w₁ i + b * w₂ i) z

A convex combination of two centers of mass is a center of mass as well. This version works if two centers of mass share the set of original points.

theorem Finset.centerMass_ite_eq E0 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] (i : ι)
  (t : Finset ι) (z : ι → E) [inst_3 : DecidableEq ι], i ∈ t → t.centerMass (fun j ↦ if i = j then 1 else 0) z = z i

theorem Finset.centerMass_subset E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R} (z : ι → E) {t' : Finset ι},
  t ⊆ t' → (∀ i ∈ t', i ∉ t → w i = 0) → t.centerMass w z = t'.centerMass w z

theorem Finset.centerMass_filter_ne_zero E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R} (z : ι → E) [inst_3 : (i : ι) → Decidable (w i ≠ 0)],
  {i ∈ t | w i ≠ 0}.centerMass w z = t.centerMass w z

theorem Finset.centerMass_le_sup E1 #

∀ {R : Type u_1} {ι : Type u_5} {α : Type u_7} [inst : Field R] [inst_1 : AddCommGroup α] [inst_2 : LinearOrder α]
  [inst_3 : Module R α] [inst_4 : LinearOrder R] [IsOrderedAddMonoid α] [PosSMulMono R α] {s : Finset ι} {f : ι → α}
  {w : ι → R} (hw₀ : ∀ i ∈ s, 0 ≤ w i) (hw₁ : 0 < ∑ i ∈ s, w i), s.centerMass w f ≤ s.sup' ⋯ f

theorem Finset.inf_le_centerMass E1 #

∀ {R : Type u_1} {ι : Type u_5} {α : Type u_7} [inst : Field R] [inst_1 : AddCommGroup α] [inst_2 : LinearOrder α]
  [inst_3 : Module R α] [inst_4 : LinearOrder R] [IsOrderedAddMonoid α] [PosSMulMono R α] {s : Finset ι} {f : ι → α}
  {w : ι → R} (hw₀ : ∀ i ∈ s, 0 ≤ w i) (hw₁ : 0 < ∑ i ∈ s, w i), s.inf' ⋯ f ≤ s.centerMass w f

theorem Finset.centerMass_const E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R}, ∑ j ∈ t, w j ≠ 0 → ∀ (c : E), t.centerMass w (Function.const ι c) = c

theorem Finset.centerMass_congr E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R} {z : ι → E} [inst_3 : DecidableEq ι] {t' : Finset ι} {w' : ι → R} {z' : ι → E},
  (∀ (i : ι), i ∈ t ∧ w i ≠ 0 ∨ i ∈ t' ∧ w' i ≠ 0 → i ∈ t ∩ t' ∧ w i = w' i ∧ z i = z' i) →
    t.centerMass w z = t'.centerMass w' z'

theorem Finset.centerMass_congr_finset E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R} {z : ι → E} [inst_3 : DecidableEq ι] {t' : Finset ι},
  (∀ i ∈ t ∪ t', w i ≠ 0 → i ∈ t ∩ t') → t.centerMass w z = t'.centerMass w z

theorem Finset.centerMass_congr_weights E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R} {z : ι → E} {w' : ι → R}, (∀ i ∈ t, w i = w' i) → t.centerMass w z = t.centerMass w' z

theorem Finset.centerMass_congr_fun E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {t : Finset ι} {w : ι → R} {z z' : ι → E}, (∀ i ∈ t, w i ≠ 0 → z i = z' i) → t.centerMass w z = t.centerMass w z'

theorem Finset.centerMass_of_sum_add_sum_eq_zero E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {w : ι → R} {z : ι → E} {s t : Finset ι},
  ∑ i ∈ s, w i + ∑ i ∈ t, w i = 0 → ∑ i ∈ s, w i • z i + ∑ i ∈ t, w i • z i = 0 → s.centerMass w z = t.centerMass w z

theorem Convex.centerMass_mem E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {s : Set E} {t : Finset ι} {w : ι → R} {z : ι → E} [inst_3 : LinearOrder R] [IsStrictOrderedRing R],
  Convex R s → (∀ i ∈ t, 0 ≤ w i) → 0 < ∑ i ∈ t, w i → (∀ i ∈ t, z i ∈ s) → t.centerMass w z ∈ s

The center of mass of a finite subset of a convex set belongs to the set provided that all weights are non-negative, and the total weight is positive.

theorem Convex.sum_mem E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {s : Set E} {t : Finset ι} {w : ι → R} {z : ι → E} [inst_3 : LinearOrder R] [IsStrictOrderedRing R],
  Convex R s → (∀ i ∈ t, 0 ≤ w i) → ∑ i ∈ t, w i = 1 → (∀ i ∈ t, z i ∈ s) → ∑ i ∈ t, w i • z i ∈ s

theorem Convex.finsum_mem E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {ι : Sort u_8} {w : ι → R} {z : ι → E} {s : Set E},
  Convex R s → (∀ (i : ι), 0 ≤ w i) → ∑ᶠ (i : ι), w i = 1 → (∀ (i : ι), w i ≠ 0 → z i ∈ s) → ∑ᶠ (i : ι), w i • z i ∈ s

A version of Convex.sum_mem for finsums. If s is a convex set, w : ι → R is a family of nonnegative weights with sum one and z : ι → E is a family of elements of a module over R such that z i ∈ s whenever w i ≠ 0, then the sum ∑ᶠ i, w i • z i belongs to s. See also PartitionOfUnity.finsum_smul_mem_convex.

theorem convex_iff_sum_mem E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {s : Set E}
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R],
  Convex R s ↔
    ∀ (t : Finset E) (w : E → R), (∀ i ∈ t, 0 ≤ w i) → ∑ i ∈ t, w i = 1 → (∀ x ∈ t, x ∈ s) → ∑ x ∈ t, w x • x ∈ s

theorem Finset.centerMass_mem_convexHull E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {s : Set E} [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (t : Finset ι) {w : ι → R},
  (∀ i ∈ t, 0 ≤ w i) → 0 < ∑ i ∈ t, w i → ∀ {z : ι → E}, (∀ i ∈ t, z i ∈ s) → t.centerMass w z ∈ (convexHull R) s

theorem Finset.centerMass_mem_convexHull_of_nonpos E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  {s : Set E} {w : ι → R} {z : ι → E} [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (t : Finset ι),
  (∀ i ∈ t, w i ≤ 0) → ∑ i ∈ t, w i < 0 → (∀ i ∈ t, z i ∈ s) → t.centerMass w z ∈ (convexHull R) s

A version of Finset.centerMass_mem_convexHull for when the weights are nonpositive.

theorem Finset.centerMass_id_mem_convexHull E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (t : Finset E) {w : E → R},
  (∀ i ∈ t, 0 ≤ w i) → 0 < ∑ i ∈ t, w i → t.centerMass w id ∈ (convexHull R) ↑t

A refinement of Finset.centerMass_mem_convexHull when the indexed family is a Finset of the space.

theorem Finset.centerMass_id_mem_convexHull_of_nonpos E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (t : Finset E) {w : E → R},
  (∀ i ∈ t, w i ≤ 0) → ∑ i ∈ t, w i < 0 → t.centerMass w id ∈ (convexHull R) ↑t

A version of Finset.centerMass_mem_convexHull for when the weights are nonpositive.

theorem affineCombination_eq_centerMass E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {ι : Type u_8}
  {t : Finset ι} {p : ι → E} {w : ι → R}, ∑ i ∈ t, w i = 1 → (Finset.affineCombination R t p) w = t.centerMass w p

theorem affineCombination_mem_convexHull E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s : Finset ι} {v : ι → E} {w : ι → R},
  (∀ i ∈ s, 0 ≤ w i) → s.sum w = 1 → (Finset.affineCombination R s v) w ∈ (convexHull R) (Set.range v)

theorem Finset.centroid_eq_centerMass E0 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s : Finset ι),
  s.Nonempty → ∀ (p : ι → E), Finset.centroid R s p = s.centerMass (Finset.centroidWeights R s) p

The centroid can be regarded as a center of mass.

theorem Finset.centroid_mem_convexHull E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s : Finset E),
  s.Nonempty → Finset.centroid R s id ∈ (convexHull R) ↑s

theorem convexHull_range_eq_exists_affineCombination E1 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (v : ι → E),
  (convexHull R) (Set.range v) = {x | ∃ s w, (∀ i ∈ s, 0 ≤ w i) ∧ s.sum w = 1 ∧ (Finset.affineCombination R s v) w = x}

theorem convexHull_eq E0 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s : Set E),
  (convexHull R) s = {x | ∃ ι t w z, (∀ i ∈ t, 0 ≤ w i) ∧ ∑ i ∈ t, w i = 1 ∧ (∀ i ∈ t, z i ∈ s) ∧ t.centerMass w z = x}

Convex hull of s is equal to the set of all centers of masses of Finsets t, z '' t ⊆ s. For universe reasons, you shouldn't use this lemma to prove that a given center of mass belongs to the convex hull. Use convexity of the convex hull instead.

theorem mem_convexHull_of_exists_fintype E0 #

∀ {R : Type u_1} {E : Type u_3} {ι : Type u_5} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s : Set E} {x : E} [inst_5 : Fintype ι] (w : ι → R) (z : ι → E),
  (∀ (i : ι), 0 ≤ w i) → ∑ i, w i = 1 → (∀ (i : ι), z i ∈ s) → ∑ i, w i • z i = x → x ∈ (convexHull R) s

Universe polymorphic version of the reverse implication of mem_convexHull_iff_exists_fintype.

theorem mem_convexHull_iff_exists_fintype E0 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s : Set E} {x : E},
  x ∈ (convexHull R) s ↔ ∃ ι x_1 w z, (∀ (i : ι), 0 ≤ w i) ∧ ∑ i, w i = 1 ∧ (∀ (i : ι), z i ∈ s) ∧ ∑ i, w i • z i = x

The convex hull of s is equal to the set of centers of masses of finite families of points in s.

For universe reasons, you shouldn't use this lemma to prove that a given center of mass belongs to the convex hull. Use mem_convexHull_of_exists_fintype of the convex hull instead.

theorem Finset.convexHull_eq E0 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s : Finset E),
  (convexHull R) ↑s = {x | ∃ w, (∀ y ∈ s, 0 ≤ w y) ∧ ∑ y ∈ s, w y = 1 ∧ s.centerMass w id = x}

theorem Finset.mem_convexHull E0 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s : Finset E} {x : E},
  x ∈ (convexHull R) ↑s ↔ ∃ w, (∀ y ∈ s, 0 ≤ w y) ∧ ∑ y ∈ s, w y = 1 ∧ s.centerMass w id = x

theorem Finset.mem_convexHull' E0 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s : Finset E} {x : E},
  x ∈ (convexHull R) ↑s ↔ ∃ w, (∀ y ∈ s, 0 ≤ w y) ∧ ∑ y ∈ s, w y = 1 ∧ ∑ y ∈ s, w y • y = x

This is a version of Finset.mem_convexHull stated without Finset.centerMass.

theorem Set.Finite.convexHull_eq E0 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s : Set E} (hs : s.Finite),
  (convexHull R) s = {x | ∃ w, (∀ y ∈ s, 0 ≤ w y) ∧ ∑ y ∈ hs.toFinset, w y = 1 ∧ hs.toFinset.centerMass w id = x}

theorem convexHull_eq_union_convexHull_finite_subsets E2 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s : Set E),
  (convexHull R) s = ⋃ t, ⋃ (_ : ↑t ⊆ s), (convexHull R) ↑t

A weak version of Carathéodory's theorem.

theorem vectorSpan_segment E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {p₁ p₂ : E}, vectorSpan R (segment R p₁ p₂) = R ∙ (p₂ -ᵥ p₁)

The vectorSpan of a segment is the span of the difference of its endpoints.

theorem mk_mem_convexHull_prod E1 #

∀ {R : Type u_1} {E : Type u_3} {F : Type u_4} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : AddCommGroup F]
  [inst_3 : Module R E] [inst_4 : Module R F] {s : Set E} [inst_5 : LinearOrder R] [IsStrictOrderedRing R] {t : Set F}
  {x : E} {y : F}, x ∈ (convexHull R) s → y ∈ (convexHull R) t → (x, y) ∈ (convexHull R) (s ×ˢ t)

theorem convexHull_prod E0 #

∀ {R : Type u_1} {E : Type u_3} {F : Type u_4} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : AddCommGroup F]
  [inst_3 : Module R E] [inst_4 : Module R F] [inst_5 : LinearOrder R] [IsStrictOrderedRing R] (s : Set E) (t : Set F),
  (convexHull R) (s ×ˢ t) = (convexHull R) s ×ˢ (convexHull R) t

theorem convexHull_add E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s t : Set E),
  (convexHull R) (s + t) = (convexHull R) s + (convexHull R) t

def convexHullAddMonoidHom E1 #

(R : Type u_1) →
  (E : Type u_3) →
    [inst : Field R] →
      [inst_1 : AddCommGroup E] → [Module R E] → [inst_3 : LinearOrder R] → [IsStrictOrderedRing R] → Set E →+ Set E

convexHull is an additive monoid morphism under pointwise addition.

theorem convexHullAddMonoidHom_apply E0 #

∀ (R : Type u_1) (E : Type u_3) [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [inst_4 : IsStrictOrderedRing R] (a : Set E),
  (convexHullAddMonoidHom R E) a = (convexHull R) a

theorem convexHull_sub E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s t : Set E),
  (convexHull R) (s - t) = (convexHull R) s - (convexHull R) t

theorem convexHull_list_sum E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (l : List (Set E)),
  (convexHull R) l.sum = (List.map (⇑(convexHull R)) l).sum

theorem convexHull_multiset_sum E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] (s : Multiset (Set E)),
  (convexHull R) s.sum = (Multiset.map (⇑(convexHull R)) s).sum

theorem convexHull_sum E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {ι : Type u_8} (s : Finset ι) (t : ι → Set E),
  (convexHull R) (∑ i ∈ s, t i) = ∑ i ∈ s, (convexHull R) (t i)

theorem AffineBasis.convexHull_eq_nonneg_coord E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {ι : Type u_8} (b : AffineBasis ι R E),
  (convexHull R) (Set.range ⇑b) = {x | ∀ (i : ι), 0 ≤ (b.coord i) x}

The convex hull of an affine basis is the intersection of the half-spaces defined by the corresponding barycentric coordinates.

theorem AffineIndependent.convexHull_inter E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {s t₁ t₂ : Finset E},
  AffineIndependent R Subtype.val →
    t₁ ⊆ s → t₂ ⊆ s → (convexHull R) (↑t₁ ∩ ↑t₂) = (convexHull R) ↑t₁ ∩ (convexHull R) ↑t₂

Two simplices glue nicely if the union of their vertices is affine independent.

theorem AffineIndependent.convexHull_inter' E1 #

∀ {R : Type u_1} {E : Type u_3} [inst : Field R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [inst_3 : LinearOrder R] [IsStrictOrderedRing R] {t₁ t₂ : Finset E} [inst_5 : DecidableEq E],
  AffineIndependent R Subtype.val → (convexHull R) (↑t₁ ∩ ↑t₂) = (convexHull R) ↑t₁ ∩ (convexHull R) ↑t₂

Two simplices glue nicely if the union of their vertices is affine independent.

Note that AffineIndependent.convexHull_inter should be more versatile in most use cases.

theorem mem_convexHull_pi E0 #

∀ {𝕜 : Type u_1} {ι : Type u_2} {E : ι → Type u_3} [Finite ι] [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜]
  [IsStrictOrderedRing 𝕜] [inst_3 : (i : ι) → AddCommGroup (E i)] [inst_4 : (i : ι) → Module 𝕜 (E i)] {s : Set ι}
  {t : (i : ι) → Set (E i)} {x : (i : ι) → E i}, (∀ i ∈ s, x i ∈ (convexHull 𝕜) (t i)) → x ∈ (convexHull 𝕜) (s.pi t)

theorem convexHull_pi E0 #

∀ {𝕜 : Type u_1} {ι : Type u_2} {E : ι → Type u_3} [Finite ι] [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜]
  [IsStrictOrderedRing 𝕜] [inst_3 : (i : ι) → AddCommGroup (E i)] [inst_4 : (i : ι) → Module 𝕜 (E i)] (s : Set ι)
  (t : (i : ι) → Set (E i)), (convexHull 𝕜) (s.pi t) = s.pi fun i ↦ (convexHull 𝕜) (t i)

theorem Affine.Simplex.convexHull_eq_closedInterior E0 #

∀ {𝕜 : Type u_1} {V : Type u_2} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsOrderedRing 𝕜] [inst_3 : AddCommGroup V]
  [inst_4 : Module 𝕜 V] {n : ℕ} (s : Affine.Simplex 𝕜 V n), (convexHull 𝕜) (Set.range s.points) = s.closedInterior

The closed interior of a simplex is the convex hull of all vertices.