AFTD Auto-Formalizing Theoretical Domains

magic_rectangle_sos_certificate

theoremverifiedformalization

Let 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, C j ^ 2 = 1, and B j ^ 2 = 1 for all j, D 0 * D 1 * D 2 = 1, C 0 * C 1 * C 2 = -1, D j * D k = D k * D j, C j * C k = C k * C j, D j * B k = B k * D j, and C j * B k = B k * C j for all j, k. Setting X j = D j + C j, Y j = D j - C j, Z j = X j * B j, V j = X (j + 1) * B (j + 2) + X (j + 2) * B (j + 1), W j = Y (j + 1) * B (j + 2) + Y (j + 2) * B (j + 1), S = ∑ j : Fin 3, X j * B j, r = Real.sqrt 6, and q = 2 * r / 3, then the exact sum-of-squares certificate identity holds: (2 * r) • 1 - 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).

Statement

theorem magic_rectangle_sos_certificate
    {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) :
    let X : Fin 3 → (H →L[ℂ] H) := fun j => D j + C j
    let Y : Fin 3 → (H →L[ℂ] H) := fun j => D j - C j
    let Z : Fin 3 → (H →L[ℂ] H) := fun j => X j * B j
    let V : Fin 3 → (H →L[ℂ] H) := fun j => X (j + 1) * B (j + 2) + X (j + 2) * B (j + 1)
    let W : Fin 3 → (H →L[ℂ] H) := fun j => Y (j + 1) * B (j + 2) + Y (j + 2) * B (j + 1)
    let S : H →L[ℂ] H := ∑ j : Fin 3, X j * B j
    let r : ℝ := Real.sqrt 6
    let q : ℝ := 2 * r / 3
    (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)
Formalizes
arXiv:2610.12001 Theorem 3.1
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1
  • magic_rectangle_sos_operator_boundFor the self-adjoint involutions and commutation relations in the rectangle certificate, the associated correlation operator is bounded…

Read back from the Lean

Let $H$ be a complex Hilbert space (a complete normed space with an inner product space structure over $\mathbb{C}$). Let $D, C, B : \text{Fin } 3 \to (H \to_{\text{L}}[\mathbb{C}] H)$ be families of continuous linear operators on $H$ indexed by $\text{Fin } 3 = \{0, 1, 2\}$. Assume the following hypotheses: 1. For every $j \in \text{Fin } 3$, $D(j)$ is self-adjoint. 2. For every $j \in \text{Fin } 3$, $C(j)$ is self-adjoint. 3. For every $j \in \text{Fin } 3$, $B(j)$ is self-adjoint. 4. For every $j \in \text{Fin } 3$, $D(j)^2 = 1$ (the identity operator). 5. For every $j \in \text{Fin } 3$, $C(j)^2 = 1$. 6. For every $j \in \text{Fin } 3$, $B(j)^2 = 1$. 7. $D(0) D(1) D(2) = 1$. 8. $C(0) C(1) C(2) = -1$. 9. For all $j, k \in \text{Fin } 3$, $D(j)$ and $D(k)$ commute: $D(j) D(k) = D(k) D(j)$. 10. For all $j, k \in \text{Fin } 3$, $C(j)$ and $C(k)$ commute: $C(j) C(k) = C(k) C(j)$. 11. For all $j, k \in \text{Fin } 3$, $D(j)$ and $B(k)$ commute: $D(j) B(k) = B(k) D(j)$. 12. For all $j, k \in \text{Fin } 3$, $C(j)$ and $B(k)$ commute: $C(j) B(k) = B(k) C(j)$. Define the following operators and real constants: - $X(j) = D(j) + C(j)$ for $j \in \text{Fin } 3$ - $Y(j) = D(j) - C(j)$ for $j \in \text{Fin } 3$ - $Z(j) = X(j) B(j)$ for $j \in \text{Fin } 3$ - $V(j) = X(j + 1) B(j + 2) + X(j + 2) B(j + 1)$ for $j \in \text{Fin } 3$ (where addition of indices is in $\text{Fin } 3$, i.e., modulo 3) - $W(j) = Y(j + 1) B(j + 2) + Y(j + 2) B(j + 1)$ for $j \in \text{Fin } 3$ (indices modulo 3) - $S = \sum_{j \in \text{Fin } 3} X(j) B(j)$ - $r = \sqrt{6} \in \mathbb{R}$ - $q = \frac{2r}{3} = \frac{2\sqrt{6}}{3} \in \mathbb{R}$ Then the following operator identity holds in $H \to_{\text{L}}[\mathbb{C}] H$: $$ (2r) \cdot 1 - S = \frac{5r}{64} \cdot \sum_{j \in \text{Fin } 3} (Z(j) - q \cdot 1)^2 + \frac{r}{12} \cdot \sum_{j \in \text{Fin } 3} \left(Y(j) - \frac{1}{r} \cdot V(j)\right)^2 + \frac{r}{192} \cdot \sum_{j \in \text{Fin } 3} (X(j) + q \cdot B(j) - q \cdot W(j))^2 $$ where $1$ denotes the identity operator on $H$ and scalar multiplication is by real numbers.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The theorem establishes an exact sum-of-squares (SOS) certificate decomposing (2 * √6) • 1 - S for the 2 × 3 magic rectangle Bell operator. Because this decomposition is a formal algebraic consequence of the involution, product, and commutation relations alone, the theorem is proved in a single step by invoking the general algebraic identity `magic_rectangle_algebraic_sos_identity` for the operator algebra H →L[ℂ] H.

  1. The sum-of-squares identity (2 * r) • 1 - S = (5 * r / 64) • ∑ (Z j - q • 1) ^ 2 + (r / 12) • ∑ (Y j - (1 / r) • V j) ^ 2 + (r / 192) • ∑ (X j + q • B j - q • W j) ^ 2 holds for the operator families D, C, and B.

    The identity to be proven is a direct specialization of the general algebraic identity `magic_rectangle_algebraic_sos_identity`. Since the space H →L[ℂ] H of continuous linear operators forms a real algebra, the claim follows immediately by supplying the assumed involution relations (D j ^ 2 = 1, C j ^ 2 = 1, B j ^ 2 = 1), product conditions (D 0 * D 1 * D 2 = 1, C 0 * C 1 * C 2 = -1), and commutation relations.

    lines 29–30

    uses magic_rectangle_algebraic_sos_identity

      exact magic_rectangle_algebraic_sos_identity D C B hD_sq hC_sq hB_sq
        hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm
magic_rectangle_algebraic_sos_identity
In any real algebra A, if D, C, B : Fin 3 → A satisfy D j ^ 2 = C j ^ 2 = B j ^ 2 = 1, D 0 * D 1 * D 2 = 1, C 0 * C 1 * C 2 = -1, and pairwise commute across the required families, then the element (2 * √6) • 1 - S expands into the specified weighted sum of squares.

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

/-- Exact sum-of-squares certificate for the 2x3 magic rectangle Bell operator. -/theorem magic_rectangle_sos_certificate    {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) :    let X : Fin 3 → (H →L[ℂ] H) := fun j => D j + C j    let Y : Fin 3 → (H →L[ℂ] H) := fun j => D j - C j    let Z : Fin 3 → (H →L[ℂ] H) := fun j => X j * B j    let V : Fin 3 → (H →L[ℂ] H) := fun j => X (j + 1) * B (j + 2) + X (j + 2) * B (j + 1)    let W : Fin 3 → (H →L[ℂ] H) := fun j => Y (j + 1) * B (j + 2) + Y (j + 2) * B (j + 1)    let S : H →L[ℂ] H := ∑ j : Fin 3, X j * B j    let r : ℝ := Real.sqrt 6    let q : ℝ := 2 * r / 3    (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) := by  exact magic_rectangle_algebraic_sos_identity D C B hD_sq hC_sq hB_sq    hD_prod hC_prod hD_comm hC_comm hDB_comm hCB_comm
See it in the graphDiscuss this resultChallenge it