Formally Verified Directed-Graph Reachability and Maximum Interaction Count Under Asymmetric Separation
We present a self-contained, kernel-verified Lean 4 proof (OMA.solution for OMA.S_mo_368779.main, addressing the finite-vertex formalization of MathOverflow Question 368779 posed by AB_IM) establishing the exact soundness, completeness, and global optimality of an executable search procedure for directed graphs maximizing transitive-closure interactions under asymmetric reachability separation. Given a finite vertex set Fin n, equal-cardinality subsets A and B, and an edge budget N, a directed edge set E is feasible if |E| = N, every vertex in A can reach at least one vertex in B, and no vertex in B can reach any vertex in A; its interaction count is the cardinality of its reflexive-transitive closure. Proof Architecture: The 82-line (3,296-byte) Lean v4.33.1 + Mathlib formalization (5 private lemmas and 1 main theorem; zero sorry, zero axiom, zero native_decide) bridges the propositional Relation. ReflTransGen reachability semantics and noncomputable Set.ncard objective to the executable Knaster-Tarski closure predicate reach, finite edge-set enumerator candidates, computable cardinality score, and List.argmax optimizer best. The core equivalence reach_eq_true_iff establishes that a vertex b is reachable from a if and only if b belongs to every successor-closed subset S of Fin n containing a, proved via a general sublist-completeness lemma (mem_sublists_map_toFinset) and structural induction on Relation. ReflTransGen. Extremal Combinatorics & Independent Verification: Alongside the formal proof, we establish the exact fixed-vertex feasibility boundary n <= N <= n^2 - k(n - k) (for disjoint A, B of size k) and prove that the condensation upper bound n^2 - k(n - k) is attained for all feasible N when k = 1 and for all N >= n + 1 when k >= 2, whereas at the critical budget N = n with k >= 2 the optimum drops strictly below n^2 - k(n - k) (with exact value n^2 - 2n + 3 for k = 2). A standalone pure-stdlib Python verifier independently validates static Lean hygiene, confirms exact reach vs. BFS reachability equivalence across all 66,064 directed graphs on n in {2, 3, 4} (1,053,248 vertex pairs) plus 2,000 graphs on n = 5 with zero mismatches, and exhaustively verifies exact optimal interaction counts across all 36 canonical disjoint instances on n in {2, 3, 4}, 79 intersecting infeasible instances, and exact n = 5 extremal bounds. Verification, Scope Audit & AI Assistance Disclosure Catalog Tier: Tier 3 — Literal-Statement Disproof / Technical Note (Litang Academic Club Curated Archive) (Curated Index · llms.txt) Frozen Third-Party Statement: lean/OMAStatements/S_mo_368779.lean (authored by lefttosolve2/open-math-agents benchmark in lefttosolve2/open-math-agents; SHA-256 20459b8872cef3b6…, Git blob SHA-1 be87a53e65598b05…) Scope & Deviations Audit: Verifies soundness and optimality of the finite search procedure in OMA.S_mo_368779.main. (Full audit: DEVIATIONS.md) Live Lean 4.33.1 Kernel CI: Continuously typechecked on GitHub-hosted Ubuntu runners against the frozen target statement (runtime audit nonce, zero sorry/axiom/native_decide/metaprogramming tokens, standard axioms propext/Classical.choice/Quot.sound only): lean-verify.yml AI Assistance & Publication Disclosure: Problem exploration, proof decomposition, Lean 4 formalization, and manuscript drafting involved AI/LLM workflows under human curation and verification. Mathematical correctness does not rely on any LLM output and rests strictly on Lean 4.33.1 kernel verification and the independent zero-dependency Python verifier. This open-access Zenodo preprint has not yet undergone traditional journal peer review; linked upstream benchmark PRs on lefttosolve2/open-math-agents are currently open pending maintainer review and cited solely as timestamped provenance.
Authors
- YAN SANG (ORCID: https://orcid.org/0009-0001-8935-8572)
- Jasm1ne (ORCID: https://orcid.org/0009-0002-4589-3749)
- hanhai bei (ORCID: https://orcid.org/0009-0002-3372-995X)
- litangking (ORCID: https://orcid.org/0009-0004-8721-354X)
- 12gg (ORCID: https://orcid.org/0009-0001-2046-7703)
- JKLORI (ORCID: https://orcid.org/0009-0003-8860-3972)
- zorda (ORCID: https://orcid.org/0009-0003-7762-847X)
- yv bian (ORCID: https://orcid.org/0009-0002-6149-1264)
- freeman (ORCID: https://orcid.org/0009-0004-0913-7297)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24774527
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint