Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

EPR photon pair with detector: states (1), (2) and reduced state of photon 2

Definition
AKR2008_Defs

by LG · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

density-matrixmathematical-physicspartial-tracequantum-information

Definitions for Sec. II of Albers–Kiefer–Reginatto (2008).

Let H\mathcal HH be a complex inner-product space (the detector). A vector of photon 1 ⊗\otimes⊗ photon 2 ⊗\otimes⊗ detector is recorded by its detector-valued components Ψij∈H\Psi_{ij}\in\mathcal HΨij​∈H, i,j∈{0,1}i,j\in\{0,1\}i,j∈{0,1}, where ∣0⟩=∣↑⟩|0\rangle = |\uparrow\rangle∣0⟩=∣↑⟩ is horizontal and ∣1⟩=∣↓⟩|1\rangle = |\downarrow\rangle∣1⟩=∣↓⟩ vertical polarization.

  1. polKet i — the basis vector ∣i⟩∈C2|i\rangle\in\mathbb C^2∣i⟩∈C2.
  2. psiBefore Φ₀ — Eq. (1): ∣Ψ0⟩=12(∣↑⟩1∣↓⟩2−∣↓⟩1∣↑⟩2)∣Φ0⟩|\Psi_0\rangle = \tfrac{1}{\sqrt2}\bigl(|\uparrow\rangle_1|\downarrow\rangle_2 - |\downarrow\rangle_1|\uparrow\rangle_2\bigr)|\Phi_0\rangle∣Ψ0​⟩=2​1​(∣↑⟩1​∣↓⟩2​−∣↓⟩1​∣↑⟩2​)∣Φ0​⟩.
  3. psiAfter Φ↑ Φ↓ — Eq. (2): ∣Ψ⟩=12(∣↑⟩1∣↓⟩2∣Φ↑⟩−∣↓⟩1∣↑⟩2∣Φ↓⟩)|\Psi\rangle = \tfrac{1}{\sqrt2}\bigl(|\uparrow\rangle_1|\downarrow\rangle_2|\Phi_\uparrow\rangle - |\downarrow\rangle_1|\uparrow\rangle_2|\Phi_\downarrow\rangle\bigr)∣Ψ⟩=2​1​(∣↑⟩1​∣↓⟩2​∣Φ↑​⟩−∣↓⟩1​∣↑⟩2​∣Φ↓​⟩).
  4. reducedPhoton2 Ψ — the reduced density matrix of photon 2 obtained from ∣Ψ⟩⟨Ψ∣|\Psi\rangle\langle\Psi|∣Ψ⟩⟨Ψ∣ by tracing out photon 1 and the detector:
ρ2(Ψ)jj′=∑i∈{0,1}⟨Ψij′,Ψij⟩H.\rho_2(\Psi)_{jj'} = \sum_{i\in\{0,1\}} \langle \Psi_{ij'}, \Psi_{ij}\rangle_{\mathcal H}.ρ2​(Ψ)jj′​=i∈{0,1}∑​⟨Ψij′​,Ψij​⟩H​.
  1. rhoHat — Eq. (3): ρ^=12(∣↑⟩⟨↑∣+∣↓⟩⟨↓∣)\hat\rho = \tfrac12\bigl(|\uparrow\rangle\langle\uparrow| + |\downarrow\rangle\langle\downarrow|\bigr)ρ^​=21​(∣↑⟩⟨↑∣+∣↓⟩⟨↓∣) as a 2×22\times22×2 complex matrix.

These definitions are shared by the goal theorem and by Milestones 1–2.

Formalization Note The tensor product C2⊗C2⊗H\mathbb C^2\otimes\mathbb C^2\otimes\mathcal HC2⊗C2⊗H is identified with the space of functions {0,1}2→H\{0,1\}^2\to\mathcal H{0,1}2→H; Mathlib's inner product is conjugate-linear in its first argument, which is why the entry (j,j′)(j,j')(j,j′) pairs Ψij′\Psi_{ij'}Ψij′​ on the left with Ψij\Psi_{ij}Ψij​ on the right.

Definition code
import Mathlib

/-!
# Albers–Kiefer–Reginatto (2008), Sec. II: the EPR-type states (1), (2) and the
reduced density operator (3) of photon 2.

The joint Hilbert space is `ℂ² ⊗ ℂ² ⊗ H` (photon 1 ⊗ photon 2 ⊗ detector), where `H` is an
arbitrary complex inner-product space.  Using the canonical isomorphism
`ℂ² ⊗ ℂ² ⊗ H ≅ (Fin 2 × Fin 2 → H)`, a joint vector is recorded by its `H`-valued components
`Ψ i j` (`i` = polarization of photon 1, `j` = polarization of photon 2).
Polarization index `0` is horizontal (`↑`), index `1` is vertical (`↓`).
-/

namespace AKR2008

open scoped InnerProductSpace

/-- A vector of photon 1 ⊗ photon 2 ⊗ detector, given by its detector-valued components:
`Ψ i j ∈ H` is the component along `|i⟩₁ |j⟩₂`. -/
abbrev JointState (H : Type*) := Fin 2 → Fin 2 → H

/-- The computational basis vector `|i⟩` of a single photon's polarization space `ℂ²`
(`|0⟩ = |↑⟩` horizontal, `|1⟩ = |↓⟩` vertical). -/
def polKet (i : Fin 2) : Fin 2 → ℂ := fun k => if k = i then 1 else 0

variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]

/-- Eq. (1): `|Ψ₀⟩ = (1/√2)(|↑⟩₁|↓⟩₂ − |↓⟩₁|↑⟩₂) |Φ₀⟩`. -/
noncomputable def psiBefore (Φ₀ : H) : JointState H := fun i j =>
  ((1 / Real.sqrt 2 : ℝ) : ℂ) • ((polKet 0 i * polKet 1 j - polKet 1 i * polKet 0 j) • Φ₀)

/-- Eq. (2): `|Ψ⟩ = (1/√2)(|↑⟩₁|↓⟩₂|Φ↑⟩ − |↓⟩₁|↑⟩₂|Φ↓⟩)`. -/
noncomputable def psiAfter (Φup Φdown : H) : JointState H := fun i j =>
  ((1 / Real.sqrt 2 : ℝ) : ℂ) • ((polKet 0 i * polKet 1 j) • Φup - (polKet 1 i * polKet 0 j) • Φdown)

/-- The reduced density operator of photon 2 obtained from the pure state `|Ψ⟩⟨Ψ|` by tracing
out photon 1 and the detector:
`ρ₂(j, j') = ∑ᵢ ⟨Ψ i j', Ψ i j⟩_H` (matrix entries in the basis `|↑⟩, |↓⟩`). -/
noncomputable def reducedPhoton2 (Ψ : JointState H) : Matrix (Fin 2) (Fin 2) ℂ :=
  fun j j' => ∑ i, ⟪Ψ i j', Ψ i j⟫_ℂ

/-- Eq. (3): `ρ̂ = ½ (|↑⟩₂⟨↑|₂ + |↓⟩₂⟨↓|₂)`. -/
noncomputable def rhoHat : Matrix (Fin 2) (Fin 2) ℂ :=
  (1 / 2 : ℂ) • (Matrix.vecMulVec (polKet 0) (star (polKet 0)) +
    Matrix.vecMulVec (polKet 1) (star (polKet 1)))

end AKR2008
Source
M. Albers, C. Kiefer, M. Reginatto, Measurement analysis and quantum gravity, Phys. Rev. D 78, 064051 (2008), https://doi.org/10.1103/PhysRevD.78.064051, p. 064051-2, Sec. II, Eqs. (1)–(3)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as drafter

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source paper and of the intended meaning. It is not a blind audit and must not be mistaken for independent testimony; an independent blind read-back is still recommended before the proposal is submitted.

The file declares, inside the namespace AKR2008:

  1. A type abbreviation: for any type HHH, a joint state is a function Ψ:{0,1}×{0,1}→H\Psi : \{0,1\}\times\{0,1\}\to HΨ:{0,1}×{0,1}→H (curried, Ψij\Psi_{ij}Ψij​).
  2. For i∈{0,1}i\in\{0,1\}i∈{0,1}, the vector polKet(i)∈C{0,1}\mathrm{polKet}(i)\in\mathbb C^{\{0,1\}}polKet(i)∈C{0,1} with polKet(i)k=1\mathrm{polKet}(i)_k = 1polKet(i)k​=1 if k=ik=ik=i and 000 otherwise.
  3. For a complex inner-product space HHH and Φ0∈H\Phi_0\in HΦ0​∈H: psiBefore(Φ0)ij=12(polKet(0)i polKet(1)j−polKet(1)i polKet(0)j)Φ0\mathrm{psiBefore}(\Phi_0)_{ij} = \tfrac{1}{\sqrt2}\bigl(\mathrm{polKet}(0)_i\,\mathrm{polKet}(1)_j - \mathrm{polKet}(1)_i\,\mathrm{polKet}(0)_j\bigr)\Phi_0psiBefore(Φ0​)ij​=2​1​(polKet(0)i​polKet(1)j​−polKet(1)i​polKet(0)j​)Φ0​. Explicitly: Ψ01=12Φ0\Psi_{01} = \tfrac1{\sqrt2}\Phi_0Ψ01​=2​1​Φ0​, Ψ10=−12Φ0\Psi_{10} = -\tfrac1{\sqrt2}\Phi_0Ψ10​=−2​1​Φ0​, Ψ00=Ψ11=0\Psi_{00}=\Psi_{11}=0Ψ00​=Ψ11​=0. Here 2\sqrt22​ is the real square root, cast to C\mathbb CC.
  4. For Φ↑,Φ↓∈H\Phi_\uparrow,\Phi_\downarrow\in HΦ↑​,Φ↓​∈H: psiAfter(Φ↑,Φ↓)ij=12(polKet(0)i polKet(1)j Φ↑−polKet(1)i polKet(0)j Φ↓)\mathrm{psiAfter}(\Phi_\uparrow,\Phi_\downarrow)_{ij} = \tfrac{1}{\sqrt2}\bigl(\mathrm{polKet}(0)_i\,\mathrm{polKet}(1)_j\,\Phi_\uparrow - \mathrm{polKet}(1)_i\,\mathrm{polKet}(0)_j\,\Phi_\downarrow\bigr)psiAfter(Φ↑​,Φ↓​)ij​=2​1​(polKet(0)i​polKet(1)j​Φ↑​−polKet(1)i​polKet(0)j​Φ↓​), i.e. Ψ01=12Φ↑\Psi_{01} = \tfrac1{\sqrt2}\Phi_\uparrowΨ01​=2​1​Φ↑​, Ψ10=−12Φ↓\Psi_{10} = -\tfrac1{\sqrt2}\Phi_\downarrowΨ10​=−2​1​Φ↓​, other components 000.
  5. For a joint state Ψ\PsiΨ, the 2×22\times22×2 complex matrix reducedPhoton2(Ψ)\mathrm{reducedPhoton2}(\Psi)reducedPhoton2(Ψ) with entries
reducedPhoton2(Ψ)jj′=∑i=01⟨Ψij′,Ψij⟩H,\mathrm{reducedPhoton2}(\Psi)_{jj'} = \sum_{i=0}^{1}\langle\Psi_{ij'},\Psi_{ij}\rangle_H,reducedPhoton2(Ψ)jj′​=i=0∑1​⟨Ψij′​,Ψij​⟩H​,

where ⟨⋅,⋅⟩H\langle\cdot,\cdot\rangle_H⟨⋅,⋅⟩H​ is conjugate-linear in the first slot. 6. The 2×22\times22×2 complex matrix rhoHat=12(e0e0∗+e1e1∗)\mathrm{rhoHat} = \tfrac12\bigl(e_0 e_0^{*} + e_1 e_1^{*}\bigr)rhoHat=21​(e0​e0∗​+e1​e1∗​) with ei=polKet(i)e_i=\mathrm{polKet}(i)ei​=polKet(i) (outer products, ∗^*∗ = entrywise complex conjugate); it equals 12\tfrac1221​ times the identity matrix.

No hypotheses (normalization, orthogonality, dimension) are built into any of these definitions; HHH may be any complex inner-product space, including the zero space.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 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