Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The four Pattern Rules exhaust all qubit edges and equal Louck

Open
QAlgorithms.Papers.Independent.Intake100.P91.pattern_completeness

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

prove2quantum

Consider any adjacent qubit GT patterns (r,s;a)(r,s;a)(r,s;a) and (R,S;b)(R,S;b)(R,S;b), with nonnegative integral entries satisfying s≤a≤rs\le a\le rs≤a≤r and S≤b≤RS\le b\le RS≤b≤R, connected by the precise addition rule (16). Exactly one top-row entry increases by one. The edge is covered by Rule 1 (s=S=0s=S=0s=S=0), Rule 2 (s=0,S=1s=0,S=1s=0,S=1), Rule 3 (s=S>0s=S>0s=S>0), or Rule 4 (s>0,S=s+1s>0,S=s+1s>0,S=s+1), with R=r+1R=r+1R=r+1 in the first and third cases and R=rR=rR=r in the other cases. In every case b=ab=ab=a or b=a+1b=a+1b=a+1.

Let AAA denote the independent real Louck product, and PPP the following result of column deletion followed by Rule 1 or Rule 2:

P(r,s,a;R,S,b)={(R−b)/(R−s),S=s, a=b,(b−s)/(R−s),S=s, b=a+1,(b−S+1)/(R−S+2),S=s+1, a=b,−(R−b+1)/(R−S+2),S=s+1, b=a+1.P(r,s,a;R,S,b)= \begin{cases} \sqrt{(R-b)/(R-s)},&S=s,\ a=b,\\ \sqrt{(b-s)/(R-s)},&S=s,\ b=a+1,\\ \sqrt{(b-S+1)/(R-S+2)},&S=s+1,\ a=b,\\ -\sqrt{(R-b+1)/(R-S+2)},&S=s+1,\ b=a+1. \end{cases}P(r,s,a;R,S,b)=⎩⎨⎧​(R−b)/(R−s)​,(b−s)/(R−s)​,(b−S+1)/(R−S+2)​,−(R−b+1)/(R−S+2)​,​S=s, a=b,S=s, b=a+1,S=s+1, a=b,S=s+1, b=a+1.​

For every such edge the relevant denominator is positive and

A(r,s,a;R,S,b)=P(r,s,a;R,S,b).A(r,s,a;R,S,b)=P(r,s,a;R,S,b).A(r,s,a;R,S,b)=P(r,s,a;R,S,b).

Thus the rules are universally exhaustive and agree with Louck, including edges out of the empty pattern. No numerical or asymptotic speedup bound is asserted.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P91
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P91

open scoped BigOperators

attribute [local instance] Classical.propDecidable

/-- Appendix A, PDF pp.18-20: the four rules cover EVERY qubit graph edge,
including vacuum edges, and give exactly the independently defined Louck
coefficient. This is universal coverage, without a speedup claim. -/
theorem pattern_completeness (r s a R S b : ℕ) (h : QubitEdge r s a R S b) :
    ((s = 0 ∧ S = 0 ∧ R = r+1) ∨
     (s = 0 ∧ S = 1 ∧ R = r) ∨
     (0 < s ∧ S = s ∧ R = r+1) ∨
     (0 < s ∧ S = s+1 ∧ R = r)) ∧
    (b = a ∨ b = a+1) ∧
    (if S = s then 0 < (R : ℝ) - s else 0 < (R : ℝ) - S + 2) ∧
    qubitLouck r s a R S b = patternAmplitude r s a R S b := by sorry

end QAlgorithms.Papers.Independent.Intake100.P91

end
Source
A Multigraph Approach for Performing the Quantum Schur Transform, arXiv:2204.10694v1, PDF p. 18, Appendix A, pp.18–20; §4.1
Read-back

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

For all natural numbers r,s,a,R,S,br,s,a,R,S,br,s,a,R,S,b, assume s≤a≤rs\le a\le rs≤a≤r and S≤b≤RS\le b\le RS≤b≤R, and assume there exist a natural number kkk with 1≤k≤21\le k\le21≤k≤2 and a function τ:N→N\tau:\mathbb N\to\mathbb Nτ:N→N satisfying the following conditions: if k=1k=1k=1, then τ(1)=1\tau(1)=1τ(1)=1 and b=a+1b=a+1b=a+1; if k=2k=2k=2, then b=ab=ab=a; and τ(2)∈{1,2}\tau(2)\in\{1,2\}τ(2)∈{1,2}, with

R=r+{1,τ(2)=1,0,τ(2)≠1,S=s+{1,τ(2)=2,0,τ(2)≠2.R=r+\begin{cases}1,&\tau(2)=1,\\0,&\tau(2)\ne1,\end{cases} \qquad S=s+\begin{cases}1,&\tau(2)=2,\\0,&\tau(2)\ne2.\end{cases}R=r+{1,0,​τ(2)=1,τ(2)=1,​S=s+{1,0,​τ(2)=2,τ(2)=2.​

The other values of τ\tauτ, including τ(1)\tau(1)τ(1) when k=2k=2k=2, are unrestricted. Define the real number CCC, expanding the coefficient in the conclusion, by

C={∣r+1−ar+1−s∣,R=r+1, S=s, a=b,∣a−s+1r+1−s∣,R=r+1, S=s, a≠b,∣s−as−r−1∣,¬(R=r+1 and S=s), a=b,−∣a−rs−r−1∣,¬(R=r+1 and S=s), a≠b.C= \begin{cases} \displaystyle \sqrt{\left|\frac{r+1-a}{r+1-s}\right|}, &R=r+1,\ S=s,\ a=b,\\[6pt] \displaystyle \sqrt{\left|\frac{a-s+1}{r+1-s}\right|}, &R=r+1,\ S=s,\ a\ne b,\\[6pt] \displaystyle \sqrt{\left|\frac{s-a}{s-r-1}\right|}, &\neg(R=r+1\ \text{and}\ S=s),\ a=b,\\[6pt] \displaystyle -\sqrt{\left|\frac{a-r}{s-r-1}\right|}, &\neg(R=r+1\ \text{and}\ S=s),\ a\ne b. \end{cases}C=⎩⎨⎧​​r+1−sr+1−a​​​,​r+1−sa−s+1​​​,​s−r−1s−a​​​,−​s−r−1a−r​​​,​R=r+1, S=s, a=b,R=r+1, S=s, a=b,¬(R=r+1 and S=s), a=b,¬(R=r+1 and S=s), a=b.​

All arithmetic inside these fractions is real arithmetic. Then

(s=0, S=0, R=r+1) ∨ (s=0, S=1, R=r) ∨(0<s, S=s, R=r+1) ∨ (0<s, S=s+1, R=r),\begin{gathered} (s=0,\ S=0,\ R=r+1)\ \lor\ (s=0,\ S=1,\ R=r)\ \lor\\ (0<s,\ S=s,\ R=r+1)\ \lor\ (0<s,\ S=s+1,\ R=r), \end{gathered}(s=0, S=0, R=r+1) ∨ (s=0, S=1, R=r) ∨(0<s, S=s, R=r+1) ∨ (0<s, S=s+1, R=r),​

and b=ab=ab=a or b=a+1b=a+1b=a+1. Moreover, if S=sS=sS=s, then R−s>0R-s>0R−s>0; otherwise R−S+2>0R-S+2>0R−S+2>0. Finally,

C={R−bR−s,S=s, a=b,b−sR−s,S=s, a≠b,b−S+1R−S+2,S≠s, a=b,−R−b+1R−S+2,S≠s, a≠b.C= \begin{cases} \displaystyle \sqrt{\frac{R-b}{R-s}},&S=s,\ a=b,\\[6pt] \displaystyle \sqrt{\frac{b-s}{R-s}},&S=s,\ a\ne b,\\[6pt] \displaystyle \sqrt{\frac{b-S+1}{R-S+2}},&S\ne s,\ a=b,\\[6pt] \displaystyle -\sqrt{\frac{R-b+1}{R-S+2}},&S\ne s,\ a\ne b. \end{cases}C=⎩⎨⎧​R−sR−b​​,R−sb−s​​,R−S+2b−S+1​​,−R−S+2R−b+1​​,​S=s, a=b,S=s, a=b,S=s, a=b,S=s, a=b.​

Zero values of the natural parameters are included whenever the stated hypotheses hold.

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