TY - UNPB ID - ARR-2026-01XK18W7DJ8AJAWH-v2 TI - End-to-End Lean 4 Mechanization of Optimal CNOT Circuit Synthesis Hardness: From Graph Clique Dominance and Boyar-Matthews-Peralta Gate Elimination to Free-SWAP and Clean-Ancilla Lower Bounds AU - Lluis Eriksson PY - 2026 DA - 2026/12/04 PB - AIRR.SCIENCE UR - https://airr.science/papers/ARR-2026-01XK18W7DJ8AJAWH/versions/v2/ N1 - Research preprint; ARR-2026-01XK18W7DJ8AJAWH v2. Not peer reviewed by AIRR. AB - We present a complete, standalone, zero-dependency Lean 4.36.0 mechanization (CnotHardnessV2.lean, 5,095 lines, zero Mathlib imports, compiled with -DwarningAsError=true, zero sorry, zero native_decide, and zero custom axioms) of the full mathematical reduction establishing the NP-hardness of optimal linear-reversible CNOT circuit synthesis over F_2 (Pavlogiannis, 2026, building on Boyar, Matthews, and Peralta, 2013), simultaneously for pure CNOT circuits and for extended circuits equipped with arbitrarily many zero-cost SWAP gates and clean |0> ancilla qubits. This major revision (v2) completely replaces the elementary scalar fragments of v1 with genuine mathematical objects and complete proofs across five pillars: (1) finite simple graphs SimpleGraph n, exact clique dominance tau(G(H)) = 2*tau(H) + 2n (always even for n >= 1), and an explicit alternating Hamiltonian path hamPathLemma2 of length 2|C_H| + 2n inside every lifted cover; (2) F_2^d reversible CNOT semantics, universal involutivity B_G^2 = I_{n+1+m}, zero-cost SWAP elimination via wire relabeling, and constructive free-SWAP plus clean-ancilla translation into straight-line XOR circuits (D_XOR <= D_CNOT^{SWAP,anc}); (3) sound single-gate deletion, descending multi-gate deletion (deleteManyGates), input substitution, and the universal B_G -> F_G XOR lift (D_XOR(B_G) >= m + D_XOR(F_G)); (4) the full Case-(a) vertex-deletion and Case-(b) vertex-merging Boyar-Matthews-Peralta gate-elimination induction plus matching constructive upper bound establishing D_XOR(F_G) = |E(G)| + tau(G); and (5) an executable Hamiltonian-path CNOT synthesizer synthBG proved wire-by-wire equal to B_G in exact gate count 2m + |P| + 1, the matching universal lower bound D_CNOT^{SWAP,anc}(B_G) >= 2m + tau(G), and the end-to-end parity-rounding decision equivalence. Twenty audited primary theorems are verified by AuditAxioms.lean (6 strictly in {propext, Quot.sound}; 14 adding only Classical.choice), paired with an AST-audited zero-float Python certifier (6,460 AST nodes, 0 violations) verified up to GL(176, 2) (327 exact CNOT gates on G(C_5)) and a 6/6 passing adversarial red-team suite. DO - 10.5281/zenodo.24651589 ER -