magic_rectangle_sos_operator_bound
For the self-adjoint involutions and commutation relations in the rectangle certificate, the associated correlation operator is bounded above by twice the square root of six times the identity.
Statement
theorem magic_rectangle_sos_operator_bound : ∀ {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (D C B : Fin 3 → (H →L[ℂ] H)), (∀ j, IsSelfAdjoint (D j)) → (∀ j, IsSelfAdjoint (C j)) → (∀ j, IsSelfAdjoint (B j)) → (∀ j, D j ^ 2 = 1) → (∀ j, C j ^ 2 = 1) → (∀ j, B j ^ 2 = 1) → D 0 * D 1 * D 2 = 1 → C 0 * C 1 * C 2 = -1 → (∀ j k, D j * D k = D k * D j) → (∀ j k, C j * C k = C k * C j) → (∀ j k, D j * B k = B k * D j) → (∀ j k, C j * B k = B k * C j) → (∑ j : Fin 3, (D j + C j) * B j) ≤ (2 * Real.sqrt 6) • (1 : H →L[ℂ] H)
- Source
- arXiv:2610.12001, Theorem 3.1, operator inequality following the sum-of-squares identity.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- magic_rectangle_sos_certificateLet H be a complex Hilbert space and let D, C, B : Fin 3 → (H →L[ℂ] H) be self-adjoint continuous linear operators satisfying D j ^ 2 = 1,…
- LinearPMap.IsSelfAdjoint.smulLinearPMap.IsSelfAdjoint.smul
- VThe ambient space $V = \mathbb{F}_p^n \times \mathbb{F}_p^n$ of pairs of coordinate vectors.
The proof, explained
The theorem establishes an upper bound on the correlation operator S = ∑ j, (D j + C j) * B j by showing that (2 * √6) • 1 - S ≥ 0. The proof uses an explicit sum-of-squares (SOS) certificate that algebraically decomposes (2 * √6) • 1 - S into a positive linear combination of three sums of operator squares. Using the commutation relations and self-adjointness of D, C, and B, each operator inside the squares is shown to be self-adjoint, which implies its square is positive semidefinite. Because the scalar coefficients are non-negative, the entire certificate expression is positive semidefinite, from which the operator inequality follows.
The goal is restated as S ≤ (2 * r) • 1 after defining auxiliary operators and scalar constants.
We define the symmetric operators X j = D j + C j, antisymmetric operators Y j = D j - C j, correlation terms Z j = X j * B j, cross terms V j and W j with shifted indices, the sum S = ∑ j, X j * B j, and constants r = √6 and q = 2 * r / 3. The target inequality ∑ j, (D j + C j) * B j ≤ (2 * √6) • 1 is then reformulated as S ≤ (2 * r) • 1.
let X := fun j => D j + C j let Y := fun j => D j - C j let Z := fun j => X j * B j let V := fun j => X (j + 1) * B (j + 2) + X (j + 2) * B (j + 1) let W := fun j => Y (j + 1) * B (j + 2) + Y (j + 2) * B (j + 1) let S := ∑ j : Fin 3, X j * B j let r : ℝ := Real.sqrt 6 let q : ℝ := 2 * r / 3 change S ≤ (2 * r) • (1 : H →L[ℂ] H)
The operators X j and Y j are self-adjoint and commute with B k for all j, k.
Since D j and C j are self-adjoint, their sum X j and difference Y j are self-adjoint. Distributing multiplication over addition and subtraction and using the assumed commutativity of D j and C j with B k proves that X j and Y j commute with B k.
uses
add_mul,mul_add,sub_mul,mul_subhave hX (j : Fin 3) : IsSelfAdjoint (X j) := (hD_sa j).add (hC_sa j) have hY (j : Fin 3) : IsSelfAdjoint (Y j) := (hD_sa j).sub (hC_sa j) have hXB (j k : Fin 3) : Commute (X j) (B k) := by change (D j + C j) * B k = B k * (D j + C j) rw [add_mul, mul_add, hDB_comm, hCB_comm] have hYB (j k : Fin 3) : Commute (Y j) (B k) := by change (D j - C j) * B k = B k * (D j - C j) rw [sub_mul, mul_sub, hDB_comm, hCB_comm]
The terms Z j - q • 1, Y j - (1 / r) • V j, and X j + q • B j - q • W j are self-adjoint.
Because the product of two commuting self-adjoint operators is self-adjoint, Z j = X j * B j is self-adjoint, as are the constituent terms of V j and W j. Since real numbers are self-adjoint and real scalar multiplication preserves self-adjointness, the linear combinations Z j - q • 1, Y j - (1 / r) • V j, and X j + q • B j - q • W j are self-adjoint.
uses
IsSelfAdjoint.all,IsSelfAdjoint.onehave hZ (j : Fin 3) : IsSelfAdjoint (Z j) := ((hX j).commute_iff (hB_sa j)).mp (hXB j j) have hV (j : Fin 3) : IsSelfAdjoint (V j) := (((hX (j + 1)).commute_iff (hB_sa (j + 2))).mp (hXB (j + 1) (j + 2))).add (((hX (j + 2)).commute_iff (hB_sa (j + 1))).mp (hXB (j + 2) (j + 1))) have hW (j : Fin 3) : IsSelfAdjoint (W j) := (((hY (j + 1)).commute_iff (hB_sa (j + 2))).mp (hYB (j + 1) (j + 2))).add (((hY (j + 2)).commute_iff (hB_sa (j + 1))).mp (hYB (j + 2) (j + 1))) have hreal (t : ℝ) : IsSelfAdjoint t := IsSelfAdjoint.all t have h1 (j : Fin 3) : IsSelfAdjoint (Z j - q • (1 : H →L[ℂ] H)) := (hZ j).sub ((hreal q).smul (IsSelfAdjoint.one (H →L[ℂ] H))) have h2 (j : Fin 3) : IsSelfAdjoint (Y j - (1 / r) • V j) := (hY j).sub ((hreal (1 / r)).smul (hV j)) have h3 (j : Fin 3) : IsSelfAdjoint (X j + q • B j - q • W j) := ((hX j).add ((hreal q).smul (hB_sa j))).sub ((hreal q).smul (hW j))
The square of every self-adjoint operator is non-negative, so each of the three sums of squares is non-negative.
For any self-adjoint operator T, T ^ 2 = star T * T ≥ 0. Since each term being squared is self-adjoint, summing over Fin 3 implies that the three sums of squares are non-negative operators.
uses
sq,star_mul_self_nonneg,Finset.sum_nonneghave hsquare (T : H →L[ℂ] H) (hT : IsSelfAdjoint T) : 0 ≤ T ^ 2 := by simpa only [hT.star_eq, sq] using (star_mul_self_nonneg T) have hs1 : 0 ≤ ∑ j : Fin 3, (Z j - q • (1 : H →L[ℂ] H)) ^ 2 := Finset.sum_nonneg fun j _ => hsquare _ (h1 j) have hs2 : 0 ≤ ∑ j : Fin 3, (Y j - (1 / r) • V j) ^ 2 := Finset.sum_nonneg fun j _ => hsquare _ (h2 j) have hs3 : 0 ≤ ∑ j : Fin 3, (X j + q • B j - q • W j) ^ 2 := Finset.sum_nonneg fun j _ => hsquare _ (h3 j)
The scalar coefficients 5 * r / 64, r / 12, and r / 192 are non-negative. automation
Since r = √6 ≥ 0, elementary linear arithmetic and positivity of real numbers establish that each scalar weight is non-negative.
have hr : 0 ≤ r := by dsimp [r]; positivity have hp1 : 0 ≤ 5 * r / 64 := by positivity have hp2 : 0 ≤ r / 12 := by positivity have hp3 : 0 ≤ r / 192 := by positivity
The difference (2 * r) • 1 - S equals the weighted sum of the three sums of squares.
We apply the algebraic certificate identity `magic_rectangle_sos_certificate`, which decomposes (2 * r) • 1 - S into the weighted sum of the three sums of squares using the commutation and involution relations of D, C, and B.
uses
magic_rectangle_sos_certificatehave hcert : (2 * r) • (1 : H →L[ℂ] H) - S = (5 * r / 64) • (∑ j : Fin 3, (Z j - q • 1) ^ 2) + (r / 12) • (∑ j : Fin 3, (Y j - (1 / r) • V j) ^ 2) + (r / 192) • (∑ j : Fin 3, (X j + q • B j - q • W j) ^ 2) := magic_rectangle_sos_certificate D C B hD_sa hC_sa hB_sa hD_sq hC_sq hB_sq hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_commThe operator inequality S ≤ (2 * r) • 1 holds.
By `sub_nonneg.mp`, S ≤ (2 * r) • 1 is equivalent to 0 ≤ (2 * r) • 1 - S. Rewriting with the certificate identity expresses the difference as a sum of three terms, each being a product of a non-negative scalar and a non-negative operator; thus the entire sum is non-negative.
uses
sub_nonneg.mp,add_nonneg,smul_nonnegapply sub_nonneg.mp rw [hcert] exact add_nonneg (add_nonneg (smul_nonneg hp1 hs1) (smul_nonneg hp2 hs2)) (smul_nonneg hp3 hs3)
The theorem magic_rectangle_sos_operator_bound holds in full generality.
We introduce the universally quantified Hilbert space and operator families, along with all involution, product, and commutation hypotheses, and invoke `in937_rectangle_sos_operator_bound`.
uses
in937_rectangle_sos_operator_boundintro H _ _ _ D C B hD_sa hC_sa hB_sa hD_sq hC_sq hB_sq hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm exact in937_rectangle_sos_operator_bound D C B hD_sa hC_sa hB_sa hD_sq hC_sq hB_sq hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm
add_mul- Multiplication distributes over addition on the right: (a + b) * c = a * c + b * c.
mul_add- Multiplication distributes over addition on the left: a * (b + c) = a * b + a * c.
sub_mul- Multiplication distributes over subtraction on the right: (a - b) * c = a * c - b * c.
mul_sub- Multiplication distributes over subtraction on the left: a * (b - c) = a * b - a * c.
IsSelfAdjoint.all- Every element in a ring with trivial involution (such as the real numbers) is self-adjoint.
IsSelfAdjoint.one- The identity element of a unital star-algebra is self-adjoint.
sq- The square of an element is its product with itself: a ^ 2 = a * a.
star_mul_self_nonneg- In an ordered star-ring, the product of the adjoint of an element with itself is non-negative: 0 ≤ star r * r.
Finset.sum_nonneg- A finite sum of non-negative elements is non-negative.
magic_rectangle_sos_certificate- The difference (2 * r) • 1 - S expands into the sum of squares certificate with non-negative coefficients.
sub_nonneg.mp- If a difference a - b is non-negative, then b ≤ a.
add_nonneg- The sum of two non-negative elements is non-negative.
smul_nonneg- The scalar product of a non-negative scalar and a non-negative vector is non-negative.
in937_rectangle_sos_operator_bound- The operator upper bound for the rectangle correlation operator under the certificate hypotheses.
- In Step 5 (lines 56–59), the non-negativity of the coefficients is discharged by the automated tactic `positivity`.
- The algebraic sum-of-squares decomposition in Step 6 relies on the lemma `magic_rectangle_sos_certificate` proved separately in the knowledge base.
- The main theorem `magic_rectangle_sos_operator_bound` (lines 70–80) is an explicitly quantified wrapper delegating directly to `in937_rectangle_sos_operator_bound` (lines 1–68).
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem in937_rectangle_sos_operator_bound {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (D C B : Fin 3 → (H →L[ℂ] H)) (hD_sa : ∀ j, IsSelfAdjoint (D j)) (hC_sa : ∀ j, IsSelfAdjoint (C j)) (hB_sa : ∀ j, IsSelfAdjoint (B j)) (hD_sq : ∀ j, D j ^ 2 = 1) (hC_sq : ∀ j, C j ^ 2 = 1) (hB_sq : ∀ j, B j ^ 2 = 1) (hD_prod : D 0 * D 1 * D 2 = 1) (hC_prod : C 0 * C 1 * C 2 = -1) (hD_comm : ∀ j k, D j * D k = D k * D j) (hC_comm : ∀ j k, C j * C k = C k * C j) (hDB_comm : ∀ j k, D j * B k = B k * D j) (hCB_comm : ∀ j k, C j * B k = B k * C j) : (∑ j : Fin 3, (D j + C j) * B j) ≤ (2 * Real.sqrt 6) • (1 : H →L[ℂ] H) := by let X := fun j => D j + C j let Y := fun j => D j - C j let Z := fun j => X j * B j let V := fun j => X (j + 1) * B (j + 2) + X (j + 2) * B (j + 1) let W := fun j => Y (j + 1) * B (j + 2) + Y (j + 2) * B (j + 1) let S := ∑ j : Fin 3, X j * B j let r : ℝ := Real.sqrt 6 let q : ℝ := 2 * r / 3 change S ≤ (2 * r) • (1 : H →L[ℂ] H) have hX (j : Fin 3) : IsSelfAdjoint (X j) := (hD_sa j).add (hC_sa j) have hY (j : Fin 3) : IsSelfAdjoint (Y j) := (hD_sa j).sub (hC_sa j) have hXB (j k : Fin 3) : Commute (X j) (B k) := by change (D j + C j) * B k = B k * (D j + C j) rw [add_mul, mul_add, hDB_comm, hCB_comm] have hYB (j k : Fin 3) : Commute (Y j) (B k) := by change (D j - C j) * B k = B k * (D j - C j) rw [sub_mul, mul_sub, hDB_comm, hCB_comm] have hZ (j : Fin 3) : IsSelfAdjoint (Z j) := ((hX j).commute_iff (hB_sa j)).mp (hXB j j) have hV (j : Fin 3) : IsSelfAdjoint (V j) := (((hX (j + 1)).commute_iff (hB_sa (j + 2))).mp (hXB (j + 1) (j + 2))).add (((hX (j + 2)).commute_iff (hB_sa (j + 1))).mp (hXB (j + 2) (j + 1))) have hW (j : Fin 3) : IsSelfAdjoint (W j) := (((hY (j + 1)).commute_iff (hB_sa (j + 2))).mp (hYB (j + 1) (j + 2))).add (((hY (j + 2)).commute_iff (hB_sa (j + 1))).mp (hYB (j + 2) (j + 1))) have hreal (t : ℝ) : IsSelfAdjoint t := IsSelfAdjoint.all t have h1 (j : Fin 3) : IsSelfAdjoint (Z j - q • (1 : H →L[ℂ] H)) := (hZ j).sub ((hreal q).smul (IsSelfAdjoint.one (H →L[ℂ] H))) have h2 (j : Fin 3) : IsSelfAdjoint (Y j - (1 / r) • V j) := (hY j).sub ((hreal (1 / r)).smul (hV j)) have h3 (j : Fin 3) : IsSelfAdjoint (X j + q • B j - q • W j) := ((hX j).add ((hreal q).smul (hB_sa j))).sub ((hreal q).smul (hW j)) have hsquare (T : H →L[ℂ] H) (hT : IsSelfAdjoint T) : 0 ≤ T ^ 2 := by simpa only [hT.star_eq, sq] using (star_mul_self_nonneg T) have hs1 : 0 ≤ ∑ j : Fin 3, (Z j - q • (1 : H →L[ℂ] H)) ^ 2 := Finset.sum_nonneg fun j _ => hsquare _ (h1 j) have hs2 : 0 ≤ ∑ j : Fin 3, (Y j - (1 / r) • V j) ^ 2 := Finset.sum_nonneg fun j _ => hsquare _ (h2 j) have hs3 : 0 ≤ ∑ j : Fin 3, (X j + q • B j - q • W j) ^ 2 := Finset.sum_nonneg fun j _ => hsquare _ (h3 j) have hr : 0 ≤ r := by dsimp [r]; positivity have hp1 : 0 ≤ 5 * r / 64 := by positivity have hp2 : 0 ≤ r / 12 := by positivity have hp3 : 0 ≤ r / 192 := by positivity have hcert : (2 * r) • (1 : H →L[ℂ] H) - S = (5 * r / 64) • (∑ j : Fin 3, (Z j - q • 1) ^ 2) + (r / 12) • (∑ j : Fin 3, (Y j - (1 / r) • V j) ^ 2) + (r / 192) • (∑ j : Fin 3, (X j + q • B j - q • W j) ^ 2) := magic_rectangle_sos_certificate D C B hD_sa hC_sa hB_sa hD_sq hC_sq hB_sq hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm apply sub_nonneg.mp rw [hcert] exact add_nonneg (add_nonneg (smul_nonneg hp1 hs1) (smul_nonneg hp2 hs2)) (smul_nonneg hp3 hs3)theorem magic_rectangle_sos_operator_bound : ∀ {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (D C B : Fin 3 → (H →L[ℂ] H)), (∀ j, IsSelfAdjoint (D j)) → (∀ j, IsSelfAdjoint (C j)) → (∀ j, IsSelfAdjoint (B j)) → (∀ j, D j ^ 2 = 1) → (∀ j, C j ^ 2 = 1) → (∀ j, B j ^ 2 = 1) → D 0 * D 1 * D 2 = 1 → C 0 * C 1 * C 2 = -1 → (∀ j k, D j * D k = D k * D j) → (∀ j k, C j * C k = C k * C j) → (∀ j k, D j * B k = B k * D j) → (∀ j k, C j * B k = B k * C j) → (∑ j : Fin 3, (D j + C j) * B j) ≤ (2 * Real.sqrt 6) • (1 : H →L[ℂ] H) := by intro H _ _ _ D C B hD_sa hC_sa hB_sa hD_sq hC_sq hB_sq hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm exact in937_rectangle_sos_operator_bound D C B hD_sa hC_sa hB_sa hD_sq hC_sq hB_sq hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm