Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.3: tridiagonal circuit with no deletion flag (63)

Open
QAlgorithms.Papers.Independent.Extend50.P44.tridiagonalNoDeletion

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

prove2quantum

Let N=2nN=2^nN=2n and let AAA be the symmetric tridiagonal matrix specified by real diagonal/interleaved adjacent values. Define its padded table by setting the last slot a2N−1=0a_{2N-1}=0a2N−1​=0, and assume Ma>0M_a>0Ma​>0. There are fixed label permutations for which circuit (63), containing H3 on the three supported states and the data loader but no range oracle or deletion flag, satisfies

(⟨0∣⊗I)U(∣0⟩⊗I)=A/(3Ma).(\langle0|\otimes I)U(|0\rangle\otimes I)=A/(3M_a).(⟨0∣⊗I)U(∣0⟩⊗I)=A/(3Ma​).

It has three physical flags and 2N2N2N padded loading slots. The zero sentinel is constructed from the input table, not supplied by a separate hypothesis about an unrelated value. This removes the range-deletion qubit from the preceding construction.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P44
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P44

open scoped BigOperators ComplexConjugate Matrix

open QAlgorithms.Papers.Independent.Frontier18.P11 (complexMatrix)

open QAlgorithms.Papers.Independent.Information100.P34 (permutationMatrix)

open QAlgorithms.Papers.Independent.Next46.P21 (tCount)

variable {n s d m : ℕ}

/-- PDF p.16, (63): the fixed zero sentinel removes range deletion entirely.
H3 remains supported on 00,01,11 and only three flag qubits remain. -/
theorem tridiagonalNoDeletion (n : ℕ) :
    ∃ B : Scheme n 2 (n + 1) 1, TridiagonalLabels B ∧
      loadingCost (baseLoadingSchedule (2 * 2 ^ n)) = 2 * 2 ^ n ∧
      Fintype.card (Bool × Fin 4) = 2 ^ 3 ∧
      ∀ a : Fin (2 * 2 ^ n - 1) → ℝ, 0 < tableMax (triTable n a) →
        B.matrix (triTable n a) = tridiagonal n a ∧
        QAlgorithms.IsBlockEncoding (false, 0) (B.simpleCircuit (triTable n a))
          (3 * tableMax (triTable n a)) 0 (tridiagonal n a) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P44

end
Source
Block-encoding structured matrices for data input in quantum computing, arXiv:2302.10949v2, PDF p. 16, §3.3: tridiagonal circuit with no deletion flag (63)
Read-back

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

For every natural number nnn, including zero, put N=2nN=2^nN=2n and [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}. There exists a scheme BBB with parameter balance (n+1)+1=2+n(n+1)+1=2+n(n+1)+1=2+n, column and row bijections c,r:[2N]×[2]→[4]×[N]c,r:[2N]\times[2]\to[4]\times[N]c,r:[2N]×[2]→[4]×[N], both slot sets {0,1,3}\{0,1,3\}{0,1,3}, and unitary slot matrices Hc,HrH_c,H_rHc​,Hr​ with zeroth column 1/31/\sqrt31/3​ on those slots and zero at slot 222. Valid labels map into their slot sets and are uniquely determined by their column and row output coordinates together; validity of (u,t)(u,t)(u,t) is exactly the negation of (u even and t=1)(u\text{ even and }t=1)(u even and t=1) or u=2N−1u=2N-1u=2N−1, and valid labels satisfy

r(u,t)2=(⌊u/2⌋+t) mod N,c(u,t)2=(⌊u/2⌋+{u mod 2,t=0,0,t=1) mod N.r(u,t)_2=(\lfloor u/2\rfloor+t)\bmod N,\qquad c(u,t)_2= \left(\lfloor u/2\rfloor+ \begin{cases}u\bmod2,&t=0,\\0,&t=1\end{cases}\right)\bmod N.r(u,t)2​=(⌊u/2⌋+t)modN,c(u,t)2​=(⌊u/2⌋+{umod2,0,​t=0,t=1​)modN.

The loading schedule [2N][2N][2N] has sum 2N2N2N, and one Boolean flag together with a slot in [4][4][4] gives an ancillary index set of cardinality 232^323. For every real table a:[2N−1]→Ra:[2N-1]\to\mathbb Ra:[2N−1]→R, let a~\widetilde aa be its extension to [2N][2N][2N] with last entry zero, and assume A=max⁡u∣a~u∣>0A=\max_u|\widetilde a_u|>0A=maxu​∣au​∣>0. The scheme matrix, obtained by summing a~u\widetilde a_uau​ over valid labels with given row and column output coordinates, equals the matrix KKK with diagonal entries Kii=a2iK_{ii}=a_{2i}Kii​=a2i​, adjacent off-diagonal entries Kij=a2min⁡(i,j)+1K_{ij}=a_{2\min(i,j)+1}Kij​=a2min(i,j)+1​ when ∣i−j∣=1|i-j|=1∣i−j∣=1, and all other entries zero. Define R(q)=(q−i1−q2−i1−q2q)R(q)=\bigl(\begin{smallmatrix}q&-\mathrm i\sqrt{1-q^2}\\-\mathrm i\sqrt{1-q^2}&q\end{smallmatrix}\bigr)R(q)=(q−i1−q2​​−i1−q2​q​). Apply HcH_cHc​ to the slot, then c−1c^{-1}c−1, then R(a~u/A)R(\widetilde a_u/A)R(au​/A) to a single Boolean flag for every label, then rrr, then Hr†H_r^\daggerHr†​. The resulting matrix UUU is unitary and satisfies

3A U((false,0),i),((false,0),j)=Kijfor every i,j∈[N].3A\,U_{((\mathrm{false},0),i),((\mathrm{false},0),j)}=K_{ij} \quad\text{for every }i,j\in[N].3AU((false,0),i),((false,0),j)​=Kij​for every i,j∈[N].

This circuit definition uses the rotations at invalid labels as well.

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