ACPOG: A Lean 4 Verified Algebraic Proof System for Exact Model Counting

Exact model counting over the Gaussian rationals ℚ(i) covers #SAT, rational weighted model counting, and complex algebraic model counting. A user can check a satisfying assignment directly, yet a claimed count has no direct check, so a solver bug can fail silently. Existing verified toolchains certify decision-DNNF compiler outputs. However, those circuits grow exponentially on satisfiable Tseitin expanders and Valiant's triangular-grid matchings, even though algebraic counters solve both in polynomial time. We present ACPOG, a five-rule algebraic proof system and compiled checker verified in core Lean 4 v4.19.0 without Mathlib over a 92-line trusted kernel in Acpog/Syntax.lean. Its fifth rule, R-Pfaffian, incorporates Valiant's holographic basis change. We prove it sound without Kasteleyn orientations or planar embeddings through a Non-Crossing Pfaffian Sum theorem and a runtime-checked fraction-free skew eliminator. These five rules certify all three tractable classes 𝒜, 𝒫, and ℳ of the Cai-Fu planar #CSP trichotomy over ℚ(i) in polynomial size, and they separate ACPOG unconditionally and exponentially from d-DNNF, MICE, tensor proof systems, and parity-augmented DNNF[⊕]. The compiled Lean binary passes 64 raw-DIMACS runs, rejects 24 adversarial Pfaffian forgeries, and checks 27 affine and DNNF[⊕] runs. Algebraic and holographic counters can thus certify exact counts directly from raw CNF files.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24695218
Citations
2
Primary Topic
Advanced Graph Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

ACPOG: A Lean 4 Verified Algebraic Proof System for Exact Model Counting

Dev D. Goyal
2 citations
Zenodo (CERN European Organization for Nuclear Research)
Advanced Graph Theory Research
preprint

ACPOG: A Lean 4 Verified Algebraic Proof System for Exact Model Counting

Dev D. Goyal
preprint en
2 citations

Abstract

Exact model counting over the Gaussian rationals ℚ(i) covers #SAT, rational weighted model counting, and complex algebraic model counting. A user can check a satisfying assignment directly, yet a claimed count has no direct check, so a solver bug can fail silently. Existing verified toolchains certify decision-DNNF compiler outputs. However, those circuits grow exponentially on satisfiable Tseitin expanders and Valiant's triangular-grid matchings, even though algebraic counters solve both in polynomial time. We present ACPOG, a five-rule algebraic proof system and compiled checker verified in core Lean 4 v4.19.0 without Mathlib over a 92-line trusted kernel in Acpog/Syntax.lean. Its fifth rule, R-Pfaffian, incorporates Valiant's holographic basis change. We prove it sound without Kasteleyn orientations or planar embeddings through a Non-Crossing Pfaffian Sum theorem and a runtime-checked fraction-free skew eliminator. These five rules certify all three tractable classes 𝒜, 𝒫, and ℳ of the Cai-Fu planar #CSP trichotomy over ℚ(i) in polynomial size, and they separate ACPOG unconditionally and exponentially from d-DNNF, MICE, tensor proof systems, and parity-augmented DNNF[⊕]. The compiled Lean binary passes 64 raw-DIMACS runs, rejects 24 adversarial Pfaffian forgeries, and checks 27 affine and DNNF[⊕] runs. Algebraic and holographic counters can thus certify exact counts directly from raw CNF files.

Zenodo (CERN European Organization for Nuclear Research)
Advanced Graph Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon