§6, (12)–(14), p. 236 — a dual certificate (15)–(20) proves a branching optimal over
ProvedOptimumBranchings.Polytope.dual_certificate_optimalLet be a directed graph (finite, parallel edges allowed, no loops) with real edge weights , let be a branching with incidence vector , and let satisfy conditions (15)–(20) for and . Then
- , i.e. ;
- maximizes over : and
- minimizes over all dual feasible vectors, i.e. over all vectors satisfying (15)–(17).
This is the linear programming optimality criterion (weak duality plus complementary slackness) instantiated for the system –; it reduces the optimality of a branching over the whole polyhedron to the construction of a certificate.
import Mathlib import Definitions.Def_OptimumBranchings_Polytope_Graph import Definitions.Def_OptimumBranchings_Polytope_BranchingPolyhedron import Definitions.Def_OptimumBranchings_Polytope_DualCertificate
namespace OptimumBranchings.Polytope
/-- Edmonds (1967), §6, (11)–(14) applied to (15)–(20), pp. 236–237: if `B` is a branching and
`(yNode, ySet)` satisfies (15)–(20) for the weights `c` and the vector `x⁰` of `B`, then
`(c, x⁰) = (b, y)`, `x⁰` maximizes `(c, x)` over `P_G`, and `y` minimizes `(b, y)` over all
vectors satisfying (15)–(17). -/
theorem dual_certificate_optimal {V E : Type*} [Fintype V] [DecidableEq V] [Fintype E]
[DecidableEq E] (G : Graph V E) (c : E → ℝ) (B : Finset E) (yNode : V → ℝ)
(ySet : Finset V → ℝ) (hB : G.IsBranching B)
(hy : IsDualCertificate G c B yNode ySet) :
∑ e, c e * incidenceVector B e = dualObjective yNode ySet ∧
incidenceVector B ∈ branchingPolyhedron G ∧
(∀ x ∈ branchingPolyhedron G, ∑ e, c e * x e ≤ ∑ e, c e * incidenceVector B e) ∧
(∀ (zNode : V → ℝ) (zSet : Finset V → ℝ), IsDualFeasible G c zNode zSet →
dualObjective yNode ySet ≤ dualObjective zNode zSet) := by sorry
end OptimumBranchings.Polytope
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. and are finite types with decidable equality. is any graph on them: each edge has a front and a rear , and these two nodes differ.
Inputs.
- are arbitrary real edge weights.
- is a finite set of edges.
- is a real number for each node .
- is a real number for every node set .
Notation.
- is the set of edges whose front is .
- is the set of edges with both ends in .
- for each edge .
- is the dual objective.
- is the incidence vector of .
Hypotheses.
- is a branching:
- no nonempty has every node an end of exactly or of its edges;
- no two distinct edges of share a front.
- is a dual certificate for and :
- (15) for every node ;
- (16) for every ;
- (17) for every edge ;
- (18) if , then exactly one edge of lies in ;
- (19) if and , then exactly edges of lie in ;
- (20) for every .
Conclusions. All four of the following hold:
- (a) The weight of equals the dual objective:
- (b) . Here is the set of real vectors with , for every node , and for every .
- (c) Every satisfies
The comparison is over the whole polyhedron, not only over branchings.
- (d) For every pair (one value per node, one value per node set) that satisfies (15)–(17) for the same :
Degenerate cases.
- empty: , and the hypotheses force for all nodes and for all . Conclusion (a) then reads .
- Small sets: values and with are unconstrained and do not affect anything.
- Sign of the weights: the weights may be negative, and may be empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.