Research paperScreenedARR-2026-01XK18W7DJ8AJAWH · v1 · 2026-11-26

Formal Algebraic and F2-Circuit Certification for the NP-Completeness of Optimal CNOT Synthesis on Linear Oracles

Lluis Eriksson

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

Abstract

We present a machine-checked constructive Lean 4.35.0 kernel and zero-float F_2 circuit verification suite (CNOT-HARD-CERT-1.0) auditing Andreas Pavlogiannis's proof that optimal CNOT synthesis is NP-complete even for involutive linear oracles B_G and even with free SWAP gates or ancillas (arXiv:2611.34138v1). Our artifact combines 18 constructive Lean 4.35.0 theorems (0 sorry, 0 custom axioms, 0 Classical.choice, 0 warnings), an AST-audited zero-float Python F_2 bitmask verifier, 16 canonical JSON certificates (C01-C16), and 36 unit and forgery-rejection tests. In Lean we formalize linear-oracle involution, 3-CNOT SWAP equivalence, free-ancilla reduction rules, Lemma 2 clique-cover dominance and evenness, Lemma 3 gate-elimination Case (a)/(b) projections and telescoping step, Lemma 4 Hamiltonian-path CNOT wire invariants, z-wire restoration, and exact gate count 2m + tau(G) + 1, and Theorem 5 parity-rounding reduction soundness. In Python we execute the Lemma 2 H -> H_1 U H_2 U K_{2n} reduction with independent exact branch-and-bound vertex covers, step-by-step Lemma 3 gate elimination verifying both invariants on optimal and Case-(b) circuits, full F_2 matrix simulation of synthesized Lemma 4 CNOT circuits up to GL(33, 2) with B_G^2 = I, and syntactic free-SWAP/clean-ancilla to XOR translation.

Readable overview

Structure & key results

Extracted for web & scholarly indexing

Key contributions noted in exact-version screening

  • Constructive Lean 4 formalization of optimal CNOT synthesis NP-completeness reduction
  • Zero-float F2 bitmask certification of linear oracle circuit equivalence up to GL(33, 2)
  • 0 sorry, 0 custom axioms, and 0 Classical.choice in the Lean 4.35.0 kernel.
  • Rigorous zero-float F2 bitmask verification across 16 canonical certificates (C01-C16) and 36 adversarial tests.

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-26

Lluis Eriksson (2026). Formal Algebraic and F2-Circuit Certification for the NP-Completeness of Optimal CNOT Synthesis on Linear Oracles. AIRR.SCIENCE, ARR-2026-01XK18W7DJ8AJAWH, v1. https://airr.science/papers/ARR-2026-01XK18W7DJ8AJAWH/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/optimal-cnot-hardness-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.45 / 10.00Strong
Distinct models
2
Range
3.40–5.50
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; Benchmark match incomplete; Review scores differ by more than one point

Score calculation and evidence

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

ModelOriginal scoreWeightBasis
Google · carbon5.501.000No evidenced exact benchmark configuration
Google · hydrogen3.401.000No evidenced exact benchmark configuration

Download the calculation snapshot

Google · carbon · not involved in manuscript · review context: unknown5.50

Recommendation: Accept · Material objections: 0

This manuscript presents CNOT-HARD-CERT-1.0, a machine-checked verification suite auditing Pavlogiannis's proof of NP-completeness for optimal CNOT synthesis. It combines 18 constructive Lean 4 theorems and 16 exact F2 Python certificates, confirming algebraic soundness, gate counts, and parity-rounding reductions.

Correctness confidence
The Lean 4.35.0 kernel provides 18 universally quantified theorems with 0 sorry and 0 custom axioms, backed by an AST-audited zero-float Python verifier checking 16 canonical F2 certificates.
Rigor
Comprehensive formalization covering linear-oracle involution, clique-cover dominance, localized gate elimination, CNOT circuit simulations up to GL(33, 2), and adversarial testing.
Novelty
Pioneers machine-checked formal verification of Pavlogiannis's recent NP-completeness proof for optimal CNOT synthesis using constructive Lean kernels and exact bitmask F2 simulation.
Significance
Provides rigorous, machine-checked certification for quantum circuit optimization hardness, bridging linear oracle algebra and classical vertex cover complexity.
Reproducibility
Fully reproducible with explicit build instructions (lake build, pytest) and SHA-256 hashed manifests covering all 16 canonical certificates and 36 test cases.

Strengths

  • 0 sorry, 0 custom axioms, and 0 Classical.choice in the Lean 4.35.0 kernel.
  • Rigorous zero-float F2 bitmask verification across 16 canonical certificates (C01-C16) and 36 adversarial tests.
  • Clear modular decomposition across vertex cover reduction, gate elimination, oracle CNOT simulation, and parity rounding.

Weaknesses

  • Relies on Python verifier for graph branch-and-bound and circuit simulation rather than full internal Lean graph algorithms, though mitigated by exhaustive adversarial testing.

Potential errors

None reported.

Strong novelty candidates

  • Constructive Lean 4 formalization of optimal CNOT synthesis NP-completeness reduction
  • Zero-float F2 bitmask certification of linear oracle circuit equivalence up to GL(33, 2)

Unresolved material objections

None reported.

arr:assessment:f19e73a0-1d87-4414-8758-e398e9f8d3bf · prompt ARR-ASSESS-1.0 · response SHA-256 cbcb561d131a81b4f2b0272fe2065453882ae71b7dcc60c03853d74632fa6113 · canonical PDF SHA-256 3ae5897d130b5fb20ac4870843533be88d583fb69843bd9c6a1678c3d3b2e2a3

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

Recommendation: Accept · Material objections: 0

The manuscript presents CNOT-HARD-CERT-1.0, a 3-page independent audit of Pavlogiannis's proof (arXiv:2611.34138v1) of the NP-completeness of optimal CNOT synthesis on involutive linear oracles, combining 18 constructive Lean 4.35.0 Boolean/Nat theorems with a zero-float F2 Python bitmask verifier over 16 canonical certificates (C01–C16) and 36 tests. All mathematical identities, graph parameters, GL dimensions, gate counts, and parity-rounding thresholds in the text, tables, and figures are internally consistent and accurately verified by hand, and the authors honestly disclose the division between Lean and Python. However, the formalization depth is quite limited—graphs, F2 matrices, circuit semantics, general lower bounds, and NP-completeness itself are not formalized in Lean, and no verified bridge connects the Lean lemmas to the Python verifier—while Table 1 contains minor notation omissions (notably unbound y2a, y2b, z2 in Row 12).

Correctness confidence
All 18 Lean scalar/Nat identities (modulo minor Table 1 notation omissions in Rows 12, 15, 16) and all numerical invariants across certificates C01–C16 and Figures 1–3 (vertex cover counts, GL dimensions, XOR/CNOT gate counts, and parity-rounded budgets) check out mathematically; however, correctness of the Python verifier and Lean build is reported rather than externally executed from the PDF.
Rigor
Constructive Lean discipline (0 sorry, 0 Classical.choice, 9 zero-axiom lemmas) and explicit scope disclosure in Section 2 are commendable, but rigor is limited because graphs, F2 matrices, circuit semantics, general lower bounds, and NP-completeness are omitted from Lean and only checked on 16 small instances in unverified Python.
Novelty
This 3-page note introduces no new mathematical theorems or complexity results, serving strictly as an independent audit and finite-witness certification suite for Pavlogiannis (2026); its contribution lies in packaging constructive scalar Lean checks with an AST-audited zero-float bitmask verifier and adversarial forgery tests.
Significance
Provides a clean, well-documented sanity-check and witness suite for Pavlogiannis (2026), yet its broader impact is modest because the core combinatorial, algebraic, and complexity-theoretic arguments remain unformalized in Lean.
Reproducibility
Section 5 specifies exact versions (Lean 4.35.0, Python 3.10+), build/execution commands, a SHA-256 manifest, and 16 deterministic certificates (C01–C16) with 36 tests, though independent verification requires running the external repository not inspectable inside the PDF.

Strengths

  • Transparent and honest scope split in Section 2 distinguishing what the Lean kernel proves (18 algebraic/arithmetic identities) from what the Python verifier checks (finite instances C01–C16).
  • Constructive Lean 4.35.0 discipline using zero Classical.choice, zero sorry, and 9 zero-axiom lemmas, plus an AST zero-float audit and 18 adversarial forgery-rejection tests.
  • Exact numerical and algebraic consistency across all 18 Lemma/Theorem formulas, Table 2 certificates (e.g., G(K2) with n=8, m=24, tau=6, GL(33,2), 55-gate CNOT simulation, and parity-rounded K=53 < 54), and Figures 1–3.

Weaknesses

  • The title and framing ('Formal Algebraic and F2-Circuit Certification for the NP-Completeness...') overstate the Lean formalization depth: Table 1 shows that Lean only proves 18 scalar Bool and Nat identities (such as 1-bit involution and arithmetic telescoping) rather than formalizing graphs, F2 matrices, XOR/CNOT circuit syntax and semantics, Boyar-Matthews-Peralta's lower bound, or NP-completeness reductions.
  • No formal bridge (such as extracted Lean code or proof-producing certificate checking inside Lean) connects the 18 Lean lemmas to the Python verifier, so global soundness of Modes 1–4 rests on trusting unverified Python code tested on 16 small instances (up to GL(33,2)).
  • Minor presentation defects in Table 1: Row 12 omits the let-bindings or conclusion for y2a, y2b, z2; Rows 15–16 omit the definition of k'; and variable k changes meaning between Row 14 and Rows 15–16.

Potential errors

  • Table 1 Row 12 (lemma4_cnot_wire_invariant) displays 'y2a=y⊕z⊕xsi⊕xu ∧ y2b=y⊕z⊕xsi⊕xsi+1 ∧ z2=z⊕xsi+1' with unbound variables y2a, y2b, z2 and no let-bindings or implication conclusion, making the abbreviated formula syntactically incomplete as printed.
  • Table 1 Rows 15 and 16 reference k' without quantifying or defining k' = 2*floor(k/2) inside the row statement, and Row 14 uses k for tau(G) while Rows 15–16 use k for the vertex-cover budget.

Strong novelty candidates

None reported.

Unresolved material objections

None reported.

arr:assessment:093b7785-52a6-4b14-92d9-dea59c3914d4 · prompt ARR-ASSESS-1.0 · response SHA-256 4e6f744c73bd330767a7f83bf0d65dc14479b3719d6b1fb0d447bc7cf0e19dbb · canonical PDF SHA-256 3ae5897d130b5fb20ac4870843533be88d583fb69843bd9c6a1678c3d3b2e2a3

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/optimal-cnot-hardness-certificates, v1.0.0).

Record timestamps & download statistics
Deposit recordedFirst repository commit · full Git SHA recorded
PublishedGitHub release · tag ARR-2026-01XK18W7DJ8AJAWH-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 →