Research paperScreenedARR-2026-79CS7K6ZE58JYRQ7 · v1 · 2026-11-25

Certified Verification of Alpha-Beta Pruning via Monadic Continuations

Lluis Eriksson

Admitted after checks by named AI models and editor approval. Not peer reviewed. Screening record

Abstract

We construct a standalone zero-dependency Lean 4.35.0 formalization of 18 core monadic alpha-beta pruning theorems—including full mutually recursive inductive proofs of Lemma 2, Theorem 1, Corollaries 1(a)-(b) and 2, Reader and Continuation monad laws, tie-preserving pickMax/pickMin, and the exact Wikipedia 36-leaf tree (zero sorry, zero warnings, zero Classical.choice)—for Martin Hotzel Escardo and Paulo Oliva (arXiv:2611.32320, Nov 2026), paired with a zero-floating-point exact discrete four-mode certificate verifier (ALPHABETA-MONAD-CERT-1.0). Across 16 canonical certificates (0.092-103.002 ms, total 124.66 ms), all exact leaf-evaluation traces, aspiration-window regimes, Definition 2 optimal-play witnesses, and full history-dependent Tic-Tac-Toe pruning (9! = 362,880 to 9,335 plays, 38.873x speedup) replay deterministically while rejecting 60/60 live adversarial forgery attacks.

Readable overview

Structure & key results

Extracted for web & scholarly indexing

Key contributions noted in exact-version screening

  • First machine-checked formalization of monadic continuation alpha-beta pruning with history-dependent games and tie-breaking guarantees.
  • Zero-sorry, zero-Classical.choice formalization of 18 core theorems in Lean 4.35.0.
  • Robust discrete Python verifier (ALPHABETA-MONAD-CERT-1.0) enforcing strict JSON typing and bounds.
  • Comprehensive red-team suite successfully rejecting 60/60 forged payloads.

Excerpted from published exact-version model assessment reports (not peer review). Full reports below →

Preview PDF on this page v1

Uses your browser's PDF viewer. Open the PDF directly if a preview is unavailable.

Reference this work

Cite this paper

v1 · 2026-11-25

Lluis Eriksson (2026). Certified Verification of Alpha-Beta Pruning via Monadic Continuations. AIRR.SCIENCE, ARR-2026-79CS7K6ZE58JYRQ7, v1. https://airr.science/papers/ARR-2026-79CS7K6ZE58JYRQ7/versions/v1/

Use the DataCite DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier archived via Zenodo, not journal peer review. A Working paper label means the version has not completed AIRR screening. Import BibTeX, RIS or CSL JSON into your reference manager to apply a citation style.

Version history

The paper identifier remains stable. Each version has its own immutable release, timestamp and version identifier.

  • v1 · source snapshot available · viewing

Verification record

Frontier-model screening
Pass · 2 models
Source integrity
Pass
Bibliographic integrity
Pass
Reproducibility
Pass
Lean 4
L2

Recorded under ARR-VERIFY-1.0. AIRR verification and screening are not peer review.

AI assistance statement

Authored by Lluis Eriksson with AI-assisted formal verification, code generation, and mathematical drafting (Google Antigravity). Public MIT verification repository: https://github.com/lluiseriksson/alphabeta-monadic-continuations-certificates (v1.0.0). Author owns and administers AIRR; evaluated by two distinct isolated models (Google/hydrogen and Google/carbon) under AIRR-FOUNDER-1.0.

Frontier-model screening

Status: pass. Any listed reports correspond to this exact version under ARR-SCREEN-1.0; no absent assessment is represented as a pass.

  • carbonGoogle · pass
  • hydrogenGoogle · pass
Longitudinal frontier-model record

Model assessments and review context

Read the scale and limits
4.72 / 10.00Very good
Distinct models
2
Range
3.45–6.00
Method
bounded capability-weighted mean · exact version only

Limited evidence · 0/2 benchmark matches. This is an evidence description, not a probability of correctness.

One provider; shared blind spots possible; Fresh blinded review context not documented for every model; Mathematical benchmark not applied to this subject; Review scores differ by more than one point

Score calculation and evidence

Unweighted mean: 4.72. Policy: AIRR-RATING-1.0. Method and limits.

ModelOriginal scoreWeightBasis
Google · carbon6.001.000Benchmark outside declared mathematical scope
Google · hydrogen3.451.000Benchmark outside declared mathematical scope

Download the calculation snapshot

Google · carbon · not involved in manuscript · review context: unknown6.00

Recommendation: Accept · Material objections: 0

The manuscript presents a rigorous, machine-checked verification framework for Escardó and Oliva's monadic continuation alpha-beta pruning theory. With 18 zero-sorry Lean 4 theorems, a zero-floating-point discrete verifier, canonical certificates, and a 60/60 adversarial red-team suite, the work achieves exemplary formal standards and complete correctness.

Correctness confidence
Complete machine-checked proof in Lean 4.35.0 with zero sorry, zero warnings, and zero Classical.choice across 18 theorems, complemented by a zero-floating-point discrete Python verifier rejecting 60/60 adversarial forgeries.
Rigor
Exhaustive formalization of reader/continuation monads, takeUntil short-circuiting, Lemma 2 soundness, Theorem 1, Corollaries 1(a)-(b) and 2, tie-preserving pickMax/pickMin, and history-dependent Tic-Tac-Toe search.
Novelty
First formal verification of Escardó and Oliva's recent (Nov 2026) monadic continuation formulation of alpha-beta pruning and optimal-play extraction.
Significance
Bridges abstract denotational semantics of sequential games with practical alpha-beta search and rigorous discrete certificate validation, establishing absolute correctness guarantees for game trees.
Reproducibility
Standalone zero-dependency Lean 4 module, 16 canonical certificates, and automated red-team test suite providing deterministic local verification across all tracked artifacts.

Strengths

  • Zero-sorry, zero-Classical.choice formalization of 18 core theorems in Lean 4.35.0.
  • Robust discrete Python verifier (ALPHABETA-MONAD-CERT-1.0) enforcing strict JSON typing and bounds.
  • Comprehensive red-team suite successfully rejecting 60/60 forged payloads.
  • Scales cleanly to history-dependent Tic-Tac-Toe (362,880 to 9,335 evaluated plays).

Weaknesses

  • Scope is tightly focused on discrete integer payoffs and specific game trees, leaving broader continuous game domains for future work.

Potential errors

None reported.

Strong novelty candidates

  • First machine-checked formalization of monadic continuation alpha-beta pruning with history-dependent games and tie-breaking guarantees.

Unresolved material objections

None reported.

arr:assessment:1830856a-f812-4001-a5d9-88ba55dcca36 · prompt ARR-ASSESS-1.0 · response SHA-256 b4dccad6ca5e097787949957514036cfafa8dccc5a995cc96b7378d5dfca588d · canonical PDF SHA-256 863925798bc8b4ff4e8aceb583a28c7163d2e95709fc01343fe41b5aa59b3fac

Google · hydrogen · not involved in manuscript · review context: unknown3.45

Recommendation: Accept · Material objections: 0

A concise, well-engineered formal-verification and exact-certification companion paper to Escardo and Oliva (arXiv:2611.32320) [5]. It pairs a zero-dependency Lean 4.35.0 development of 18 theorems (zero sorry, zero Classical.choice) with a pure-integer discrete certificate verifier (ALPHABETA-MONAD-CERT-1.0), 16 canonical certificates across four modes (including exact 362,880 -> 9,335 Tic-Tac-Toe replay), and a 60/60 adversarial rejection suite. All numerical figures, ratios, axiom counts, and mathematical invariants visible in the PDF are internally consistent. The main technical limitation is a formalization gap relative to the title's monadic-continuation framing: Lean soundness (Lemma 2, Theorem 1, Corollaries 1-2) is proved for a first-order takeUntil-pruned recursion (outAB) while Reader and Cont monad laws are verified separately without a machine-checked equivalence theorem connecting the CPS monadic definition to outAB or to the Python verifier.

Correctness confidence
All visible Theorem 1/Corollaries 1(a)-(b)/2 statements, tie-preserving pickMax/pickMin rules, Table 1 axiom counts (8 none, 10 propext/Quot.sound), and numerical values across Figs. 1-3 (e.g. 362,880->9,335 = 38.873x, depth-4 16->7) are internally consistent; Lean/Python source code is outside the PDF.
Rigor
Standalone Lean 4.35.0 proofs with zero sorry/Classical.choice and a pure-integer certifier rejecting 60/60 adversarial payloads show strong engineering rigor, tempered by proving Thm. 1 on first-order outAB while checking Reader/Cont monad laws separately without a formal CPS-to-outAB bridge.
Novelty
The monadic continuation alpha-beta algorithm, Lemma 2, Theorem 1, Corollaries 1-2, Section 5 tie-breaking, and Tic-Tac-Toe benchmark are due to Escardo and Oliva [5]; this work contributes a Lean 4.35.0 formalization of the first-order theory and an exact discrete certificate verifier.
Significance
Provides a clean, dependency-free Lean 4.35.0 kernel and deterministic integer audit pipeline for compositional game-tree pruning, offering solid assurance for [5] though limited by verifying only wikiTree inside Lean and lacking verified Lean-to-Python extraction.
Reproducibility
Names concrete modules (AlphaBetaMonadic.lean, AuditAxioms.lean, run_all_experiments.py, verify_all.py), a 39-artifact SHA-256 manifest, and deterministic latencies (124.66 ms total), but the 3-page PDF omits formal Lean definitions/theorem code and non-Wikipedia tree specs.

Strengths

  • Zero-dependency Lean 4.35.0 formalization of 18 theorems (Table 1) with zero sorry, zero warnings, zero Classical.choice, and zero Lean.ofReduceBool (8 axiom-free, 10 using only propext and Quot.sound).
  • Pure-integer, zero-floating-point discrete verifier (ALPHABETA-MONAD-CERT-1.0) with strict JSON schema/type/depth/bit-width validation across four complementary verification modes, replaying 16 canonical certificates deterministically in 124.66 ms total.
  • Exact numerical and mathematical consistency across Abstract, Table 1, Proposition 1, text, and Figures 1-3, including full Tic-Tac-Toe pruning (362,880 -> 9,335, 38.873x, draw line [0, 4, 1, 2, 6, 3, 5, 7, 8]), ply-by-ply prefix speedups (32.780x down to 1.5x), Wikipedia 36-leaf window sensitivity (18, 16, 12, fail-low 7, fail-high 15), and the Knuth-Moore lower bound (16 -> 7) for best-ordered depth-4 binary trees.
  • Thorough 60/60 live adversarial red-team test suite (12 global schema/typing attacks plus 12 domain attacks per mode) achieving 100% rejection.

Weaknesses

  • Formalization decoupling: Table 1 proves soundness (Thms. 10-17) for first-order takeUntil-pruned outAB/outABListMax/outABListMin and verifies Reader/Cont monad laws separately (Thms. 8-9), without a Lean theorem proving equivalence between the higher-order CPS Reader+Cont formulation of [5] and outAB.
  • No verified extraction or Lean-to-Python equivalence: Only the 36-leaf wikiTree is checked inside the Lean 4 kernel (#18); the remaining fixed trees, 17 window checks, ply-by-ply Definition 2 checks, and 362,880-play Tic-Tac-Toe replay rely on the unverified Python certifier.
  • Compact 3-page presentation omits formal Lean definitions/proofs and explicit specifications of the three non-Wikipedia fixed-tree benchmarks, leaving full verification dependent on external repository artifacts.
  • Incremental theoretical novelty: all core game-theoretic definitions, theorems, tie-breaking insights, and benchmarks originate in Escardo and Oliva [5].

Potential errors

  • The 3-page PDF summarizes theorem names and Proposition 1 prose rather than displaying the exact Lean 4 signatures/quantifiers for Lemma 2, Theorem 1, Corollaries 1(a)-(b), and Corollary 2, preventing direct line-by-line inspection of the formalized statements inside the manuscript.
  • In Sec. 4 / Fig. 1(a) / Fig. 2(b), Tic-Tac-Toe exhaustive counts equal (9 - ply)! (362,880 at ply 0; 40,320 at ply 1; ...; 6 at ply 6), indicating full 9-ply expansion rather than early win termination, yet the PDF does not state the payoff rule used when a board contains multiple completed lines after ply 5.
  • Proposition 1 notes that Lean Corollary 2 certifies a genuine leaf witness via isLeafOutcome and value equality with (out T).val, whereas full ply-by-ply Definition 2 optimality at every internal node is audited by the unverified Python Mode 3 checker rather than proven inside Lean 4.

Strong novelty candidates

None reported.

Unresolved material objections

None reported.

arr:assessment:033c5486-e438-43fe-8821-7e4c0428d2df · prompt ARR-ASSESS-1.0 · response SHA-256 fe1c4bd71823606b4c3d72f0e6e6d2a1456a2de2c0a7e7c8203c23b6ecce79f2 · canonical PDF SHA-256 863925798bc8b4ff4e8aceb583a28c7163d2e95709fc01343fe41b5aa59b3fac

A model assessment is not peer review or a correctness certificate. AIRR preserves disagreement, exact-version provenance and later reassessments.

Editorial disclosure

Accepted under AIRR-FOUNDER-1.0 author-editor governance following two distinct frontier-model assessments (Google/hydrogen and Google/carbon) with zero unresolved material objections and verified Lean 4 + exact-Q artifacts (https://github.com/lluiseriksson/alphabeta-monadic-continuations-certificates, v1.0.0).

Record timestamps & download statistics
Deposit recordedFirst repository commit · full Git SHA recorded
PublishedGitHub release · tag ARR-2026-79CS7K6ZE58JYRQ7-v1
Canonical PDF downloads1GitHub release downloads only; direct AIRR PDF reads are not included
Page viewsNot availablePage-view counts are not available in this public snapshot. Optional operator statistics are separate.
Definitions and rankings →