Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.1, first step — every x∈S(G)x\in S(G)x∈S(G) satisfies (5.1)

Proved
ChvatalPolytopes.Substitution.substitution_system_valid

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

graph-substitutionp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1polyhedral-combinatoricsstable-set-polytope

Let G1=(V1,E1)G_1=(V_1,E_1)G1​=(V1​,E1​) and G2=(V2,E2)G_2=(V_2,E_2)G2​=(V2​,E2​) be finite graphs with disjoint vertex sets. For k∈{1,2}k\in\{1,2\}k∈{1,2} let

−xu≤0(u∈Vk),∑u∈Vkaiuxu≤bi(i∈Jk)-x_u\le 0\quad(u\in V_k),\qquad \sum_{u\in V_k}a_{iu}x_u\le b_i\quad(i\in J_k)−xu​≤0(u∈Vk​),u∈Vk​∑​aiu​xu​≤bi​(i∈Jk​)

be a defining linear system of P(Gk)P(G_k)P(Gk​), with J1,J2J_1,J_2J1​,J2​ finite and all coefficients real. Let v∈V1v\in V_1v∈V1​, let GGG be the graph obtained from G1G_1G1​ by substituting G2G_2G2​ for vvv, and put aiv+=max⁡{aiv,0}a^+_{iv}=\max\{a_{iv},0\}aiv+​=max{aiv​,0} for i∈J1i\in J_1i∈J1​.

Then every x∈S(G)x\in S(G)x∈S(G) satisfies xu≥0x_u\ge 0xu​≥0 for all u∈V2∪(V1−{v})u\in V_2\cup(V_1-\{v\})u∈V2​∪(V1​−{v}) and

aiv+∑u∈V2ajuxu  +  bj∑u∈V1−{v}aiuxu  ≤  bibj(i∈J1, j∈J2).(5.1)a^+_{iv}\sum_{u\in V_2}a_{ju}x_u\;+\;b_j\sum_{u\in V_1-\{v\}}a_{iu}x_u\;\le\; b_ib_j\qquad(i\in J_1,\ j\in J_2).\tag{5.1}aiv+​u∈V2​∑​aju​xu​+bj​u∈V1​−{v}∑​aiu​xu​≤bi​bj​(i∈J1​, j∈J2​).(5.1)

This is the inclusion P(G)⊆{x:x satisfies (5.1)}P(G)\subseteq\{x : x \text{ satisfies } (5.1)\}P(G)⊆{x:x satisfies (5.1)}, one half of Theorem 5.1; the paper leaves its verification to the reader.

Formalization Note Vertices of GGG are the disjoint sum {u∈V1:u≠v}⊕V2\{u\in V_1:u\neq v\}\oplus V_2{u∈V1​:u=v}⊕V2​. "Defining linear system of P(Gk)P(G_k)P(Gk​)" is the set equality between the solution set (nonnegativity rows included) and P(Gk)=conv⁡S(Gk)P(G_k)=\operatorname{conv}S(G_k)P(Gk​)=convS(Gk​). The hypothesis V2≠∅V_2\neq\emptysetV2​=∅ that the goal theorem needs is not required for this half and is not assumed.

Preamble
import Mathlib
import Definitions.Def_ChvatalPolytopes_Shared_StablePolytope
import Definitions.Def_ChvatalPolytopes_Substitution_substitute
Formal statement
namespace ChvatalPolytopes.Substitution

/-- **Validity of (5.1)** (Chvátal 1975, §5, p. 145, proof of Theorem 5.1: "each `x ∈ S(G)` is a
solution of (5.1)").

Hypotheses of Theorem 5.1: for `k ∈ {1, 2}` the system `−x_u ≤ 0 (u ∈ V_k)`,
`Σ (a_{iu} x_u : u ∈ V_k) ≤ b_i (i ∈ J_k)` is a defining linear system of `P(G_k)`; `v` is a
vertex of `G₁`, `G` is obtained from `G₁` by substituting `G₂` for `v`, and
`a⁺_{iv} = max {a_{iv}, 0}`. Conclusion: every `x ∈ S(G)` satisfies
`x_u ≥ 0 (u ∈ V₂ ∪ (V₁ − {v}))` and, for all `i ∈ J₁`, `j ∈ J₂`,
`a⁺_{iv} Σ (a_{ju} x_u : u ∈ V₂) + b_j Σ (a_{iu} x_u : u ∈ V₁ − {v}) ≤ b_i b_j`.

Vertices of `G` are `{u : V₁ // u ≠ v} ⊕ V₂` (`inl` = `V₁ − {v}`, `inr` = `V₂`). The hypothesis
`V₂ ≠ ∅` of the goal theorem is not needed for this half and is not assumed. -/
theorem substitution_system_valid {V₁ V₂ : Type*} [Fintype V₁] [DecidableEq V₁]
    [Fintype V₂] [DecidableEq V₂] (G₁ : SimpleGraph V₁) (G₂ : SimpleGraph V₂)
    {J₁ J₂ : Type*} [Fintype J₁] [Fintype J₂]
    (a₁ : J₁ → V₁ → ℝ) (b₁ : J₁ → ℝ) (a₂ : J₂ → V₂ → ℝ) (b₂ : J₂ → ℝ)
    (h₁ : {x : V₁ → ℝ | (∀ u, 0 ≤ x u) ∧ ∀ i, ∑ u, a₁ i u * x u ≤ b₁ i} = Shared.stablePolytope G₁)
    (h₂ : {x : V₂ → ℝ | (∀ u, 0 ≤ x u) ∧ ∀ j, ∑ u, a₂ j u * x u ≤ b₂ j} = Shared.stablePolytope G₂)
    (v : V₁) :
    ∀ x ∈ Shared.stableVectors (substitute G₁ v G₂),
      (∀ u, 0 ≤ x u) ∧
      ∀ i j, max (a₁ i v) 0 * ∑ u : V₂, a₂ j u * x (.inr u)
          + b₂ j * ∑ w : {u : V₁ // u ≠ v}, a₁ i w * x (.inl w) ≤ b₁ i * b₂ j := by sorry

end ChvatalPolytopes.Substitution
Source
Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975), p. 145, §5, proof of Theorem 5.1 (first sentence)
Read-back

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

Setting.

  • V1V_1V1​ and V2V_2V2​ are finite types with decidable equality. G1G_1G1​ is a simple graph on V1V_1V1​ and G2G_2G2​ is a simple graph on V2V_2V2​.
  • J1J_1J1​ and J2J_2J2​ are finite index types, and either may be empty.
  • The data are real coefficients ai,u1a^1_{i,u}ai,u1​ for i∈J1i \in J_1i∈J1​, u∈V1u \in V_1u∈V1​; real right-hand sides bi1b^1_ibi1​; and likewise aj,u2a^2_{j,u}aj,u2​ for j∈J2j \in J_2j∈J2​, u∈V2u \in V_2u∈V2​, and bj2b^2_jbj2​.
  • vvv is a vertex of V1V_1V1​, so V1V_1V1​ is nonempty.
  • GGG is the graph substitute G1G_1G1​ vvv G2G_2G2​. Its vertex set is W⊔V2W \sqcup V_2W⊔V2​ with W=V1∖{v}W = V_1 \setminus \{v\}W=V1​∖{v}. WWW-vertices are adjacent as in G1G_1G1​ and V2V_2V2​-vertices as in G2G_2G2​. A WWW-vertex and a V2V_2V2​-vertex are adjacent exactly when the WWW-vertex is a G1G_1G1​-neighbour of vvv.

External definitions. The statement uses two objects defined in a file whose contents are not shown here, so they cannot be expanded:

  • P(H)\mathcal P(H)P(H), the set Shared.stablePolytope HHH, a set of real vectors indexed by the vertices of a graph HHH;
  • S(H)\mathcal S(H)S(H), the set Shared.stableVectors HHH, also a set of real vectors on the vertices of HHH.

Their names suggest stable-set objects, but the statement's meaning depends on those unseen definitions.

Hypotheses.

  1. The polyhedron defined by the first system equals P(G1)\mathcal P(G_1)P(G1​):
{x∈RV1:xu≥0 ∀u∈V1,  ∑u∈V1ai,u1xu≤bi1 ∀i∈J1}=P(G1).\Bigl\{x \in \mathbb R^{V_1} : x_u \ge 0 \ \forall u \in V_1,\ \ \textstyle\sum_{u \in V_1} a^1_{i,u} x_u \le b^1_i \ \forall i \in J_1\Bigr\} = \mathcal P(G_1).{x∈RV1​:xu​≥0 ∀u∈V1​,  ∑u∈V1​​ai,u1​xu​≤bi1​ ∀i∈J1​}=P(G1​).
  1. The analogous equality holds for a2a^2a2, b2b^2b2 and G2G_2G2​, with P(G2)\mathcal P(G_2)P(G2​).

Conclusion. Let xxx be any vector in S(G)\mathcal S(G)S(G), a real vector on W⊔V2W \sqcup V_2W⊔V2​. Then:

  • every coordinate of xxx is ≥0\ge 0≥0; and
  • for every i∈J1i \in J_1i∈J1​ and every j∈J2j \in J_2j∈J2​,
max⁡{ai,v1,0}∑u∈V2aj,u2 xu  +  bj2∑w∈Wai,w1 xw  ≤  bi1 bj2.\max\{a^1_{i,v},0\}\sum_{u \in V_2} a^2_{j,u}\, x_u \;+\; b^2_j \sum_{w \in W} a^1_{i,w}\, x_w \;\le\; b^1_i\, b^2_j .max{ai,v1​,0}u∈V2​∑​aj,u2​xu​+bj2​w∈W∑​ai,w1​xw​≤bi1​bj2​.

Here xux_uxu​ for u∈V2u \in V_2u∈V2​ is the coordinate of xxx at the V2V_2V2​-copy of uuu, and xwx_wxw​ for w∈Ww \in Ww∈W is the coordinate at the WWW-copy of www. The coordinate at vvv itself does not appear, because vvv is not a vertex of GGG. No nonemptiness of V2V_2V2​ is assumed. The hypotheses are used only through the two set equalities, and nothing ties S\mathcal SS to P\mathcal PP inside this statement.

Degenerate cases:

  • If J1J_1J1​ or J2J_2J2​ is empty, the second conjunct is vacuous and only x≥0x \ge 0x≥0 is asserted.
  • If V2V_2V2​ is empty, the first sum is 000 and the inequality reads bj2∑w∈Wai,w1xw≤bi1bj2b^2_j \sum_{w \in W} a^1_{i,w} x_w \le b^1_i b^2_jbj2​∑w∈W​ai,w1​xw​≤bi1​bj2​.
  • If V1={v}V_1 = \{v\}V1​={v}, the sum over WWW is 000 and the inequality reads max⁡{ai,v1,0}∑u∈V2aj,u2xu≤bi1bj2\max\{a^1_{i,v},0\} \sum_{u \in V_2} a^2_{j,u} x_u \le b^1_i b^2_jmax{ai,v1​,0}∑u∈V2​​aj,u2​xu​≤bi1​bj2​.
  • If no coefficient data satisfy hypothesis 1 or 2, which depends on the unseen definition of P\mathcal PP, the theorem is vacuous.
  • If S(G)\mathcal S(G)S(G) is empty, the conclusion holds trivially.
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