Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

E11–E12: projected-correlation and complementary-half tails

Open
QAlgorithms.Papers.Independent.Intake100.P61.haarReal_correlation_complement_tails

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n>0n>0n>0 and let X,Y∈R4nX,Y\in\mathbb R^{4n}X,Y∈R4n be fixed with S=∥X∥2+∥Y∥2>0S=\|X\|^2+\|Y\|^2>0S=∥X∥2+∥Y∥2>0. Let PPP be a common Haar-uniform real projector of rank 2n2n2n, and set P⊥=I−PP^\perp=I-PP⊥=I−P. For 0≤x≤n/20\le x\le n/20≤x≤n/2,

Pr⁡[⟨PX,PY⟩≤12⟨X,Y⟩−x/n S]≤4e−x,Pr⁡[∣⟨PX,PY⟩−⟨P⊥X,P⊥Y⟩∣≥2x/n S]≤8e−x.\begin{aligned} \Pr[\langle PX,PY\rangle\le\tfrac12\langle X,Y\rangle-\sqrt{x/n}\,S]&\le4e^{-x},\\ \Pr[|\langle PX,PY\rangle-\langle P^\perp X,P^\perp Y\rangle|\ge2\sqrt{x/n}\,S]&\le8e^{-x}. \end{aligned}Pr[⟨PX,PY⟩≤21​⟨X,Y⟩−x/n​S]Pr[∣⟨PX,PY⟩−⟨P⊥X,P⊥Y⟩∣≥2x/n​S]​≤4e−x,≤8e−x.​

The factor one half multiplies only the full inner product in the first bound. Source correction: the all-zero pair is excluded because the inclusive tail events would otherwise be certain for large xxx. Independent moderation remains pending.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P61
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal Topology

namespace QAlgorithms.Papers.Independent.Intake100.P61

attribute [local instance] Classical.propDecidable Classical.decEq

-- The frozen frequency formula specializes exactly to the source alphabet Fin (2 ^ d).

open QAlgorithms.Papers.Independent.Advance50.P30 (empiricalFrequency)

/-- PDF p.21, E11–E12: common real Haar P and its actual complement I-P.
The all-zero pair is excluded: the inclusive events would be certain while
4 exp(-x) and 8 exp(-x) can be <1. This correction needs independent moderation. -/
theorem haarReal_correlation_complement_tails
    (n : ℕ) (hn : 0 < n) (X Y : Fin (4 * n) → ℝ)
    (hXY : 0 < vectorSquare X + vectorSquare Y)
    (mu : Measure (Matrix.unitaryGroup (Fin (4 * n)) ℝ))
    [IsProbabilityMeasure mu] [Measure.IsMulLeftInvariant mu]
    (x : ℝ) (hx : 0 ≤ x) (hxmax : x ≤ (n : ℝ) / 2) :
    mu {U | realDot (halfProjection U (2 * n) X) (halfProjection U (2 * n) Y) ≤
      (1 / 2 : ℝ) * realDot X Y - Real.sqrt (x / n) *
        (vectorSquare X + vectorSquare Y)} ≤ ENNReal.ofReal (4 * Real.exp (-x)) ∧
    mu {U | |realDot (halfProjection U (2 * n) X) (halfProjection U (2 * n) Y) -
      realDot (X - halfProjection U (2 * n) X) (Y - halfProjection U (2 * n) Y)| ≥
        2 * Real.sqrt (x / n) * (vectorSquare X + vectorSquare Y)} ≤
      ENNReal.ofReal (8 * Real.exp (-x)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P61

end
Source
Composable security proof for continuous-variable quantum key distribution with coherent states, arXiv:1408.5689v3, PDF p. 21, E11–E12
Read-back

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

Let nnn be a positive natural number, let X,Y∈R4nX,Y\in\mathbb R^{4n}X,Y∈R4n, and suppose V=∑i=04n−1Xi2+∑i=04n−1Yi2>0V=\sum_{i=0}^{4n-1}X_i^2+\sum_{i=0}^{4n-1}Y_i^2>0V=∑i=04n−1​Xi2​+∑i=04n−1​Yi2​>0. Let μ\muμ be a Borel probability measure on the real orthogonal group O(4n)O(4n)O(4n) that is invariant under left multiplication. For U∈O(4n)U\in O(4n)U∈O(4n), define HUv=UTP2nUvH_Uv=U^{\mathsf T}P_{2n}UvHU​v=UTP2n​Uv, where P2nP_{2n}P2n​ retains coordinates 0,…,2n−10,\ldots,2n-10,…,2n−1 and sets the remaining coordinates to zero, and write v⋅w=∑iviwiv\cdot w=\sum_i v_iw_iv⋅w=∑i​vi​wi​. For every real xxx with 0≤x≤n/20\le x\le n/20≤x≤n/2, both bounds hold:

μ ⁣{U:(HUX)⋅(HUY)≤12X⋅Y−x/n V}≤4e−x,\mu\!\left\{U:(H_UX)\cdot(H_UY) \le \tfrac12 X\cdot Y-\sqrt{x/n}\,V\right\} \le4e^{-x},μ{U:(HU​X)⋅(HU​Y)≤21​X⋅Y−x/n​V}≤4e−x, μ ⁣{U:∣(HUX)⋅(HUY)−(X−HUX)⋅(Y−HUY)∣≥2x/n V}≤8e−x.\mu\!\left\{U: \left|(H_UX)\cdot(H_UY)-(X-H_UX)\cdot(Y-H_UY)\right| \ge2\sqrt{x/n}\,V\right\} \le8e^{-x}.μ{U:∣(HU​X)⋅(HU​Y)−(X−HU​X)⋅(Y−HU​Y)∣≥2x/n​V}≤8e−x.

The bounds on the right are interpreted as nonnegative extended reals. Either XXX or YYY may be zero, but they cannot both be zero; the allowed values of xxx include both endpoints, in particular x=0x=0x=0.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me