Bloch sphere: for with
ProvedHardyFiveAxioms.bloch_D_matrixFor , take the fiducial projectors , , , of Eqs. (26)–(27). Then the matrix of Eq. (18) is
which is Eq. (87), the choice for which the pure-state surface is the Bloch sphere.
Formalization Note Indices are -based. The equality is entrywise in , with the real entries cast to complex numbers.
import Mathlib import Definitions.Def_hardy2001_projectors
namespace HardyFiveAxioms
/-- Hardy 2001, Eq. (87) (with Eqs. (18), (26)–(27)): for `N = 2` and the fiducial projectors
`|1⟩⟨1|`, `|2⟩⟨2|`, `|12⟩ₓ⟨12|`, `|12⟩_y⟨12|`, the matrix `Dᵢⱼ = tr(P̂ᵢP̂ⱼ)` is the
Bloch-sphere matrix with `a = b = c = 1/2`. -/
theorem bloch_D_matrix :
let P : Fin 4 → Matrix (Fin 2) (Fin 2) ℂ :=
![proj (ket 0), proj (ket 1), proj (ketX 0 1), proj (ketY 0 1)]
∀ i j : Fin 4, (P i * P j).trace =
((!![1, 0, 1 / 2, 1 / 2;
0, 1, 1 / 2, 1 / 2;
1 / 2, 1 / 2, 1, 1 / 2;
1 / 2, 1 / 2, 1 / 2, 1] : Matrix (Fin 4) (Fin 4) ℝ) i j : ℂ) := by sorry
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.
Let be the complex matrices , , and , where and is the standard basis of . Then for all , , where is the real matrix with rows , , , , viewed in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.