Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — with t the first hit of sin⁻¹√p_M, Approximate RAA(t, γ) leaves a projection of length ≥ 1/√2 − γ on the marked subspace

Proved
QuantumWalkSearch.ApproxRAA.lemma_1

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

amplitude-amplificationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-algorithmsquantum-search

Let ∣π⟩∈H=CX×X|\pi\rangle\in\mathcal H=\mathbb C^{X\times X}∣π⟩∈H=CX×X be a unit vector, M⊆XM\subseteq XM⊆X a marked set, pM=∥ΠM∣π⟩∥2p_M=\|\Pi_M|\pi\rangle\|^2pM​=∥ΠM​∣π⟩∥2 and γ>0\gamma>0γ>0. For i≥1i\ge1i≥1 let RiR_iRi​ be a unitary on H⊗Ki\mathcal H\otimes K_iH⊗Ki​ with

  1. Ri∣π⟩∣0⟩=∣π⟩∣0⟩R_i|\pi\rangle|0\rangle=|\pi\rangle|0\rangleRi​∣π⟩∣0⟩=∣π⟩∣0⟩, and
  2. ∥(Ri+Id)∣ψ⟩∣0⟩∥≤βi∥ψ∥\|(R_i+\mathrm{Id})|\psi\rangle|0\rangle\|\le\beta_i\|\psi\|∥(Ri​+Id)∣ψ⟩∣0⟩∥≤βi​∥ψ∥ for every ∣ψ⟩⊥∣π⟩|\psi\rangle\perp|\pi\rangle∣ψ⟩⊥∣π⟩, where βi=184π3γi2\beta_i=\frac{18}{4\pi^3}\frac{\gamma}{i^2}βi​=4π318​i2γ​.

Let ttt be the smallest non-negative integer such that 3tsin⁡−1pM∈[π/4,3π/4]3^t\sin^{-1}\sqrt{p_M}\in[\pi/4,3\pi/4]3tsin−1pM​​∈[π/4,3π/4]. Then Approximate RAA(t,γ)(t,\gamma)(t,γ) maps ∣π⟩∣0S⟩|\pi\rangle|0^S\rangle∣π⟩∣0S⟩ to a state whose projection on the marked subspace M⊗[⨂i=1tKi]\mathcal M\otimes[\bigotimes_{i=1}^tK_i]M⊗[⨂i=1t​Ki​] has length at least 1/2−γ1/\sqrt2-\gamma1/2​−γ:

∥ΠM~ At ∣π⟩∣0S⟩∥ ≥ 12−γ.\big\|\Pi_{\tilde M}\,A_t\,|\pi\rangle|0^S\rangle\big\|\ \ge\ \frac1{\sqrt2}-\gamma .​ΠM~​At​∣π⟩∣0S⟩​ ≥ 2​1​−γ.

This is the version of recursive amplitude amplification in which the reflection about the initial state is only available approximately, with errors that shrink like γ/i2\gamma/i^2γ/i2 across levels; the total error stays of order γ\gammaγ.

Formalization Note The cost clause of the paper ("incurs a cost of order 3t(c1log⁡1/γ+c2)3^t(c_1\log1/\gamma+c_2)3t(c1​log1/γ+c2​)") is not formalized, nor is property 1 of R(β)R(\beta)R(β). The circuits are required only at the precisions β1,β2,…\beta_1,\beta_2,\dotsβ1​,β2​,…, which makes the hypothesis weaker than the paper's "for any β>0\beta>0β>0". The existence of ttt forces pM>0p_M>0pM​>0. The extended space has exactly the ttt registers K1,…,KtK_1,\dots,K_tK1​,…,Kt​.

Preamble
import Mathlib
import Definitions.Def_QuantumWalkSearch_ApproxRAA_Setting
import Definitions.Def_QuantumWalkSearch_ApproxRAA_Circuit
Formal statement
namespace QuantumWalkSearch.ApproxRAA

/-- Lemma 1 (p. 12), exact half. Let `t` be the smallest non-negative integer with
`3^t sin⁻¹ √p_M ∈ [π/4, 3π/4]`. For every `γ > 0`, if the circuits `R i` satisfy properties
2–3 at `β_i = 18γ/(4π³ i²)`, then Approximate RAA(t, γ), on `H ⊗ [⊗_{i=1}^{t} K_i]`, maps
`|π⟩|0^S⟩` to a state whose projection on `M ⊗ [⊗_{i=1}^{t} K_i]` has length at least
`1/√2 − γ`. (The cost clause is not formalized.) -/
theorem lemma_1 {X : Type*} [Fintype X] [DecidableEq X] {κ : ℕ → Type*}
    [∀ i, Fintype (κ i)] [∀ i, DecidableEq (κ i)]
    (M : Finset X) (piState : EuclideanSpace ℂ (X × X)) (hπ : ‖piState‖ = 1)
    (z : ∀ i, κ i) (R : ∀ i, Matrix (X × X × κ i) (X × X × κ i) ℂ) (γ : ℝ) (hγ : 0 < γ)
    (hR : ApproxReflections piState z R γ) (t : ℕ)
    (ht : IsFirstHit (Real.arcsin (Real.sqrt (markedWeight M piState))) t) :
    1 / Real.sqrt 2 - γ ≤ ‖act (markedProj M) (phi M z R piState t t)‖ := by sorry

end QuantumWalkSearch.ApproxRAA
Source
Magniez, Nayak, Roland, Santha, Search via Quantum Walk, arXiv:quant-ph/0608026v4, p. 12, Lemma 1 (proof pp. 12–15)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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