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.

Provided by PhysLibLean checkedMeaning reviewed

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

Step 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.constant

Authoritative 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 = 1

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

Current resultPurity One Characterizes Pure Quantum States
1 direct connection

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 connection

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationMState.pure_iff_purity_one
Source moduleQuantumInfo.Finite.MState
Source footprint62 nonempty lines in this declaration · 1228 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomsClassical.choice, Quot.sound, propext
Unresolved placeholdersNo sorryAx reported

View theorem in PhysLib ↗

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

Expanded visual

Explanatory image · not evidence.

Open original in a new tab