Theorem 4.1 — without a perfect matching, after Sinkhorn iterations every step-2 output is a Hall blocker
ProvedSinkhornHall.theorem_4_1Let be a nonnegative real matrix with no zero row or column, and let be its support graph (row and column adjacent iff ). Let be the number of nonzero entries of , its largest entry and its least positive entry. Run the algorithm Sinkhorn & Sorting Scaling Vectors with :
- Step 0. , then , where .
- Step 1. Repeat times: , , where .
- Step 2. Sort and , choose with , and output .
Theorem. Suppose has no perfect matching and
Then step 2 has an output, and every output of step 2 (for every tie-break in the two sorts and every admissible ) is a Hall blocker: , where is the set of columns adjacent to .
A Hall blocker certifies, by Hall's theorem, that has no perfect matching. The theorem shows that Sinkhorn iterations not only detect the absence of a perfect matching but also produce such a certificate by sorting the scaling vectors.
Formalization Note The scaling vectors after iterations are sinkhorn A ℓ ( is the state right after step 0); step 2 is the relation IsStep2Output; is numEdges A; is the natural logarithm and the threshold is a real inequality.
Differences from the source:
- reading: step 2 leaves the sort tie-breaks and the choice of k* open; 'the output is a Hall blocker' → every X with IsStep2Output (sinkhorn A ℓ) X is a Hall blocker; reason: the proof works for every admissible choice; this is the stronger reading
- generalization: 'the output is a Hall blocker' (existence of an output presupposed) → adds the conjunct ∃ X, IsStep2Output (sinkhorn A ℓ) X; reason: the paper presupposes step 2 is well posed; the Lean statement implies the source's claim and rules out a vacuous reading
- reading: log (base not named) → Real.log (natural logarithm); reason: the constants 1/2 (Pinsker), 4/n² and 1/4 are derived in the natural log
- reading: §4 standing assumptions (p.15): G = G(A) for a nonnegative n × n matrix A, no isolated node, n = |U| = |V|, (r, c) = (1, 1) → A : Matrix (Fin n) (Fin n) ℝ with hA, hrow, hcol, and marginals 1; reason: stated once at the top of §4 and in force for Theorem 4.1 and its proof
- encoding: m, the number of nonzero elements of A → numEdges A; reason: §2 uses m for the column count
- encoding: 'G has no perfect matching' → ¬ ∃ permutation σ with A i (σ i) > 0 for all i; reason: |U| = |V| = n, so a perfect matching is a bijection along edges
- encoding: 1-based indices i_1, …, i_n and k* ∈ {1, …, n} → Fin n (0-based), i_t = σ (t − 1), k = k* − 1, output σ '' {0, …, k}; reason: Lean convention; the output has k* elements as in the paper
- encoding: the vectors after ℓ iterations of step 1 → sinkhorn A ℓ, ℓ = 0 being the state after step 0; reason: Lean convention for the algorithm's state
import Mathlib import Definitions.Def_SinkhornHall_Model import Definitions.Def_SinkhornHall_Analysis open Finset
namespace SinkhornHall
/-- **Theorem 4.1.**
Hayashi–Hirai–Sakabe, arXiv:2204.07425v2, Theorem 4.1, p.15: "Suppose that G has no perfect
matching. For ℓ ≥ (1/4)n² log mA_max/A_min, the output is a Hall blocker."
The algorithm is "Sinkhorn & Sorting Scaling Vectors" (§4.1, p.15): step 0 sets `x = y := 1` and
`y ← C(x)`; step 1 repeats `x ← R(y)`, `y ← C(x)` `ℓ` times; step 2 sorts `x` decreasingly and `y`
increasingly, chooses `k*` with `(x_{i_{k*}} y_{j_{k*}})ⁿ ≥ x₁⋯xₙy₁⋯yₙ` and outputs
`{i₁, …, i_{k*}}`. Setting of §4 (p.15): `G = G(A)` for a nonnegative `n × n` matrix `A` with no
isolated node (no zero row or column), `(r, c) = (1, 1)`; `m` is the number of nonzero entries of
`A`, `A_max` its largest entry and `A_min` its least positive entry.
Conclusion: an output of step 2 exists, and every output of step 2 (every tie-break of the sorts,
every admissible `k*`) is a Hall blocker, `|Γ(X)| < |X|`.
**Formalization Note.** `(x, y) = sinkhorn A ℓ`; `ℓ = 0` is the state right after step 0. Indices
are `Fin n` (0-based). `log` is `Real.log`, and the threshold is the real inequality
`(1/4) n² log(m A_max / A_min) ≤ ℓ` with `m = numEdges A`. -/
theorem theorem_4_1 {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : ∀ i j, 0 ≤ A i j)
(hrow : ∀ i, ∃ j, 0 < A i j) (hcol : ∀ j, ∃ i, 0 < A i j)
(hpm : ¬ HasPerfectMatching A) (ℓ : ℕ)
(hℓ : (1 / 4 : ℝ) * (n : ℝ) ^ 2 * Real.log ((numEdges A : ℝ) * Amax A / Amin A) ≤ ℓ) :
(∃ X, IsStep2Output (sinkhorn A ℓ).1 (sinkhorn A ℓ).2 X) ∧
∀ X, IsStep2Output (sinkhorn A ℓ).1 (sinkhorn A ℓ).2 X → IsHallBlocker A X := by sorry
end SinkhornHall
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.