Lemma 21 — the number of copies of an edge in the cut is |h(u) − h(v)|
ProvedSkewMatching.lemma_21graph-algorithmsmatchingp2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-algorithmsskew-symmetric-flow
Let be a function on the vertices of a directed graph with values in , and let in the graph with two copies of each vertex and two copies , of each edge. Then for any edge of , the number of copies of this edge in is exactly
Thus a uniform sample over cut edges of samples edges of proportionally to their height difference.
Differences from the source:
- encoding: any edge (u, v) of a directed graph G₁ → any pair of vertices u, v; reason: every pair is an edge of some directed graph, and the count depends only on the two heights
Preamble
import Mathlib import Definitions.Def_SkewMatching_heightCut
Formal statement
namespace SkewMatching
open scoped Classical
/-- **Lemma 21**, p.13. "Let G₁ be any directed graph with vertex heights h ∈ {−1, 0, 1}. Define an undirected graph G₂ as follows: For each vertex u in G₁, create two vertices u⁰ and u¹ in G₂. For each edge (u, v) in G₁, add two copies (u⁰, v⁰) and (u¹, v¹) of this edge in G₂. Let S be the following set defined by vertex heights h: S = {u⁰ : h(u) ≥ 0} ∪ {u¹ : h(u) ≥ 1}.
Then for any edge (u, v) in G₁, the number of copies of this edge in the cut ∂S is exactly |h(u) − h(v)|."
Li, Li, Zhang, *Maximum Cardinality Matching in n^{2+o(1)} Time*, STOC 2027 submission (manuscript sha256 3fc151f5…), Lemma 21, p.13.
**Formalization Note.** `u`, `v` are the ends of an edge of `G₁`, and its copies are indexed by `i : Fin 2`. A copy `(uⁱ, vⁱ)` is in `∂S` when exactly one of its ends is in `S`. Any pair `(u, v)` is an edge of some directed graph, so the graph needs no separate object. -/
theorem lemma_21 {V : Type*} (h : V → ℤ) (hh : ∀ u, h u = -1 ∨ h u = 0 ∨ h u = 1) (u v : V) :
(((Finset.univ : Finset (Fin 2)).filter fun i =>
((u, i) ∈ heightCut h) ≠ ((v, i) ∈ heightCut h)).card : ℤ) = |h u - h v| := by sorry
end SkewMatching
Source
Li, Li, Zhang, Maximum Cardinality Matching in n^{2+o(1)} Time, STOC 2027 submission (manuscript sha256 3fc151f5…), Lemma 21, p.13
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.