Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.3 — the small-term Ryser rewrite

Proved
BipHamCount.Deterministic.lemma_4_3

by mikedeng1 · Nov 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

countingexact-algorithmsgraph-theorylinear-algebrap2o-batch-stoc27ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

For any natural side size mmm, integer matrices A,BA,BA,B, vertex vvv on the left, and natural threshold kkk, let FFF and σ≤k\sigma_{\le k}σ≤k​ be the finite sums of §4.2. Then

σ≤k=∑X,Y⊆R, ∣X∪Y∣≤k(−1)∣X∣+∣Y∣F(X,Y).\sigma_{\le k}=\sum_{X,Y\subseteq R,\ |X\cup Y|\le k}(-1)^{|X|+|Y|}F(X,Y).σ≤k​=X,Y⊆R, ∣X∪Y∣≤k∑​(−1)∣X∣+∣Y∣F(X,Y).

Both the union restriction and the sign are retained. This identity replaces the small-term summation by a family of the polynomial-time evaluations from Lemma 4.4.

Differences from the source:

  • encoding: finite ordered vertex and side sets → finite types with linear orders, with Fin m as the zero-based ordered side; reason: every finite ordered set admits this relabelling; the minor factors use identical increasing orders
  • generalization: zero–one adjacency matrices A,B → arbitrary integer matrices A,B; reason: the Ryser rewrite is an integer polynomial identity and specializes to all adjacency matrices
  • generalization: the fixed threshold k=αm → every natural threshold k (restricted to k≤m in the polynomial-cost statement); reason: the full source threshold kOf m is among these choices; no source instance is removed
Preamble
import Mathlib
import Definitions.Def_BipHamCount_Deterministic_Core

open scoped BigOperators
Formal statement
namespace BipHamCount.Deterministic

/-- Lemma 4.3 p.7 (proof p.8). The identity is over arbitrary integer matrices
and any threshold, specializing to the source's zero–one matrices and kOf m. -/
theorem lemma_4_3 (m : ℕ) (A B : Matrix (Fin m) (Fin m) ℤ) (v : Fin m) (k : ℕ) :
    sigmaSmall A B v k =
      ∑ X ∈ (Finset.univ : Finset (Fin m)).powerset,
        ∑ Y ∈ Finset.univ.powerset.filter (fun Y : Finset (Fin m) => (X ∪ Y).card ≤ k),
          (-1 : ℤ) ^ (X.card+Y.card) * Fval A B v k X Y := by sorry

end BipHamCount.Deterministic
Source
Koana, Kumabe, Counting Hamiltonian Cycles in Bipartite Digraphs Deterministically in O(1.9526^n) Time, STOC 2027 submission #814 (October 2026), Lemma 4.3, p. 7. https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/814.pdf
Human review
  • Endorsed by Shuze Chen · Nov 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Nov 8, 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