AFTD Auto-Formalizing Theoretical Domains

is_pure_state

def

A 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.

Statement

def is_pure_state {d : ℕ} (ρ : Matrix (Fin d) (Fin d) ℂ) : Prop
Defined in
arXiv:2610.36076 Sec. 2
Verified
02 Nov 2026
Axioms
none listed
Used by 5
  • open_problem_qudit_pure_state_invariantsFor any natural number d ≥ 3 and any family T of d^2 - 1 matrices satisfying is_orthonormal_hermitian_basis d T, the constant function…
  • pure_state_invariant_additionFor 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,…
  • orthonormal_hermitian_basis_bloch_norm_sqFor any natural number d ≥ 1, any orthonormal Hermitian basis T, and any pure state ρ, the quadratic pure-state form with weight 1 equals…
  • pure_state_invariant_scalingFor any family of matrices T, if zeta : Fin (d^2 - 1) → ℝ satisfies is_quadratic_pure_state_invariant T zeta, then for any real number…
  • 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…

Read back from the Lean

Given a natural number $d$ and a $d \times d$ complex matrix $\rho$ (indexed by Fin d), is_pure_state ρ is defined as the proposition that $\rho$ is Hermitian (ρ.IsHermitian), idempotent ($\rho * \rho = \rho$), and has trace equal to $1$ (Matrix.trace ρ = 1).

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

Lean source view module on GitHub

/-- A density matrix rho on C^d represents a pure quantum state if and only if it is Hermitian, idempotent (a projector), and has unit trace. -/
def is_pure_state {d : ℕ} (ρ : Matrix (Fin d) (Fin d) ℂ) : Prop := ρ.IsHermitian ∧ ρ * ρ = ρ ∧ Matrix.trace ρ = 1
See it in the graphDiscuss this resultChallenge it