Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9: rotationally invariant density half-to-half bounds

Open
QAlgorithms.Papers.Independent.Intake100.P61.rotationalDensity_half_tails

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

prove2quantum

Let n>0n>0n>0 and let QQQ be a measurable probability density on R4n×R4n\mathbb R^{4n}\times\mathbb R^{4n}R4n×R4n whose law is invariant under (X,Y)↦(OX,OTY)(X,Y)\mapsto(OX,O^TY)(X,Y)↦(OX,OTY) for every real orthogonal OOO. Write X=(X1,X2)X=(X_1,X_2)X=(X1​,X2​) and Y=(Y1,Y2)Y=(Y_1,Y_2)Y=(Y1​,Y2​) in 2n2n2n-coordinate halves. For 0<ϵ<10<\epsilon<10<ϵ<1 with ln⁡(2/ϵ)/(2n)≤0.05\ln(2/\epsilon)/(2n)\le0.05ln(2/ϵ)/(2n)≤0.05, put t=ln⁡(2/ϵ)/(2n)t=\sqrt{\ln(2/\epsilon)/(2n)}t=ln(2/ϵ)/(2n)​. Then

Pr⁡[∥X2∥2≥(1+5t)∥X1∥2]≤ϵ,Pr⁡[∥Y2∥2≥(1+5t)∥Y1∥2]≤ϵ,Pr⁡[⟨X2,Y2⟩≤⟨X1,Y1⟩−92t(∥X1∥2+∥Y1∥2)]≤2ϵ,Pr⁡[∥X2∥2≤(1−4t)∥X1∥2]≤ϵ,Pr⁡[∥Y2∥2≤(1−4t)∥Y1∥2]≤ϵ.\begin{aligned} \Pr[\|X_2\|^2\ge(1+5t)\|X_1\|^2]&\le\epsilon,\\ \Pr[\|Y_2\|^2\ge(1+5t)\|Y_1\|^2]&\le\epsilon,\\ \Pr[\langle X_2,Y_2\rangle\le\langle X_1,Y_1\rangle-\tfrac92t(\|X_1\|^2+\|Y_1\|^2)]&\le2\epsilon,\\ \Pr[\|X_2\|^2\le(1-4t)\|X_1\|^2]&\le\epsilon,\\ \Pr[\|Y_2\|^2\le(1-4t)\|Y_1\|^2]&\le\epsilon. \end{aligned}Pr[∥X2​∥2≥(1+5t)∥X1​∥2]Pr[∥Y2​∥2≥(1+5t)∥Y1​∥2]Pr[⟨X2​,Y2​⟩≤⟨X1​,Y1​⟩−29​t(∥X1​∥2+∥Y1​∥2)]Pr[∥X2​∥2≤(1−4t)∥X1​∥2]Pr[∥Y2​∥2≤(1−4t)∥Y1​∥2]​≤ϵ,≤ϵ,≤2ϵ,≤ϵ,≤ϵ.​

The final two bounds are supporting conclusions displayed in the proof. The literal real symmetry is retained; no implication from the physical passive unitary twirl is asserted. The density condition excludes atoms at the all-zero pair.

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.22, Lemma 9 (E14–E16), including supporting E18–E19.
Q is an actual probability density. The coefficient in E16 is 9/2;
the erroneous intermediate E17 is not assumed. -/
theorem rotationalDensity_half_tails
    (n : ℕ) (hn : 0 < n)
    (q : ((Fin (4 * n) → ℝ) × (Fin (4 * n) → ℝ)) → ℝ≥0∞)
    (hq : Measurable q) [IsProbabilityMeasure (pairDensityLaw n q)]
    (hinv : ∀ O : Matrix.unitaryGroup (Fin (4 * n)) ℝ,
      Measure.map (transposeRotation O) (pairDensityLaw n q) = pairDensityLaw n q)
    (epsilon : ℝ) (heps : 0 < epsilon) (heps1 : epsilon < 1)
    (hregime : Real.log (2 / epsilon) / (2 * n) ≤ 0.05) :
    let law := pairDensityLaw n q
    let t := Real.sqrt (Real.log (2 / epsilon) / (2 * n))
    let first := fun v : Fin (4 * n) → ℝ => firstCoordinates (2 * n) v
    let second := fun v : Fin (4 * n) → ℝ => v - first v
    law {v | vectorSquare (second v.1) ≥ (1 + 5 * t) * vectorSquare (first v.1)} ≤
      ENNReal.ofReal epsilon ∧
    law {v | vectorSquare (second v.2) ≥ (1 + 5 * t) * vectorSquare (first v.2)} ≤
      ENNReal.ofReal epsilon ∧
    law {v | realDot (second v.1) (second v.2) ≤ realDot (first v.1) (first v.2) -
      (9 / 2 : ℝ) * t * (vectorSquare (first v.1) + vectorSquare (first v.2))} ≤
      ENNReal.ofReal (2 * epsilon) ∧
    law {v | vectorSquare (second v.1) ≤ (1 - 4 * t) * vectorSquare (first v.1)} ≤
      ENNReal.ofReal epsilon ∧
    law {v | vectorSquare (second v.2) ≤ (1 - 4 * t) * vectorSquare (first v.2)} ≤
      ENNReal.ofReal epsilon := 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. 22, Lemma 9, E14–E16 and E18–E19
Read-back

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

Let nnn be a positive natural number and let q:R4n×R4n→[0,∞]q:\mathbb R^{4n}\times\mathbb R^{4n}\to[0,\infty]q:R4n×R4n→[0,∞] be measurable. Suppose that ν(B)=∫Bq(v) dv\nu(B)=\int_Bq(v)\,dvν(B)=∫B​q(v)dv is a probability measure and that, for every real orthogonal matrix O∈O(4n)O\in O(4n)O∈O(4n), its pushforward under (v,w)↦(Ov,OTw)(v,w)\mapsto(Ov,O^{\mathsf T}w)(v,w)↦(Ov,OTw) equals ν\nuν. Let 0<ϵ<10<\epsilon<10<ϵ<1 satisfy log⁡(2/ϵ)/(2n)≤0.05\log(2/\epsilon)/(2n)\le0.05log(2/ϵ)/(2n)≤0.05, and set t=log⁡(2/ϵ)/(2n)t=\sqrt{\log(2/\epsilon)/(2n)}t=log(2/ϵ)/(2n)​. For v∈R4nv\in\mathbb R^{4n}v∈R4n, let FvFvFv retain its first 2n2n2n coordinates and zero the rest, let Lv=v−FvLv=v-FvLv=v−Fv, and write S(v)=∑ivi2S(v)=\sum_i v_i^2S(v)=∑i​vi2​ and v⋅w=∑iviwiv\cdot w=\sum_i v_iw_iv⋅w=∑i​vi​wi​. Then all five bounds hold:

ν{(v,w):S(Lv)≥(1+5t)S(Fv)}≤ϵ,ν{(v,w):S(Lw)≥(1+5t)S(Fw)}≤ϵ,ν{(v,w):(Lv)⋅(Lw)≤(Fv)⋅(Fw)−92t(S(Fv)+S(Fw))}≤2ϵ,ν{(v,w):S(Lv)≤(1−4t)S(Fv)}≤ϵ,ν{(v,w):S(Lw)≤(1−4t)S(Fw)}≤ϵ.\begin{aligned} \nu\{(v,w):S(Lv)&\ge(1+5t)S(Fv)\}\le\epsilon,\\ \nu\{(v,w):S(Lw)&\ge(1+5t)S(Fw)\}\le\epsilon,\\ \nu\{(v,w):(Lv)\cdot(Lw)&\le(Fv)\cdot(Fw) -\tfrac92t\bigl(S(Fv)+S(Fw)\bigr)\}\le2\epsilon,\\ \nu\{(v,w):S(Lv)&\le(1-4t)S(Fv)\}\le\epsilon,\\ \nu\{(v,w):S(Lw)&\le(1-4t)S(Fw)\}\le\epsilon. \end{aligned}ν{(v,w):S(Lv)ν{(v,w):S(Lw)ν{(v,w):(Lv)⋅(Lw)ν{(v,w):S(Lv)ν{(v,w):S(Lw)​≥(1+5t)S(Fv)}≤ϵ,≥(1+5t)S(Fw)}≤ϵ,≤(Fv)⋅(Fw)−29​t(S(Fv)+S(Fw))}≤2ϵ,≤(1−4t)S(Fv)}≤ϵ,≤(1−4t)S(Fw)}≤ϵ.​

The inequalities defining the events include equality, and the measure bounds are interpreted in the extended nonnegative reals. No pointwise nonzero condition is imposed on either vector. The parameter assumptions cannot be satisfied for 1≤n≤61\le n\le61≤n≤6.

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