Appendix B, (31): second moment of a random normalized code projector
OpenQAlgorithms.Papers.Independent.Advance50.P29.normalizedProjectionMomentLet and be finite complex Hilbert spaces of positive dimensions and . A density operator is positive semidefinite with trace one. All logarithms and entropies are in bits. Write . For a nonzero code subspace of dimension , let . Write , where ranges over all CPTP recovery maps and state entanglement fidelity is squared and unconditional. Fix any -dimensional seed code and average over normalized Haar measure on the entire unitary group of ; denote this expectation by . All displayed Haar integrands are integrable. For any fixed unit vector ,
This exact normalized-projector moment is independent of the chosen unit vector and seed code.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P29
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P29
open QAlgorithms MeasureTheory Filter
open QAlgorithms.Papers.Independent.Information100.P22
(densityPurification coherentInformation singleUseInformation mixed)
open QAlgorithms.Papers.Independent.Information100.P27 (shannon)
open QAlgorithms.Papers.Independent.Dependency50.P48 (wordProbability)
open QAlgorithms.Papers.Independent.Bridge50.P43 (tensorDensity)
open scoped Matrix ComplexConjugate ComplexOrder Topology
attribute [local instance] Classical.propDecidable
variable {I J E L : Type} [Fintype I] [DecidableEq I]
variable [Fintype J] [DecidableEq J] [Fintype E] [DecidableEq E]
variable [Fintype L] [DecidableEq L]
/-- PDF pp.20–21, (31): exact second moment of a normalized random code projection. -/
theorem normalizedProjectionMoment [Nonempty I] (C : CodeProjection I)
(psi : EuclideanSpace ℂ I) (hpsi : ‖psi‖ = 1) :
Integrable (fun U => Complex.normSq ((pureDensity psi * rotatedDensity C U).trace))
(Schur.unitaryHaar (Fintype.card I)) ∧
codeAverage C (fun rho => Complex.normSq ((pureDensity psi * rho).trace)) =
(1 + (C.dimension : ℝ)⁻¹) /
((Fintype.card I : ℝ) ^ 2 + (Fintype.card I : ℝ)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P29
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be a nonempty finite type with decidable equality, write , and let consist of an integer and a matrix satisfying , , , and . Let satisfy , and put . For , use the chosen finite enumeration to define , and set . With normalized Haar probability measure on , the real function , where , is integrable and satisfies
The allowed dimensions include , , and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.