Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Orthogonal programs and the program-dimension lower bound

Open
QAlgorithms.Papers.Independent.Extend50.P43.orthogonal_programs_dimension_bound

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

prove2quantum

Let m,n≥0m,n\geq0m,n≥0 and N≥1N\geq1N≥1 be integers. Let GGG be one fixed unitary on an mmm-qubit data register and an nnn-qubit program register. For each i∈{1,…,N}i\in\{1,\ldots,N\}i∈{1,…,N}, let UiU_iUi​ be a unitary on the data register and let PiP_iPi​ be a normalized program that implements UiU_iUi​ exactly: for every normalized data vector ddd, there is a normalized residual program qi,dq_{i,d}qi,d​ with G(d⊗Pi)=Uid⊗qi,dG(d\otimes P_i)=U_id\otimes q_{i,d}G(d⊗Pi​)=Ui​d⊗qi,d​. Suppose no two UiU_iUi​ differ by multiplication by a complex scalar of modulus one. Then

⟨Pi,Pj⟩=0(i≠j),N≤2n,log⁡2N≤n.\langle P_i,P_j\rangle=0\quad(i\ne j),\qquad N\leq 2^n,\qquad \log_2 N\leq n.⟨Pi​,Pj​⟩=0(i=j),N≤2n,log2​N≤n.

Thus every distinct exact operation, modulo global phase, consumes an orthogonal program direction. The residual program's independence of ddd is not assumed.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P43
Formal statement
namespace QAlgorithms.Papers.Independent.Extend50.P43

open scoped ComplexConjugate

noncomputable section

/-- PDF p.2, Result (model on p.1): programs for pairwise phase-inequivalent
unitaries are orthogonal; N such operations require dimension at least N,
or at least log₂ N program qubits. The positive-N hypothesis guards the log. -/
theorem orthogonal_programs_dimension_bound (m n N : ℕ) (hN : 1 ≤ N)
    (G : Matrix (Qubits m × Qubits n) (Qubits m × Qubits n) ℂ)
    (hG : G ∈ Matrix.unitaryGroup (Qubits m × Qubits n) ℂ)
    (U : Fin N → Matrix (Qubits m) (Qubits m) ℂ)
    (hU : ∀ i, U i ∈ Matrix.unitaryGroup (Qubits m) ℂ)
    (hDistinct : Pairwise (fun i j => ¬ ExactPhaseEquivalent (U i) (U j)))
    (P : Fin N → EuclideanSpace ℂ (Qubits n))
    (hImplements : ∀ i, ImplementsProgramUnitary G (U i) (P i)) :
    (∀ i j, i ≠ j → inner ℂ (P i) (P j) = 0) ∧
      N ≤ 2 ^ n ∧ Real.log (N : ℝ) / Real.log 2 ≤ (n : ℝ) := by sorry

end

end QAlgorithms.Papers.Independent.Extend50.P43
Source
Programmable quantum gate arrays, arXiv:quant-ph/9703032v1, PDF p. 2, Result: orthogonal programs and program-register dimension bound
Read-back

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

For all natural numbers m,n,Nm,n,Nm,n,N with N≥1N\ge1N≥1, let GGG be a unitary complex matrix on C{0,1}m×{0,1}n\mathbb C^{\{0,1\}^m\times\{0,1\}^n}C{0,1}m×{0,1}n, let UiU_iUi​, for 0≤i<N0\le i<N0≤i<N, be unitary complex matrices on C{0,1}m\mathbb C^{\{0,1\}^m}C{0,1}m, and suppose that for every pair of distinct indices i,ji,ji,j there is no complex number zzz with ∣z∣=1|z|=1∣z∣=1 and Ui=zUjU_i=zU_jUi​=zUj​. Let Pi∈C{0,1}nP_i\in\mathbb C^{\{0,1\}^n}Pi​∈C{0,1}n be vectors such that, for every iii, ∥Pi∥2=1\|P_i\|_2=1∥Pi​∥2​=1 and every unit vector d∈C{0,1}md\in\mathbb C^{\{0,1\}^m}d∈C{0,1}m admits a unit vector q∈C{0,1}nq\in\mathbb C^{\{0,1\}^n}q∈C{0,1}n satisfying G(d⊗Pi)=(Uid)⊗qG(d\otimes P_i)=(U_i d)\otimes qG(d⊗Pi​)=(Ui​d)⊗q; this qqq may depend on both iii and ddd, and the tensor product has coordinates (v⊗w)(a,b)=v(a)w(b)(v\otimes w)(a,b)=v(a)w(b)(v⊗w)(a,b)=v(a)w(b). Then

(∀i≠j, ⟨Pi,Pj⟩=0)andN≤2nandlog⁡Nlog⁡2≤n,\bigl(\forall i\ne j,\ \langle P_i,P_j\rangle=0\bigr) \quad\text{and}\quad N\le2^n \quad\text{and}\quad \frac{\log N}{\log2}\le n,(∀i=j, ⟨Pi​,Pj​⟩=0)andN≤2nandlog2logN​≤n,

where the inner product is the standard complex Euclidean inner product and log⁡\loglog is the real natural logarithm. For N=1N=1N=1, the distinctness and orthogonality conditions have no distinct pairs to check. The parameters m,nm,nm,n may be zero: when m=0m=0m=0, the distinctness hypothesis forces N=1N=1N=1, and when n=0n=0n=0, the stated dimension bound forces N=1N=1N=1.

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

    Confirmed by the moderator at approval.

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