Orthogonal change of variables in the biquadratic form P_H #
For a square matrix H over a commutative ring, the biquadratic form P_H(x, y) = (x₀² + x₁²)(y·y) + 2x₀x₁(y·Hy) satisfies P_H(x, Dy) = P_{DᵀHD}(x, y) whenever DᵀD = 1. Hence any representation of P_H as a sum of squares of bilinear forms transports to P_{DᵀHD} with the same number of squares, which covers signed-graph switching D = diag(±1).
Main results #
BiquadraticSOS.dotProduct_mulVec_congr: (D y) ⬝ᵥ (M (D y)) = y ⬝ᵥ ((Dᵀ * M * D) y)BiquadraticSOS.P_mulVec_orthogonal: Dᵀ * D = 1: P H x (D y) = P (Dᵀ * H * D) x yBiquadraticSOS.sos_transport: Dᵀ * D = 1 and P H = ∑ (x ⬝ᵥ B i y)²: P (Dᵀ * H * D) = ∑ (x ⬝ᵥ (B i * D) y)²BiquadraticSOS.P_switching: s i * s i = 1: P H x (diagonal s y) = P (diagonal s * H * diagonal s) x y
References #
- Mathlib: Matrix.mulVec_mulVec, Matrix.dotProduct_mulVec, Matrix.vecMul_transpose, Matrix.one_mulVec, Matrix.diagonal_transpose, Matrix.diagonal_mul_diagonal, Matrix.diagonal_one.
- Nuestro repo (grep 20-nov de «orthogonal», «mulVec», «dotProduct_mulVec», «Dᵀ»): nada equivalente. Lo más cercano es el lema privado sim_dot de Formalizations/Combinatorics/Configuration/BruckRyserChowla.lean ((M x)·(M y) = n (x·y) si Mᵀ M = n • 1, solo sobre ℚ, sin la forma P_H ni el transporte SOS). RationalSOS/Franja.lean trata P_H concretas (rango, det), no el cambio de variables.
theorem
BiquadraticSOS.sos_transport
{R : Type u_1}
{n : Type u_2}
[CommRing R]
[Fintype n]
[DecidableEq n]
{ι : Type u_3}
[Fintype ι]
{H D : Matrix n n R}
(hD : D.transpose * D = 1)
(B : ι → Matrix (Fin 2) n R)
(h : ∀ (x : Fin 2 → R) (y : n → R), P H x y = ∑ i : ι, (x ⬝ᵥ (B i).mulVec y) ^ 2)
(x : Fin 2 → R)
(y : n → R)
:
Transport of sums of squares of bilinear forms under orthogonal congruence H ↦ Dᵀ H D;
the number of squares is unchanged.
theorem
BiquadraticSOS.P_switching
{R : Type u_1}
{n : Type u_2}
[CommRing R]
[Fintype n]
[DecidableEq n]
(H : Matrix n n R)
{s : n → R}
(hs : ∀ (i : n), s i * s i = 1)
(x : Fin 2 → R)
(y : n → R)
:
Signed-graph switching: D = diagonal s with s i * s i = 1 is orthogonal.