Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dyadic approximation of reflections, with the two-zero-coordinate improvement

Proved
QAlgorithms.Papers.Independent.Renew46.P12.reflectionApproximation

by Goku · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

There is an absolute constant B>0B>0B>0 such that, for every n≥1n\ge1n≥1 and 0<ε≤10<\varepsilon\le10<ε≤1, one can choose a nonnegative integer m, independently of the vector below, with

⌈n2⌉≤m≤⌈n2⌉+B(1+log⁡2(1/ε)).\left\lceil\frac n2\right\rceil\le m\le\left\lceil\frac n2\right\rceil+B\bigl(1+\log_2(1/\varepsilon)\bigr).⌈2n​⌉≤m≤⌈2n​⌉+B(1+log2​(1/ε)).

For every normalized vector ∣ψ⟩|\psi\rangle∣ψ⟩ on n qubits, the following assertions hold. All approximating vectors mentioned here are normalized, and each of their coordinates has the form (a+b2+ci+di2)/2m(a+b\sqrt2+ci+di\sqrt2)/2^m(a+b2​+ci+di2​)/2m with integers a,b,c,d that may vary by coordinate.

  1. There are vectors ∣ϕ0⟩,∣ϕ1⟩|\phi_0\rangle,|\phi_1\rangle∣ϕ0​⟩,∣ϕ1​⟩ on one extra qubit and the original register such that
∥Rϕ0Rϕ1−I2⊗Rψ∥Fr≤ε.\|R_{\phi_0}R_{\phi_1}-I_2\otimes R_\psi\|_{\mathrm{Fr}}\le\varepsilon.∥Rϕ0​​Rϕ1​​−I2​⊗Rψ​∥Fr​≤ε.
  1. If two distinct computational-basis coordinates of ∣ψ⟩|\psi\rangle∣ψ⟩ vanish, there is a vector ∣ϕ⟩|\phi\rangle∣ϕ⟩ on the original register such that
∥Rϕ−Rψ∥Fr≤ε.\|R_\phi-R_\psi\|_{\mathrm{Fr}}\le\varepsilon.∥Rϕ​−Rψ​∥Fr​≤ε.

Here Rv=I−2∣v⟩⟨v∣R_v=I-2|v\rangle\langle v|Rv​=I−2∣v⟩⟨v∣. The first bound compares full operators on both ancillary sectors; the second uses no ancillary qubit. This is an arithmetic approximation guarantee for reflection operators.

Formalization Note The additive 1 in the logarithmic overhead retains integer rounding at ε=1\varepsilon=1ε=1, consistent with the explicit constant overhead on PDF p.3.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P12
Formal statement
namespace QAlgorithms.Papers.Independent.Renew46.P12

noncomputable section

/-- Lemma 3, PDF pp.2–3, both clauses. The exponent is uniform over normalized psi.
General case: two arithmetic reflections approximate the full I_2 tensor R_psi.
Two-zero-coordinate case: one reflection on the original register suffices.
The additive 1 in the logarithmic overhead records integer rounding at eps=1;
this is the source's asymptotic claim, with its explicit p.3 choice including +5.
The existential conclusion does not depend on the proof's defective signed floor
rounding: truncation toward zero restores the required nonnegative four-square deficit.
This proof correction and the endpoint corrections require independent moderation. -/
theorem reflectionApproximation :
    ∃ C : ℝ, 0 < C ∧ ∀ n : ℕ, 1 ≤ n →
      ∀ eps : ℝ, 0 < eps → eps ≤ 1 →
      ∃ m : ℕ, (n + 1) / 2 ≤ m ∧
        (m : ℝ) ≤ (((n + 1) / 2 : ℕ) : ℝ) +
          C * (1 + Real.log (1 / eps) / Real.log 2) ∧
      ∀ psi : EuclideanSpace ℂ (Qubits n), IsState psi →
        (∃ phi0 phi1 : EuclideanSpace ℂ (Bool × Qubits n),
          IsState phi0 ∧ IsState phi1 ∧
          (∀ z, HasDenominator 2 m (phi0 z)) ∧
          (∀ z, HasDenominator 2 m (phi1 z)) ∧
          frobNorm (householderReflection phi0 * householderReflection phi1 - identityExtension (householderReflection psi)) ≤ eps) ∧
        ((∃ j l : Qubits n, j ≠ l ∧ psi j = 0 ∧ psi l = 0) →
          ∃ phi : EuclideanSpace ℂ (Qubits n), IsState phi ∧
            (∀ z, HasDenominator 2 m (phi z)) ∧
            frobNorm (householderReflection phi - householderReflection psi) ≤ eps) := by sorry

end

end QAlgorithms.Papers.Independent.Renew46.P12
Source
Synthesis of unitaries with Clifford+T circuits, arXiv:1306.3200v1, PDF p. 2, Lemma 3 (proof continues on PDF p.3)
Read-back

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

There exists a real constant C>0C>0C>0 such that, for every natural number n≥1n\ge1n≥1 and every real ε\varepsilonε with 0<ε≤10<\varepsilon\le10<ε≤1, there exists a natural number mmm, chosen independently of the vector below, satisfying

⌊n+12⌋≤m≤⌊n+12⌋+C(1+log⁡(1/ε)log⁡2),\left\lfloor\frac{n+1}{2}\right\rfloor\le m \le \left\lfloor\frac{n+1}{2}\right\rfloor+ C\left(1+\frac{\log(1/\varepsilon)}{\log 2}\right),⌊2n+1​⌋≤m≤⌊2n+1​⌋+C(1+log2log(1/ε)​),

with the following properties for every complex vector ψ\psiψ indexed by the set Bn={0,1}nB_n=\{0,1\}^nBn​={0,1}n of nnn-bit strings and satisfying ∥ψ∥2=1\|\psi\|_2=1∥ψ∥2​=1. For a vector vvv on a finite index set, define H(v)ij=δij−2vivj‾H(v)_{ij}=\delta_{ij}-2v_i\overline{v_j}H(v)ij​=δij​−2vi​vj​​, and for a matrix AAA on BnB_nBn​, define its extension A~\widetilde AA on {0,1}×Bn\{0,1\}\times B_n{0,1}×Bn​ by A~(b,i),(c,j)=δbcAij\widetilde A_{(b,i),(c,j)}=\delta_{bc}A_{ij}A(b,i),(c,j)​=δbc​Aij​. There exist vectors ϕ0,ϕ1\phi_0,\phi_1ϕ0​,ϕ1​ indexed by {0,1}×Bn\{0,1\}\times B_n{0,1}×Bn​, each of Euclidean norm 111, such that every coordinate of each vector has the form

a+b2+i(c+d2)2m,a,b,c,d∈Z,\frac{a+b\sqrt2+\mathrm{i}(c+d\sqrt2)}{2^m}, \qquad a,b,c,d\in\mathbb Z,2ma+b2​+i(c+d2​)​,a,b,c,d∈Z,

where the integers may depend on the coordinate and the vector, and

∥H(ϕ0)H(ϕ1)−H(ψ)~∥F≤ε.\bigl\|H(\phi_0)H(\phi_1)-\widetilde{H(\psi)}\bigr\|_F\le\varepsilon.​H(ϕ0​)H(ϕ1​)−H(ψ)​​F​≤ε.

Moreover, if there exist two distinct strings j,l∈Bnj,l\in B_nj,l∈Bn​ with ψj=ψl=0\psi_j=\psi_l=0ψj​=ψl​=0, then there exists a vector ϕ\phiϕ indexed by BnB_nBn​ of Euclidean norm 111, every coordinate of which has the same displayed integer form with the same exponent mmm, such that

∥H(ϕ)−H(ψ)∥F≤ε.\|H(\phi)-H(\psi)\|_F\le\varepsilon.∥H(ϕ)−H(ψ)∥F​≤ε.

Here ∥A∥F=(∑i,j∣Aij∣2)1/2\|A\|_F=(\sum_{i,j}|A_{ij}|^2)^{1/2}∥A∥F​=(∑i,j​∣Aij​∣2)1/2 is the Frobenius norm, and log⁡\loglog is the natural logarithm. The additional conclusion is conditional on the two zero coordinates; when n=1n=1n=1, no unit vector satisfies that condition.

Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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