Formally Verified Non-Free Polynomial Monad with a Nontrivial Quine Transformation
We present a self-contained, kernel-verified Lean 4 disproof (OMA.disproof refuting OMA.S_mo_441514.main, addressing MathOverflow Question 441514 posed by David Spivak on 2023-02-24) demonstrating that admitting a nontrivial natural section of the free-monad evaluation map (a “quine transformation”) does not force a polynomial monad on Set to be free. Our explicit counterexample is the Cartesian linear polynomial writer monad M on the signature P(X) = Bool x X (Shape := Bool, Pos _ := Unit) induced by the two-element idempotent monoid (Bool, ||, false). Proof Architecture: The 157-line (4,767-byte) Lean v4.33.1 + Mathlib formalization (6 theorems/lemmas, 4 definitions/abbrevs; zero sorry, zero axiom, zero native_decide) constructs the explicit nontrivial quine beta sending (false, x) to the depth-0 tree Term.leaf x and (true, x) to the depth-1 corolla Term.node true (fun _ => Term.leaf x), and proves that M is not isomorphic to any free polynomial monad Term Q via a sharp functorial cardinality gap: since P.Obj Empty is empty, any signature Q with P.Obj ~ Term Q must have no nullary shapes, forcing |Term Q Unit| = 1 (when Q.Shape is empty) or Term Q Unit infinite via the injective unary tower tower Q s : Nat -> Term Q Unit (yielding three distinct elements at depths 0, 1, 2 that contradict |P.Obj Unit| = 2 by pigeonhole). Independent Verification & Categorical Context: A standalone pure-stdlib Python verifier independently validates static Lean hygiene, exhaustively verifies all four PolyMonad axioms (2,056 finite-set checks), Cartesian pullback squares for pure, join, and beta (180 pullback squares), quine naturality and sectionhood (314 checks), the non-freeness cardinality dichotomy across all 35 finite signatures with |Shape| <= 3 and arities <= 3, and the full landscape of finite writer monads of orders 1, 2, and 3 (1, 2, and 7 monoids up to isomorphism). We also prove why requiring beta to be a monad morphism---as noted in Brandon Shapiro's and Kevin Carlson's discussion on MathOverflow 441514---eliminates all finite nontrivial writer monads via tree-depth growth, illuminating the sharp boundary between natural-transformation quines and monad-map quines. 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_441514.lean (authored by lefttosolve2/open-math-agents benchmark in lefttosolve2/open-math-agents; SHA-256 2e129691786e0caa…, Git blob SHA-1 89bad3d0c32ab214…) Scope & Deviations Audit: Refutes the literal natural-section freeness statement OMA.S_mo_441514.main using a Boolean-OR writer monad. (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.24774306
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint