arXiv · 2611.40581
Normal Forms and Complete Relations for Circuits in Agda
Abstract
A set of equations between circuits is complete if it derives every true equation. Normal-form proofs of completeness must show how to reduce a normal form after adjoining one more gate. Recent proofs have appendices hundreds of pages long, produced and checked by hand. We present an Agda library that mechanizes monoid and group presentations by generators and relations, normal forms, and completeness of finite relation sets for wire-indexed circuits. The library represents presented monoids as inductively generated congruences on free monoids of words and normal forms as standard-library function bundles (injections, right inverses, bijections) out of the word setoid. A single generic lemma derives completeness from soundness and a unique normal form witness. A constructive, monoid-level Reidemeister--Schreier method builds normal forms: a tower of verified coset tables adds one digit per level, as in a mixed-radix number system. We give presentation theorems for direct, semidirect, and amalgamated free products and group extensions, with corresponding semantic constructions intended for the Agda standard library. Verified examples include symmetric groups as circuits (sound and complete for both endofunction and permutation semantics), cyclic groups, wreath products $\mathbb{Z}_N \wr S_n$ (signed permutations at $N=2$), and Pauli groups modulo phases in all prime dimensions. We also verify alternating normal forms for the single-qubit and single-qutrit Clifford+$T$ monoids and for $U_3(\mathbb{Z}[\tfrac12,i])$ as amalgamated free products. A single index module collects the main results. The development is safe, axiom-free Agda. We compare formalizations of group presentations, normal forms, and quantum circuits in Agda, Lean, Rocq, and Isabelle.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Xiaoning Bian, Yuan Feng. 2026-11-30. Normal Forms and Complete Relations for Circuits in Agda. https://doi.org/10.1145/3871791. https://searcharxiv.org/abs/2611.40581
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.