Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9.1, p. 26 — if 2ℓ < d⊥ then ⟨P̃(f)|P̃(f)⟩ = ‖w‖²

Proved
DQI.Semicircle.lemma_9_1

by mikedeng1 · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

coding-theorydecoded-quantum-interferometryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let ppp be prime, B∈Fpm×nB\in\mathbb F_p^{m\times n}B∈Fpm×n​ with m>nm>nm>n, and ∣Fi∣=r|F_i|=r∣Fi​∣=r for all iii with 1≤r≤p−11\le r\le p-11≤r≤p−1. Let ℓ≥0\ell\ge0ℓ≥0 and w∈Rℓ+1\mathbf w\in\mathbb R^{\ell+1}w∈Rℓ+1. If every nonzero codeword of C⊥={d∈Fpm:BTd=0}C^\perp=\{\mathbf d\in\mathbb F_p^m: B^T\mathbf d=0\}C⊥={d∈Fpm​:BTd=0} has Hamming weight greater than 2ℓ2\ell2ℓ (that is, 2ℓ<d⊥2\ell<d^\perp2ℓ<d⊥), then

⟨P~(f)∣P~(f)⟩=∑s∈Fpn∣P~(s)∣2=∥w∥2=∑k=0ℓwk2.\langle\tilde P(f)|\tilde P(f)\rangle=\sum_{\mathbf s\in\mathbb F_p^n}|\tilde P(\mathbf s)|^2=\|\mathbf w\|^2=\sum_{k=0}^\ell w_k^2 .⟨P~(f)∣P~(f)⟩=s∈Fpn​∑​∣P~(s)∣2=∥w∥2=k=0∑ℓ​wk2​.

Together with the unitarity of the Fourier transform this shows that ∑kwk∣P(k)⟩\sum_kw_k|P^{(k)}\rangle∑k​wk​∣P(k)⟩ is normalized exactly when w\mathbf ww is a unit vector.

Formalization Note m>nm>nm>n is the paper's standing assumption; it guarantees a nonzero codeword, so the distance condition forces 2ℓ<m2\ell<m2ℓ<m.

Preamble
import Mathlib
import Definitions.Def_DQI_Semicircle_Setting
Formal statement
namespace DQI.Semicircle

/-- Lemma 9.1, p. 26: if `2ℓ < d^⊥` then `⟨P̃(f)|P̃(f)⟩ = ‖w‖²`. -/
theorem lemma_9_1 (p : ℕ) [Fact p.Prime] (m n : ℕ) (B : Matrix (Fin m) (Fin n) (ZMod p))
    (F : Fin m → Finset (ZMod p)) (r : ℕ) (hF : ∀ i, (F i).card = r) (hr : 1 ≤ r) (hrp : r < p)
    (hnm : n < m) (ℓ : ℕ) (w : Fin (ℓ + 1) → ℝ) (hdist : DistGt B (2 * ℓ)) :
    ∑ s : Fin n → ZMod p, ‖Ptilde B F ℓ w s‖ ^ 2 = ∑ k, w k ^ 2 := by sorry

end DQI.Semicircle
Source
Jordan et al., Optimization by Decoded Quantum Interferometry, arXiv:2408.08292v5, p. 26, Lemma 9.1
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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