pure_state_invariant_addition
For any family of matrices T and weight vectors zeta_1, zeta_2 : Fin (d^2 - 1) → ℝ, if both satisfy is_quadratic_pure_state_invariant T, then their sum zeta_1 + zeta_2 also satisfies is_quadratic_pure_state_invariant T (zeta_1 + zeta_2).
Statement
theorem pure_state_invariant_addition {d : ℕ} (T : Fin (d^2 - 1) → Matrix (Fin d) (Fin d) ℂ)
(ζ₁ ζ₂ : Fin (d^2 - 1) → ℝ)
(h₁ : is_quadratic_pure_state_invariant T ζ₁)
(h₂ : is_quadratic_pure_state_invariant T ζ₂) :
is_quadratic_pure_state_invariant T (ζ₁ + ζ₂)- Source
- arXiv:2610.36076 Sec. 3.1
- Verified
- 02 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- is_quadratic_pure_state_invariantA weight vector zeta : Fin (d^2 - 1) → ℝ is a quadratic pure-state invariant for T if there exists a real constant c such that for all…
- is_pure_stateA matrix rho on C^d represents a pure quantum state if and only if rho is Hermitian, idempotent (rho^2 = rho), and has trace 1.
- quadratic_pure_state_formFor a family of matrices T, a weight vector zeta : Fin (d^2 - 1) → ℝ, and a density matrix rho, the quadratic pure-state form is the sum…
Read back from the Lean
For any natural number $d$, any family $T$ of $d \times d$ complex matrices indexed by $\operatorname{Fin}(d^2 - 1)$, and any two weight functions $\zeta_1, \zeta_2 : \operatorname{Fin}(d^2 - 1) \to \mathbb{R}$: if $\zeta_1$ is a quadratic pure state invariant with respect to $T$ and $\zeta_2$ is a quadratic pure state invariant with respect to $T$, then their pointwise sum $\zeta_1 + \zeta_2$ is also a quadratic pure state invariant with respect to $T$.
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 establishes that the set of quadratic pure-state invariants is closed under addition by choosing the sum of their invariant constants, $c_1 + c_2$, as the witness for $\zeta_1 + \zeta_2$. Because the quadratic form is linear in the weight vector $\zeta$, distributing multiplication and splitting the sum separates the form for $\zeta_1 + \zeta_2$ into the sum of the forms for $\zeta_1$ and $\zeta_2$. Substituting the known constant values $c_1$ and $c_2$ on any pure state $\rho$ completes the argument.
It suffices to show that for any pure state $\rho$, the quadratic pure-state form evaluated at $\zeta_1 + \zeta_2$ and $\rho$ equals $c_1 + c_2$.
By the assumption that $\zeta_1$ and $\zeta_2$ are quadratic pure-state invariants, there exist constant values $c_1, c_2 \in \mathbb{R}$ such that their quadratic forms evaluate to $c_1$ and $c_2$ on all pure states. We propose $c_1 + c_2$ as the witness constant for $\zeta_1 + \zeta_2$ and fix an arbitrary pure state $\rho$.
obtain ⟨c₁, hc₁⟩ := h₁ obtain ⟨c₂, hc₂⟩ := h₂ refine ⟨c₁ + c₂, fun ρ hρ => ?_⟩
The quadratic forms for $\zeta_1$ and $\zeta_2$ at $\rho$ evaluate to $c_1$ and $c_2$ as explicit sums.
Instantiating the invariant hypotheses for $\zeta_1$ and $\zeta_2$ at $\rho$ gives equations $e_1$ and $e_2$. Unfolding the definition of `quadratic_pure_state_form` expands both equations and the target goal into explicit sums of the form $\sum_a \zeta(a) (\mathrm{Re}\,\mathrm{Tr}(\rho T_a))^2$.
have e₁ := hc₁ ρ hρ have e₂ := hc₂ ρ hρ unfold quadratic_pure_state_form at e₁ e₂ ⊢
The quadratic form for $\zeta_1 + \zeta_2$ at $\rho$ decomposes into the sum of the quadratic forms for $\zeta_1$ and $\zeta_2$.
Using pointwise function addition (`Pi.add_apply`), the weight term is $(\zeta_1 + \zeta_2)(a) = \zeta_1(a) + \zeta_2(a)$. Distributing multiplication over addition (`add_mul`) and splitting the summation into two sums (`Finset.sum_add_distrib`) expresses the left-hand side as $\sum_a \zeta_1(a) (\mathrm{Re}\,\mathrm{Tr}(\rho T_a))^2 + \sum_a \zeta_2(a) (\mathrm{Re}\,\mathrm{Tr}(\rho T_a))^2$.
uses
Pi.add_apply,add_mul,Finset.sum_add_distribsimp_rw [Pi.add_apply, add_mul, Finset.sum_add_distrib]
The sum evaluates to $c_1 + c_2$, concluding the proof.
Substituting the equations $e_1$ and $e_2$ replaces the two summations with $c_1$ and $c_2$, resulting in the trivial equality $c_1 + c_2 = c_1 + c_2$.
rw [e₁, e₂]
Pi.add_apply- Pointwise addition of functions: $(f + g)(i) = f(i) + g(i)$
add_mul- Right distributivity of multiplication over addition: $(a + b)c = ac + bc$
Finset.sum_add_distrib- Splitting a sum of two terms over a finite set into two sums: $\sum_{x \in s} (f(x) + g(x)) = \sum_{x \in s} f(x) + \sum_{x \in s} g(x)$
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.
/-- The set of quadratic pure-state invariants is closed under addition, forming a subspace of R^(d^2-1). -/theorem pure_state_invariant_addition {d : ℕ} (T : Fin (d^2 - 1) → Matrix (Fin d) (Fin d) ℂ) (ζ₁ ζ₂ : Fin (d^2 - 1) → ℝ) (h₁ : is_quadratic_pure_state_invariant T ζ₁) (h₂ : is_quadratic_pure_state_invariant T ζ₂) : is_quadratic_pure_state_invariant T (ζ₁ + ζ₂) := by obtain ⟨c₁, hc₁⟩ := h₁ obtain ⟨c₂, hc₂⟩ := h₂ refine ⟨c₁ + c₂, fun ρ hρ => ?_⟩ have e₁ := hc₁ ρ hρ have e₂ := hc₂ ρ hρ unfold quadratic_pure_state_form at e₁ e₂ ⊢ simp_rw [Pi.add_apply, add_mul, Finset.sum_add_distrib] rw [e₁, e₂]