Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fact 1 — the error operator Eᵢ = Rᵢ − ref(φ_{i−1}) kills |φ_{i−1}⟩ and has norm ≤ βᵢ on states with clean registers K_i, …, K_T

Proved
QuantumWalkSearch.ApproxRAA.fact_1

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

amplitude-amplificationerror-analysisp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-algorithms

Let ∣π⟩∈H|\pi\rangle\in\mathcal H∣π⟩∈H be a unit vector, let γ>0\gamma>0γ>0 be the precision parameter, βi=184π3γ/i2\beta_i=\frac{18}{4\pi^3}\gamma/i^2βi​=4π318​γ/i2, and let the circuits RiR_iRi​ be unitary with Ri∣π⟩∣0⟩=∣π⟩∣0⟩R_i|\pi\rangle|0\rangle=|\pi\rangle|0\rangleRi​∣π⟩∣0⟩=∣π⟩∣0⟩ and ∥(Ri+Id)∣ψ⟩∣0⟩∥≤βi∥ψ∥\|(R_i+\mathrm{Id})|\psi\rangle|0\rangle\|\le\beta_i\|\psi\|∥(Ri​+Id)∣ψ⟩∣0⟩∥≤βi​∥ψ∥ for ⟨π∣ψ⟩=0\langle\pi|\psi\rangle=0⟨π∣ψ⟩=0. Consider Approximate RAA with TTT registers, and for 1≤i≤T1\le i\le T1≤i≤T let Ei=Ri−ref(φi−1)E_i=R_i-\mathrm{ref}(\varphi_{i-1})Ei​=Ri​−ref(φi−1​) be its error operator at level iii. Then

  1. Ei∣φi−1⟩=0E_i|\varphi_{i-1}\rangle=0Ei​∣φi−1​⟩=0, and
  2. for every vector v=∣ψ⟩∣0Si⟩v=|\psi\rangle|0^{S_i}\ranglev=∣ψ⟩∣0Si​⟩, where ∣ψ⟩∈H⊗[⨂j=1i−1Kj]|\psi\rangle\in\mathcal H\otimes[\bigotimes_{j=1}^{i-1}K_j]∣ψ⟩∈H⊗[⨂j=1i−1​Kj​] and the registers Ki,…,KTK_i,\dots,K_TKi​,…,KT​ are in ∣0⟩|0\rangle∣0⟩, with v⊥∣φi−1⟩v\perp|\varphi_{i-1}\ranglev⊥∣φi−1​⟩,
∥Ei v∥≤βi ∥v∥.\|E_i\,v\|\le\beta_i\,\|v\|.∥Ei​v∥≤βi​∥v∥.

The fact says that steps 3–5 of Approximate RAA implement the ideal reflection ref(φi−1)\mathrm{ref}(\varphi_{i-1})ref(φi−1​) up to error βi\beta_iβi​ on the states the algorithm can reach; it is the input of the one-level amplitude bound.

Formalization Note The level is indexed by ii=i−1ii=i-1ii=i−1 (a Fin T), and the condition "Ki,…,KTK_i,\dots,K_TKi​,…,KT​ are in ∣0⟩|0\rangle∣0⟩" says that vvv vanishes on every basis state in which some register of 000-based index j≥iij\ge iij≥ii is not zero. The bound is the homogeneous form of the paper's "≤βi\le\beta_i≤βi​" for states.

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

/-- Fact 1 (p. 12). For a precision parameter `γ > 0` and step `i = ii + 1` of Approximate
RAA with `T` registers, the error
operator `E_i = R_i − ref(φ_{i−1})` satisfies
1. `E_i |φ_{i−1}⟩ = 0`;
2. `‖E_i v‖ ≤ β_i ‖v‖` for every `v = |ψ⟩|0^{S_i}⟩` (the registers `K_i, …, K_T`, 0-based
   indices `j ≥ ii`, are all zero) orthogonal to `|φ_{i−1}⟩`. -/
theorem fact_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 : ℕ) (ii : Fin T) :
    act (errOp M z R piState T ii) (phi M z R piState T ii.val) = 0 ∧
    ∀ v : EuclideanSpace ℂ (X × X × Regs κ T),
      (∀ p : X × X × Regs κ T, (∃ j : Fin T, ii ≤ j ∧ p.2.2 j ≠ z (j.val + 1)) → v p = 0) →
      inner ℂ (phi M z R piState T ii.val) v = 0 →
      ‖act (errOp M z R piState T ii) v‖ ≤ beta γ (ii.val + 1) * ‖v‖ := by sorry

end QuantumWalkSearch.ApproxRAA
Source
Magniez, Nayak, Roland, Santha, Search via Quantum Walk, arXiv:quant-ph/0608026v4, p. 12, Fact 1 (proof of Lemma 1)
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