Documentation

CslibFrontier.Crypto.Computational.Falcon.Verification

Falcon v1.2 verification algebra #

This module formalizes the algebraic core of verification in the NIST-selected Falcon Round 3 submission, version 1.2 ([FHK+20], Section 3.10, Algorithm 16). For public key h ∈ ℤ_q[x]/(x^n + 1), hash point c and decoded integer polynomial s₂, the verifier computes s₁ = c - s₂h mod q, takes centered coefficient representatives, and accepts exactly when the squared Euclidean norm of (s₁, s₂) is at most ⌊β²⌋. verify_of_signingRelation is the corresponding deterministic correctness boundary from Section 2.3.2: a centered integer pair satisfying s₁ + s₂h = c mod q and the norm bound is accepted.

The two recommended parameter fragments are from [FHK+20], Section 3.13, Table 3.3. This is the Falcon v1.2 algebra after successful signature decompression and hashing. It does not define byte encodings, the salt, HashToPoint, key generation, FFT/NTT algorithms, the trapdoor sampler, its Gaussian law or rejection analysis, an NTRU-SIS assumption, a ROM/QROM reduction, or an efficiency theorem. NIST lists FN-DSA / FIPS 206 as still under development as of 13 November 2026 ([NIST26]); this module does not claim agreement with that future standard.

Main definitions #

Main results #

References #

The part of a Falcon v1.2 parameter set used by Algorithm 16: ring degree n, positive modulus q, and the maximal signature squared norm ⌊β²⌋.

  • n : ℕ

    Degree of the negacyclic ring ℤ_q[x]/(x^n + 1).

  • q : ℕ

    Positive coefficient modulus.

  • squaredNormBound : ℕ

    Maximal accepted squared Euclidean norm ⌊β²⌋.

  • q_pos : 0 < self.q

    The modulus is positive.

Falcon-512 verification parameters ([FHK+20], Section 3.13, Table 3.3).

Falcon-1024 verification parameters ([FHK+20], Section 3.13, Table 3.3).

@[reducible, inline]

The coefficient representation of ℤ_q[x]/(x^n + 1) used by Falcon v1.2.

@[reducible, inline]

Integer coefficient representation of a polynomial in ℤ[x]/(x^n + 1).

Reduce every integer coefficient modulo q.

@[simp]

The verifier's residue-class first component c - s₂h mod (x^n + 1, q) from [FHK+20], Algorithm 16, line 5.

The verifier's normalized integer first component, using centered representatives in (-q/2, q/2], from [FHK+20], Section 3.10.2.

The squared Euclidean norm ‖(s₁, s₂)‖², computed over integer coefficients as in [FHK+20], Algorithm 16, line 6.

The Falcon signing relation s₁ + s₂h = c mod (x^n + 1, q) from [FHK+20], Section 2.3.2.

Instances For
    @[instance_reducible]

    Every coefficient of s is already the centered representative of its residue modulo q. This is the exact normalization premise needed to identify the signer's integer s₁ with the verifier's reconstructed integer polynomial.

    Instances For

      Falcon v1.2 Algorithm 16 acceptance after s₂ has been successfully decompressed and c = HashToPoint(r ‖ m, q, n) has been computed.

      Algorithm 16 accepts exactly when the reconstructed centered pair satisfies the configured squared-norm bound.

      theorem Cslib.Crypto.Falcon.reconstructResidue_eq_reduce (P : VerificationParams) {h c : Polynomial P} {s₁ s₂ : IntegerPolynomial P} (hrel : SigningRelation P h c s₁ s₂) :
      reconstructResidue P h c s₂ = reduce P s₁

      The residue reconstructed by verification equals the reduction of s₁ whenever the signing relation holds. This step needs no norm or distribution hypothesis.

      theorem Cslib.Crypto.Falcon.reconstructFirst_eq_of_signingRelation (P : VerificationParams) {h c : Polynomial P} {s₁ s₂ : IntegerPolynomial P} (hrel : SigningRelation P h c s₁ s₂) (hcenter : IsCentered P s₁) :
      reconstructFirst P h c s₂ = s₁

      A centered integer first component satisfying the signing relation is exactly the verifier's reconstructed first component.

      theorem Cslib.Crypto.Falcon.verify_of_signingRelation (P : VerificationParams) {h c : Polynomial P} {s₁ s₂ : IntegerPolynomial P} (hrel : SigningRelation P h c s₁ s₂) (hcenter : IsCentered P s₁) (hnorm : pairSquaredNorm P s₁ s₂ ≤ P.squaredNormBound) :
      verify P h c s₂ = true

      Falcon v1.2 verification correctness boundary. If an integer pair satisfies the signing relation, its first component is centered, and its squared norm is within ⌊β²⌋, then Algorithm 16 accepts its transmitted second component. This theorem does not establish that key generation or the trapdoor sampler produces such a pair.