Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Existence and uniqueness of the tree solution

Proved
LinearOptimization.network_tree_solution_unique

by Shuze Chen · Aug 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

basic-solutionsnetwork-flowstrees

(Bertsimas & Tsitsiklis, Theorem 7.3, p. 281) Let T⊂AT\subset\mathcal{A}T⊂A be a set of n−1n-1n−1 arcs that form a tree when their direction is ignored. Then, the system of linear equations A~f=b~\tilde{\mathbf{A}}\mathbf{f}=\tilde{\mathbf{b}}A~f=b~, and fij=0f_{ij}=0fij​=0 for all (i,j)∉T(i,j)\notin T(i,j)∈/T, has a unique solution.

(The book's proof: the (n−1)×(n−1)(n-1)\times(n-1)(n−1)×(n−1) matrix B\mathbf{B}B of the TTT-columns of A~\tilde{\mathbf{A}}A~ can be reordered to lower-triangular form with nonzero diagonal, hence is nonsingular — so the n−1n-1n−1 columns of A~\tilde{\mathbf{A}}A~ associated with the tree arcs form a basis.)

Preamble
import Definitions.Def_LinearOptimization_TreeSolution


open Matrix

/-- **Bertsimas & Tsitsiklis, Theorem 7.3 (p. 281).** For a set `T` of arcs forming a tree
when direction is ignored (on `n + 1` nodes, so `T` has `n` arcs), the
system `Ãf = b̃` together with `f_k = 0` for all `k ∉ T` has a unique
solution. -/
Formal statement
theorem LinearOptimization.network_tree_solution_unique {n m : ℕ}
    (arcs : Fin m → Fin (n + 1) × Fin (n + 1)) (bsupply : Fin (n + 1) → ℝ)
    (hloop : HasNoSelfLoops arcs)
    (T : Finset (Fin m)) (hT : IsTreeArcSet arcs T) :
    ∃! f : Fin m → ℝ,
      (truncatedIncidence arcs).mulVec f = truncatedSupply bsupply ∧
      ∀ k, k ∉ T → f k = 0 := by
  sorry
Source
Bertsimas & Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997, Theorem 7.3, p. 281

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