Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8: common real half-projection inner-product concentration

Open
QAlgorithms.Papers.Independent.Intake100.P61.haarReal_half_inner_interval

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

prove2quantum

Let n>0n>0n>0, let X,Y∈R4nX,Y\in\mathbb R^{4n}X,Y∈R4n be fixed, and let PPP be a common orthogonal projector onto one Haar-uniform real 2n2n2n-dimensional subspace. For 0≤x≤n/20\le x\le n/20≤x≤n/2, put S=∥X∥2+∥Y∥2S=\|X\|^2+\|Y\|^2S=∥X∥2+∥Y∥2. Then

Pr⁡ ⁣[⟨X,Y⟩−1.85x/n S≤2⟨PX,PY⟩≤⟨X,Y⟩+1.85x/n S]≥1−8e−x.\Pr\!\left[\langle X,Y\rangle-1.85\sqrt{x/n}\,S\le 2\langle PX,PY\rangle\le\langle X,Y\rangle+1.85\sqrt{x/n}\,S\right]\ge1-8e^{-x}.Pr[⟨X,Y⟩−1.85x/n​S≤2⟨PX,PY⟩≤⟨X,Y⟩+1.85x/n​S]≥1−8e−x.

The same projection acts on both vectors, and zero vectors are allowed. The result controls the correlation in one virtual half.

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, Lemma 8 (E6): one common real Haar subspace for both vectors.
Zero vectors are included; x has the nonnegative square-root domain. -/
theorem haarReal_half_inner_interval
    (n : ℕ) (hn : 0 < n) (X Y : Fin (4 * n) → ℝ)
    (mu : Measure (Matrix.unitaryGroup (Fin (4 * n)) ℝ))
    [IsProbabilityMeasure mu] [Measure.IsMulLeftInvariant mu]
    (x : ℝ) (hx : 0 ≤ x) (hxmax : x ≤ (n : ℝ) / 2) :
    ENNReal.ofReal (1 - 8 * Real.exp (-x)) ≤
      mu {U | realDot X Y - 1.85 * Real.sqrt (x / n) *
          (vectorSquare X + vectorSquare Y) ≤
          2 * realDot (halfProjection U (2 * n) X) (halfProjection U (2 * n) Y) ∧
        2 * realDot (halfProjection U (2 * n) X) (halfProjection U (2 * n) Y) ≤
          realDot X Y + 1.85 * Real.sqrt (x / n) *
          (vectorSquare X + vectorSquare Y)} := 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, Lemma 8, E6
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 be arbitrary, and let μ\muμ be a probability measure on the real orthogonal group O(4n)O(4n)O(4n) that is invariant under left multiplication. For every real xxx with 0≤x≤n/20\le x\le n/20≤x≤n/2, write S(v)=∑i=04n−1vi2S(v)=\sum_{i=0}^{4n-1}v_i^2S(v)=∑i=04n−1​vi2​, v⋅w=∑i=04n−1viwiv\cdot w=\sum_{i=0}^{4n-1}v_iw_iv⋅w=∑i=04n−1​vi​wi​, and HUv=UTP2nUvH_Uv=U^{\mathsf T}P_{2n}UvHU​v=UTP2n​Uv, where P2nP_{2n}P2n​ retains the first 2n2n2n coordinates and zeros the rest. Then

max⁡{1−8e−x,0}≤μ ⁣{U:X⋅Y−1.85xn(S(X)+S(Y))≤2(HUX)⋅(HUY)≤X⋅Y+1.85xn(S(X)+S(Y))}.\max\{1-8e^{-x},0\}\le \mu\!\left\{U: X\cdot Y-1.85\sqrt{\frac xn}\bigl(S(X)+S(Y)\bigr) \le2(H_UX)\cdot(H_UY) \le X\cdot Y+1.85\sqrt{\frac xn}\bigl(S(X)+S(Y)\bigr) \right\}.max{1−8e−x,0}≤μ{U:X⋅Y−1.85nx​​(S(X)+S(Y))≤2(HU​X)⋅(HU​Y)≤X⋅Y+1.85nx​​(S(X)+S(Y))}.

The lower bound is interpreted in the extended nonnegative reals. Neither vector is required to be nonzero, and x=0x=0x=0 is allowed; whenever x≤log⁡8x\le\log8x≤log8, the stated lower bound is 000.

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