Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for A Multigraph Approach for Performing the Quantum Schur Transform

Definition
QAlgorithms_Papers_Independent_Intake100_P91

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

prove2quantum

The objects the formalized statements of A Multigraph Approach for Performing the Quantum Schur Transform (arXiv:2204.10694) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • WeylTableau: Standard Weyl tableaux, PDF pp.6-7: source letter j is Fin value j-1. For d=2 these values are the source's qubit letters 0 and 1.
  • ShapedYoungTableau: Standard Young tableaux of a fixed shape, PDF pp.3,5. Reuse the frozen label-to-box tableau: Fin value i denotes source label i+1, and every prefix is a lower ideal. Only the endpoint shape is restricted here; tableau standardness is reused unchanged.
  • ShapePath: A path of SHAPES from the unique empty diagram to lambda, PDF p.8, (13). Consecutive sizes differ by one, so cell inclusion adds exactly one box.
  • youngPrefixCells: The occupied cells of the first k Young labels, PDF pp.3,5. The canonical path is computed from these exact prefixes.
  • IsYoungPath: The path associated to a Young tableau keeps exactly its first i boxes, PDF pp.5,8. This pins the bijection, rather than just equating cardinalities.
  • SchurLabels: Triples with the paper's ordering: shape, Weyl tableau, Young tableau (PDF p.7). At level zero all three components have exactly one possibility.
  • GraphLabels: A Weyl ENDPOINT paired with a Young shape path, PDF pp.8,11. This deliberately does not count individual paths of Weyl vertices.
  • LabelsCorrespond: The simultaneous labelling preserves the actual Weyl endpoint and assigns the Young tableau its own prefix path, PDF pp.8,11. HEq only transports the Weyl tableau across the equality of its shape, without changing any entry.
  • tableauGT: The source GT entry m_(i,j), PDF pp.6-7: count row-i boxes with source letter at most j. Indices i,j are one-based; the empty subalphabet is j=0.
  • GTStep: Exact GT addition (16), PDF p.11. Starting at the inserted symbol k, one entry tau(j) increases in each row j; all rows below k stay fixed. This allows rearrangement of entries in a Weyl tableau, not just cell deletion.
  • WeylEdge: The graph edge of PDF pp.8,11, with addition/removal pinned to (16).
  • HasWeylLift: A multipath label has at least one compatible Weyl-vertex history. All histories are retained by the predicate; none is selected as a basis label.
  • partialHook: Lower-pattern partial hook p_(i,j)=m_(i,j)+j-i, PDF p.11 and (32), p.18. All differences are in the reals, with no truncated natural subtraction.
  • comparisonSign: Comparison sign in (17), PDF p.11. Equality has sign +1, as fixed by Appendix A, Rule 1b, p.18; Lean's sign(0) would give the wrong amplitude.
  • louck: Louck's independent product (17) times (18), PDF p.11. The original PDF has an absolute value around EACH quotient under a square root. Both products use the lower pattern. Empty first product (k=d) and second factor (k=1) are exactly 1. Only valid GT edges are used in the statements below.
  • qubitGT: A two-level GT array with top row (r,s) and lower entry a (PDF pp.12-13). All other entries are padding and are never used by the d=2 product.
  • QubitPattern: Interlacing for a qubit GT array, PDF (5), p.6. This also forces r≥s.
  • QubitEdge: All qubit graph edges, using (16), rather than content change alone. The two endpoint arrays must both interlace (PDF pp.11-13).
  • qubitLouck: The d=2 specialization of the independent product, not a Pattern Rule. On a valid edge b=a inserts letter 1 (k=2), while b=a+1 inserts 0 (k=1). The changed top-row entry is read from the two shapes (PDF pp.11,18-20).
  • patternAmplitude: The coefficient obtained from the four Pattern Rules: remove all shared full columns, then use Rule 1 or Rule 2. This independent short expression is compared to louck, never used to define it (PDF pp.12-13).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P26

noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P91

open scoped BigOperators

attribute [local instance] Classical.propDecidable

/-- Standard Weyl tableaux, PDF pp.6-7: source letter j is Fin value j-1.
For d=2 these values are the source's qubit letters 0 and 1. -/
def WeylTableau {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) :=
  {t : lambda.val.cells → Fin d // QAlgorithms.Schur.IsSemistandardFilling lambda t}

/-- Standard Young tableaux of a fixed shape, PDF pp.3,5. Reuse the frozen
label-to-box tableau: Fin value i denotes source label i+1, and every prefix
is a lower ideal. Only the endpoint shape is restricted here; tableau
standardness is reused unchanged. -/
abbrev ShapedYoungTableau {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) :=
  {y : QAlgorithms.Papers.Independent.Renew46.P26.YoungTableau n //
    QAlgorithms.Papers.Independent.Renew46.P26.tableauShape y = lambda.val}

/-- A path of SHAPES from the unique empty diagram to lambda, PDF p.8, (13).
Consecutive sizes differ by one, so cell inclusion adds exactly one box. -/
def ShapePath {d n : ℕ} (lambda : QAlgorithms.Schur.Partition d n) :=
  {p : (i : Fin (n+1)) → QAlgorithms.Schur.Partition d i.val //
    (∀ i : Fin n, (p i.castSucc).val.cells ⊆ (p i.succ).val.cells) ∧
    (p (Fin.last n)).val = lambda.val}

/-- The occupied cells of the first k Young labels, PDF pp.3,5.
The canonical path is computed from these exact prefixes. -/
def youngPrefixCells {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (y : ShapedYoungTableau lambda) (k : ℕ) : Finset (ℕ × ℕ) :=
  (Finset.univ.filter fun i : Fin n => i.val < k).image y.val.val

/-- The path associated to a Young tableau keeps exactly its first i boxes,
PDF pp.5,8. This pins the bijection, rather than just equating cardinalities. -/
def IsYoungPath {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (y : ShapedYoungTableau lambda) (p : ShapePath lambda) : Prop :=
  ∀ i : Fin (n+1), (p.val i).val.cells = youngPrefixCells y i.val

/-- Triples with the paper's ordering: shape, Weyl tableau, Young tableau
(PDF p.7). At level zero all three components have exactly one possibility. -/
abbrev SchurLabels (d n : ℕ) :=
  (lambda : QAlgorithms.Schur.Partition d n) × (WeylTableau lambda × ShapedYoungTableau lambda)

/-- A Weyl ENDPOINT paired with a Young shape path, PDF pp.8,11.
This deliberately does not count individual paths of Weyl vertices. -/
abbrev GraphLabels (d n : ℕ) :=
  (lambda : QAlgorithms.Schur.Partition d n) × (WeylTableau lambda × ShapePath lambda)

/-- The simultaneous labelling preserves the actual Weyl endpoint and assigns
the Young tableau its own prefix path, PDF pp.8,11. HEq only transports the
Weyl tableau across the equality of its shape, without changing any entry. -/
def LabelsCorrespond {d n : ℕ} (a : SchurLabels d n) (b : GraphLabels d n) : Prop :=
  a.1 = b.1 ∧ HEq a.2.1 b.2.1 ∧
    ∀ i : Fin (n+1), (b.2.2.val i).val.cells = youngPrefixCells a.2.2 i.val

/-- The source GT entry m_(i,j), PDF pp.6-7: count row-i boxes with source
letter at most j. Indices i,j are one-based; the empty subalphabet is j=0. -/
def tableauGT {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (t : WeylTableau lambda) (i j : ℕ) : ℕ :=
  (Finset.univ.filter fun c : lambda.val.cells =>
    c.val.1 + 1 = i ∧ (t.val c).val < j).card

/-- Exact GT addition (16), PDF p.11. Starting at the inserted symbol k,
one entry tau(j) increases in each row j; all rows below k stay fixed.
This allows rearrangement of entries in a Weyl tableau, not just cell deletion. -/
def GTStep (d : ℕ) (lower upper : ℕ → ℕ → ℕ) (k : ℕ) (tau : ℕ → ℕ) : Prop :=
  1 ≤ k ∧ k ≤ d ∧ ∀ j, 1 ≤ j → j ≤ d →
    (j < k → ∀ i, 1 ≤ i → i ≤ j → upper i j = lower i j) ∧
    (k ≤ j → 1 ≤ tau j ∧ tau j ≤ j ∧ ∀ i, 1 ≤ i → i ≤ j →
      upper i j = lower i j + if i = tau j then 1 else 0)

/-- The graph edge of PDF pp.8,11, with addition/removal pinned to (16). -/
def WeylEdge {d m n : ℕ} {mu : QAlgorithms.Schur.Partition d m}
    {lambda : QAlgorithms.Schur.Partition d n}
    (t : WeylTableau mu) (u : WeylTableau lambda) : Prop :=
  n = m+1 ∧ mu.val.cells ⊆ lambda.val.cells ∧
    ∃ k tau, GTStep d (tableauGT t) (tableauGT u) k tau

/-- A multipath label has at least one compatible Weyl-vertex history.
All histories are retained by the predicate; none is selected as a basis label. -/
def HasWeylLift {d n : ℕ} (label : GraphLabels d n) : Prop :=
  ∃ v : (i : Fin (n+1)) →
      (lambda : QAlgorithms.Schur.Partition d i.val) × WeylTableau lambda,
    (∀ i, (v i).1.val = (label.2.2.val i).val) ∧
    v (Fin.last n) = ⟨label.1, label.2.1⟩ ∧
    ∀ i : Fin n, WeylEdge (v i.castSucc).2 (v i.succ).2

/-- Empty Young prefix, including the unique vacuum tableau. -/
example {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (y : ShapedYoungTableau lambda) : youngPrefixCells y 0 = ∅ := by
  simp [youngPrefixCells]

/-- The zero-letter subtableau has no occupied cells. -/
example {d n : ℕ} {lambda : QAlgorithms.Schur.Partition d n}
    (t : WeylTableau lambda) (i : ℕ) : tableauGT t i 0 = 0 := by
  simp [tableauGT]

/-- The path and tableau types are actually finite; Nat.card has no infinite
fallback on these concrete labels. -/
example (d n : ℕ) : Finite (GraphLabels d n) := by
  unfold GraphLabels WeylTableau ShapePath
  infer_instance

/-- Lower-pattern partial hook p_(i,j)=m_(i,j)+j-i, PDF p.11 and (32), p.18.
All differences are in the reals, with no truncated natural subtraction. -/
def partialHook (m : ℕ → ℕ → ℕ) (i j : ℕ) : ℝ :=
  (m i j : ℝ) + (j : ℝ) - (i : ℝ)

/-- Comparison sign in (17), PDF p.11. Equality has sign +1, as fixed by
Appendix A, Rule 1b, p.18; Lean's sign(0) would give the wrong amplitude. -/
def comparisonSign (a b : ℕ) : ℝ := if b ≤ a then 1 else -1

/-- Louck's independent product (17) times (18), PDF p.11. The original PDF
has an absolute value around EACH quotient under a square root. Both products
use the lower pattern. Empty first product (k=d) and second factor (k=1)
are exactly 1. Only valid GT edges are used in the statements below. -/
def louck (d : ℕ) (m : ℕ → ℕ → ℕ) (k : ℕ) (tau : ℕ → ℕ) : ℝ :=
  Finset.prod (Finset.Icc (k+1) d) (fun j =>
    comparisonSign (tau (j-1)) (tau j) *
    Real.sqrt (abs (
      ((Finset.prod ((Finset.Icc 1 (j-1)).erase (tau (j-1))) (fun i =>
          partialHook m (tau j) j - partialHook m i (j-1))) *
       (Finset.prod ((Finset.Icc 1 j).erase (tau j)) (fun i =>
          partialHook m (tau (j-1)) (j-1) - partialHook m i j + 1))) /
      ((Finset.prod ((Finset.Icc 1 j).erase (tau j)) (fun i =>
          partialHook m (tau j) j - partialHook m i j)) *
       (Finset.prod ((Finset.Icc 1 (j-1)).erase (tau (j-1))) (fun i =>
          partialHook m (tau (j-1)) (j-1) - partialHook m i (j-1) + 1)))))) *
  (if k = 1 then 1 else
    Real.sqrt (abs (
      (Finset.prod (Finset.Icc 1 (k-1)) (fun i =>
        partialHook m (tau k) k - partialHook m i (k-1))) /
      (Finset.prod ((Finset.Icc 1 k).erase (tau k)) (fun i =>
        partialHook m (tau k) k - partialHook m i k)))))

/-- A two-level GT array with top row (r,s) and lower entry a (PDF pp.12-13).
All other entries are padding and are never used by the d=2 product. -/
def qubitGT (r s a : ℕ) (i j : ℕ) : ℕ :=
  if j = 1 ∧ i = 1 then a
  else if j = 2 ∧ i = 1 then r
  else if j = 2 ∧ i = 2 then s
  else 0

/-- Interlacing for a qubit GT array, PDF (5), p.6. This also forces r≥s. -/
def QubitPattern (r s a : ℕ) : Prop := s ≤ a ∧ a ≤ r

/-- All qubit graph edges, using (16), rather than content change alone.
The two endpoint arrays must both interlace (PDF pp.11-13). -/
def QubitEdge (r s a R S b : ℕ) : Prop :=
  QubitPattern r s a ∧ QubitPattern R S b ∧
    ∃ k tau, GTStep 2 (qubitGT r s a) (qubitGT R S b) k tau

/-- The d=2 specialization of the independent product, not a Pattern Rule.
On a valid edge b=a inserts letter 1 (k=2), while b=a+1 inserts 0 (k=1).
The changed top-row entry is read from the two shapes (PDF pp.11,18-20). -/
def qubitLouck (r s a R S b : ℕ) : ℝ :=
  louck 2 (qubitGT r s a) (if b = a then 2 else 1)
    (fun j => if j = 1 then 1 else if R = r+1 ∧ S = s then 1 else 2)

/-- The coefficient obtained from the four Pattern Rules: remove all shared
full columns, then use Rule 1 or Rule 2. This independent short expression
is compared to louck, never used to define it (PDF pp.12-13). -/
def patternAmplitude (r s a R S b : ℕ) : ℝ :=
  if S = s then
    if a = b then Real.sqrt (((R : ℝ) - b) / ((R : ℝ) - s))
    else Real.sqrt (((b : ℝ) - s) / ((R : ℝ) - s))
  else
    if a = b then Real.sqrt (((b : ℝ) - S + 1) / ((R : ℝ) - S + 2))
    else -Real.sqrt (((R : ℝ) - b + 1) / ((R : ℝ) - S + 2))

/-- Equality in the comparison sign is positive (Appendix A, Rule 1b). -/
example : comparisonSign 1 1 = 1 := by norm_num [comparisonSign]

/-- With a one-letter alphabet, both coefficient factors are empty/one. -/
example (m : ℕ → ℕ → ℕ) (tau : ℕ → ℕ) : louck 1 m 1 tau = 1 := by
  norm_num [louck]

/-- The empty two-row pattern interlaces; no positive tensor degree is required. -/
example : QubitPattern 0 0 0 := by norm_num [QubitPattern]

/-- Padding, top row and zero count of a two-row array are independent entries. -/
example (r s a : ℕ) :
    qubitGT r s a 1 1 = a ∧ qubitGT r s a 1 2 = r ∧ qubitGT r s a 2 2 = s := by
  simp [qubitGT]

end QAlgorithms.Papers.Independent.Intake100.P91
Source
A Multigraph Approach for Performing the Quantum Schur Transform, arXiv:2204.10694v1, https://arxiv.org/abs/2204.10694v1
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P91.GTStep

For a natural number ddd, functions L,U:N×N→NL,U:\mathbb N\times\mathbb N\to\mathbb NL,U:N×N→N, a natural number kkk, and a function τ:N→N\tau:\mathbb N\to\mathbb Nτ:N→N, GTStep(d,L,U,k,τ)\mathrm{GTStep}(d,L,U,k,\tau)GTStep(d,L,U,k,τ) means that 1≤k≤d1\le k\le d1≤k≤d and, for every 1≤j≤d1\le j\le d1≤j≤d, the following conditions hold: if j<kj<kj<k, then U(i,j)=L(i,j)U(i,j)=L(i,j)U(i,j)=L(i,j) for every 1≤i≤j1\le i\le j1≤i≤j; if k≤jk\le jk≤j, then 1≤τ(j)≤j1\le\tau(j)\le j1≤τ(j)≤j and, for every 1≤i≤j1\le i\le j1≤i≤j, U(i,j)=L(i,j)+1U(i,j)=L(i,j)+1U(i,j)=L(i,j)+1 when i=τ(j)i=\tau(j)i=τ(j), while U(i,j)=L(i,j)U(i,j)=L(i,j)U(i,j)=L(i,j) otherwise. The values of L,UL,UL,U outside 1≤i≤j≤d1\le i\le j\le d1≤i≤j≤d, and the values of τ\tauτ outside k≤j≤dk\le j\le dk≤j≤d, are unrestricted. No additional inequalities among the entries of either array are required. For d=0d=0d=0, the proposition is false because 1≤k≤01\le k\le01≤k≤0 is impossible.

QAlgorithms.Papers.Independent.Intake100.P91.GraphLabels

For natural numbers d,nd,nd,n, GraphLabels(d,n)\mathrm{GraphLabels}(d,n)GraphLabels(d,n) is the type of triples (λ,t,p)(\lambda,t,p)(λ,t,p), where λ\lambdaλ is a Young diagram with exactly nnn cells and at most ddd rows; t:λ→{0,…,d−1}t:\lambda\to\{0,\ldots,d-1\}t:λ→{0,…,d−1} weakly increases along rows and strictly increases down columns; and p=(p0,…,pn)p=(p_0,\ldots,p_n)p=(p0​,…,pn​) is a sequence of Young diagrams such that pip_ipi​ has exactly iii cells and at most ddd rows, each cell set is contained in the next, and pn=λp_n=\lambdapn​=λ. A Young diagram here is a finite coordinatewise downward-closed subset of N2\mathbb N^2N2. No further compatibility between ttt and ppp is required. When n=0n=0n=0, there is one label consisting of the empty diagram, empty filling, and its single-stage path; when d=0<nd=0<nd=0<n, there are no labels.

QAlgorithms.Papers.Independent.Intake100.P91.HasWeylLift

For natural numbers d,nd,nd,n, let label=(λ,t,p)\mathrm{label}=(\lambda,t,p)label=(λ,t,p), where λ\lambdaλ is a Young diagram with nnn cells and at most ddd rows, t:λ→{0,…,d−1}t:\lambda\to\{0,\ldots,d-1\}t:λ→{0,…,d−1} weakly increases along rows and strictly increases down columns, and p=(p0,…,pn)p=(p_0,\ldots,p_n)p=(p0​,…,pn​) consists of nested Young diagrams with pip_ipi​ having iii cells and at most ddd rows and with pn=λp_n=\lambdapn​=λ. The proposition HasWeylLift(label)\mathrm{HasWeylLift}(\mathrm{label})HasWeylLift(label) means that there exists a sequence of pairs (λi,ti)(\lambda_i,t_i)(λi​,ti​), for 0≤i≤n0\le i\le n0≤i≤n, where λi\lambda_iλi​ has iii cells and at most ddd rows and ti:λi→{0,…,d−1}t_i:\lambda_i\to\{0,\ldots,d-1\}ti​:λi​→{0,…,d−1} weakly increases along rows and strictly increases down columns, such that λi=pi\lambda_i=p_iλi​=pi​ for every iii, the final pair is exactly (λ,t)(\lambda,t)(λ,t), and every consecutive pair satisfies the following condition. Its cell sets are included, its sizes differ by one, and there exist 1≤k≤d1\le k\le d1≤k≤d and τ:N→N\tau:\mathbb N\to\mathbb Nτ:N→N, which may depend on the consecutive pair, such that the counts Mi(a,j)=#{c∈λi:c lies in row a−1, ti(c)<j}M_i(a,j)=\#\{c\in\lambda_i:c\text{ lies in row }a-1,\ t_i(c)<j\}Mi​(a,j)=#{c∈λi​:c lies in row a−1, ti​(c)<j} satisfy, for every 1≤j≤d1\le j\le d1≤j≤d and 1≤a≤j1\le a\le j1≤a≤j, Mi+1(a,j)=Mi(a,j)M_{i+1}(a,j)=M_i(a,j)Mi+1​(a,j)=Mi​(a,j) if j<kj<kj<k, while if j≥kj\ge kj≥k, one has 1≤τ(j)≤j1\le\tau(j)\le j1≤τ(j)≤j and Mi+1(a,j)=Mi(a,j)+1{a=τ(j)}M_{i+1}(a,j)=M_i(a,j)+\mathbf1_{\{a=\tau(j)\}}Mi+1​(a,j)=Mi​(a,j)+1{a=τ(j)}​. When n=0n=0n=0, there are no consecutive-pair conditions, and the unique empty label has such a lift, including when d=0d=0d=0.

QAlgorithms.Papers.Independent.Intake100.P91.IsYoungPath

For natural numbers d,nd,nd,n, a Young diagram λ\lambdaλ with nnn cells and at most ddd rows, a labeling yyy of its cells, and a sequence p=(p0,…,pn)p=(p_0,\ldots,p_n)p=(p0​,…,pn​), the proposition IsYoungPath(y,p)\mathrm{IsYoungPath}(y,p)IsYoungPath(y,p) means that, for every 0≤i≤n0\le i\le n0≤i≤n, the cell set of pip_ipi​ equals {y(j):0≤j<i}\{y(j):0\le j<i\}{y(j):0≤j<i}. The labeling y:{0,…,n−1}→N2y:\{0,\ldots,n-1\}\to\mathbb N^2y:{0,…,n−1}→N2 is assumed injective, has image exactly λ\lambdaλ, and has coordinatewise downward-closed initial images. The sequence ppp is assumed to consist of Young diagrams with pip_ipi​ having exactly iii cells and at most ddd rows, with successive cell sets included in one another and pn=λp_n=\lambdapn​=λ. When n=0n=0n=0, the sole required equality identifies two empty cell sets.

QAlgorithms.Papers.Independent.Intake100.P91.LabelsCorrespond

For natural numbers d,nd,nd,n, let a=(λ,t,y)a=(\lambda,t,y)a=(λ,t,y) and b=(μ,u,p)b=(\mu,u,p)b=(μ,u,p), where λ,μ\lambda,\muλ,μ are Young diagrams with nnn cells and at most ddd rows; t,ut,ut,u are fillings by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, weakly increasing along rows and strictly increasing down columns; yyy is an injective labeling of λ\lambdaλ by 0,…,n−10,\ldots,n-10,…,n−1 whose initial images are coordinatewise downward closed; and p=(p0,…,pn)p=(p_0,\ldots,p_n)p=(p0​,…,pn​) consists of nested Young diagrams with pip_ipi​ having iii cells and at most ddd rows and with pn=μp_n=\mupn​=μ. The proposition LabelsCorrespond(a,b)\mathrm{LabelsCorrespond}(a,b)LabelsCorrespond(a,b) means that λ=μ\lambda=\muλ=μ, that ttt and uuu are equal after identifying their domains using this equality of shapes, and that for every 0≤i≤n0\le i\le n0≤i≤n, the cell set of pip_ipi​ is exactly {y(j):0≤j<i}\{y(j):0\le j<i\}{y(j):0≤j<i}. For n=0n=0n=0, these conditions hold for the unique empty labels.

QAlgorithms.Papers.Independent.Intake100.P91.QubitEdge

For arbitrary natural numbers r,s,a,R,S,br,s,a,R,S,br,s,a,R,S,b, this predicate requires s≤a≤rs\le a\le rs≤a≤r and S≤b≤RS\le b\le RS≤b≤R, together with the existence of k∈Nk\in\mathbb Nk∈N and τ:N→N\tau:\mathbb N\to\mathbb Nτ:N→N such that 1≤k≤21\le k\le21≤k≤2 and the following holds: for each j=1,2j=1,2j=1,2, the entries at positions 1≤i≤j1\le i\le j1≤i≤j are unchanged when j<kj<kj<k, and when j≥kj\ge kj≥k, one has 1≤τ(j)≤j1\le\tau(j)\le j1≤τ(j)≤j and the upper entry equals the lower entry plus 111 exactly at i=τ(j)i=\tau(j)i=τ(j). Here the lower entries are M(1,1)=aM(1,1)=aM(1,1)=a, M(1,2)=rM(1,2)=rM(1,2)=r, M(2,2)=sM(2,2)=sM(2,2)=s, and the upper entries are M′(1,1)=bM'(1,1)=bM′(1,1)=b, M′(1,2)=RM'(1,2)=RM′(1,2)=R, M′(2,2)=SM'(2,2)=SM′(2,2)=S. Equivalently, besides the two pattern inequalities, it requires

b∈{a,a+1},(R,S)∈{(r+1,s),(r,s+1)}.b\in\{a,a+1\}, \qquad (R,S)\in\{(r+1,s),(r,s+1)\}.b∈{a,a+1},(R,S)∈{(r+1,s),(r,s+1)}.

The values of τ\tauτ outside j=1,2j=1,2j=1,2 are unrestricted, and no positivity of the six parameters is required.

QAlgorithms.Papers.Independent.Intake100.P91.QubitPattern

For arbitrary natural numbers r,s,ar,s,ar,s,a, this predicate means precisely

s≤a≤r.s\le a\le r.s≤a≤r.

Both inequalities are non-strict, and zero values and equality throughout are allowed.

QAlgorithms.Papers.Independent.Intake100.P91.SchurLabels

For natural numbers d,nd,nd,n, SchurLabels(d,n)\mathrm{SchurLabels}(d,n)SchurLabels(d,n) is the type of triples (λ,t,y)(\lambda,t,y)(λ,t,y), where λ\lambdaλ is a finite coordinatewise downward-closed subset of N2\mathbb N^2N2 with exactly nnn cells and at most ddd rows; t:λ→{0,…,d−1}t:\lambda\to\{0,\ldots,d-1\}t:λ→{0,…,d−1} weakly increases along rows and strictly increases down columns; and y:{0,…,n−1}→N2y:\{0,\ldots,n-1\}\to\mathbb N^2y:{0,…,n−1}→N2 is injective, has image exactly λ\lambdaλ, and has a coordinatewise downward-closed initial image {y(i):i<m}\{y(i):i<m\}{y(i):i<m} for every natural number m≤nm\le nm≤n. No further relation between ttt and yyy is required. For n=0n=0n=0, all three components are empty and determine a unique label; for d=0<nd=0<nd=0<n, there are no labels.

QAlgorithms.Papers.Independent.Intake100.P91.ShapePath

For natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, ShapePath(λ)\mathrm{ShapePath}(\lambda)ShapePath(λ) is the type of sequences (p0,…,pn)(p_0,\ldots,p_n)(p0​,…,pn​) of Young diagrams such that pip_ipi​ has exactly iii cells and at most ddd rows, the cell set of pip_ipi​ is contained in that of pi+1p_{i+1}pi+1​ for every 0≤i<n0\le i<n0≤i<n, and pn=λp_n=\lambdapn​=λ. Each Young diagram is a finite coordinatewise downward-closed subset of N2\mathbb N^2N2. In particular, p0p_0p0​ is empty and each successive cell-set difference has exactly one cell. When n=0n=0n=0, the sequence consists only of the empty diagram λ\lambdaλ.

QAlgorithms.Papers.Independent.Intake100.P91.ShapedYoungTableau

For natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, ShapedYoungTableau(λ)\mathrm{ShapedYoungTableau}(\lambda)ShapedYoungTableau(λ) is the type of injective maps y:{0,…,n−1}→N2y:\{0,\ldots,n-1\}\to\mathbb N^2y:{0,…,n−1}→N2 whose image is exactly the cell set of λ\lambdaλ and for which, for every natural number m≤nm\le nm≤n, the set {y(i):0≤i<m}\{y(i):0\le i<m\}{y(i):0≤i<m} is closed downward in the coordinatewise order on N2\mathbb N^2N2. Thus labels are indexed starting at 000, and each initial set of labels occupies a Young diagram. When n=0n=0n=0, the map and its image are empty, and all these conditions hold.

QAlgorithms.Papers.Independent.Intake100.P91.WeylEdge

For natural numbers d,m,nd,m,nd,m,n, Young diagrams μ,λ\mu,\lambdaμ,λ having respectively m,nm,nm,n cells and at most ddd rows, and fillings t:μ→{0,…,d−1}t:\mu\to\{0,\ldots,d-1\}t:μ→{0,…,d−1} and u:λ→{0,…,d−1}u:\lambda\to\{0,\ldots,d-1\}u:λ→{0,…,d−1} weakly increasing along rows and strictly increasing down columns, WeylEdge(t,u)\mathrm{WeylEdge}(t,u)WeylEdge(t,u) means that n=m+1n=m+1n=m+1, the cell set of μ\muμ is contained in that of λ\lambdaλ, and there exist a natural number kkk and a function τ:N→N\tau:\mathbb N\to\mathbb Nτ:N→N with 1≤k≤d1\le k\le d1≤k≤d satisfying the following conditions. Write L(i,j)L(i,j)L(i,j) for the number of cells of μ\muμ in row i−1i-1i−1 whose ttt-entry is less than jjj, and U(i,j)U(i,j)U(i,j) for the corresponding count in λ\lambdaλ using uuu. For every 1≤j≤d1\le j\le d1≤j≤d, all entries 1≤i≤j1\le i\le j1≤i≤j remain unchanged when j<kj<kj<k; when j≥kj\ge kj≥k, one has 1≤τ(j)≤j1\le\tau(j)\le j1≤τ(j)≤j and U(i,j)=L(i,j)+1{i=τ(j)}U(i,j)=L(i,j)+\mathbf1_{\{i=\tau(j)\}}U(i,j)=L(i,j)+1{i=τ(j)}​ for every 1≤i≤j1\le i\le j1≤i≤j. These conditions impose no further restrictions on the arrays outside this triangular index range or on τ\tauτ outside k,…,dk,\ldots,dk,…,d. The proposition cannot hold when d=0d=0d=0.

QAlgorithms.Papers.Independent.Intake100.P91.WeylTableau

For natural numbers d,nd,nd,n and a Young diagram λ\lambdaλ with exactly nnn cells and at most ddd rows, WeylTableau(λ)\mathrm{WeylTableau}(\lambda)WeylTableau(λ) is the type of fillings t:λ→{0,…,d−1}t:\lambda\to\{0,\ldots,d-1\}t:λ→{0,…,d−1} such that entries weakly increase from left to right along each row and strictly increase from top to bottom along each column. Here a Young diagram is a finite subset of N2\mathbb N^2N2 closed downward in the coordinatewise order, with the first coordinate denoting the row and the second the column. The inequalities apply to every pair of cells in the same row or column, respectively. When n=0n=0n=0, the empty filling is allowed, including when d=0d=0d=0; when d=0<nd=0<nd=0<n, there is no diagram satisfying the stated requirements.

QAlgorithms.Papers.Independent.Intake100.P91.comparisonSign

For any natural numbers a,ba,ba,b, this defines the real number

s(a,b)={1,b≤a,−1,b>a.s(a,b)= \begin{cases} 1,&b\le a,\\ -1,&b>a. \end{cases}s(a,b)={1,−1,​b≤a,b>a.​

Equality belongs to the +1+1+1 case, and zero values of either argument are allowed.

QAlgorithms.Papers.Independent.Intake100.P91.louck

For arbitrary natural numbers d,kd,kd,k, an arbitrary function m:N×N→Nm:\mathbb N\times\mathbb N\to\mathbb Nm:N×N→N, and an arbitrary function τ:N→N\tau:\mathbb N\to\mathbb Nτ:N→N, put hi,j=m(i,j)+j−ih_{i,j}=m(i,j)+j-ihi,j​=m(i,j)+j−i, with arithmetic in R\mathbb RR, and Ij={1,…,j}∖{τ(j)}I_j=\{1,\ldots,j\}\setminus\{\tau(j)\}Ij​={1,…,j}∖{τ(j)}. This defines the real number

∏j=k+1d[sj∣∏i∈Ij−1(hτ(j),j−hi,j−1)∏i∈Ij(hτ(j−1),j−1−hi,j+1)∏i∈Ij(hτ(j),j−hi,j)∏i∈Ij−1(hτ(j−1),j−1−hi,j−1+1)∣]×{1,k=1,∣∏i=1k−1(hτ(k),k−hi,k−1)∏i∈Ik(hτ(k),k−hi,k)∣,k≠1,\begin{aligned} &\prod_{j=k+1}^{d} \left[ s_j \sqrt{\left| \frac{ \displaystyle\prod_{i\in I_{j-1}} (h_{\tau(j),j}-h_{i,j-1}) \displaystyle\prod_{i\in I_j} (h_{\tau(j-1),j-1}-h_{i,j}+1)} { \displaystyle\prod_{i\in I_j} (h_{\tau(j),j}-h_{i,j}) \displaystyle\prod_{i\in I_{j-1}} (h_{\tau(j-1),j-1}-h_{i,j-1}+1)} \right|} \right]\\ &\qquad{}\times \begin{cases} 1,&k=1,\\[2mm] \displaystyle \sqrt{\left| \frac{\displaystyle\prod_{i=1}^{k-1} (h_{\tau(k),k}-h_{i,k-1})} {\displaystyle\prod_{i\in I_k} (h_{\tau(k),k}-h_{i,k})} \right|},&k\ne1, \end{cases} \end{aligned}​j=k+1∏d​​sj​​i∈Ij​∏​(hτ(j),j​−hi,j​)i∈Ij−1​∏​(hτ(j−1),j−1​−hi,j−1​+1)i∈Ij−1​∏​(hτ(j),j​−hi,j−1​)i∈Ij​∏​(hτ(j−1),j−1​−hi,j​+1)​​​​×⎩⎨⎧​1,​i∈Ik​∏​(hτ(k),k​−hi,k​)i=1∏k−1​(hτ(k),k​−hi,k−1​)​​​,​k=1,k=1,​​

where sj=1s_j=1sj​=1 if τ(j)≤τ(j−1)\tau(j)\le\tau(j-1)τ(j)≤τ(j−1), and sj=−1s_j=-1sj​=−1 otherwise. Every product is over natural-number indices, every empty product is 111, and predecessor indices use natural subtraction, so k−1=0k-1=0k−1=0 when k=0k=0k=0. No interlacing, positivity, index-range, or nonzero-denominator assumptions are required: τ(j)\tau(j)τ(j) may lie outside {1,…,j}\{1,\ldots,j\}{1,…,j}, deleting an absent index has no effect, and a quotient with zero denominator is defined to be zero. In particular, d=0d=0d=0, k=0k=0k=0, and k>dk>dk>d are included.

QAlgorithms.Papers.Independent.Intake100.P91.partialHook

For any function m:N×N→Nm:\mathbb N\times\mathbb N\to\mathbb Nm:N×N→N and any natural numbers i,ji,ji,j, this defines the real number

hm(i,j)=m(i,j)+j−i,h_m(i,j)=m(i,j)+j-i,hm​(i,j)=m(i,j)+j−i,

where all three natural-number values are converted to real numbers before addition and subtraction. No restrictions on m,i,jm,i,jm,i,j are imposed; in particular, the result may be negative.

QAlgorithms.Papers.Independent.Intake100.P91.patternAmplitude

For arbitrary natural numbers r,s,a,R,S,br,s,a,R,S,br,s,a,R,S,b, this defines the real number

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

Every subtraction and division displayed here is in R\mathbb RR; the parameter rrr does not enter the value. No inequalities or edge conditions are assumed. Consequently, zero denominators and negative radicands are included: a quotient with zero denominator is zero, and the real square-root function is zero on negative inputs.

QAlgorithms.Papers.Independent.Intake100.P91.qubitGT

For arbitrary natural numbers r,s,ar,s,ar,s,a, this defines a function M:N×N→NM:\mathbb N\times\mathbb N\to\mathbb NM:N×N→N by

M(i,j)={a,(i,j)=(1,1),r,(i,j)=(1,2),s,(i,j)=(2,2),0,otherwise.M(i,j)= \begin{cases} a,&(i,j)=(1,1),\\ r,&(i,j)=(1,2),\\ s,&(i,j)=(2,2),\\ 0,&\text{otherwise}. \end{cases}M(i,j)=⎩⎨⎧​a,r,s,0,​(i,j)=(1,1),(i,j)=(1,2),(i,j)=(2,2),otherwise.​

There are no inequalities assumed between r,s,ar,s,ar,s,a, and all other indices, including indices equal to zero, receive value zero.

QAlgorithms.Papers.Independent.Intake100.P91.qubitLouck

For arbitrary natural numbers r,s,a,R,S,br,s,a,R,S,br,s,a,R,S,b, this defines the value of the stated product with d=2d=2d=2, lower array m(1,1)=am(1,1)=am(1,1)=a, m(1,2)=rm(1,2)=rm(1,2)=r, m(2,2)=sm(2,2)=sm(2,2)=s and all other entries zero, starting level k=2k=2k=2 when b=ab=ab=a and k=1k=1k=1 otherwise, and index function τ(1)=1\tau(1)=1τ(1)=1, with τ(j)=1\tau(j)=1τ(j)=1 for every j≠1j\ne1j=1 when R=r+1R=r+1R=r+1 and S=sS=sS=s, and τ(j)=2\tau(j)=2τ(j)=2 for every j≠1j\ne1j=1 otherwise. Explicitly, writing CCC for the condition R=r+1R=r+1R=r+1 and S=sS=sS=s, the resulting real number is

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

All arithmetic inside these fractions is real arithmetic. No pattern or edge assumptions are imposed, b≠ab\ne ab=a need not mean b=a+1b=a+1b=a+1, and division by zero gives zero.

QAlgorithms.Papers.Independent.Intake100.P91.tableauGT

For natural numbers d,nd,nd,n, a Young diagram λ\lambdaλ with nnn cells and at most ddd rows, a filling t:λ→{0,…,d−1}t:\lambda\to\{0,\ldots,d-1\}t:λ→{0,…,d−1} weakly increasing along rows and strictly increasing down columns, and arbitrary natural numbers i,ji,ji,j, tableauGT(t,i,j)\mathrm{tableauGT}(t,i,j)tableauGT(t,i,j) is the number of cells c=(r,s)c=(r,s)c=(r,s) of λ\lambdaλ satisfying r+1=ir+1=ir+1=i and t(c)<jt(c)<jt(c)<j. Thus the row argument iii is numbered starting at 111, while filling values start at 000. No bounds on i,ji,ji,j are assumed: the count is zero if i=0i=0i=0, if j=0j=0j=0, or if the indicated row is empty; if j≥dj\ge dj≥d, it counts every cell in the indicated row.

QAlgorithms.Papers.Independent.Intake100.P91.youngPrefixCells

For natural numbers d,nd,nd,n, a Young diagram λ\lambdaλ with nnn cells and at most ddd rows, an injective labeling y:{0,…,n−1}→N2y:\{0,\ldots,n-1\}\to\mathbb N^2y:{0,…,n−1}→N2 whose image is λ\lambdaλ and whose first mmm images form a coordinatewise downward-closed set for every m≤nm\le nm≤n, and any natural number kkk, youngPrefixCells(y,k)\mathrm{youngPrefixCells}(y,k)youngPrefixCells(y,k) is the finite set {y(i):0≤i<n, i<k}\{y(i):0\le i<n,\ i<k\}{y(i):0≤i<n, i<k}. There is no requirement that k≤nk\le nk≤n: the result is empty when k=0k=0k=0 and is the entire cell set of λ\lambdaλ whenever k≥nk\ge nk≥n. For n=0n=0n=0, it is empty for every kkk.

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