Quantum states · PhysLib theorem
Purity One Characterizes Pure Quantum States
A finite PhysLib mixed state has purity exactly one if and only if it is the projector of some normalized ket.
What it says
What the theorem says
One direction uses idempotence of a rank-one projector; the other shows that a probability spectrum whose squared entries sum to one must contain one eigenvalue equal to one and all others zero.
Context
Why it matters
The scalar test Tr(rho squared)=1 is the standard finite-dimensional criterion separating pure states from genuinely mixed states.
Inside the proof
Proof architecture
The theorem turns a matrix criterion into a probability-spectrum argument: pure projectors are idempotent, while equality of the spectral second moment forces a point mass.
Step 1
Pure projectors square to themselves
For a normalized ket, its rank-one density matrix is idempotent, so its self inner product and trace give purity one.
(|psi><psi|)^2 = |psi><psi|
Show the Lean ingredients
pure_mul_selfpurityobtain ⟨w, rfl⟩Step 2
Translate purity into the spectrum
PhysLib rewrites purity as the sum of squared eigenvalue probabilities and combines it with their normalization.
sum_i lambda_i^2 = 1 and sum_i lambda_i = 1
Show the Lean ingredients
h_eigenvaluesρ.spectrumProbDistribution.normalizedStep 3
Force a one-point spectrum
Because every eigenvalue lies between zero and one, the equality forces each to be zero or one; normalization leaves exactly one entry equal to one.
lambda_i in {0,1}, with exactly one lambda_i=1
Show the Lean ingredients
mul_eq_zero.mpFinset.sum_eq_zero_iff_of_nonnegProbDistribution.constantAuthoritative formal type
Exact PhysLib statement
MState.pure_iff_purity_one.{u_1} {d : Type u_1} [Fintype d] [DecidableEq d] (ρ : MState d) : (∃ ψ, ρ = MState.pure ψ) ↔ ρ.purity = 1This is the theorem's exact Lean type. The diagrams and commentary are explanatory; the pinned statement and source are authoritative.
Recorded connections
How this result fits
A one-step view of the published results directly connected to this page.
1 direct connection
- Related resultPurity One Characterizes Pure Quantum Statesis related toSpectral Decomposition of a Finite Quantum State
Only recorded public relationships are shown. A shared topic does not imply a dependency, and this is not a complete Lean proof-term dependency graph.
Open this result in the full theorem map1 direct connectionProvenance and verification
Sources and technical checks
Show declaration provenance and Lean checks
MState.pure_iff_purity_oneQuantumInfo.Finite.MState6bd0b4b99d3dsorryAx reportedThe declaration footprint describes source layout, not proof difficulty or the size of its dependencies. The pinned checks verify the cited Lean theorem; semantic review remains a separate PhysAtlas judgment.



