Case 3 / Appendix B: random covariant code fidelity bound, Eq.(7)
OpenQAlgorithms.Papers.Independent.Extend50.P29.random_covariant_code_fidelityLet be finite, , and . Use the left regular action on each -dimensional register. Sample a Haar unit vector and set , where is the explicit invariant-orbit isometry. Reshape as , and on the full-rank locus set and encode by . For fixed erased physical mode , use the Appendix B Schmidt decoder, including replacement of that mode by . Let be its minimum root fidelity over all normalized logical input states. Then is positive definite almost surely, and
The probability is evaluated on the full-rank locus with its original, unrenormalized Haar law. Real powers and the natural logarithm are used. This is a fixed-erasure estimate, with no simultaneous minimum over erased sites.
Formalization Note The code uses , , and the equivalent recovered-channel formula from Appendix B. The printed B8 proof's unresolved prefactor issue is recorded in the audit.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P29
noncomputable section
open MeasureTheory MeasureTheory.Measure
open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator
attribute [local instance] Classical.propDecidable Classical.decEq
namespace QAlgorithms.Papers.Independent.Extend50.P29
open QAlgorithms.Papers.Independent.Information100.P32 (evolution)
open QAlgorithms.Papers.Independent.Next46.P39 (inverseSqrt rectAct)
open QAlgorithms.Papers.Independent.Support21.P09 (groupLeftRegular)
/-- PDF p.5, Eq.(7), with Appendix B pp.8--13: the exact printed strict
failure event for the Haar-orbit/polar construction. Here n=r+2≥3, the domain
of the Schmidt decoder using physical modes 2 and 3. The n≥5 condition on p.5
concerns asymptotic usefulness, not the domain of Eq.(7). The law on
the full-rank locus is NOT renormalized; full rank almost surely is a conclusion.
This is a fixed erased output, not a simultaneous bound over n erasures.
The reversed event printed at the end of p.13 is corrected using p.5. -/
theorem random_covariant_code_fidelity
(G : Type) [Group G] [Fintype G] (r : ℕ) (hr : 1 ≤ r) :
let d : ℝ := Fintype.card G
let n : ℝ := (r : ℝ) + 2
((invariantSampleLaw G (r + 2)) {φ |
((reshapedEncoder (randomInvariant (r + 2) φ))ᴴ *
reshapedEncoder (randomInvariant (r + 2) φ)).PosDef}) = 1 ∧
((invariantSampleLaw G (r + 2)) {φ |
((reshapedEncoder (randomInvariant (r + 2) φ))ᴴ *
reshapedEncoder (randomInvariant (r + 2) φ)).PosDef ∧
worstRootFidelity (pairMarginal (randomInvariant (r + 2) φ)) <
1 - Real.rpow d ((9 - 2 * n) / 8)}).toReal ≤
Real.exp (-(d ^ 2 / 216) *
(Real.rpow d ((2 * n - 8) / 4) -
432 * Real.log (30 * Real.rpow d ((7 + 2 * n) / 8)))) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P29
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every finite group and every natural number , put , , and , with regarded as real numbers in the bound below. Let be the probability law on obtained by applying a Haar-distributed unitary matrix to the first standard basis vector. Fix the enumeration used to identify these coordinates. For each sampled vector , define a vector on by
define the rectangular matrix , with rows indexed by and columns by , by , and define the matrix on by
For such a matrix , write , set , where the inverse square root is defined by spectral functional calculus and takes value at a zero eigenvalue, and define
where , is the positive spectral square root, and denotes ordinary transpose in the indicated coordinate bases. The declaration asserts both
and
where the probability in the second inequality is read as a real number and is the natural logarithm. The quantification includes and the trivial group ; for the latter, the strict threshold in the second event is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.