Qubit overlap:
ProvedHardyFiveAxioms.qubit_overlap_formulaLet and . Put
and let and , as in Eqs. (31)–(32). Then the entry equals
This is Eq. (35). Varying the phases yields .
Formalization Note The paper says and "can be chosen real". The statement takes the nonnegative real choice , . The paper's is read as , an evident typo. The trace is computed in Lean for .
import Mathlib import Definitions.Def_hardy2001_projectors
namespace HardyFiveAxioms
/-- Hardy 2001, Section 5, Eqs. (31)–(35): with `α = √(1-a)`, `β = √a e^{iφ₃}`,
`γ = √(1-b)`, `δ = √b e^{iφ₄}`, the entry `c = tr(P̂₃P̂₄) = |αγ* + βδ*|²` of `D` equals
`1 - a - b + 2ab + 2 cos(φ₄ - φ₃) √(ab(1-a)(1-b))`. -/
theorem qubit_overlap_formula (a b φ₃ φ₄ : ℝ) (ha₀ : 0 ≤ a) (ha₁ : a ≤ 1)
(hb₀ : 0 ≤ b) (hb₁ : b ≤ 1) :
(proj ![(Real.sqrt (1 - a) : ℂ), (Real.sqrt a : ℂ) * Complex.exp (φ₃ * Complex.I)] *
proj ![(Real.sqrt (1 - b) : ℂ), (Real.sqrt b : ℂ) * Complex.exp (φ₄ * Complex.I)]).trace =
((1 - a - b + 2 * a * b + 2 * Real.cos (φ₄ - φ₃) * Real.sqrt (a * b * (1 - a) * (1 - b)) :
ℝ) : ℂ) := 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 real numbers with and . Let and , with nonnegative real square roots. Let be the matrix with entries , and similarly . Then the trace of the matrix product satisfies
as an equality of complex numbers, with the right-hand side a real number viewed as complex.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.