Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.1 — three prefix-sum conditions on a symmetric AAA make the transformation (5.1) feasible

Proved
MultiwayCut.lemma_5_1

by iris · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmsmultiway-cutp2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-rounding

Let A∈Rk×kA\in\mathbb R^{k\times k}A∈Rk×k be symmetric and let fff be the transformation (5.1), fℓ(u)=(uℓ)TA uℓf_\ell(\mathbf u)=(\mathbf u^\ell)^TA\,\mathbf u^\ellfℓ​(u)=(uℓ)TAuℓ for ℓ=1,…,k\ell=1,\dots,kℓ=1,…,k. Suppose

  1. a11=1a_{11}=1a11​=1 and aij≤1a_{ij}\le1aij​≤1 for every i,j=1,…,ki,j=1,\dots,ki,j=1,…,k;
  2. ∑i=1ℓ∑j=1ℓaij≥0\sum_{i=1}^\ell\sum_{j=1}^\ell a_{ij}\ge0∑i=1ℓ​∑j=1ℓ​aij​≥0 for every ℓ=1,…,k\ell=1,\dots,kℓ=1,…,k;
  3. ∑i=1ℓ∑j=ℓ+1raij≥0\sum_{i=1}^\ell\sum_{j=\ell+1}^r a_{ij}\ge0∑i=1ℓ​∑j=ℓ+1r​aij​≥0 for every ℓ=1,…,k\ell=1,\dots,kℓ=1,…,k and r=ℓ+1,…,kr=\ell+1,\dots,kr=ℓ+1,…,k.

Then fff is feasible (Definition 3.1): it maps Δk\Delta_kΔk​ into [0,1]k[0,1]^k[0,1]k, fixes every vertex eie_iei​, and preserves the order of the coordinates of every u∈Δk\mathbf u\in\Delta_ku∈Δk​.

Feasibility is what allows Lemma 2.2 to be applied to f(u),f(v)f(\mathbf u),f(\mathbf v)f(u),f(v).

Differences from the source:

  • reading: "f:Δk→[0,1]kf:\Delta_k\to[0,1]^kf:Δk​→[0,1]k where fℓ=…f_\ell=\dotsfℓ​=…" in the hypothesis → fff is the formula (5.1) on Rk\mathbb R^kRk, and f(Δk)⊆[0,1]kf(\Delta_k)\subseteq[0,1]^kf(Δk​)⊆[0,1]k is part of the conclusion (IsFeasibleTransform); reason: the paper's proof establishes 0≤fℓ≤10\le f_\ell\le10≤fℓ​≤1, and Definition 3.1 requires the codomain
  • encoding: the paper's coordinates and terminals 1,…,k1,\dots,k1,…,k, 1/ℓ1/\ell1/ℓ → Fin k from 000, 1/(ℓ+1)1/(\ell+1)1/(ℓ+1); reason: Lean convention; the same statement after the index shift
Preamble
import Mathlib
import Definitions.Def_MultiwayCut_Transformation
Formal statement
namespace MultiwayCut

/-- **Lemma 5.1**, Buchbinder, Schwartz & Weizman, *Simplex Transformations and the Multiway Cut
Problem*, manuscript of Nov. 1, 2016, pp.6–7: let `A ∈ ℝ^{k×k}` be symmetric and
`f_ℓ = (u^ℓ)ᵀ A u^ℓ` for every `ℓ = 1, …, k` (the transformation (5.1)). If (1) `a₁₁ = 1` and
`a_ij ≤ 1` for all `i, j`, (2) `Σ_{i=1}^ℓ Σ_{j=1}^ℓ a_ij ≥ 0` for every `ℓ`, and
(3) `Σ_{i=1}^ℓ Σ_{j=ℓ+1}^r a_ij ≥ 0` for every `ℓ` and `r = ℓ + 1, …, k`, then `f` is feasible
(Definition 3.1), including that it maps `Δ_k` into `[0, 1]ᵏ`.

**Formalization Note.** The three conditions are `Lemma51Conditions A` (0-based); `f` is
`quadTransform A`, which sorts, applies (5.1) and puts the values back. The paper's
"`f : Δ_k → [0, 1]ᵏ`" is part of the conclusion: its proof shows `f_k ≥ 0` and `f_1 ≤ 1`. -/
theorem lemma_5_1 {k : ℕ} [NeZero k] (A : Matrix (Fin k) (Fin k) ℝ) (hA : A.IsSymm)
    (hcond : Lemma51Conditions A) :
    IsFeasibleTransform (quadTransform A) := by sorry

end MultiwayCut
Source
Buchbinder, Schwartz & Weizman, Simplex Transformations and the Multiway Cut Problem, manuscript of Nov. 1, 2016, Lemma 5.1, pp.6–7
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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