AFTD Auto-Formalizing Theoretical Domains

pure_state_invariant_scaling

theoremverified

For any family of matrices T, if zeta : Fin (d^2 - 1) → ℝ satisfies is_quadratic_pure_state_invariant T zeta, then for any real number alpha, alpha • zeta also satisfies is_quadratic_pure_state_invariant T (alpha • zeta).

Statement

theorem pure_state_invariant_scaling {d : ℕ} (T : Fin (d^2 - 1) → Matrix (Fin d) (Fin d) ℂ)
    (ζ : Fin (d^2 - 1) → ℝ) (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 of matrices $T : \text{Fin}(d^2 - 1) \to \text{Matrix}(\text{Fin } d, \text{Fin } d, \mathbb{C})$, and any coefficient vector $\zeta : \text{Fin}(d^2 - 1) \to \mathbb{R}$, if $\zeta$ is a quadratic pure state invariant for $T$ (i.e., the quadratic pure state form associated with $T$ and $\zeta$ evaluates to a constant value across all pure states), then for any real scalar $\alpha$, the scalar multiple $\alpha \cdot \zeta$ is also a quadratic pure state invariant for $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 theorem states that scaling a quadratic pure-state invariant ζ by any real scalar α yields another quadratic pure-state invariant, with the invariant value scaled by α. From the assumption that ζ evaluates to a constant c on all pure states, we propose α * c as the invariant value for α • ζ. Unfolding the definition of the quadratic form and evaluating the scalar multiplication pointwise, we factor α out of the finite sum. The remaining sum is precisely the quadratic form of ζ at the pure state, which evaluates to c, giving the desired result α * c.

  1. To show that α • ζ is a quadratic pure-state invariant, it suffices to show that for any pure state ρ, the quadratic form evaluates to α * c, where c is the invariant value for ζ.

    By assumption, ζ is a quadratic pure-state invariant, so there exists a constant c such that the quadratic form evaluates to c on all pure states ρ. We choose α * c as the witness constant for α • ζ, reducing the goal to showing that for an arbitrary pure state ρ, the quadratic form of α • ζ on ρ equals α * c.

    lines 5–6

      rcases hζ with ⟨c, hc⟩
      refine ⟨α * c, fun ρ hρ => ?_⟩
  2. The quadratic form for α • ζ evaluated at ρ factors as α times the sum ∑ a, ζ a * (trace (ρ * T a)).re ^ 2.

    Unfolding the definition of quadratic_pure_state_form, the form is given by ∑ a, (α • ζ) a * (trace (ρ * T a)).re ^ 2. Rewriting pointwise scalar multiplication as multiplication (using Pi.smul_apply and smul_eq_mul) and reassociating factors (mul_assoc), each term becomes α * (ζ a * (trace (ρ * T a)).re ^ 2). We then factor the scalar α out of the sum using Finset.mul_sum.

    lines 7–9

    uses Pi.smul_apply, smul_eq_mul, mul_assoc, Finset.mul_sum

      unfold quadratic_pure_state_form
      simp_rw [Pi.smul_apply, smul_eq_mul, mul_assoc]
      rw [← Finset.mul_sum]
  3. The factored expression equals α * c, completing the proof.

    Since ρ is a pure state, the hypothesis on ζ ensures that the sum ∑ a, ζ a * (trace (ρ * T a)).re ^ 2 equals c. Multiplying both sides of this equality by α via congrArg yields α * ∑ a, ... = α * c.

    line 10

    uses congrArg

      exact congrArg (α * ·) (hc ρ hρ)
congrArg
A function applied to equal inputs produces equal outputs: if a₁ = a₂, then f(a₁) = f(a₂).
mul_assoc
Multiplication in a semigroup is associative: (a * b) * c = a * (b * c).
Finset.mul_sum
Left multiplication distributes over a finite sum: a * ∑ i ∈ s, f i = ∑ i ∈ s, a * f i.
Pi.smul_apply
Pointwise scalar multiplication of a function evaluates as (a • f) i = a • f i.
smul_eq_mul
Scalar multiplication of a type on itself coincides with ordinary multiplication: a • b = a * b.

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 set of quadratic pure-state invariants is closed under scalar multiplication. -/theorem pure_state_invariant_scaling {d : ℕ} (T : Fin (d^2 - 1) → Matrix (Fin d) (Fin d) ℂ)    (ζ : Fin (d^2 - 1) → ℝ) (hζ : is_quadratic_pure_state_invariant T ζ) (α : ℝ) :    is_quadratic_pure_state_invariant T (α • ζ) := by  rcases hζ with ⟨c, hc⟩  refine ⟨α * c, fun ρ hρ => ?_⟩  unfold quadratic_pure_state_form  simp_rw [Pi.smul_apply, smul_eq_mul, mul_assoc]  rw [← Finset.mul_sum]  exact congrArg (α * ·) (hc ρ hρ)
See it in the graphDiscuss this resultChallenge it