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
- Dev D. Goyal (ORCID: https://orcid.org/0009-0009-9132-744X)
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