Theorem 5.1, first step — every satisfies (5.1)
ProvedChvatalPolytopes.Substitution.substitution_system_validLet and be finite graphs with disjoint vertex sets. For let
be a defining linear system of , with finite and all coefficients real. Let , let be the graph obtained from by substituting for , and put for .
Then every satisfies for all and
This is the inclusion , one half of Theorem 5.1; the paper leaves its verification to the reader.
Formalization Note Vertices of are the disjoint sum . "Defining linear system of " is the set equality between the solution set (nonnegativity rows included) and . The hypothesis that the goal theorem needs is not required for this half and is not assumed.
import Mathlib import Definitions.Def_ChvatalPolytopes_Shared_StablePolytope import Definitions.Def_ChvatalPolytopes_Substitution_substitute
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- and are finite types with decidable equality. is a simple graph on and is a simple graph on .
- and are finite index types, and either may be empty.
- The data are real coefficients for , ; real right-hand sides ; and likewise for , , and .
- is a vertex of , so is nonempty.
- is the graph
substitute. Its vertex set is with . -vertices are adjacent as in and -vertices as in . A -vertex and a -vertex are adjacent exactly when the -vertex is a -neighbour of .
External definitions. The statement uses two objects defined in a file whose contents are not shown here, so they cannot be expanded:
- , the set
Shared.stablePolytope, a set of real vectors indexed by the vertices of a graph ; - , the set
Shared.stableVectors, also a set of real vectors on the vertices of .
Their names suggest stable-set objects, but the statement's meaning depends on those unseen definitions.
Hypotheses.
- The polyhedron defined by the first system equals :
- The analogous equality holds for , and , with .
Conclusion. Let be any vector in , a real vector on . Then:
- every coordinate of is ; and
- for every and every ,
Here for is the coordinate of at the -copy of , and for is the coordinate at the -copy of . The coordinate at itself does not appear, because is not a vertex of . No nonemptiness of is assumed. The hypotheses are used only through the two set equalities, and nothing ties to inside this statement.
Degenerate cases:
- If or is empty, the second conjunct is vacuous and only is asserted.
- If is empty, the first sum is and the inequality reads .
- If , the sum over is and the inequality reads .
- If no coefficient data satisfy hypothesis 1 or 2, which depends on the unseen definition of , the theorem is vacuous.
- If is empty, the conclusion holds trivially.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.