Hardy's fiducial projectors , ,
Definitionhardy2001_projectorsLet be the standard orthonormal basis of . For put
For a vector , denotes the matrix with entries . Hardy's fiducial projectors are the operators
which number in total. They are indexed by the disjoint union of with two copies of the set of pairs .
Section 5 uses these projectors to put quantum theory in a form resembling classical probability theory: the state is the vector of the probabilities .
Formalization Note Indices are Fin N, so is ket (n-1). The two copies of the pairs are labelled false () and true (). The paper writes for the projector onto , and similarly for . ket, ketX, ketY and proj are also used directly in other statements of this mission.
import Mathlib
namespace HardyFiveAxioms
/-- The orthonormal basis vector `|n⟩ ∈ ℂᴺ`. -/
def ket {N : ℕ} (n : Fin N) : Fin N → ℂ :=
Pi.single n 1
/-- `|mn⟩ₓ = (|m⟩ + |n⟩)/√2` (Hardy 2001, Section 5). -/
noncomputable def ketX {N : ℕ} (m n : Fin N) : Fin N → ℂ :=
((1 / Real.sqrt 2 : ℝ) : ℂ) • (ket m + ket n)
/-- `|mn⟩_y = (|m⟩ + i|n⟩)/√2` (Hardy 2001, Section 5). -/
noncomputable def ketY {N : ℕ} (m n : Fin N) : Fin N → ℂ :=
((1 / Real.sqrt 2 : ℝ) : ℂ) • (ket m + Complex.I • ket n)
/-- The operator `|v⟩⟨v|` on `ℂᴺ`, as the matrix with entries `vᵢ · conj(vⱼ)`. -/
def proj {N : ℕ} (v : Fin N → ℂ) : Matrix (Fin N) (Fin N) ℂ :=
Matrix.vecMulVec v (star v)
/-- Index set of Hardy's `N²` fiducial projectors: one for each basis vector `n`, and two
(labelled `x` = `false`, `y` = `true`) for each pair `m < n`. -/
abbrev FiducialIndex (N : ℕ) : Type :=
Fin N ⊕ ({p : Fin N × Fin N // p.1 < p.2} × Bool)
/-- Hardy's `N²` fiducial projectors (Hardy 2001, Eqs. (26)–(27)):
`|n⟩⟨n|` for `n = 1, …, N`, and `|mn⟩ₓ⟨mn|`, `|mn⟩_y⟨mn|` for `m < n`. -/
noncomputable def fiducialProjector {N : ℕ} : FiducialIndex N → Matrix (Fin N) (Fin N) ℂ
| Sum.inl n => proj (ket n)
| Sum.inr (p, false) => proj (ketX p.1.1 p.1.2)
| Sum.inr (p, true) => proj (ketY p.1.1 p.1.2)
end HardyFiveAxioms
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source paper and of the intended meaning. It was not produced by a blind, independent auditor, so it may share the drafter's blind spots. Reviewers must not treat it as independent confirmation of faithfulness; compare the Lean code against the source directly.
Fix and index coordinates by .
- is the standard unit vector .
- and , for arbitrary indices . No order or distinctness of is required here. If , then , which is not a unit vector.
- For , is the complex matrix with entry . It is the rank-one operator , and it is idempotent only when .
- The index type is the disjoint union of with the product of and .
- The family sends an index of the first kind to , a pair with label false to , and a pair with label true to . Because , these vectors are unit vectors.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.