Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4 II: finitely many inequalities define a convex polyhedron iff their normals positively span and the region has an inner point

Proved
WeylPolyhedra.Polyhedron.isConvexPolyhedron_iff

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-inequalitiesminkowski-weylp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1polytopes

Let JJJ be a finite index set and consider the inequalities

Aj⋅x−bj≥0(j∈J)A_j \cdot x - b_j \ge 0 \qquad (j \in J)Aj​⋅x−bj​≥0(j∈J)

on Rm\mathbb{R}^mRm, with normals Aj∈RmA_j \in \mathbb{R}^mAj​∈Rm and constants bj∈Rb_j \in \mathbb{R}bj​∈R, no row being identically zero (Aj≠0A_j \ne 0Aj​=0 or bj≠0b_j \ne 0bj​=0). Let H={x:Aj⋅x−bj≥0 ∀j}H = \{x : A_j\cdot x - b_j \ge 0 \ \forall j\}H={x:Aj​⋅x−bj​≥0 ∀j} be the region they cut out. Then HHH is a convex polyhedron, i.e. H=conv⁡SH = \operatorname{conv} SH=convS for some finite S⊆RmS \subseteq \mathbb{R}^mS⊆Rm whose affine span is Rm\mathbb{R}^mRm, if and only if both of the following hold:

  1. every point π′∈Rm\pi' \in \mathbb{R}^mπ′∈Rm is a nonnegative combination of the normals, π′=∑jνjAj\pi' = \sum_{j} \nu_j A_jπ′=∑j​νj​Aj​ with νj≥0\nu_j \ge 0νj​≥0;
  2. HHH has an inner point: there is c∈Rmc \in \mathbb{R}^mc∈Rm with Aj⋅c−bj>0A_j \cdot c - b_j > 0Aj​⋅c−bj​>0 for every jjj.

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 (αx)≡α1x1+⋯+αn−1xn−1−αn≥0(\alpha x) \equiv \alpha_1 x_1 + \dots + \alpha_{n-1} x_{n-1} - \alpha_n \ge 0(αx)≡α1​x1​+⋯+αn−1​xn−1​−αn​≥0, (βx)≥0(\beta x) \ge 0(βx)≥0, …; condition 1 says that the point system Σ′={α′,β′,… }\Sigma' = \{\alpha', \beta', \dots\}Σ′={α′,β′,…}, α′=(α1,…,αn−1)\alpha' = (\alpha_1, \dots, \alpha_{n-1})α′=(α1​,…,αn−1​), represents every point of Rn−1R_{n-1}Rn−1​ (it has no extreme support), and condition 2 is (15): (αc)>0(\alpha c) > 0(αc)>0, (βc)>0(\beta c) > 0(βc)>0, …

Formalization Note Weyl's Rˉn−1\bar R_{n-1}Rˉn−1​ (the hyperplane xn=−1x_n = -1xn​=−1) is Rm\mathbb{R}^mRm, m=n−1m = n-1m=n−1, with Aj=(α1,…,αn−1)A_j = (\alpha_1, \dots, \alpha_{n-1})Aj​=(α1​,…,αn−1​) and bj=αnb_j = \alpha_nbj​=αn​. "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 R2\mathbb{R}^2R2). The hypothesis that no row is zero is added: Weyl's half-spaces are given by a nonzero point α\alphaα of the dual space (p. 291), and a zero row 0≥00 \ge 00≥0 can never hold strictly.

Preamble
import Mathlib
import Definitions.Def_WeylPolyhedra_Polyhedron_Polytope
Formal statement
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
Source
Weyl, Elementare Theorie der konvexen Polyeder, Comment. Math. Helv. (1935), pp. 302–303, §4 II
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let mmm be a natural number. Points are vectors in Rm\mathbb{R}^mRm, meaning real-valued functions on the index set {0,…,m−1}\{0,\dots,m-1\}{0,…,m−1}. Let JJJ 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 Aj∈RmA_j \in \mathbb{R}^mAj​∈Rm for j∈Jj \in Jj∈J, the "normals";
  • a family of reals bj∈Rb_j \in \mathbb{R}bj​∈R for j∈Jj \in Jj∈J.

There is one hypothesis: for every j∈Jj \in Jj∈J, either Aj≠0A_j \neq 0Aj​=0 (not every coordinate of AjA_jAj​ is zero) or bj≠0b_j \neq 0bj​=0. So no row (Aj,bj)(A_j, b_j)(Aj​,bj​) 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 AAA and bbb", written H(A,b)⊆RmH(A,b) \subseteq \mathbb{R}^mH(A,b)⊆Rm. 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: H(A,b)H(A,b)H(A,b) as the set of xxx with Aj⋅x−bj≥0A_j \cdot x - b_j \ge 0Aj​⋅x−bj​≥0 for all jjj, 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:

  1. Every vector is a nonnegative combination of the normals. For every π′∈Rm\pi' \in \mathbb{R}^mπ′∈Rm there exist reals νj≥0\nu_j \ge 0νj​≥0 for j∈Jj \in Jj∈J with
π′=∑j∈JνjAj.\pi' = \sum_{j \in J} \nu_j A_j .π′=j∈J∑​νj​Aj​.

In other words, the convex cone generated by {Aj}j∈J\{A_j\}_{j\in J}{Aj​}j∈J​ is all of Rm\mathbb{R}^mRm. 2. A strictly feasible point exists. There is some c∈Rmc \in \mathbb{R}^mc∈Rm such that for every j∈Jj \in Jj∈J

Aj⋅c−bj>0,where Aj⋅c=∑i=0m−1(Aj)i ci.A_j \cdot c - b_j > 0, \qquad\text{where } A_j \cdot c = \sum_{i=0}^{m-1} (A_j)_i\, c_i .Aj​⋅c−bj​>0,where Aj​⋅c=i=0∑m−1​(Aj​)i​ci​.

The inequalities are strict (>>>) in condition 2 and the coefficients are non-strict (≥0\ge 0≥0) in condition 1. The statement is a full "if and only if".

Degenerate cases:

  • JJJ empty. Condition 2 holds vacuously, since any ccc works and Rm\mathbb{R}^mRm is never empty. The sum in condition 1 is the zero vector, so condition 1 holds exactly when m=0m = 0m=0. For JJJ empty and m≥1m \ge 1m≥1, the theorem therefore says the region is not a convex polyhedron. For JJJ empty and m=0m = 0m=0, it says the region is one.
  • m=0m = 0m=0. R0\mathbb{R}^0R0 has a single point, the empty vector. Every AjA_jAj​ is that zero vector, so the hypothesis forces bj≠0b_j \neq 0bj​=0 for every jjj. Condition 1 holds trivially (take all νj=0\nu_j = 0νj​=0). Every dot product is 000, so condition 2 becomes bj<0b_j < 0bj​<0 for all jjj. The theorem then says that the region is a convex polyhedron exactly when every bjb_jbj​ is negative. That is vacuously true when JJJ is empty.
  • JJJ has one element and m≥1m \ge 1m≥1. Condition 1 would require every vector in Rm\mathbb{R}^mRm to be a nonnegative multiple of the single vector AjA_jAj​, 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.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me