Machine-checked HQC polynomial multiplication: SAW + Isabelle/HOL, all three parameter sets
HQC is NIST's code-based backup to ML-KEM. Its reference implementation relies heavily on binary polynomial multiplication mod xn − 1, with n up to 57,637. I've proved the unmodified HQC v5.0.0 C implementation correct for hqc-1, hqc-3 and hqc-5. SAW proves vect_mul equivalent to a Cryptol model, using compositional Karatsuba proofs without expanding the full product. Scratch-buffer bounds are also verified. Isabelle/HOL proves the model implements the intended polynomial arithmetic. No sorry, smt or eval; oracle dependencies are checked. Also verified GF(2⁸) operations and the Reed–Solomon encoder's algebraic properties. All 63 SAW mutation tests fail as expected. An interesting solver
…