Appendix F.1: exact Haar moments before the erroneous specialization
OpenQAlgorithms.Papers.Independent.Advance50.P50.haar_linear_momentsFix , , a real density matrix , and a Hermitian purely imaginary matrix . Let have the canonical normalized Haar law on and . Then and are integrable and
This retains the coherent first equality of Eq.(F5); it makes no normalization assumption on and does not adopt its erroneous Pauli specialization.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P50
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P50
open MeasureTheory ProbabilityTheory
open scoped ComplexConjugate ENNReal
-- Exact accepted primitives; no paper-local redeclarations.
open QAlgorithms.Papers.Independent.Information100.P63 (Mat tensorPower)
open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Gap48.P38 (subsystemReduction)
open QAlgorithms.Papers.Independent.Information100.P32 (purity)
open QAlgorithms.Papers.Independent.Information100.P08 (IsPure)
-- Matrices carry the associative commutator bracket X*Y-Y*X.
attribute [local instance 100] LieRing.ofAssociativeRing
/-- PDF pp.27–28, Eqs.(F4) and the first equality of (F5): exact Haar moments
for fixed real fiduciary density and imaginary Hermitian observable. The
contradictory final Pauli substitution in (F5) is deferred separately. -/
theorem haar_linear_moments {n : ℕ} (hn : 1 ≤ n)
(rho O : Mat (Qubits n)) (hrho : IsDensityMatrix rho)
(hreal : ∀ x y, (rho x y).im = 0) (hO : O.IsHermitian)
(himaginary : ∀ x y, (O x y).re = 0) :
let mu := QAlgorithms.Schur.unitaryHaar (2 ^ n)
let X := haarOutput n rho O
Integrable X mu ∧ Integrable (fun u => (X u) ^ 2) mu ∧
(∫ u, X u ∂mu) = O.trace.re / (2 : ℝ) ^ n ∧
O.trace.re / (2 : ℝ) ^ n = 0 ∧
variance X mu = (∫ u, (X u) ^ 2 ∂mu) ∧
variance X mu = (O * O).trace.re * purity rho / (((2 : ℝ) ^ n) ^ 2 - 1) -
(O * O).trace.re / ((2 : ℝ) ^ n * (((2 : ℝ) ^ n) ^ 2 - 1)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P50
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , let be complex matrices indexed by -bit strings, where is positive semidefinite with trace , every entry of has zero imaginary part, is Hermitian, and every entry of has zero real part. Put , let be normalized Haar measure on the unitary group , and set , where and . Then and are integrable under , and, defining , one has
The zero observable is allowed, while is excluded by hypothesis.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.