Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 13 — greedy algorithms on permuted triangular instances

Proved
KVVMatching.UpperBound.lemma_13

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

bipartite-matchingonline-algorithmsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let TnT_nTn​ be the complete upper-triangular bipartite graph with nnn rows and nnn columns. For every deterministic greedy on-line algorithm aaa, the average matching size over uniform row permutations π\piπ equals the expected matching size of RANDOM on TnT_nTn​:

1n!∑π∣Ma(Tπ)∣=VTn(n,∅).\frac{1}{n!}\sum_{\pi}|M_a(T_\pi)|=V_{T_n}(n,\varnothing).n!1​π∑​∣Ma​(Tπ​)∣=VTn​​(n,∅).

This identifies the value of every greedy deterministic rule against the paper's uniform hard-input distribution.

Formalization Note The row permutation sends the old row iii to π(i)\pi(i)π(i); reversing this convention leaves the uniform average unchanged. The equation also holds when n=0n=0n=0.

Preamble
import Mathlib
import Definitions.Def_KVVMatching_UpperBound_RandomValue
import Definitions.Def_KVVMatching_UpperBound_Triangular
Formal statement
namespace KVVMatching.UpperBound

/-- Karp, Vazirani and Vazirani, Lemma 13 (p. 357). -/
theorem lemma_13 (n : ℕ) (a : DetAlg n) (ha : IsGreedy a) :
    (1 / (n.factorial : ℝ)) *
      (∑ π : Equiv.Perm (Fin n),
        (matchingSize (permutedTriangular π) a : ℝ)) =
      randomValue (upperTriangular n) := by sorry

end KVVMatching.UpperBound
Source
Karp, Vazirani, Vazirani, An Optimal Algorithm for On-line Bipartite Matching, STOC 1990, p. 357, Lemma 13
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me