Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Fidelity transform and improvement of total root reliability

Open
QAlgorithms.Papers.Independent.Intakethird100.P14.fidelity_transform

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let WWW be any binary-input classical–quantum channel with normalized density outputs, and let W−W^-W− and W+W^+W+ be the actual transforms (14)–(15), including the uniform classical flag for W+W^+W+. For squared fidelity FFF, all of the following hold:

F(W+)=F(W),F(W−)≤2F(W)−F(W),F(W−)≥F(W)≥F(W+),\sqrt{F(W^+)}=F(W),\qquad \sqrt{F(W^-)}\le2\sqrt{F(W)}-F(W),\qquad F(W^-)\ge F(W)\ge F(W^+),F(W+)​=F(W),F(W−)​≤2F(W)​−F(W),F(W−)≥F(W)≥F(W+), F(W−)+F(W+)≤2F(W).\sqrt{F(W^-)}+\sqrt{F(W^+)}\le2\sqrt{F(W)}.F(W−)​+F(W+)​≤2F(W)​.

The last display is the immediate consequence on page 8. The endpoints F(W)=0F(W)=0F(W)=0 and F(W)=1F(W)=1F(W)=1 are included. The final prose on page 12 reverses the last ordering; the formalization retains numbered (23), consistent with F(W+)=F(W)2F(W^+)=F(W)^2F(W+)=F(W)2. These relations control reliability throughout the polarization tree.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P14
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakethird100.P14

open Filter MeasureTheory

open scoped ENNReal NNReal ComplexOrder BigOperators

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33 (IsDensity)

open QAlgorithms.Papers.Independent.Dependency50.P13 (compression)

open QAlgorithms.Papers.Independent.Renew46.P44 (wordOutput)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Proposition 9, (21)–(23), PDF p.7, and consequence p.8; proof pp.11–12.
The last prose inequality on p.12 is reversed; we retain numbered (23), as
also fixed by F(W+)=F(W)^2. Endpoints F=0 and F=1 are included. -/
theorem fidelity_transform {I : Type} (W : Bit → OutputCoefficients I) (hW : IsBinaryCqChannel W) :
    Real.sqrt (squaredCqFidelity (channelPlus W)) = squaredCqFidelity W ∧
    Real.sqrt (squaredCqFidelity (channelMinus W)) ≤
      2 * Real.sqrt (squaredCqFidelity W) - squaredCqFidelity W ∧
    squaredCqFidelity W ≤ squaredCqFidelity (channelMinus W) ∧
    squaredCqFidelity (channelPlus W) ≤ squaredCqFidelity W ∧
    Real.sqrt (squaredCqFidelity (channelMinus W)) + Real.sqrt (squaredCqFidelity (channelPlus W)) ≤
      2 * Real.sqrt (squaredCqFidelity W) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P14

end
Source
Polar codes for classical-quantum channels, arXiv:1109.2591v3, PDF p. 7, Proposition 9: fidelity transformation
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let III be any type and let WbW_bWb​, b∈F2b\in\mathbb F_2b∈F2​, be density coefficient arrays: each has a countable expansion Wb(i,j)=∑rur(i)vr(j)‾W_b(i,j)=\sum_r u_r(i)\overline{v_r(j)}Wb​(i,j)=∑r​ur​(i)vr​(j)​ with ur,vr∈ℓ2(I;C)u_r,v_r\in\ell^2(I;\mathbb C)ur​,vr​∈ℓ2(I;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, all finite quadratic forms are real and nonnegative, and the real diagonal is summable with sum 111. For any array XXX, let O(X)O(X)O(X) be a chosen bounded operator with those coordinate coefficients if one exists, and 000 otherwise. For any bounded operator TTT, let R(T)R(T)R(T) be a chosen positive bounded square root if one exists, and 000 otherwise. Put tr⁡bT=∑j(Tej)j\operatorname{tr}_bT=\sum_j(Te_j)_jtrb​T=∑j​(Tej​)j​, using the total infinite sum, and define

F(V)=[Re⁡tr⁡bR ⁣(R(O(V0)) O(V1) R(O(V0)))]2F(V)=\left[\operatorname{Re}\operatorname{tr}_b R\!\left(R(O(V_0))\,O(V_1)\,R(O(V_0))\right)\right]^2F(V)=[Retrb​R(R(O(V0​))O(V1​)R(O(V0​)))]2

for a binary array VVV. Define Wb−((a1,a2),(c1,c2))=12∑d∈F2Wb+d(a1,c1)Wd(a2,c2)W_b^-((a_1,a_2),(c_1,c_2))=\tfrac12\sum_{d\in\mathbb F_2}W_{b+d}(a_1,c_1)W_d(a_2,c_2)Wb−​((a1​,a2​),(c1​,c2​))=21​∑d∈F2​​Wb+d​(a1​,c1​)Wd​(a2​,c2​), and define Wd+((b,(a1,a2)),(b′,(c1,c2)))=1b=b′12Wb+d(a1,c1)Wd(a2,c2)W_d^+((b,(a_1,a_2)),(b',(c_1,c_2)))=\mathbf1_{b=b'}\tfrac12W_{b+d}(a_1,c_1)W_d(a_2,c_2)Wd+​((b,(a1​,a2​)),(b′,(c1​,c2​)))=1b=b′​21​Wb+d​(a1​,c1​)Wd​(a2​,c2​), with bit addition modulo 222. Then

F(W+)=F(W),F(W−)≤2F(W)−F(W),F(W)≤F(W−),F(W+)≤F(W),F(W−)+F(W+)≤2F(W).\sqrt{F(W^+)}=F(W),\qquad \sqrt{F(W^-)}\le2\sqrt{F(W)}-F(W),\qquad F(W)\le F(W^-),\qquad F(W^+)\le F(W), \qquad \sqrt{F(W^-)}+\sqrt{F(W^+)}\le2\sqrt{F(W)}.F(W+)​=F(W),F(W−)​≤2F(W)​−F(W),F(W)≤F(W−),F(W+)≤F(W),F(W−)​+F(W+)​≤2F(W)​.

All five conclusions hold simultaneously. No countability or finite-dimensionality assumption on III is made; a basis trace is assigned the value 000 when its coefficient family is not summable.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me