AFTD Auto-Formalizing Theoretical Domains

dichotomic_sum_diff_sq_sum

theoremverified

For any two dichotomic projective observables B_0, B_1 on a Hilbert space, (B_0 + B_1)^2 + (B_0 - B_1)^2 = 4 I.

Statement

theorem dichotomic_sum_diff_sq_sum {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] (B0 B1 : E →L[ℂ] E) (h0 : B0 ^ 2 = 1) (h1 : B1 ^ 2 = 1) : (B0 + B1) ^ 2 + (B0 - B1) ^ 2 = 4 • (1 : E →L[ℂ] E)
Source
arXiv:2610.35838 App. E
Verified
01 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1

Read back from the Lean

For any complete complex normed inner product space $E$, and any two continuous $\mathbb{C}$-linear operators $B_0, B_1 : E \to_L[\mathbb{C}] E$, if $B_0^2 = \mathrm{id}_E$ and $B_1^2 = \mathrm{id}_E$, then $(B_0 + B_1)^2 + (B_0 - B_1)^2 = 4 \cdot \mathrm{id}_E$.

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 proof expands the sum of squares (B₀ + B₁)² + (B₀ - B₁)² algebraically in the noncommutative ring of bounded linear operators. Because the cross-terms B₀ B₁ and B₁ B₀ cancel upon addition, the sum simplifies to 2 B₀² + 2 B₁². Substituting the dichotomic observable properties B₀² = 1 and B₁² = 1 then immediately yields 4 I.

  1. (B₀ + B₁)² + (B₀ - B₁)² = 2 B₀² + 2 B₁² automation

    In any ring, expanding the squares yields (B₀ + B₁)² = B₀² + B₀ B₁ + B₁ B₀ + B₁² and (B₀ - B₁)² = B₀² - B₀ B₁ - B₁ B₀ + B₁². Adding the two expressions cancels the noncommuting cross-terms B₀ B₁ and B₁ B₀, leaving 2 B₀² + 2 B₁². The `noncomm_ring` tactic establishes this identity automatically.

    lines 3–4

      have h : (B0 + B1) ^ 2 + (B0 - B1) ^ 2 = 2 * B0 ^ 2 + 2 * B1 ^ 2 := by
        noncomm_ring
  2. (B₀ + B₁)² + (B₀ - B₁)² = 4 I automation

    Rewriting the expression using the identity established in the previous step, together with the hypotheses that B₀² = 1 (h0) and B₁² = 1 (h1), simplifies the left-hand side to 2 · 1 + 2 · 1. The `norm_num` tactic then evaluates the scalar arithmetic 2 + 2 = 4 to close the goal.

    lines 5–6

      rw [h, h0, h1]
      norm_num

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

/-- The sum of squares of B0 + B1 and B0 - B1 equals 4 times the identity. -/theorem dichotomic_sum_diff_sq_sum {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] (B0 B1 : E →L[ℂ] E) (h0 : B0 ^ 2 = 1) (h1 : B1 ^ 2 = 1) : (B0 + B1) ^ 2 + (B0 - B1) ^ 2 = 4 • (1 : E →L[ℂ] E) := by  have h : (B0 + B1) ^ 2 + (B0 - B1) ^ 2 = 2 * B0 ^ 2 + 2 * B1 ^ 2 := by    noncomm_ring  rw [h, h0, h1]  norm_num
See it in the graphDiscuss this resultChallenge it