⊢mathematics.distributed.systems
Proof Tree / Graphs & Designs / Extremal Graphs, Ramsey & Matching / open-combinatorics-structures
KERNEL VERIFIED · 0 WARNINGS Graphs & Designs · Extremal Graphs, Ramsey & Matching Initiated by Arthur Collé 1/1 verified files · ⊢ 54 theorems

Approximate Roommates Stability Threshold ($K(7) = 3 < \lceil 7/2 \rceil$)

Conceptual zero-SAT Lean 4 refutation of the $K(N) = \lceil N/2 \rceil$ pattern at $N = 7$ ($K(7) = 3$, forcing $N_0 \ge 8$ in Fanelli–Moscardelli's ECAI 2025 conjecture) via the general Exact Obstruction & Nuclear Lemma framework.

Contribution status

Claim-by-claim literature review not yet recorded. Lean verification, where shown, applies to the exact formal statements. External publication status is not recorded.

How results are classified
⊢ TL;DR & Key Verified Results
Field Context (Extremal Graphs, Ramsey & Matching): Sharp thresholds for graph domination, stable matchings, and unavoidable combinatorial substructures.

Resolves the exact rank-improvement stability threshold $K(N)$ for the stable roommates problem for all $N \le 7$, proving $K(7) = 3 < 4 = \lceil 7/2 \rceil$ via a 100% conceptual, zero-SAT combinatorial proof (Exact Obstruction Theorem & Nuclear Lemma). This breaks the $K(N) = \lceil N/2 \rceil$ pattern holding for $N \in \{3,4,5,6\}$ and forces any tightness threshold $N_0$ in Fanelli & Moscardelli's (ECAI 2025) conjecture to satisfy $N_0 \ge 8$.

Exact roommates stability threshold at $N = 7$: $K(7) = 3$ (strictly below $\lceil 7/2 \rceil = 4$).
Forces any asymptotic tightness threshold $N_0$ in Fanelli–Moscardelli's ECAI 2025 conjecture to satisfy $N_0 \ge 8$.
General odd-$N$ ($N = 2m+1$) Exact Obstruction Theorem + nuclear_lemma and no_size_two_M_of_ge_three ($\forall m \ge 3$).
Prior Art, Upstream Literature & Scholarly Attribution SOURCE CONTEXT
Local Proof Scope (Priority Not Established): Proves exact values $K(3)=K(4)=2$, $K(5)=K(6)=3$, and $K(7) = 3 < \lceil 7/2 \rceil$ (fanelli_moscardelli_N0_ge_eight), together with the general Exact Obstruction Theorem, $|M|=2$ elimination for all $m \ge 3$, and Nuclear Lemma for all odd $N = 2m+1$.

⊢ Mathematical Constructions & Proof Explorer

Raw .lean
—

Select any definition, structure, or theorem on the left to inspect its formal statement, proof dependencies, and isolated Lean 4 code.

Mathematical Overview & Verification Notes

Overview

This directory contains a complete, purely conceptual, zero-sorry, zero-native_decide Lean 4 formalization resolving the exact universal rank-improvement stability threshold $K(N)$ (Roommates.stabilityThreshold N) for all $N \le 7$ and developing a general obstruction theory for all odd orders $N = 2m + 1$:

$N$$1$$2$$3$$4$$5$$6$$7$
$\lceil N/2 \rceil$$1$$1$$2$$2$$3$$3$$4$
$K(N)$ (proved in Lean 4)$1$$1$$2$$2$$3$$3$$3$

Main Discovery (stabilityThreshold_seven, stabilityThreshold_seven_lt_ceil_half, fanelli_moscardelli_N0_ge_eight):

$$K(7) = 3 < 4 = \lceil 7/2 \rceil.$$

Every complete strict preference profile on $7$ agents admits a $3$-stable matching (no pair can both improve by $\ge 3$ ranks), while monotonicity from our explicit $5$-agent obstruction (witnessFive) gives $K(7) \ge K(6) \ge K(5) = 3$. This strictly breaks the $K(N) = \lceil N/2 \rceil$ pattern holding for $N \in \{3, 4, 5, 6\}$ and forces any asymptotic threshold $N_0$ in FanelliMoscardelli.stability_threshold_tight to satisfy $N_0 \ge 8$.


Source Conjecture

  • Formal Statement: FormalConjectures/Paper/ApproximatelyStableMatching.lean (@[category research open, AMS 5 68 91])
      theorem stability_threshold_tight :
          ∃ N₀ : ℕ, 3 ≤ N₀ ∧
            ∀ N ≥ N₀, Roommates.stabilityThreshold N = (N + 1) / 2
  • Definitions: Verbatim from FormalConjecturesForMathlib/Combinatorics/Roommates.lean (Matching, emptyMatching, IsAcceptable, IsBlockingPair, IsStable, IsKBlockingPair, IsKStable, CompleteProfile, CompleteProfile.partnerRank, stabilityThreshold).
  • Paper Reference: A. Fanelli and L. Moscardelli, Approximately Stable Matching, ECAI 2025, Section 5, https://doi.org/10.3233/FAIA251234.

Mandatory Novelty-Check Receipt

1. Web / Literature Verification

Before formalizing, we searched arXiv, Google Scholar, ECAI 2025 (FAIA251234), palomar-registry.org, and Open Proof Network for:

  • "Fanelli" "Moscardelli" "Approximately Stable Matching"
  • "FAIA251234" and "stabilityThreshold" / "stability_threshold_tight"
  • "roommates" "rank-improvement" "K(7)" / "3-stable matching" / "7 agents"

Findings:

  • Fanelli–Moscardelli (ECAI 2025) proved the universal upper bound $K(N) \le \lceil N/2 \rceil$ and conjectured tightness $K(N) = \lceil N/2 \rceil$ for sufficiently large $N$ (FormalConjectures/Paper/ApproximatelyStableMatching.lean remains @[category research open]).
  • FormalConjecturesForMathlib/Combinatorics/Roommates.lean only establishes $K(1) = 1$, $K(2) = 1$, and that cyclicThree has no $1$-stable matching.
  • No published paper, preprint, or Lean formalization determines $K(7) = 3 < \lceil 7/2 \rceil$, proves the general Exact Obstruction / Nuclear Lemma framework for $N = 2m + 1$, or proves the elimination of $|M| = 2$ for all $m \ge 3$.

2. Earlier Candidates Screened & Skipped by the Novelty Gate

  • WrittenOnTheWallII Conjecture #84 (tree(G) ≥ 2 * rad(G) / δ(G)): Skipped because web verification found it was already proved and formalized in Lean 4 by Jonas J. Gebendorfer (Oct 2026, palomar-registry.org).
  • Tournament Anti-Sidorenko Trees (Wikipedia/SidorenkoConjecture.lean): Double stars, caterpillars, glued trees, and 3-leg spiders were skipped after web search revealed He–Mani–Nie–Tung–Wei (arXiv:2512.11222, Dec 2025) and Chen–Clemen–Noel (arXiv:2605.14138, May 2026) already proved those families.

3. Computational Exploration (Python + Z3)

Prior to designing the conceptual proof, we used Python + Z3 CEGAR solvers to compute exact values:

  • Confirmed $K(3) = 2$, $K(4) = 2$, $K(5) = 3$ (finding the explicit 5-agent witness witnessFive), $K(6) = 3$.
  • Discovered $K(7) = 3 < 4 = \lceil 7/2 \rceil$ (BoolCEGAR(N=7, k=3) UNSAT in $0.87\text{s}$; Z3(N=7, k=2) SAT in $0.20\text{s}$).
  • Also discovered computationally that $K(9) = 4 < 5 = \lceil 9/2 \rceil$ (via Exact Obstruction + CEGAR: ObsCEGAR(m=4, N=9) UNSAT across all odd $|U| \in \{3, 5, 7\}$ in $4.94\text{s}, 0.87\text{s}, 0.18\text{s}$, while simulated annealing produced a $9$-agent profile with no $3$-stable matching). This strongly suggests that $K(N) = \lceil N/2 \rceil$ may in fact fail for all odd $N \ge 7$ (so FanelliMoscardelli.stability_threshold_tight may be false in full generality!).
  • Then extracted a 100% conceptual, zero-SAT-certificate combinatorial proof of $K(7) = 3$ together with general structural theorems valid for all $m \ge 1$ ($N = 2m + 1$).

Proof Architecture (RoommatesStabilityThreshold.lean)

The entire proof in RoommatesStabilityThreshold.lean (2,549 lines, 55 proved theorems and lemmas) is purely conceptual—no SAT certificates, no native_decide, no set_option maxHeartbeats:

  1. Universal Upper Bound (stabilityThreshold_le_ceil_half): For every $N \ge 1$, taking any maximal matching $\mu$ in the mutual top-$\lceil N/2 \rceil$ graph $G_{\le k}$ ($k = (N+1)/2$) yields a $k$-stable matching.
  2. Monotonicity / Dummy-Agent Lifting (stabilityThreshold_mono): Appending a dummy agent ranked at position $N$ (immediately above being single) by every original agent (liftProfile) and restricting any $k$-stable matching (restrictMatching) proves $K(N) \le K(N+1)$ for all $N \ge 1$.
  3. Exact Small Thresholds (stabilityThreshold_three, stabilityThreshold_four, stabilityThreshold_five, stabilityThreshold_six):
    • cyclicThree proves $K(3) \ge 2$, hence $K(3) = K(4) = 2$.
    • witnessFive (with explicit 26-involution case split, zero native_decide) proves $K(5) \ge 3$, hence $K(5) = K(6) = 3$ and $K(7) \ge 3$.
  4. General Exact Obstruction Theorem (exact_obstruction_of_no_half_stable, all $m \ge 1$):
    If a complete profile on $2m + 1$ agents has no $m$-stable matching and $\mu_0$ is any maximal green matching in $G_{\le m}$, then $U = V \setminus V(\mu_0)$ has odd size $|U| \ge 3$ and carries a fixed-point-free, $2$-cycle-free bijection $f : U \to U$ such that for every $u \in U$:
    • $r_u(f(u)) = m + 1$,
    • $r_u(f^{-1}(u)) = 1$,
    • $r_u(v) \ge m + 1$ for all $v \in U \setminus \{u, f^{-1}(u)\}$.
  5. General Single-Cycle Reductions (all $m \ge 1$):
    • Type-1 Obstruction (type1_obstruction, type1_case1, type1_case2): Matching $U \setminus \{u\}$ along the cycle $f$, breaking one green pair $(a, b) \in \mu_0$, and pairing $(u, a)$ forces either $r_a(b) + m \le r_a(u)$ or $(r_u(b) + m \le r_u(a) \land r_b(u) \le m + 1)$.
    • General Elimination of $|M| = 2$ (no_size_two_M_of_ge_three, all $m \ge 3$): Rules out $|M| = 2$ (i.e., $|U| = 2m - 1$) for every $m \ge 3$ by pigeonhole on ranks $\{2, \dots, m\}$ and Type 1 Case 1.
    • Type-2A Obstruction (type2A_obstruction) & Nuclear Lemma (nuclear_lemma, all $m \ge 1$): For distinct pairs $(a, b), (c, d) \in \mu_0$, if $(b, c)$ is green in $G_{\le m}$, then no $u \in U$ can satisfy $r_b(u) \le m$ (3-line proof: $r_b(u) \le m \implies r_a(b) = 1, r_a(u) = m+1, r_u(a) \le m$ by Type 1 Case 2, then Type 2A forces $r_a(d) = 1$, contradicting $b \ne d$).
    • Type-2B Obstruction (type2B_obstruction, all $m \ge 1$): If $r_a(u) \le m$ and $r_c(b) \le m$, then either $(u, d)$ or $(b, d)$ must $m$-block.
  6. Main Theorem (stabilityThreshold_seven_le_three, stabilityThreshold_seven, stabilityThreshold_seven_lt_ceil_half, fanelli_moscardelli_N0_ge_eight):
    For $m = 3$ ($N = 7$), Exact Obstruction + no_size_two_M_of_ge_three forces $|M| = 4$ (two green pairs $\{a_1, b_1\}, \{a_2, b_2\}$) and $|U| = 3$ (a 3-cycle), with $\sum_{x \in M} k(x) = 6$ where $k(x) = \#\{u \in U : r_u(x) \le 3\}$.
    • Case II (seven_caseII_absurd, $\ge 1$ green cross-edge): Repeated applications of the Nuclear Lemma force all $4$ vertices of $M$ to place all $3$ other vertices of $M$ in $\{1, 2, 3\}$; hence all $4$ cross-edges are green, and Type 1 + Type 2A force $k(x) \le 1$ for all $x \in M$, contradicting $\sum_{x \in M} k(x) = 6$.
    • Case I (seven_caseI_absurd, $0$ green cross-edges): Every $x \in M$ sends $1$ top-$3$ arc to the other pair and $1$ top-$3$ arc to a unique $u_x \in U$, with $u_{a_i} \ne u_{b_i}$; chaining two applications of Type 2B forces either $u_{a_2} = u_{b_2}$ or $u_{a_1} = u_{b_1}$, contradiction.

Verification & Audit Receipts

Compilation Command

Reusing the prebuilt Mathlib cache in /Users/arthurcolle/math_rip/new-results/collatz-coalescence:

cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && \
  lake env lean /Users/arthurcolle/math_rip/new-results/open-combinatorics-structures/RoommatesStabilityThreshold.lean
  • Exit code: 0
  • Errors: 0
  • Warnings: 0
  • Total lines: 2549
  • Proved theorems & lemmas: 55

Static Forbidden-Token Audit

! grep -En '\bsorry\b|\badmit\b|\baxiom\b|\bnative_decide\b' \
  /Users/arthurcolle/math_rip/new-results/open-combinatorics-structures/RoommatesStabilityThreshold.lean
  • Result: STATIC AUDIT CLEAN (zero matches).

Verbatim #print axioms Output (All 16 Headline Theorems)

'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_le_ceil_half' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_mono' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_three' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_four' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_five' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_six' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.exact_obstruction_of_no_half_stable' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.type1_obstruction' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.no_size_two_M_of_ge_three' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.type2A_obstruction' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.nuclear_lemma' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.type2B_obstruction' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_seven_le_three' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_seven' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.stabilityThreshold_seven_lt_ceil_half' depends on axioms: [propext, Classical.choice, Quot.sound]
'AutoDiscovery.RoommatesStabilityThreshold.fanelli_moscardelli_N0_ge_eight' depends on axioms: [propext, Classical.choice, Quot.sound]
ZITADEL IDENTITY · auth.distributed.systems

Researcher Identity & AI Attribution

Loading account state...