Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Bloch sphere: Dij=tr(P^iP^j)D_{ij}=\mathrm{tr}(\hat P_i\hat P_j)Dij​=tr(P^i​P^j​) for N=2N=2N=2 with a=b=c=12a=b=c=\tfrac12a=b=c=21​

Proved
HardyFiveAxioms.bloch_D_matrix

by Lucas · Oct 3, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-algebramathematical-physicsquantum-foundationsquantum-information

For N=2N=2N=2, take the fiducial projectors P^1=∣1⟩⟨1∣\hat P_1=|1\rangle\langle1|P^1​=∣1⟩⟨1∣, P^2=∣2⟩⟨2∣\hat P_2=|2\rangle\langle2|P^2​=∣2⟩⟨2∣, P^3=∣12⟩x⟨12∣\hat P_3=|12\rangle_x\langle12|P^3​=∣12⟩x​⟨12∣, P^4=∣12⟩y⟨12∣\hat P_4=|12\rangle_y\langle12|P^4​=∣12⟩y​⟨12∣ of Eqs. (26)–(27). Then the matrix Dij=tr(P^iP^j)D_{ij}=\mathrm{tr}(\hat P_i\hat P_j)Dij​=tr(P^i​P^j​) of Eq. (18) is

D=(10121201121212121121212121),D=\begin{pmatrix}1&0&\tfrac12&\tfrac12\\0&1&\tfrac12&\tfrac12\\\tfrac12&\tfrac12&1&\tfrac12\\\tfrac12&\tfrac12&\tfrac12&1\end{pmatrix},D=​1021​21​​0121​21​​21​21​121​​21​21​21​1​​,

which is Eq. (87), the choice a=b=c=12a=b=c=\tfrac12a=b=c=21​ for which the pure-state surface is the Bloch sphere.

Formalization Note Indices are 000-based. The equality is entrywise in C\mathbb CC, with the real entries cast to complex numbers.

Preamble
import Mathlib
import Definitions.Def_hardy2001_projectors
Formal statement
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
Source
L. Hardy, *Quantum Theory From Five Reasonable Axioms*, arXiv:quant-ph/0101012v4 (2001), https://arxiv.org/abs/quant-ph/0101012, p. 7, Eq. (18); p. 8, Eqs. (26)–(27); p. 22, Section 8.6, Eq. (87)
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 P0,P1,P2,P3P_0,P_1,P_2,P_3P0​,P1​,P2​,P3​ be the complex 2×22\times22×2 matrices proj(e0)\mathrm{proj}(e_0)proj(e0​), proj(e1)\mathrm{proj}(e_1)proj(e1​), proj(12(e0+e1))\mathrm{proj}(\tfrac1{\sqrt2}(e_0+e_1))proj(2​1​(e0​+e1​)) and proj(12(e0+ie1))\mathrm{proj}(\tfrac1{\sqrt2}(e_0+ie_1))proj(2​1​(e0​+ie1​)), where proj(v)jk=vjvk‾\mathrm{proj}(v)_{jk}=v_j\overline{v_k}proj(v)jk​=vj​vk​​ and e0,e1e_0,e_1e0​,e1​ is the standard basis of C2\mathbb C^2C2. Then for all i,j∈{0,1,2,3}i,j\in\{0,1,2,3\}i,j∈{0,1,2,3}, tr(PiPj)=Mij\mathrm{tr}(P_iP_j)=M_{ij}tr(Pi​Pj​)=Mij​, where MMM is the real matrix with rows (1,0,12,12)(1,0,\tfrac12,\tfrac12)(1,0,21​,21​), (0,1,12,12)(0,1,\tfrac12,\tfrac12)(0,1,21​,21​), (12,12,1,12)(\tfrac12,\tfrac12,1,\tfrac12)(21​,21​,1,21​), (12,12,12,1)(\tfrac12,\tfrac12,\tfrac12,1)(21​,21​,21​,1), viewed in C\mathbb CC.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me