Documentation

CslibFrontier.Foundations.Geometry.Polyhedra.Polytope

Compact convex polytopes in finite-dimensional normed spaces #

This module develops compact convex polytopes in finite-dimensional real normed spaces, establishing the equivalence between vertex-hull representations (IsVPolytope) and bounded finite half-space intersections (IsHPolytope), along with faces (IsPolytopeFace), vertex centroids (vertexCentroid), and closure under intersections, products, affine images, and affine preimages.

Main definitions #

Main results #

References #

A set in E is a V-polytope if it is the convex hull of a finite set of points.

A set in E is a bounded H-polytope if it is bounded and cut out by finitely many affine inequalities ℓ x ≤ 0.

A compact convex polytope in E (IsVPolytope, equivalent to IsHPolytope in finite dimensions).

A face of a convex set P is a convex extreme subset of P. For polytopes, this coincides with exposed faces (IsPolytopeFace.isExposed). Only the real vector space structure is used, so no norm is assumed.

noncomputable def Cslib.Polyhedra.vertexCentroid {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (P : Set E) :
E

The vertex centroid of a polytope P, defined as the centroid of its finite set of extreme points (or 0 when P.extremePoints ℝ is infinite).

Basic properties of V-polytopes and H-polytopes #

theorem Cslib.Polyhedra.IsPolytope.pi {ι : Type u_3} [Fintype ι] {G : ι → Type u_4} [(i : ι) → NormedAddCommGroup (G i)] [(i : ι) → NormedSpace ℝ (G i)] {P : (i : ι) → Set (G i)} (hP : ∀ (i : ι), IsPolytope (P i)) :
theorem Cslib.Polyhedra.convex_setOf_forall_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (L : Set (E →ᵃ[ℝ] ℝ)) :
Convex ℝ {x : E | ∀ ℓ ∈ L, ℓ x ≤ 0}

Any finite or infinite intersection of closed affine half-spaces is convex.

theorem Cslib.Polyhedra.setOf_forall_le_inter {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (L₁ L₂ : Set (E →ᵃ[ℝ] ℝ)) :
{x : E | ∀ ℓ ∈ L₁, ℓ x ≤ 0} ∩ {x : E | ∀ ℓ ∈ L₂, ℓ x ≤ 0} = {x : E | ∀ ℓ ∈ L₁ ∪ L₂, ℓ x ≤ 0}

The intersection of two affine half-space systems is cut out by their union.

theorem Cslib.Polyhedra.IsHPolytope.preimage_inter {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {P : Set E} {Q : Set F} (hP : IsHPolytope P) (hQ : IsHPolytope Q) (f : E →ᵃ[ℝ] F) :
IsHPolytope (P ∩ ⇑f ⁻¹' Q)

Basic properties of faces #

theorem Cslib.Polyhedra.IsPolytopeFace.inter {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {P F₁ F₂ : Set E} (h₁ : IsPolytopeFace P F₁) (h₂ : IsPolytopeFace P F₂) :
IsPolytopeFace P (F₁ ∩ F₂)
theorem Cslib.Polyhedra.IsPolytopeFace.mono {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {P Q R : Set E} (hPR : IsPolytopeFace P R) (hQP : Q ⊆ P) (hRQ : R ⊆ Q) :
theorem Cslib.Polyhedra.IsPolytopeFace.inter_inter {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {P₁ P₂ F₁ F₂ : Set E} (h₁ : IsPolytopeFace P₁ F₁) (h₂ : IsPolytopeFace P₂ F₂) :
IsPolytopeFace (P₁ ∩ P₂) (F₁ ∩ F₂)
theorem Cslib.Polyhedra.IsPolytopeFace.prod {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {P₁ : Set E} {P₂ : Set F} {F₁ : Set E} {F₂ : Set F} (h₁ : IsPolytopeFace P₁ F₁) (h₂ : IsPolytopeFace P₂ F₂) :
IsPolytopeFace (P₁ ×ˢ P₂) (F₁ ×ˢ F₂)
theorem Cslib.Polyhedra.IsPolytopeFace.preimage {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {P : Set E} {Q G : Set F} (hP : Convex ℝ P) (f : E →ᵃ[ℝ] F) (h : IsPolytopeFace Q G) :
IsPolytopeFace (P ∩ ⇑f ⁻¹' Q) (P ∩ ⇑f ⁻¹' G)
theorem Cslib.Polyhedra.IsPolytopeFace.left_mem_of_smul_add_mem {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {P F : Set E} (hPF : IsPolytopeFace P F) {c : ℝ} (hc0 : 0 < c) (hc1 : c ≤ 1) {a y : E} (ha : a ∈ P) (hy : y ∈ P) (hmem : c • a + (1 - c) • y ∈ F) :
a ∈ F

Every bounded H-polytope is the convex hull of its finite set of extreme points, hence a V-polytope.

Weyl–Minkowski theorem for compact convex polytopes: a set is the convex hull of finitely many points if and only if it is a bounded intersection of finitely many closed half-spaces.

theorem Cslib.Polyhedra.IsPolytope.inter_setOf_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P : Set E} (hP : IsPolytope P) {L : Set (E →ᵃ[ℝ] ℝ)} (hL : L.Finite) :
IsPolytope (P ∩ {x : E | ∀ ℓ ∈ L, ℓ x ≤ 0})

Faces and vertex centroids of polytopes #

theorem Cslib.Polyhedra.isExtreme_mem_of_sum_pos {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {P F : Set E} (hPF : IsExtreme ℝ P F) (hP : Convex ℝ P) {S : Finset E} (hSne : S.Nonempty) (hSP : ↑S ⊆ P) (w : E → ℝ) (hwpos : ∀ v ∈ S, 0 < w v) (hwsum : ∑ v ∈ S, w v = 1) (hxF : ∑ v ∈ S, w v • v ∈ F) (v : E) :
v ∈ S → v ∈ F
theorem Cslib.Polyhedra.exists_finset_subset_convexHull_of_isExtreme {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : Finset E} {Q R : Set E} (hQ : Convex ℝ Q) (hsQ : ↑s ⊆ Q) (hQR : IsExtreme ℝ Q R) {x : E} (hx : x ∈ (convexHull ℝ) ↑s ∩ R) :
∃ t ⊆ s, t.Nonempty ∧ ↑t ⊆ R ∧ x ∈ (convexHull ℝ) ↑t

Any point in convexHull ℝ (s : Set E) ∩ R, where (s : Set E) ⊆ Q and R is extreme in convex Q, lies in the convex hull of a nonempty subset t ⊆ s contained in R.

theorem Cslib.Polyhedra.IsPolytope.apply_vertexCentroid_lt {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P : Set E} (hP : IsPolytope P) (hne : P.Nonempty) {ℓ : E →ᵃ[ℝ] ℝ} (hℓ_le : ∀ z ∈ P, ℓ z ≤ 0) {y : E} (hyP : y ∈ P) (hylt : ℓ y < 0) :
ℓ (vertexCentroid P) < 0
theorem Cslib.Polyhedra.isPolytopeFace_of_eq_zero {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {R : Set E} {LR : Set (E →ᵃ[ℝ] ℝ)} (hLR : LR.Finite) (hReq : R = {x : E | ∀ ℓ ∈ LR, ℓ x ≤ 0}) (hRc : Convex ℝ R) {L₀ : Set (E →ᵃ[ℝ] ℝ)} (hL₀ : L₀ ⊆ LR) :
IsPolytopeFace R {x : E | x ∈ R ∧ ∀ ℓ ∈ L₀, ℓ x = 0}
theorem Cslib.Polyhedra.IsPolytopeFace.exists_eq_zero_of_isHPolytope {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P F : Set E} {L : Set (E →ᵃ[ℝ] ℝ)} (hL : L.Finite) (hPL : P = {x : E | ∀ ℓ ∈ L, ℓ x ≤ 0}) (hP : IsPolytope P) (hPF : IsPolytopeFace P F) (hne : F.Nonempty) :
∃ L₀ ⊆ L, F = {x : E | x ∈ P ∧ ∀ ℓ ∈ L₀, ℓ x = 0}
theorem Cslib.Polyhedra.exists_isPolytopeFace_inter_setOf_le_eq_zero {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P R F : Set E} (hP : IsPolytope P) {LR : Set (E →ᵃ[ℝ] ℝ)} (hLR : LR.Finite) (hR : R = {x : E | ∀ m ∈ LR, m x ≤ 0}) (hF : IsPolytopeFace (P ∩ R) F) (hne : F.Nonempty) :
∃ (P' : Set E) (L₀ : Set (E →ᵃ[ℝ] ℝ)), IsPolytopeFace P P' ∧ L₀ ⊆ LR ∧ F = P' ∩ {x : E | x ∈ R ∧ ∀ m ∈ L₀, m x = 0}
theorem Cslib.Polyhedra.exists_isPolytopeFace_inter_setOf_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P R F : Set E} (hP : IsPolytope P) {LR : Set (E →ᵃ[ℝ] ℝ)} (hLR : LR.Finite) (hR : R = {x : E | ∀ m ∈ LR, m x ≤ 0}) (hF : IsPolytopeFace (P ∩ R) F) (hne : F.Nonempty) :
∃ (P' : Set E) (R' : Set E), IsPolytopeFace P P' ∧ IsPolytopeFace R R' ∧ F = P' ∩ R'
theorem Cslib.Polyhedra.exists_isPolytopeFace_inter_eq {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P Q F : Set E} (hP : IsPolytope P) (hQ : IsPolytope Q) (hF : IsPolytopeFace (P ∩ Q) F) (hne : F.Nonempty) :
∃ (P' : Set E) (Q' : Set E), IsPolytopeFace P P' ∧ IsPolytopeFace Q Q' ∧ F = P' ∩ Q'
theorem Cslib.Polyhedra.exists_isPolytopeFace_preimage_inter_eq {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] {P : Set E} {Q : Set F} (f : E →ᵃ[ℝ] F) (hP : IsPolytope P) (hQ : IsPolytope Q) {G : Set E} (hG : IsPolytopeFace (P ∩ ⇑f ⁻¹' Q) G) (hne : G.Nonempty) :
∃ (P' : Set E) (Q' : Set F), IsPolytopeFace P P' ∧ IsPolytopeFace Q Q' ∧ G = P' ∩ ⇑f ⁻¹' Q'
theorem Cslib.Polyhedra.exists_isPolytopeFace_ssubset_of_ne_vertexCentroid {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {P : Set E} (hP : IsPolytope P) {x : E} (hx : x ∈ P) (hxne : x ≠ vertexCentroid P) :
∃ (F : Set E), IsPolytopeFace P F ∧ F.Nonempty ∧ F ⊂ P ∧ ∃ y ∈ F, x ∈ segment ℝ (vertexCentroid P) y

Every point x ∈ P other than vertexCentroid P lies on a closed segment from vertexCentroid P to a point y in some proper nonempty face of P.

theorem Cslib.Polyhedra.exists_isPolytopeFace_prod_eq {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] {P : Set E} {Q : Set F} (hP : IsPolytope P) (hQ : IsPolytope Q) {G : Set (E × F)} (hG : IsPolytopeFace (P ×ˢ Q) G) (hne : G.Nonempty) :
∃ (P' : Set E) (Q' : Set F), IsPolytopeFace P P' ∧ IsPolytopeFace Q Q' ∧ G = P' ×ˢ Q'