Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Cyclotomic Birman--Wenzl--Murakami algebras, I: Freeness and realization as tangle algebras

Definition
QAlgorithms_Papers_Independent_Intake100_P06

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

prove2quantum

The objects the formalized statements of Cyclotomic Birman--Wenzl--Murakami algebras, I: Freeness and realization as tangle algebras (arXiv:math/0612064) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • HeckeLetter: Signed generators of Definition 6.3, PDF pp.39--42. g indices are zero based. The affine x_1=beta_0 is absent when affine=false or n=0.
  • heckeFreeG: Free g_(i+1) or inverse, with unused out-of-range value zero, PDF p.42.
  • heckeFreeX: Free x_1 or inverse, when the generator exists, PDF p.42.
  • NormalizedBraidHeckeRel: Complete invertibility, Artin and normalized Hecke relations, Definition 6.3, PDF pp.39--42. There is no quadratic relation on x_1 and no BMW data. This ordinary/affine presentation differs from the imported Support21.P14.HeckeRel, which includes a cyclotomic relation and requires GroundParameters.
  • NormalizedBraidHecke: H(q^2) of Definition 6.3, PDF pp.41--42, as the complete invertible-letter presentation of the group-algebra quotient. No geometry is asserted by def. The frozen Renew46.P26.Hecke is degenerate and has complex coefficients; Support21.P14.MultiplicativeCyclotomicHecke already imposes a root polynomial. Neither is this unrestricted ordinary/affine algebra of Definition 6.3.
  • heckeMap: Canonical presentation quotient, PDF pp.41--42.
  • heckeG: Normalized g_(i+1) or its specified inverse, PDF p.42.
  • heckeX: Affine x_1 or its specified inverse, PDF p.42.
  • heckeWinding: x'_(j+1) or its inverse: g_j...g_1 x_1^a g_1^-1...g_j^-1, where a is 1 or -1, PDF p.42. The inverse flag changes x_1 only.
  • heckeWindingPower: Integer powers use the explicit inverse conjugate, never ring division, PDF pp.42--43. Only j<n is used by the displayed basis families.
  • heckeLaurentWord: The ordered word (x'_n)^a_n ... (x'_1)^a_1, PDF pp.42--43.
  • adjacentSwap: Adjacent transposition on positions i,i+1. The unused out-of-range helper is the identity; the reduced-word construction uses valid indices, PDF p.43.
  • permutationReducedWord: Explicit reduced expression for alpha, fixing the choice allowed on PDF p.43. Sort one-line notation: at stage i move value i from k to i using s_(k-1),...,s_i. Reverse the sorting word to express alpha. Each swap removes one inversion. This constructs the lift without assuming a normal-form result.
  • heckePermutationLift: T_alpha uses INVERSE g generators in a reduced expression, PDF p.43.
  • heckeNormalWord: The specified Sigma-prime words, PDF p.43. Integer labels are indexed by upper (initial) vertices and T_alpha is to the left of the winding word.
  • heckeCyclotomicPolynomial: The full cyclotomic polynomial in x_1, Definition 6.10, PDF p.44.
  • heckeCyclotomicRel: Actual polynomial relation, PDF p.44; absent at scalar level zero.
  • CyclotomicHecke: The cyclotomic Hecke quotient, Definition 6.10, PDF p.44.
  • heckeCyclotomicMap: Canonical cyclotomic quotient map, PDF p.44.
  • boundedHeckeNormalWord: Sigma-prime-r is the quotient image of the specified words with each exponent in 0,...,r-1, PDF p.44.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Support21_P14

/-! Statement draft for arXiv:math/0612064v5. Geometric targets are inventoried
in HARD.md. Compilation is pending the requested batch handoff. -/

noncomputable section

open scoped BigOperators Classical TensorProduct

namespace QAlgorithms.Papers.Independent.Intake100.P06

open QAlgorithms.Papers.Independent.Support21.P14

/-- Signed generators of Definition 6.3, PDF pp.39--42. g indices are zero
based. The affine x_1=beta_0 is absent when affine=false or n=0. -/
inductive HeckeLetter (n : ℕ) (affine : Bool)
  | g : Fin (n - 1) → Bool → HeckeLetter n affine
  | x : Fin (if affine then min n 1 else 0) → Bool → HeckeLetter n affine

/-- Free g_(i+1) or inverse, with unused out-of-range value zero, PDF p.42. -/
def heckeFreeG (S : Type*) [CommRing S] (n : ℕ) (affine : Bool)
    (i : ℕ) (inverse : Bool) : FreeAlgebra S (HeckeLetter n affine) :=
  if h : i < n - 1 then FreeAlgebra.ι S (.g ⟨i, h⟩ inverse) else 0

/-- Free x_1 or inverse, when the generator exists, PDF p.42. -/
def heckeFreeX (S : Type*) [CommRing S] (n : ℕ) (affine : Bool)
    (inverse : Bool) : FreeAlgebra S (HeckeLetter n affine) :=
  if h : 0 < (if affine then min n 1 else 0) then
    FreeAlgebra.ι S (.x ⟨0, h⟩ inverse) else 0

/-- Complete invertibility, Artin and normalized Hecke relations, Definition
6.3, PDF pp.39--42. There is no quadratic relation on x_1 and no BMW data.
This ordinary/affine presentation differs from the imported Support21.P14.HeckeRel,
which includes a cyclotomic relation and requires GroundParameters. -/
inductive NormalizedBraidHeckeRel {S : Type*} [CommRing S] (q : Sˣ) (n : ℕ) (affine : Bool) :
    FreeAlgebra S (HeckeLetter n affine) → FreeAlgebra S (HeckeLetter n affine) → Prop
  | inverseL (i : ℕ) (hi : i + 1 < n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeG S n affine i false * heckeFreeG S n affine i true) 1
  | inverseR (i : ℕ) (hi : i + 1 < n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeG S n affine i true * heckeFreeG S n affine i false) 1
  | braid (i : ℕ) (hi : i + 2 < n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeG S n affine i false * heckeFreeG S n affine (i+1) false * heckeFreeG S n affine i false)
      (heckeFreeG S n affine (i+1) false * heckeFreeG S n affine i false * heckeFreeG S n affine (i+1) false)
  | far (i j : ℕ) (hi : i + 1 < n) (hj : j + 1 < n)
      (hd : i + 1 < j ∨ j + 1 < i) : NormalizedBraidHeckeRel q n affine
      (heckeFreeG S n affine i false * heckeFreeG S n affine j false)
      (heckeFreeG S n affine j false * heckeFreeG S n affine i false)
  | xInverseL (ha : affine = true) (hn : 1 ≤ n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeX S n affine false * heckeFreeX S n affine true) 1
  | xInverseR (ha : affine = true) (hn : 1 ≤ n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeX S n affine true * heckeFreeX S n affine false) 1
  | typeB (ha : affine = true) (hn : 2 ≤ n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeX S n affine false * heckeFreeG S n affine 0 false *
        heckeFreeX S n affine false * heckeFreeG S n affine 0 false)
      (heckeFreeG S n affine 0 false * heckeFreeX S n affine false *
        heckeFreeG S n affine 0 false * heckeFreeX S n affine false)
  | xFar (ha : affine = true) (i : ℕ) (hi : i + 1 < n) (hpos : 1 ≤ i) :
      NormalizedBraidHeckeRel q n affine
        (heckeFreeX S n affine false * heckeFreeG S n affine i false)
        (heckeFreeG S n affine i false * heckeFreeX S n affine false)
  | skein (i : ℕ) (hi : i + 1 < n) : NormalizedBraidHeckeRel q n affine
      (heckeFreeG S n affine i false - heckeFreeG S n affine i true)
      (algebraMap S _ ((q : S) - (↑q⁻¹ : S)))

/-- H(q^2) of Definition 6.3, PDF pp.41--42, as the complete invertible-letter
presentation of the group-algebra quotient. No geometry is asserted by def.
The frozen Renew46.P26.Hecke is degenerate and has complex coefficients;
Support21.P14.MultiplicativeCyclotomicHecke already imposes a root polynomial.
Neither is this unrestricted ordinary/affine algebra of Definition 6.3. -/
abbrev NormalizedBraidHecke (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ) (affine : Bool) :=
  RingQuot (NormalizedBraidHeckeRel q n affine)

/-- Canonical presentation quotient, PDF pp.41--42. -/
def heckeMap (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ) (affine : Bool) :
    FreeAlgebra S (HeckeLetter n affine) →ₐ[S] NormalizedBraidHecke S q n affine :=
  RingQuot.mkAlgHom S (NormalizedBraidHeckeRel q n affine)

/-- Normalized g_(i+1) or its specified inverse, PDF p.42. -/
def heckeG (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ) (affine : Bool)
    (i : ℕ) (inverse : Bool) : NormalizedBraidHecke S q n affine :=
  heckeMap S q n affine (heckeFreeG S n affine i inverse)

/-- Affine x_1 or its specified inverse, PDF p.42. -/
def heckeX (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ)
    (inverse : Bool) : NormalizedBraidHecke S q n true :=
  heckeMap S q n true (heckeFreeX S n true inverse)

/-- x'_(j+1) or its inverse: g_j...g_1 x_1^a g_1^-1...g_j^-1,
where a is 1 or -1, PDF p.42. The inverse flag changes x_1 only. -/
def heckeWinding (S : Type*) [CommRing S] (q : Sˣ) (n j : ℕ)
    (inverse : Bool) : NormalizedBraidHecke S q n true :=
  ((List.range j).reverse.map fun i => heckeG S q n true i false).prod *
    heckeX S q n inverse *
    ((List.range j).map fun i => heckeG S q n true i true).prod

/-- Integer powers use the explicit inverse conjugate, never ring division,
PDF pp.42--43. Only j<n is used by the displayed basis families. -/
def heckeWindingPower (S : Type*) [CommRing S] (q : Sˣ) (n j : ℕ)
    (a : ℤ) : NormalizedBraidHecke S q n true :=
  if 0 ≤ a then heckeWinding S q n j false ^ a.toNat
  else heckeWinding S q n j true ^ (-a).toNat

/-- The ordered word (x'_n)^a_n ... (x'_1)^a_1, PDF pp.42--43. -/
def heckeLaurentWord (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ)
    (a : Fin n → ℤ) : NormalizedBraidHecke S q n true :=
  ((List.finRange n).reverse.map fun j => heckeWindingPower S q n j.val (a j)).prod

/-- Adjacent transposition on positions i,i+1. The unused out-of-range helper
is the identity; the reduced-word construction uses valid indices, PDF p.43. -/
def adjacentSwap (n i : ℕ) : Equiv.Perm (Fin n) :=
  if h : i + 1 < n then Equiv.swap ⟨i, by omega⟩ ⟨i+1, h⟩ else 1

/-- Explicit reduced expression for alpha, fixing the choice allowed on PDF
p.43. Sort one-line notation: at stage i move value i from k to i using
s_(k-1),...,s_i. Reverse the sorting word to express alpha. Each swap removes
one inversion. This constructs the lift without assuming a normal-form result. -/
def permutationReducedWord {n : ℕ} (alpha : Equiv.Perm (Fin n)) : List ℕ :=
  (((List.finRange n).foldl (fun (state : Equiv.Perm (Fin n) × List ℕ) i =>
    let steps := ((List.range ((state.1.symm i).val)).drop i.val).reverse
    (state.1 * (steps.map (adjacentSwap n)).prod, state.2 ++ steps))
    (alpha, [])).2).reverse

/-- T_alpha uses INVERSE g generators in a reduced expression, PDF p.43. -/
def heckePermutationLift (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ)
    (alpha : Equiv.Perm (Fin n)) : NormalizedBraidHecke S q n true :=
  ((permutationReducedWord alpha).map fun i => heckeG S q n true i true).prod

/-- The specified Sigma-prime words, PDF p.43. Integer labels are indexed by
upper (initial) vertices and T_alpha is to the left of the winding word. -/
def heckeNormalWord (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ)
    (d : Equiv.Perm (Fin n) × (Fin n → ℤ)) : NormalizedBraidHecke S q n true :=
  heckePermutationLift S q n d.1 * heckeLaurentWord S q n d.2

/-- The full cyclotomic polynomial in x_1, Definition 6.10, PDF p.44. -/
def heckeCyclotomicPolynomial (S : Type*) [CommRing S] (q : Sˣ) (n r : ℕ)
    (u : Fin r → Sˣ) : NormalizedBraidHecke S q n true :=
  (List.ofFn fun j : Fin r => heckeX S q n false - algebraMap S _ (u j : S)).prod

/-- Actual polynomial relation, PDF p.44; absent at scalar level zero. -/
def heckeCyclotomicRel (S : Type*) [CommRing S] (q : Sˣ) (n r : ℕ)
    (u : Fin r → Sˣ) (a b : NormalizedBraidHecke S q n true) : Prop :=
  1 ≤ n ∧ a = heckeCyclotomicPolynomial S q n r u ∧ b = 0

/-- The cyclotomic Hecke quotient, Definition 6.10, PDF p.44. -/
abbrev CyclotomicHecke (S : Type*) [CommRing S] (q : Sˣ) (n r : ℕ)
    (u : Fin r → Sˣ) := RingQuot (heckeCyclotomicRel S q n r u)

/-- Canonical cyclotomic quotient map, PDF p.44. -/
def heckeCyclotomicMap (S : Type*) [CommRing S] (q : Sˣ) (n r : ℕ)
    (u : Fin r → Sˣ) : NormalizedBraidHecke S q n true →ₐ[S] CyclotomicHecke S q n r u :=
  RingQuot.mkAlgHom S (heckeCyclotomicRel S q n r u)

/-- Sigma-prime-r is the quotient image of the specified words with each
exponent in 0,...,r-1, PDF p.44. -/
def boundedHeckeNormalWord (S : Type*) [CommRing S] (q : Sˣ) (n r : ℕ)
    (u : Fin r → Sˣ) (d : Equiv.Perm (Fin n) × (Fin n → Fin r)) :
    CyclotomicHecke S q n r u :=
  heckeCyclotomicMap S q n r u
    (heckeNormalWord S q n (d.1, fun j => (d.2 j).val))

/-- Sanity: the ordinary presentation has no affine letter. -/
example (S : Type*) [CommRing S] (n : ℕ) (inverse : Bool) :
    heckeFreeX S n false inverse = 0 := by
  simp [heckeFreeX]

/-- Sanity: source normalized skein constant at two strands. -/
example (S : Type*) [CommRing S] (q : Sˣ) (affine : Bool) :
    heckeG S q 2 affine 0 false - heckeG S q 2 affine 0 true =
      algebraMap S (NormalizedBraidHecke S q 2 affine) ((q : S) - (↑q⁻¹ : S)) := by
  have h := RingQuot.mkAlgHom_rel S
    (NormalizedBraidHeckeRel.skein (q := q) (n := 2) (affine := affine) 0 (by decide))
  simpa only [heckeG, heckeMap, map_sub, AlgHom.commutes] using h

/-- Sanity: the first conjugate has no surrounding braid generators. -/
example (S : Type*) [CommRing S] (q : Sˣ) (n : ℕ) (inverse : Bool) :
    heckeWinding S q n 0 inverse = heckeX S q n inverse := by
  simp [heckeWinding]

/-- Sanity: the zero exponent gives 1, including in the zero ring. -/
example (S : Type*) [CommRing S] (q : Sˣ) (n j : ℕ) :
    heckeWindingPower S q n j 0 = 1 := by
  simp [heckeWindingPower]

/-- Sanity: the empty permutation has the empty reduced word. -/
example (alpha : Equiv.Perm (Fin 0)) : permutationReducedWord alpha = [] := by
  simp [permutationReducedWord]

/-- Sanity: empty monomials give the empty-product value 1. -/
example (S : Type*) [CommRing S] (q : Sˣ) (a : Fin 0 → ℤ) :
    heckeLaurentWord S q 0 a = 1 := by
  simp [heckeLaurentWord]

/-- Sanity: the imposed polynomial has its full constant term, PDF p.44. -/
example (S : Type*) [CommRing S] (q : Sˣ) (n r : ℕ) (hn : 1 ≤ n)
    (u : Fin r → Sˣ) :
    heckeCyclotomicMap S q n r u (heckeCyclotomicPolynomial S q n r u) = 0 := by
  have h := RingQuot.mkAlgHom_rel S
    (s := heckeCyclotomicRel S q n r u) (x := heckeCyclotomicPolynomial S q n r u)
    (y := 0) ⟨hn, rfl, rfl⟩
  simpa only [heckeCyclotomicMap, map_zero] using h

end QAlgorithms.Papers.Independent.Intake100.P06
Source
Cyclotomic Birman--Wenzl--Murakami algebras, I: Freeness and realization as tangle algebras, arXiv:math/0612064v5, https://arxiv.org/abs/math/0612064v5
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P06.CyclotomicHecke

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, natural numbers n,rn,rn,r, and units u0,…,ur−1u_0,\ldots,u_{r-1}u0​,…,ur−1​, this abbreviates a ring quotient of the SSS-algebra HnH_nHn​. Here HnH_nHn​ is generated by mutually inverse gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, together with mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, subject to the adjacent braid relations, distant ggg-commutation relations, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. Writing ι:S→Hn\iota:S\to H_nι:S→Hn​ for the scalar map, the quotient is by the smallest ring congruence identifying aaa and bbb whenever 1≤n1\le n1≤n, a=(X−ι(u0))⋯(X−ι(ur−1))a=(X-\iota(u_0))\cdots(X-\iota(u_{r-1}))a=(X−ι(u0​))⋯(X−ι(ur−1​)), and b=0b=0b=0, with factors ordered by increasing index. Thus, for n≥1n\ge1n≥1, it imposes the relation ∏j=0r−1(X−ι(uj))=0\prod_{j=0}^{r-1}(X-\iota(u_j))=0∏j=0r−1​(X−ι(uj​))=0; for n=0n=0n=0, no additional relation is imposed. Empty products equal 111, so r=0r=0r=0 and n≥1n\ge1n≥1 impose 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P06.HeckeLetter

For every natural number nnn and Boolean value aaa, this defines a type of formal letters with two disjoint constructors: a letter g(i,ε)g(i,\varepsilon)g(i,ε) for every i∈{0,…,(n−1)−1}i\in\{0,\ldots,(n-1)-1\}i∈{0,…,(n−1)−1} and Boolean ε\varepsilonε, and a letter x(j,ε)x(j,\varepsilon)x(j,ε) for every j∈{0,…,N−1}j\in\{0,\ldots,N-1\}j∈{0,…,N−1} and Boolean ε\varepsilonε, where n−1n-1n−1 uses natural-number subtraction, so is zero when n=0n=0n=0, and

N={min⁡(n,1),a=true,0,a=false.N= \begin{cases} \min(n,1),&a=\mathrm{true},\\ 0,&a=\mathrm{false}. \end{cases}N={min(n,1),0,​a=true,a=false.​

Thus there are two ggg-letters for each index 0≤i<n−10\le i<n-10≤i<n−1; there are two xxx-letters, both with index 000, exactly when a=truea=\mathrm{true}a=true and n≥1n\ge1n≥1. For n=0n=0n=0 there are no letters, and for n=1n=1n=1 there are no ggg-letters. The Boolean arguments distinguish formal letters and impose no inverse relations.

QAlgorithms.Papers.Independent.Intake100.P06.NormalizedBraidHecke

For every commutative ring SSS, unit q∈S×q\in S^\timesq∈S×, natural number nnn, and Boolean aaa, this abbreviates the quotient of the free SSS-algebra on symbols gi+,gi−g_i^+,g_i^-gi+​,gi−​ for 0≤i<n−10\le i<n-10≤i<n−1, together with x+,x−x^+,x^-x+,x− when a=truea=\mathrm{true}a=true and n≥1n\ge1n≥1, by the smallest ring congruence imposing

gi+gi−=gi−gi+=1,gi+−gi−=q−q−1(i+1<n),gi+gi+1+gi+=gi+1+gi+gi+1+(i+2<n),gi+gj+=gj+gi+(i+1<n, j+1<n, i+1<j or j+1<i),x+x−=x−x+=1(a=true, n≥1),x+g0+x+g0+=g0+x+g0+x+(a=true, n≥2),x+gi+=gi+x+(a=true, 1≤i, i+1<n).\begin{gathered} g_i^+g_i^-=g_i^-g_i^+=1,\qquad g_i^+-g_i^-=q-q^{-1}\quad(i+1<n),\\ g_i^+g_{i+1}^+g_i^+=g_{i+1}^+g_i^+g_{i+1}^+ \quad(i+2<n),\\ g_i^+g_j^+=g_j^+g_i^+ \quad(i+1<n,\ j+1<n,\ i+1<j\ \text{or}\ j+1<i),\\ x^+x^-=x^-x^+=1\quad(a=\mathrm{true},\ n\ge1),\\ x^+g_0^+x^+g_0^+=g_0^+x^+g_0^+x^+ \quad(a=\mathrm{true},\ n\ge2),\\ x^+g_i^+=g_i^+x^+ \quad(a=\mathrm{true},\ 1\le i,\ i+1<n). \end{gathered}gi+​gi−​=gi−​gi+​=1,gi+​−gi−​=q−q−1(i+1<n),gi+​gi+1+​gi+​=gi+1+​gi+​gi+1+​(i+2<n),gi+​gj+​=gj+​gi+​(i+1<n, j+1<n, i+1<j or j+1<i),x+x−=x−x+=1(a=true, n≥1),x+g0+​x+g0+​=g0+​x+g0+​x+(a=true, n≥2),x+gi+​=gi+​x+(a=true, 1≤i, i+1<n).​

Here scalar terms are mapped from SSS, n−1n-1n−1 is truncated at zero, and the signs +++ and −-− denote the false and true Boolean choices. Thus at n=0n=0n=0 there are no generators or defining relations; at n=1n=1n=1 there are no ggg-generators, and the xxx-generators and their inverse relations occur only when a=truea=\mathrm{true}a=true.

QAlgorithms.Papers.Independent.Intake100.P06.NormalizedBraidHeckeRel

Let SSS be a commutative ring, qqq a unit of SSS, nnn a natural number, and aaa a Boolean. In the free SSS-algebra F\mathcal FF on symbols gi+,gi−g_i^+,g_i^-gi+​,gi−​ for 0≤i<n−10\le i<n-10≤i<n−1, together with symbols x+,x−x^+,x^-x+,x− exactly when a=truea=\mathrm{true}a=true and n≥1n\ge1n≥1, let Gi+G_i^+Gi+​ and Gi−G_i^-Gi−​ denote the corresponding canonical generators, and set them to zero outside that index range; let X±X^\pmX± denote the x±x^\pmx± generators when present and zero otherwise. Natural-number subtraction in n−1n-1n−1 is truncated at zero; the signs +++ and −-− stand for the Boolean values false and true, respectively. This declaration defines a binary relation RRR on F\mathcal FF consisting exactly of the following pairs:

(Gi+Gi−,1), (Gi−Gi+,1)(i+1<n),(Gi+Gi+1+Gi+, Gi+1+Gi+Gi+1+)(i+2<n),(Gi+Gj+, Gj+Gi+)(i+1<n, j+1<n, i+1<j or j+1<i),(X+X−,1), (X−X+,1)(a=true, n≥1),(X+G0+X+G0+, G0+X+G0+X+)(a=true, n≥2),(X+Gi+, Gi+X+)(a=true, 1≤i, i+1<n),(Gi+−Gi−, ιS(q−q−1))(i+1<n),\begin{aligned} &(G_i^+G_i^-,1),\ (G_i^-G_i^+,1) && (i+1<n),\\ &(G_i^+G_{i+1}^+G_i^+,\,G_{i+1}^+G_i^+G_{i+1}^+) && (i+2<n),\\ &(G_i^+G_j^+,\,G_j^+G_i^+) && (i+1<n,\ j+1<n,\ i+1<j\ \text{or}\ j+1<i),\\ &(X^+X^-,1),\ (X^-X^+,1) && (a=\mathrm{true},\ n\ge1),\\ &(X^+G_0^+X^+G_0^+,\,G_0^+X^+G_0^+X^+) && (a=\mathrm{true},\ n\ge2),\\ &(X^+G_i^+,\,G_i^+X^+) && (a=\mathrm{true},\ 1\le i,\ i+1<n),\\ &(G_i^+-G_i^-,\,\iota_S(q-q^{-1})) && (i+1<n), \end{aligned}​(Gi+​Gi−​,1), (Gi−​Gi+​,1)(Gi+​Gi+1+​Gi+​,Gi+1+​Gi+​Gi+1+​)(Gi+​Gj+​,Gj+​Gi+​)(X+X−,1), (X−X+,1)(X+G0+​X+G0+​,G0+​X+G0+​X+)(X+Gi+​,Gi+​X+)(Gi+​−Gi−​,ιS​(q−q−1))​​(i+1<n),(i+2<n),(i+1<n, j+1<n, i+1<j or j+1<i),(a=true, n≥1),(a=true, n≥2),(a=true, 1≤i, i+1<n),(i+1<n),​

where all displayed indices are natural numbers and ιS:S→F\iota_S:S\to\mathcal FιS​:S→F is the scalar map. These are pairs in a relation; the declaration does not itself identify the paired elements or close the relation under ring operations. At n=0n=0n=0 this relation has no pairs, and at n=1n=1n=1 its only possible pairs are the two X±X^\pmX± inverse pairs when a=truea=\mathrm{true}a=true.

QAlgorithms.Papers.Independent.Intake100.P06.adjacentSwap

For every pair of natural numbers n,in,in,i, this defines a permutation of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}: if i+1<ni+1<ni+1<n, it exchanges iii and i+1i+1i+1 and fixes every other element; otherwise, it is the identity permutation. Thus it is the identity for every iii when n=0n=0n=0 or n=1n=1n=1, and also for every out-of-range iii.

QAlgorithms.Papers.Independent.Intake100.P06.boundedHeckeNormalWord

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, natural numbers n,rn,rn,r, units u0,…,ur−1u_0,\ldots,u_{r-1}u0​,…,ur−1​, and a pair d=(α,b)d=(\alpha,b)d=(α,b), where α\alphaα is a permutation of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} and b:{0,…,n−1}→{0,…,r−1}b:\{0,\ldots,n-1\}\to\{0,\ldots,r-1\}b:{0,…,n−1}→{0,…,r−1}, this defines an element of the following quotient algebra. Begin with the SSS-algebra HnH_nHn​ having mutually inverse gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, subject to the adjacent braid relations, distant ggg-commutation relations, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1; when n≥1n\ge1n≥1, further quotient by (X−ι(u0))⋯(X−ι(ur−1))=0(X-\iota(u_0))\cdots(X-\iota(u_{r-1}))=0(X−ι(u0​))⋯(X−ι(ur−1​))=0, with no further relation when n=0n=0n=0. To construct the element, start with (σ,L)=(α,[])(\sigma,L)=(\alpha,[])(σ,L)=(α,[]), process i=0,…,n−1i=0,\ldots,n-1i=0,…,n−1, let p=σ−1(i)p=\sigma^{-1}(i)p=σ−1(i), form T=[p−1,…,i]T=[p-1,\ldots,i]T=[p−1,…,i] if p>ip>ip>i and T=[]T=[]T=[] otherwise, replace σ\sigmaσ by σ∏h∈Tsh\sigma\prod_{h\in T}s_hσ∏h∈T​sh​, and append TTT to LLL, where shs_hsh​ swaps h,h+1h,h+1h,h+1 when valid and otherwise is the identity, and the rightmost permutation factor acts first. If the reversal of the final list is [h1,…,hm][h_1,\ldots,h_m][h1​,…,hm​], set Wj=(gj−1⋯g0)X(g0−1⋯gj−1−1)W_j=(g_{j-1}\cdots g_0)X(g_0^{-1}\cdots g_{j-1}^{-1})Wj​=(gj−1​⋯g0​)X(g0−1​⋯gj−1−1​). The defined element is the quotient class of

(gh1−1⋯ghm−1) Wn−1 b(n−1)⋯W0 b(0),(g_{h_1}^{-1}\cdots g_{h_m}^{-1})\,W_{n-1}^{\,b(n-1)}\cdots W_0^{\,b(0)},(gh1​−1​⋯ghm​−1​)Wn−1b(n−1)​⋯W0b(0)​,

where the values of bbb are used as nonnegative integer exponents, each strictly less than rrr. Empty products are 111, and out-of-range ggg-symbols are zero. When n=0n=0n=0, the element is 111; when r=0<nr=0<nr=0<n, no function bbb of the required type exists, so there is no such input pair.

QAlgorithms.Papers.Independent.Intake100.P06.heckeCyclotomicMap

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, natural numbers n,rn,rn,r, and units u0,…,ur−1u_0,\ldots,u_{r-1}u0​,…,ur−1​, this defines the canonical SSS-algebra homomorphism from HnH_nHn​ to its ring quotient described below, sending each element to its quotient class. The algebra HnH_nHn​ has mutually inverse generators gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, with the adjacent braid relations, distant ggg-commutation relations, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. The target quotient is by the smallest ring congruence identifying (X−ι(u0))⋯(X−ι(ur−1))(X-\iota(u_0))\cdots(X-\iota(u_{r-1}))(X−ι(u0​))⋯(X−ι(ur−1​)) with zero when n≥1n\ge1n≥1, where ι:S→Hn\iota:S\to H_nι:S→Hn​ is the scalar map and factors occur in increasing index order. When n=0n=0n=0, no additional relation is imposed; when n≥1n\ge1n≥1 and r=0r=0r=0, the empty product is 111, so the target imposes 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P06.heckeCyclotomicPolynomial

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, natural numbers n,rn,rn,r, and a function u:{0,…,r−1}→S×u:\{0,\ldots,r-1\}\to S^\timesu:{0,…,r−1}→S×, this defines an element of the SSS-algebra HnH_nHn​ generated by mutually inverse gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, subject to the adjacent braid relations, distant ggg-commutation relations, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. Writing ι:S→Hn\iota:S\to H_nι:S→Hn​ for the scalar map, the defined element is

(X−ι(u0))(X−ι(u1))⋯(X−ι(ur−1)),(X-\iota(u_0))(X-\iota(u_1))\cdots(X-\iota(u_{r-1})),(X−ι(u0​))(X−ι(u1​))⋯(X−ι(ur−1​)),

with factors in increasing index order. Here uju_juj​ denotes the underlying ring element of the unit, and XXX is defined to be zero when n=0n=0n=0. There is no positivity assumption on nnn or rrr: for r=0r=0r=0, the product is 111, and for n=0n=0n=0, it is the product of the scalars −ι(uj)-\iota(u_j)−ι(uj​).

QAlgorithms.Papers.Independent.Intake100.P06.heckeCyclotomicRel

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, natural numbers n,rn,rn,r, units u0,…,ur−1u_0,\ldots,u_{r-1}u0​,…,ur−1​, and elements a,ba,ba,b of the following SSS-algebra HnH_nHn​, this defines a proposition: HnH_nHn​ has mutually inverse generators gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, with the adjacent braid relations, distant ggg-commutation relations, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. With ι:S→Hn\iota:S\to H_nι:S→Hn​ the scalar map and X=0X=0X=0 by convention when n=0n=0n=0, the proposition holds exactly when all three conditions

1≤n,a=(X−ι(u0))⋯(X−ι(ur−1)),b=01\le n,\qquad a=(X-\iota(u_0))\cdots(X-\iota(u_{r-1})),\qquad b=01≤n,a=(X−ι(u0​))⋯(X−ι(ur−1​)),b=0

hold, the product being in increasing index order. For n=0n=0n=0, the relation holds for no pair a,ba,ba,b. For r=0r=0r=0, the middle condition is a=1a=1a=1.

QAlgorithms.Papers.Independent.Intake100.P06.heckeFreeG

For every commutative ring SSS, natural numbers n,in,in,i, and Boolean values a,εa,\varepsilona,ε, let F\mathcal FF be the free SSS-algebra on formal letters g(j,η)g(j,\eta)g(j,η), with 0≤j<n−10\le j<n-10≤j<n−1 and Boolean η\etaη, together with letters x(0,η)x(0,\eta)x(0,η) exactly when a=truea=\mathrm{true}a=true and n≥1n\ge1n≥1; here n−1n-1n−1 is truncated at zero. This defines the element

Giε={ι(g(i,ε)),i<n−1,0,i≥n−1,G_i^\varepsilon= \begin{cases} \iota(g(i,\varepsilon)),&i<n-1,\\ 0,&i\ge n-1, \end{cases}Giε​={ι(g(i,ε)),0,​i<n−1,i≥n−1,​

where ι\iotaι is the canonical generator map into F\mathcal FF. In particular, every value is zero when n=0n=0n=0 or n=1n=1n=1. The Boolean selects one of two formal letters and does not itself assert that either is an inverse.

QAlgorithms.Papers.Independent.Intake100.P06.heckeFreeX

For every commutative ring SSS, natural number nnn, and Boolean values a,εa,\varepsilona,ε, let F\mathcal FF be the free SSS-algebra on letters g(i,η)g(i,\eta)g(i,η) for 0≤i<n−10\le i<n-10≤i<n−1 and Boolean η\etaη, and on letters x(j,η)x(j,\eta)x(j,η) for 0≤j<N0\le j<N0≤j<N, where n−1n-1n−1 is truncated at zero and N=min⁡(n,1)N=\min(n,1)N=min(n,1) if a=truea=\mathrm{true}a=true, while N=0N=0N=0 otherwise. This defines

Xε={ι(x(0,ε)),a=true and n≥1,0,otherwise,X^\varepsilon= \begin{cases} \iota(x(0,\varepsilon)),&a=\mathrm{true}\ \text{and}\ n\ge1,\\ 0,&\text{otherwise}, \end{cases}Xε={ι(x(0,ε)),0,​a=true and n≥1,otherwise,​

where ι\iotaι is the canonical generator map into F\mathcal FF. Thus the result is zero for every non-affine choice a=falsea=\mathrm{false}a=false, and also for n=0n=0n=0. The two Boolean choices select formal letters without imposing an inverse relation.

QAlgorithms.Papers.Independent.Intake100.P06.heckeG

For every commutative ring SSS, unit q∈S×q\in S^\timesq∈S×, natural numbers n,in,in,i, and Boolean values a,εa,\varepsilona,ε, form the SSS-algebra HHH presented by symbols gj+,gj−g_j^+,g_j^-gj+​,gj−​ for 0≤j<n−10\le j<n-10≤j<n−1, and symbols x+,x−x^+,x^-x+,x− exactly when a=truea=\mathrm{true}a=true and n≥1n\ge1n≥1, subject to

gj+gj−=gj−gj+=1,gj+−gj−=q−q−1(j+1<n),gj+gj+1+gj+=gj+1+gj+gj+1+(j+2<n),gj+gk+=gk+gj+(j+1<n, k+1<n, j+1<k or k+1<j),x+x−=x−x+=1(a=true, n≥1),x+g0+x+g0+=g0+x+g0+x+(a=true, n≥2),x+gj+=gj+x+(a=true, 1≤j, j+1<n).\begin{gathered} g_j^+g_j^-=g_j^-g_j^+=1,\qquad g_j^+-g_j^-=q-q^{-1}\quad(j+1<n),\\ g_j^+g_{j+1}^+g_j^+=g_{j+1}^+g_j^+g_{j+1}^+ \quad(j+2<n),\\ g_j^+g_k^+=g_k^+g_j^+ \quad(j+1<n,\ k+1<n,\ j+1<k\ \text{or}\ k+1<j),\\ x^+x^-=x^-x^+=1\quad(a=\mathrm{true},\ n\ge1),\\ x^+g_0^+x^+g_0^+=g_0^+x^+g_0^+x^+ \quad(a=\mathrm{true},\ n\ge2),\\ x^+g_j^+=g_j^+x^+ \quad(a=\mathrm{true},\ 1\le j,\ j+1<n). \end{gathered}gj+​gj−​=gj−​gj+​=1,gj+​−gj−​=q−q−1(j+1<n),gj+​gj+1+​gj+​=gj+1+​gj+​gj+1+​(j+2<n),gj+​gk+​=gk+​gj+​(j+1<n, k+1<n, j+1<k or k+1<j),x+x−=x−x+=1(a=true, n≥1),x+g0+​x+g0+​=g0+​x+g0+​x+(a=true, n≥2),x+gj+​=gj+​x+(a=true, 1≤j, j+1<n).​

This means the quotient of the free SSS-algebra by the ring congruence generated by these equations, with scalar terms mapped from SSS. The definition returns the quotient class of gi+g_i^+gi+​ if i<n−1i<n-1i<n−1 and ε=false\varepsilon=\mathrm{false}ε=false, the quotient class of gi−g_i^-gi−​ if i<n−1i<n-1i<n−1 and ε=true\varepsilon=\mathrm{true}ε=true, and zero if i≥n−1i\ge n-1i≥n−1. Subtraction in n−1n-1n−1 is truncated at zero, so the result is zero for every i,ε,ai,\varepsilon,ai,ε,a when n=0n=0n=0 or n=1n=1n=1.

QAlgorithms.Papers.Independent.Intake100.P06.heckeLaurentWord

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, a natural number nnn, and integers a0,…,an−1a_0,\ldots,a_{n-1}a0​,…,an−1​, this defines an element of the SSS-algebra HnH_nHn​ generated by mutually inverse gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, with relations gigi+1gi=gi+1gigi+1g_i g_{i+1}g_i=g_{i+1}g_i g_{i+1}gi​gi+1​gi​=gi+1​gi​gi+1​ for i+2<ni+2<ni+2<n, gigℓ=gℓgig_i g_\ell=g_\ell g_igi​gℓ​=gℓ​gi​ for valid ∣i−ℓ∣>1|i-\ell|>1∣i−ℓ∣>1, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. For 0≤j<n0\le j<n0≤j<n, set Wj±=(gj−1⋯g0)X±1(g0−1⋯gj−1−1)W_j^\pm=(g_{j-1}\cdots g_0)X^{\pm1}(g_0^{-1}\cdots g_{j-1}^{-1})Wj±​=(gj−1​⋯g0​)X±1(g0−1​⋯gj−1−1​), taking empty products as 111, and set Pj=(Wj+)ajP_j=(W_j^+)^{a_j}Pj​=(Wj+​)aj​ if aj≥0a_j\ge0aj​≥0, and Pj=(Wj−)−ajP_j=(W_j^-)^{-a_j}Pj​=(Wj−​)−aj​ otherwise. The defined word is the ordered product Pn−1Pn−2⋯P0P_{n-1}P_{n-2}\cdots P_0Pn−1​Pn−2​⋯P0​. When n=0n=0n=0, the exponent function has empty domain, the algebra has no generators, and this product is 111.

QAlgorithms.Papers.Independent.Intake100.P06.heckeMap

For every commutative ring SSS, unit q∈S×q\in S^\timesq∈S×, natural number nnn, and Boolean aaa, let F\mathcal FF be the free SSS-algebra on symbols gi+,gi−g_i^+,g_i^-gi+​,gi−​ for 0≤i<n−10\le i<n-10≤i<n−1, together with x+,x−x^+,x^-x+,x− exactly when a=truea=\mathrm{true}a=true and n≥1n\ge1n≥1, with n−1n-1n−1 truncated at zero. Let HHH be its quotient by the smallest ring congruence imposing

gi+gi−=gi−gi+=1,gi+−gi−=q−q−1(i+1<n),gi+gi+1+gi+=gi+1+gi+gi+1+(i+2<n),gi+gj+=gj+gi+(i+1<n, j+1<n, i+1<j or j+1<i),x+x−=x−x+=1(a=true, n≥1),x+g0+x+g0+=g0+x+g0+x+(a=true, n≥2),x+gi+=gi+x+(a=true, 1≤i, i+1<n),\begin{gathered} g_i^+g_i^-=g_i^-g_i^+=1,\qquad g_i^+-g_i^-=q-q^{-1}\quad(i+1<n),\\ g_i^+g_{i+1}^+g_i^+=g_{i+1}^+g_i^+g_{i+1}^+ \quad(i+2<n),\\ g_i^+g_j^+=g_j^+g_i^+ \quad(i+1<n,\ j+1<n,\ i+1<j\ \text{or}\ j+1<i),\\ x^+x^-=x^-x^+=1\quad(a=\mathrm{true},\ n\ge1),\\ x^+g_0^+x^+g_0^+=g_0^+x^+g_0^+x^+ \quad(a=\mathrm{true},\ n\ge2),\\ x^+g_i^+=g_i^+x^+ \quad(a=\mathrm{true},\ 1\le i,\ i+1<n), \end{gathered}gi+​gi−​=gi−​gi+​=1,gi+​−gi−​=q−q−1(i+1<n),gi+​gi+1+​gi+​=gi+1+​gi+​gi+1+​(i+2<n),gi+​gj+​=gj+​gi+​(i+1<n, j+1<n, i+1<j or j+1<i),x+x−=x−x+=1(a=true, n≥1),x+g0+​x+g0+​=g0+​x+g0+​x+(a=true, n≥2),x+gi+​=gi+​x+(a=true, 1≤i, i+1<n),​

where scalars act through the coefficient-ring map and the two signs correspond respectively to the false and true Boolean labels. This definition is the canonical SSS-algebra homomorphism F→H\mathcal F\to HF→H sending each element to its quotient class. It includes n=0n=0n=0, when the alphabet and relation set are empty, and n=1n=1n=1, when there are no ggg-letters and only the possible x±x^\pmx± letters and inverse relations.

QAlgorithms.Papers.Independent.Intake100.P06.heckeNormalWord

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, a natural number nnn, and a pair d=(α,a)d=(\alpha,a)d=(α,a) consisting of a permutation α\alphaα of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} and an integer-valued function aaa on this set, this defines an element of the SSS-algebra HnH_nHn​ generated by mutually inverse gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, with the adjacent braid relations, distant ggg-commutation relations, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. To form a list from α\alphaα, start with (σ,L)=(α,[])(\sigma,L)=(\alpha,[])(σ,L)=(α,[]); for each i=0,…,n−1i=0,\ldots,n-1i=0,…,n−1, let p=σ−1(i)p=\sigma^{-1}(i)p=σ−1(i), take T=[p−1,…,i]T=[p-1,\ldots,i]T=[p−1,…,i] if p>ip>ip>i and T=[]T=[]T=[] otherwise, replace σ\sigmaσ by σ∏h∈Tsh\sigma\prod_{h\in T}s_hσ∏h∈T​sh​, and append TTT to LLL, where shs_hsh​ swaps h,h+1h,h+1h,h+1 when valid and is otherwise the identity, and the rightmost permutation factor acts first. Write the reversal of the resulting list as [h1,…,hm][h_1,\ldots,h_m][h1​,…,hm​]. Set Wj±=(gj−1⋯g0)X±1(g0−1⋯gj−1−1)W_j^\pm=(g_{j-1}\cdots g_0)X^{\pm1}(g_0^{-1}\cdots g_{j-1}^{-1})Wj±​=(gj−1​⋯g0​)X±1(g0−1​⋯gj−1−1​), and Pj=(Wj+)ajP_j=(W_j^+)^{a_j}Pj​=(Wj+​)aj​ for aj≥0a_j\ge0aj​≥0, or Pj=(Wj−)−ajP_j=(W_j^-)^{-a_j}Pj​=(Wj−​)−aj​ for aj<0a_j<0aj​<0. The defined element is

(gh1−1⋯ghm−1) Pn−1⋯P0.(g_{h_1}^{-1}\cdots g_{h_m}^{-1})\,P_{n-1}\cdots P_0.(gh1​−1​⋯ghm​−1​)Pn−1​⋯P0​.

All empty products are 111; out-of-range ggg-symbols and the XXX-symbols at n=0n=0n=0 are interpreted as zero. In particular, when n=0n=0n=0, this element is 111.

QAlgorithms.Papers.Independent.Intake100.P06.heckePermutationLift

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, a natural number nnn, and a permutation α\alphaα of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, this defines an element of the SSS-algebra HnH_nHn​ generated by mutually inverse gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, and mutually inverse X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1, subject to the adjacent braid relations, commutation of gi,gℓg_i,g_\ellgi​,gℓ​ for valid ∣i−ℓ∣>1|i-\ell|>1∣i−ℓ∣>1, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. Construct a list by starting with (σ,L)=(α,[])(\sigma,L)=(\alpha,[])(σ,L)=(α,[]) and processing i=0,…,n−1i=0,\ldots,n-1i=0,…,n−1: with p=σ−1(i)p=\sigma^{-1}(i)p=σ−1(i), take T=[p−1,…,i]T=[p-1,\ldots,i]T=[p−1,…,i] if p>ip>ip>i, and T=[]T=[]T=[] otherwise; replace σ\sigmaσ by σ∏h∈Tsh\sigma\prod_{h\in T}s_hσ∏h∈T​sh​ and append TTT to LLL, where shs_hsh​ swaps h,h+1h,h+1h,h+1 when h+1<nh+1<nh+1<n and is otherwise the identity, and permutation multiplication is composition with the rightmost factor acting first. If the reversal of the final list is [h1,…,hm][h_1,\ldots,h_m][h1​,…,hm​], the defined element is gh1−1⋯ghm−1g_{h_1}^{-1}\cdots g_{h_m}^{-1}gh1​−1​⋯ghm​−1​, in that order; an out-of-range ggg-symbol is interpreted as zero. For n=0n=0n=0, the list is empty and the element is 111.

QAlgorithms.Papers.Independent.Intake100.P06.heckeWinding

For every commutative ring SSS, unit q∈S×q\in S^\timesq∈S×, natural numbers n,jn,jn,j, and Boolean ε\varepsilonε, let HHH be the quotient of the free SSS-algebra on gi+,gi−g_i^+,g_i^-gi+​,gi−​ for 0≤i<n−10\le i<n-10≤i<n−1, and on x+,x−x^+,x^-x+,x− when n≥1n\ge1n≥1, by the relations

gi+gi−=gi−gi+=1,gi+−gi−=q−q−1(i+1<n),gi+gi+1+gi+=gi+1+gi+gi+1+(i+2<n),gi+gk+=gk+gi+(i+1<n, k+1<n, i+1<k or k+1<i),x+x−=x−x+=1(n≥1),x+g0+x+g0+=g0+x+g0+x+(n≥2),x+gi+=gi+x+(1≤i, i+1<n),\begin{gathered} g_i^+g_i^-=g_i^-g_i^+=1,\qquad g_i^+-g_i^-=q-q^{-1}\quad(i+1<n),\\ g_i^+g_{i+1}^+g_i^+=g_{i+1}^+g_i^+g_{i+1}^+ \quad(i+2<n),\\ g_i^+g_k^+=g_k^+g_i^+ \quad(i+1<n,\ k+1<n,\ i+1<k\ \text{or}\ k+1<i),\\ x^+x^-=x^-x^+=1\quad(n\ge1),\\ x^+g_0^+x^+g_0^+=g_0^+x^+g_0^+x^+\quad(n\ge2),\\ x^+g_i^+=g_i^+x^+\quad(1\le i,\ i+1<n), \end{gathered}gi+​gi−​=gi−​gi+​=1,gi+​−gi−​=q−q−1(i+1<n),gi+​gi+1+​gi+​=gi+1+​gi+​gi+1+​(i+2<n),gi+​gk+​=gk+​gi+​(i+1<n, k+1<n, i+1<k or k+1<i),x+x−=x−x+=1(n≥1),x+g0+​x+g0+​=g0+​x+g0+​x+(n≥2),x+gi+​=gi+​x+(1≤i, i+1<n),​

with scalar terms mapped from SSS and with the smallest ring congruence imposing these equations. Write Gi±G_i^\pmGi±​ for the classes of the corresponding generators when i<n−1i<n-1i<n−1, and zero otherwise; write X±X^\pmX± for the classes of x±x^\pmx± when n≥1n\ge1n≥1, and zero when n=0n=0n=0. Here n−1n-1n−1 is truncated at zero. Taking Xε=X+X^\varepsilon=X^+Xε=X+ for ε=false\varepsilon=\mathrm{false}ε=false and Xε=X−X^\varepsilon=X^-Xε=X− for ε=true\varepsilon=\mathrm{true}ε=true, the definition is the ordered product

Wjε=(Gj−1+Gj−2+⋯G0+)Xε(G0−G1−⋯Gj−1−).W_j^\varepsilon = \bigl(G_{j-1}^+G_{j-2}^+\cdots G_0^+\bigr) X^\varepsilon \bigl(G_0^-G_1^-\cdots G_{j-1}^-\bigr).Wjε​=(Gj−1+​Gj−2+​⋯G0+​)Xε(G0−​G1−​⋯Gj−1−​).

Both products flanking XεX^\varepsilonXε are empty and equal 111 when j=0j=0j=0, so W0ε=XεW_0^\varepsilon=X^\varepsilonW0ε​=Xε. The definition allows every natural number jjj: it is zero for all jjj when n=0n=0n=0, and for n≥1n\ge1n≥1 it is zero whenever j≥nj\ge nj≥n, because then the flanking products contain an out-of-range factor.

QAlgorithms.Papers.Independent.Intake100.P06.heckeWindingPower

For a commutative ring SSS, a unit q∈S×q\in S^\timesq∈S×, natural numbers n,jn,jn,j, and an integer aaa, this defines an element of the following SSS-algebra HnH_nHn​: its generators are mutually inverse pairs gi,gi−1g_i,g_i^{-1}gi​,gi−1​ for i+1<ni+1<ni+1<n, together with X,X−1X,X^{-1}X,X−1 when n≥1n\ge1n≥1; its relations are gigi+1gi=gi+1gigi+1g_i g_{i+1}g_i=g_{i+1}g_i g_{i+1}gi​gi+1​gi​=gi+1​gi​gi+1​ for i+2<ni+2<ni+2<n, gigℓ=gℓgig_i g_\ell=g_\ell g_igi​gℓ​=gℓ​gi​ for valid indices with ∣i−ℓ∣>1|i-\ell|>1∣i−ℓ∣>1, gi−gi−1=(q−q−1)1g_i-g_i^{-1}=(q-q^{-1})1gi​−gi−1​=(q−q−1)1, Xg0Xg0=g0Xg0XXg_0Xg_0=g_0Xg_0XXg0​Xg0​=g0​Xg0​X when n≥2n\ge2n≥2, and Xgi=giXXg_i=g_iXXgi​=gi​X for valid i≥1i\ge1i≥1. For total indexing, either ggg-symbol is defined to be zero when i+1≥ni+1\ge ni+1≥n, and both XXX-symbols are zero when n=0n=0n=0. Put Wj±=(gj−1⋯g0)X±1(g0−1⋯gj−1−1)W_j^\pm=(g_{j-1}\cdots g_0)X^{\pm1}(g_0^{-1}\cdots g_{j-1}^{-1})Wj±​=(gj−1​⋯g0​)X±1(g0−1​⋯gj−1−1​), with both surrounding products equal to 111 when j=0j=0j=0. The defined element is

{(Wj+)a,a≥0,(Wj−)−a,a<0.\begin{cases} (W_j^+)^a,&a\ge0,\\ (W_j^-)^{-a},&a<0. \end{cases}{(Wj+​)a,(Wj−​)−a,​a≥0,a<0.​

In particular, exponent zero gives 111, including when the winding element is zero; jjj is unrestricted, and Wj±=0W_j^\pm=0Wj±​=0 whenever j≥nj\ge nj≥n.

QAlgorithms.Papers.Independent.Intake100.P06.heckeX

For every commutative ring SSS, unit q∈S×q\in S^\timesq∈S×, natural number nnn, and Boolean ε\varepsilonε, let HHH be the quotient of the free SSS-algebra on gi+,gi−g_i^+,g_i^-gi+​,gi−​ for 0≤i<n−10\le i<n-10≤i<n−1, together with x+,x−x^+,x^-x+,x− when n≥1n\ge1n≥1, by the equations

gi+gi−=gi−gi+=1,gi+−gi−=q−q−1(i+1<n),gi+gi+1+gi+=gi+1+gi+gi+1+(i+2<n),gi+gj+=gj+gi+(i+1<n, j+1<n, i+1<j or j+1<i),x+x−=x−x+=1(n≥1),x+g0+x+g0+=g0+x+g0+x+(n≥2),x+gi+=gi+x+(1≤i, i+1<n),\begin{gathered} g_i^+g_i^-=g_i^-g_i^+=1,\qquad g_i^+-g_i^-=q-q^{-1}\quad(i+1<n),\\ g_i^+g_{i+1}^+g_i^+=g_{i+1}^+g_i^+g_{i+1}^+ \quad(i+2<n),\\ g_i^+g_j^+=g_j^+g_i^+ \quad(i+1<n,\ j+1<n,\ i+1<j\ \text{or}\ j+1<i),\\ x^+x^-=x^-x^+=1\quad(n\ge1),\\ x^+g_0^+x^+g_0^+=g_0^+x^+g_0^+x^+\quad(n\ge2),\\ x^+g_i^+=g_i^+x^+\quad(1\le i,\ i+1<n), \end{gathered}gi+​gi−​=gi−​gi+​=1,gi+​−gi−​=q−q−1(i+1<n),gi+​gi+1+​gi+​=gi+1+​gi+​gi+1+​(i+2<n),gi+​gj+​=gj+​gi+​(i+1<n, j+1<n, i+1<j or j+1<i),x+x−=x−x+=1(n≥1),x+g0+​x+g0+​=g0+​x+g0+​x+(n≥2),x+gi+​=gi+​x+(1≤i, i+1<n),​

where the quotient uses the smallest ring congruence imposing the displayed equations, scalar terms are mapped from SSS, and n−1n-1n−1 is truncated at zero. This defines an element of HHH: for n≥1n\ge1n≥1, it is the quotient class of x+x^+x+ when ε=false\varepsilon=\mathrm{false}ε=false and of x−x^-x− when ε=true\varepsilon=\mathrm{true}ε=true; for n=0n=0n=0, it is zero. At n=1n=1n=1, the presentation has just the two xxx-symbols and their two inverse relations.

QAlgorithms.Papers.Independent.Intake100.P06.permutationReducedWord

For a natural number nnn, implicit in the input, and a permutation α\alphaα of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, this defines a list of natural numbers by the following finite procedure. Start with a permutation σ=α\sigma=\alphaσ=α and an empty list LLL. Process i=0,1,…,n−1i=0,1,\ldots,n-1i=0,1,…,n−1 in increasing order. At each step, let p=σ−1(i)p=\sigma^{-1}(i)p=σ−1(i), viewed as a natural number, and form the list T=[p−1,p−2,…,i]T=[p-1,p-2,\ldots,i]T=[p−1,p−2,…,i] if p>ip>ip>i, or the empty list if p≤ip\le ip≤i. For each natural number hhh, let shs_hsh​ exchange hhh and h+1h+1h+1 if h+1<nh+1<nh+1<n, and be the identity otherwise. Replace σ\sigmaσ by σ∏h∈Tsh\sigma\prod_{h\in T}s_hσ∏h∈T​sh​, multiplying in the order of TTT, and append TTT to LLL; permutation multiplication means composition, with the rightmost factor acting first. After all steps, return the reversal of LLL. For n=0n=0n=0, this returns the empty list.

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