PhyslibAlpha.AlgebraicFramework.CStarAlgebra.Projection
Projections in a C⋆-algebra
A projection is an idempotent effect: an effect `p : Effect (selfAdjoint A)` whose underlying element satisfies `p * p = p`. This bundles `IsIdempotentElem.isSharp` (`SharpEffect.lean`) as a genuine type, in the same style `PVM := {μ : POVM Ω E // μ.IsPVM}` bundles sharpness of every effect a POVM assigns (`Representation/PVM.lean`) — a `Projection` is exactly the operator-level data that makes a single POVM outcome a genuine projection.
Complementation and its involutivity are already available generically for *every* effect (`Effect.complement`, `Effect.complement_complement`, `OrderUnit/Effect/Basic.lean`); the only new ingredient needed to transport them to `Projection` is that the complement of an idempotent is again idempotent, which needs no C⋆-algebraic input at all and is already `IsIdempotentElem.one_sub` in Mathlib (`Algebra/Ring/Idempotent.lean`).
The one fact that is genuinely new to this codebase — nothing else here computes a spectrum — is that the real spectrum of a projection lies in `{0, 1}`. This is exactly Mathlib's `isIdempotentElem_iff_spectrum_subset`, specialized to the self-adjoint continuous functional calculus that `selfAdjoint A` already carries for a C⋆-algebra `A`.
Main definitions
- `Projection A`
- `Projection.isSharp` : every projection is a sharp effect (`IsIdempotentElem.isSharp`).
- `Projection.complement`, `Projection.complement_complement`
- `Projection.spectrum_subset_zero_one`
7 declarations
Projection in a -algebra
For a -algebra , a **projection** is an effect in the self-adjoint part of that is idempotent, satisfying the condition . An effect is defined as a self-adjoint element such that . Thus, a projection is a self-adjoint element that satisfies (which implies in a -algebra).
Coercion from to
For a -algebra , this is the canonical coercion (inclusion) that maps a projection to its underlying element in the set of effects , effectively forgetting the idempotence condition .
Equality of underlying effects implies equality of projections
Let be a -algebra. For any two projections , if they are equal when viewed as effects (i.e., as elements of the self-adjoint part of satisfying ), then as projections.
Every Projection is a Sharp Effect
Let be a -algebra. Every projection is a sharp effect, meaning it cannot be expressed as a non-trivial mixture (convex combination) of two distinct effects. That is, if for some effects and , then .
Complementary projection
For a projection in a -algebra , its complementary projection is defined as .
Double complement of a projection is
For any projection in a -algebra , taking the complement of its complement returns the original projection .
The spectrum of a projection satisfies
Let be a -algebra and be a projection (a self-adjoint element satisfying ). The spectrum of over the real numbers, denoted , is a subset of . That is, .
