Diagonal quadratic forms #
This file provides general infrastructure for diagonal quadratic forms expressed as weighted sums of squares.
Main results #
TauCeti.equivalent_weightedSumSquares_comp: reindexing the coefficients preserves equivalence.TauCeti.equivalent_weightedSumSquares_of_pair: a binary equivalence extends across fixed coordinates.QuadraticMap.associated_weightedSumSquares,QuadraticForm.toMatrix'_weightedSumSquares, andQuadraticForm.discr'_weightedSumSquares: over a ring in which two is invertible, the associated bilinear form of a diagonal form is the weighted dot product, its Gram matrix in the standard basis is the diagonal matrix of the weights, and its discriminant is their product.QuadraticMap.nondegenerate_weightedSumSquares: over a ring in which two is invertible, a diagonal form with regular weights is nondegenerate.QuadraticMap.weightedSumSquares_units: unit weights may be replaced by the scalars they name.QuadraticMap.not_anisotropic_weightedSumSquares_of_ternary_eq_zero: a ternary solution with a nonzero third coordinate gives a nonzero isotropic vector in a diagonal form.TauCeti.isSquare_prod_mul_prod_of_equivalent: isometric diagonal forms with unit weights have weight products differing by a square.
Replacing two distinct coefficients by an equivalent binary form, while fixing all other coefficients, produces an equivalent diagonal form.
Reindexing the coefficients of a diagonal form does not change its equivalence class.
A diagonal form with unit weights is the diagonal form with the underlying scalar weights.
Evaluate a diagonal form on a linear combination of three distinct coordinate vectors.
A ternary solution with a nonzero third coordinate gives a nonzero isotropic vector in a diagonal quadratic form.
The bilinear form associated with a diagonal quadratic form pairs the coordinates diagonally: it is the weighted dot product.
The matrix of a diagonal quadratic form in the standard basis is the diagonal matrix of its weights.
The discriminant of a diagonal quadratic form is the product of its weights.
A diagonal form with regular weights is nondegenerate when two is invertible. Over a
domain the hypothesis is that every weight is nonzero (isRegular_iff_ne_zero).
Isometric diagonal forms with unit weights have weight products differing by a square. An isometry of the coordinate spaces changes the Gram matrix of a diagonal form by a congruence, so it changes its determinant — the product of the weights — by the square of the determinant of that isometry.