Vector-valued multivariate quadratic maps #
This file packages a family of quadratic forms as a vector-valued quadratic map. It uses
Mathlib's QuadraticMap throughout, including in characteristic two: no division by two and no
choice of a symmetric matrix representative is required.
The API isolates the algebra shared by multivariate post-quantum signature proposals. In the Oil
and Vinegar construction a central quadratic map vanishes on the oil subspace. Its value at
v + o, for an oil vector o, is therefore its value at v plus the polar form at (v, o), which
is linear in o. A linear change of variables hides the central map while transporting the
vanishing subspace by Submodule.comap.
Main definitions #
Cslib.MultivariateQuadraticMap: a quadratic mapR ^ I → R ^ O.Cslib.MultivariateQuadraticMap.ofCoordinates: assemble scalar quadratic forms into a vector-valued map.Cslib.MultivariateQuadraticMap.ofMatrices: construct a map from one coefficient matrix per output coordinate.Cslib.MultivariateQuadraticMap.VanishesOn: a quadratic map vanishes on a submodule.
Main results #
Cslib.MultivariateQuadraticMap.map_add_of_mem: the Oil and Vinegar linearization identity.Cslib.MultivariateQuadraticMap.VanishesOn.polarBilin_eq_zero: the polar form vanishes on two oil-space inputs.Cslib.MultivariateQuadraticMap.VanishesOn.comp_comap: a linear change of variables transports a vanishing subspace.Cslib.MultivariateQuadraticMap.ofMatrices_applyandCslib.MultivariateQuadraticMap.polar_ofMatrices_apply: matrix evaluation and polarization.Cslib.MultivariateQuadraticMap.ofMatrices_comp_mulVecLin: matrix congruence under an input change of variables.
References #
- MAYO Round-3 specification, Chapter 1, pp. 1–2, and §5.1, pp. 26–27.
- UOV specification v3.0, §2.3, pp. 8–10, and §3.2, pp. 13–19.
- MQOM specification v3.0, §2.1.1, pp. 4–5.
- QR-UOV Round-3 specification, §3.1, pp. 12–13.
- SNOVA specification v3.0, §§1.2.2–1.2.4, pp. 5–8.
A vector-valued multivariate quadratic map with input coordinates I and output coordinates
O over R. This is only a scheme-facing name for Mathlib's QuadraticMap.
Assemble one scalar quadratic form per output coordinate into a vector-valued quadratic map.
The scalar quadratic form at one output coordinate.
Vector-valued quadratic maps are equal when all scalar coordinates agree.
Construct a multivariate quadratic map from one coefficient matrix per output coordinate. The matrices need not be symmetric, which is important in characteristic two.
The polar form of a matrix presentation is the sum of its two cross terms. This formula is valid in every characteristic.
Hiding a matrix-presented quadratic map by the input transformation M replaces every
coefficient matrix Aₒ by the congruent matrix Mᵀ Aₒ M. This is valid in every
characteristic.
A quadratic map vanishes on a submodule. Oil spaces in UOV-type constructions satisfy this property.
If P vanishes on a submodule, its bilinear polar form vanishes when both arguments lie in
that submodule.
If P vanishes on S, evaluating at a public part plus a vector in S reduces to a value
independent of that vector plus a linear function of it.
A linear change of output variables preserves vanishing on a submodule.
A linear change of input variables transports a vanishing subspace by preimage.