§4 II: finitely many inequalities define a convex polyhedron iff their normals positively span and the region has an inner point
ProvedWeylPolyhedra.Polyhedron.isConvexPolyhedron_iffLet be a finite index set and consider the inequalities
on , with normals and constants , no row being identically zero ( or ). Let be the region they cut out. Then is a convex polyhedron, i.e. for some finite whose affine span is , if and only if both of the following hold:
- every point is a nonnegative combination of the normals, with ;
- has an inner point: there is with for every .
This is the half-space description of a full-dimensional polytope (the Minkowski–Weyl theorem for polytopes), with Weyl's explicit criterion for when an intersection of half-spaces is one.
In Weyl's notation (§4 II, p. 302): the inequalities are , , …; condition 1 says that the point system , , represents every point of (it has no extreme support), and condition 2 is (15): , , …
Formalization Note Weyl's (the hyperplane ) is , , with and . "Convex polyhedron" is the hull of a finite non-degenerate point system (p. 301), so it is full-dimensional; without this the "only if" would fail (a segment in ). The hypothesis that no row is zero is added: Weyl's half-spaces are given by a nonzero point of the dual space (p. 291), and a zero row can never hold strictly.
import Mathlib import Definitions.Def_WeylPolyhedra_Polyhedron_Polytope
namespace WeylPolyhedra.Polyhedron
/-- Weyl (1935), §4 II, pp. 302–303: finitely many inequalities
`(α x) ≡ α₁x₁ + ⋯ + α_{n-1}x_{n-1} - α_n ≥ 0` on `R̄_{n-1} = ℝᵐ` (row `j` has normal
`A j = (α₁, …, α_{n-1})` and constant `b j = α_n`) cut out a region `H`. `H` is a convex
polyhedron (the convex hull of a finite non-degenerate point system) if and only if
(i) every point `π' ∈ ℝᵐ` is a nonnegative linear combination of the normals `A j`, and
(ii) `H` has an inner point: some `c` satisfies every inequality strictly.
Added hypothesis (p. 291: a half-space is given by a nonzero point of the dual space): every
row `(A j, b j)` is nonzero. -/
theorem isConvexPolyhedron_iff {m : ℕ} {J : Type*} [Fintype J] (A : J → Fin m → ℝ)
(b : J → ℝ) (hrow : ∀ j, A j ≠ 0 ∨ b j ≠ 0) :
IsConvexPolyhedron (inequalityRegion A b) ↔
((∀ π' : Fin m → ℝ, ∃ ν : J → ℝ, (∀ j, 0 ≤ ν j) ∧ π' = ∑ j, ν j • A j) ∧
∃ c : Fin m → ℝ, ∀ j, 0 < A j ⬝ᵥ c - b j) := by sorry
end WeylPolyhedra.Polyhedron
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number. Points are vectors in , meaning real-valued functions on the index set . Let be any finite index type. It may be empty, and nothing prevents different indices from carrying equal rows. The data are:
- a family of vectors for , the "normals";
- a family of reals for .
There is one hypothesis: for every , either (not every coordinate of is zero) or . So no row is entirely zero.
Under these assumptions the statement is an equivalence. The left side says that the predicate "is a convex polyhedron" holds for the set called "the inequality region of and ", written . Neither notion is defined in the code shown. Both come from the imported module Definitions.Def_WeylPolyhedra_Polyhedron_Polytope. The comment above the declaration describes them: as the set of with for all , and a convex polyhedron as the convex hull of a finite non-degenerate point system. Those descriptions are commentary, not code. What this theorem asserts about the left side depends entirely on the definitions in that module, which are not reproduced here. The left side holds if and only if both of the following hold:
- Every vector is a nonnegative combination of the normals. For every there exist reals for with
In other words, the convex cone generated by is all of . 2. A strictly feasible point exists. There is some such that for every
The inequalities are strict () in condition 2 and the coefficients are non-strict () in condition 1. The statement is a full "if and only if".
Degenerate cases:
- empty. Condition 2 holds vacuously, since any works and is never empty. The sum in condition 1 is the zero vector, so condition 1 holds exactly when . For empty and , the theorem therefore says the region is not a convex polyhedron. For empty and , it says the region is one.
- . has a single point, the empty vector. Every is that zero vector, so the hypothesis forces for every . Condition 1 holds trivially (take all ). Every dot product is , so condition 2 becomes for all . The theorem then says that the region is a convex polyhedron exactly when every is negative. That is vacuously true when is empty.
- has one element and . Condition 1 would require every vector in to be a nonnegative multiple of the single vector , which is impossible. The theorem therefore asserts the region is not a convex polyhedron.
No division, natural-number subtraction, integral or supremum appears in the statement itself. Any such junk-value behaviour could only enter through the imported definitions of "convex polyhedron" and "inequality region", which are not visible here.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.