Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Centers of degenerate cyclotomic Hecke algebras and parabolic category O

Definition
QAlgorithms_Papers_Independent_Intake100_P40

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

prove2quantum

The objects the formalized statements of Centers of degenerate cyclotomic Hecke algebras and parabolic category O (arXiv:math/0607717) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • DegenerateHeckeLetter: Polynomial and permutation letters, source PDF pp.1,4.
  • degenerateFreeX: Free polynomial letter, PDF pp.1,4.
  • freeW: Free permutation letter, PDF pp.1,4.
  • GradedRel: Presentation of T ⋊ R S_d: polynomial commutativity, group multiplication, variable permutation, and x_i^l=0. This is the actual algebra of PDF p.4.
  • GradedAlgebra: Truncated polynomial skew group algebra, PDF p.4.
  • gradedMap: Canonical presentation map, PDF p.4.
  • gradedX: The variable x_(i+1) in the graded algebra, PDF p.4.
  • gradedW: Permutation in the graded algebra, PDF p.4.
  • orderedMonomial: Source-ordered monomial, meaningful also in a noncommutative ambient ring. The empty product at d=0 is 1 (PDF pp.4,12).
  • hElement: The h_r(I) of PDF p.4, inside its faithful skew-group ambient algebra. Only exponents on I contribute; exponents outside I are required to be zero. The source uses this definition for nonempty I; lemma_2_1 ensures that domain.
  • IsMarkedCycle: A cycle with its actual nonempty letter set, including marked 1-cycles. Lists differing by rotation give the same pair; singleton labels are retained. PDF p.5.
  • MarkedCycle: Canonical cycle data modulo cyclic rotation, PDF p.5.
  • coloredCycle: A^(r)=h_r(A)A, with r any natural color, PDF p.5.
  • ColoredProduct: Canonical disjoint product data. Every letter is covered exactly once, so the otherwise removable color-zero singletons have a unique presentation. This implements the equivalence of presentations on PDF pp.6--7.
  • disjointColoredProductElement: Product of all colored factors in a canonical finite-set ordering. Disjoint factors commute; no summation over their reorderings is used. PDF pp.6--7.
  • polynomialCentralizer: The polynomial centralizer Q_d, PDF p.4. Commuting with all variables is equivalent to commuting with the subalgebra they generate.
  • IsBasisFor: A specified family is a basis of a specified ambient submodule. This asserts both linear independence and exact span, without choosing membership proofs or imposing the nonzero-ring convention for Module.rank. PDF pp.6--12.
  • IsPartition: An ordinary partition is its multiset of strictly positive parts. An empty multiset is the empty partition (PDF p.7).
  • Multipartition: M_d(l), using source colors 0,...,l-1 as component indices, PDF p.7.
  • quotientSize: Sum of the quotients floor(mu_i/l), PDF p.9.
  • PartitionIndex: P_d(l), PDF p.9. Positive parts only; padding zeros is done separately.
  • partitionPhi: The explicitly given phi of PDF p.9. A part a in color r gives (a-1)l+r; zero outputs are omitted from the ordinary partition.
  • partitionInverse: The source inverse formula (PDF p.9): restore exactly the lost color-zero singletons using total size d, then separate by residue modulo l.
  • cycleType: Cycle type, with all fixed points and their colors counted, PDF pp.7--8.
  • orbitSum: z_d(lambda): each distinct canonical colored product is included once. In particular no stabilizer multiplicity or division by d! occurs. PDF p.8.
  • centralizerIndexCount: The rank formula of Theorem 2.3, PDF p.6, computed in Q, not N. The finite tuple m records the multiplicity of cycles of size a+1. The empty product and sum at d=0 give rank 1.
  • singleCycleSum: The sum of all a-cycles of color r, with marked singletons, PDF p.8.
  • murphyY: y_i(k), summing ordered distinct choices of k/l earlier letters. The last letter is i, and the color is k mod l (PDF p.8).
  • rearrangements: All distinct rearrangements of a partition padded to d entries by zeros. The bound mu.sum+1 accommodates every part, including the empty partition. PDF pp.9,12.
  • symmetricMonomial: Monomial symmetric sum for an explicitly given family, PDF pp.9,12. Each exponent tuple occurs once, even if its entries repeat.
  • murphyM: m_d(mu), the second central basis in the graded algebra, PDF p.9.
  • murphyErrorProducts: Error products in Lemma 2.6: the head cycle contains i, every cycle lies in S_(i+1), factors have the uniform color l-1, and the total number of letters is at most p. The set is empty at p=0. PDF pp.8--9.
  • DegenerateAffineHeckeRel: All relations of the degenerate affine Hecke algebra, PDF p.1. The sign is s_i x_(i+1) = x_i s_i + 1.
  • CyclotomicRel: The cyclotomic relation for the monic polynomial f(X)=X^l+sum_(a<l)c_a X^a. At d=0 there is no first variable and no extra relation, giving H_0^f=R. PDF pp.1,21.
  • CyclotomicAlgebra: Literal presented degenerate cyclotomic Hecke algebra, PDF p.1.
  • degenerateCyclotomicQuotientMap: Canonical quotient map, PDF p.1.
  • degenerateCyclotomicVariable: x_(i+1) in H_d^f; separate from the graded variable, PDF pp.1,10--11.
  • cyclotomicP: p_d(mu), with distinct rearrangements, PDF p.12.
  • IsSymmetricPolynomial: Symmetry under the usual permutation of variables, PDF pp.1--2.
  • cyclotomicEvaluate: Evaluation at the commuting cyclotomic variables, expressed as the finite coefficient sum of ordered monomials to allow a noncommutative ambient algebra. PDF pp.1--2.
  • cyclotomicPowerSum: Source-prescribed power sums, PDF p.12.
Definition code
import Mathlib

/-!
Statements from Brundan, arXiv:math/0607717v3.
All new objects in this file are local to this paper. The algebra presentations
use a letter for every permutation, with the full group multiplication table.
Indices in `Fin d` are zero based; index i represents the source letter i+1.
No nonzero-ring, characteristic, or splitting assumption is imposed in §§2--3.
The representation-theoretic and filtered-symbol nodes are explicitly deferred
in the unit's GAPS.json; no abstract surrogate for those objects is assumed.
-/

noncomputable section

open scoped BigOperators

namespace QAlgorithms.Papers.Independent.Intake100.P40

attribute [local instance] Classical.propDecidable

/-- Polynomial and permutation letters, source PDF pp.1,4. -/
inductive DegenerateHeckeLetter (d : ℕ)
  | x : Fin d → DegenerateHeckeLetter d
  | w : Equiv.Perm (Fin d) → DegenerateHeckeLetter d

/-- Free polynomial letter, PDF pp.1,4. -/
def degenerateFreeX (R : Type*) [CommRing R] (d : ℕ) (i : Fin d) :
    FreeAlgebra R (DegenerateHeckeLetter d) := FreeAlgebra.ι R (.x i)

/-- Free permutation letter, PDF pp.1,4. -/
def freeW (R : Type*) [CommRing R] (d : ℕ) (w : Equiv.Perm (Fin d)) :
    FreeAlgebra R (DegenerateHeckeLetter d) := FreeAlgebra.ι R (.w w)

/-- Presentation of T ⋊ R S_d: polynomial commutativity, group multiplication,
variable permutation, and x_i^l=0. This is the actual algebra of PDF p.4. -/
inductive GradedRel (R : Type*) [CommRing R] (l d : ℕ) :
    FreeAlgebra R (DegenerateHeckeLetter d) → FreeAlgebra R (DegenerateHeckeLetter d) → Prop
  | unit : GradedRel R l d (freeW R d 1) 1
  | group (u v : Equiv.Perm (Fin d)) : GradedRel R l d
      (freeW R d u * freeW R d v) (freeW R d (u * v))
  | commute (i j : Fin d) : GradedRel R l d
      (degenerateFreeX R d i * degenerateFreeX R d j) (degenerateFreeX R d j * degenerateFreeX R d i)
  | permute (w : Equiv.Perm (Fin d)) (i : Fin d) : GradedRel R l d
      (freeW R d w * degenerateFreeX R d i) (degenerateFreeX R d (w i) * freeW R d w)
  | truncate (i : Fin d) : GradedRel R l d (degenerateFreeX R d i ^ l) 0

/-- Truncated polynomial skew group algebra, PDF p.4. -/
abbrev GradedAlgebra (R : Type*) [CommRing R] (l d : ℕ) :=
  RingQuot (GradedRel R l d)

/-- Canonical presentation map, PDF p.4. -/
def gradedMap (R : Type*) [CommRing R] (l d : ℕ) :
    FreeAlgebra R (DegenerateHeckeLetter d) →ₐ[R] GradedAlgebra R l d :=
  RingQuot.mkAlgHom R (GradedRel R l d)

/-- The variable x_(i+1) in the graded algebra, PDF p.4. -/
def gradedX (R : Type*) [CommRing R] (l d : ℕ) (i : Fin d) :
    GradedAlgebra R l d := gradedMap R l d (degenerateFreeX R d i)

/-- Permutation in the graded algebra, PDF p.4. -/
def gradedW (R : Type*) [CommRing R] (l d : ℕ) (w : Equiv.Perm (Fin d)) :
    GradedAlgebra R l d := gradedMap R l d (freeW R d w)

/-- Source-ordered monomial, meaningful also in a noncommutative ambient ring.
The empty product at d=0 is 1 (PDF pp.4,12). -/
def orderedMonomial {A : Type*} [Monoid A] {d : ℕ}
    (x : Fin d → A) (e : Fin d → ℕ) : A :=
  (List.ofFn fun i : Fin d => x i ^ e i).prod

/-- The h_r(I) of PDF p.4, inside its faithful skew-group ambient algebra.
Only exponents on I contribute; exponents outside I are required to be zero.
The source uses this definition for nonempty I; lemma_2_1 ensures that domain. -/
def hElement (R : Type*) [CommRing R] (l d : ℕ) (I : Finset (Fin d))
    (r : ℕ) : GradedAlgebra R l d :=
  ∑ e ∈ (Finset.univ : Finset (Fin d → Fin l)).filter
      (fun e => (∀ i, i ∉ I → (e i).val = 0) ∧
        ∑ i ∈ I, (e i).val = (I.card - 1) * (l - 1) + r),
    orderedMonomial (gradedX R l d) (fun i => (e i).val)

/-- A cycle with its actual nonempty letter set, including marked 1-cycles.
Lists differing by rotation give the same pair; singleton labels are retained.
PDF p.5. -/
def IsMarkedCycle {d : ℕ}
    (p : Finset (Fin d) × Equiv.Perm (Fin d)) : Prop :=
  ∃ t : List (Fin d), t.Nodup ∧ t ≠ [] ∧ t.toFinset = p.1 ∧ t.formPerm = p.2

/-- Canonical cycle data modulo cyclic rotation, PDF p.5. -/
abbrev MarkedCycle (d : ℕ) :=
  {p : Finset (Fin d) × Equiv.Perm (Fin d) // IsMarkedCycle p}

instance markedCycleFintype (d : ℕ) : Fintype (MarkedCycle d) := Fintype.ofFinite _

/-- A^(r)=h_r(A)A, with r any natural color, PDF p.5. -/
def coloredCycle (R : Type*) [CommRing R] (l d : ℕ)
    (A : MarkedCycle d) (r : ℕ) : GradedAlgebra R l d :=
  hElement R l d A.val.1 r * gradedW R l d A.val.2

/-- Canonical disjoint product data. Every letter is covered exactly once,
so the otherwise removable color-zero singletons have a unique presentation.
This implements the equivalence of presentations on PDF pp.6--7. -/
abbrev ColoredProduct (l d : ℕ) :=
  {s : Finset (MarkedCycle d × Fin l) //
    (s : Set (MarkedCycle d × Fin l)).Pairwise
      (fun a b => Disjoint a.1.val.1 b.1.val.1) ∧
      s.biUnion (fun a => a.1.val.1) = Finset.univ}

instance coloredProductFintype (l d : ℕ) : Fintype (ColoredProduct l d) :=
  Fintype.ofFinite _

/-- Product of all colored factors in a canonical finite-set ordering.
Disjoint factors commute; no summation over their reorderings is used.
PDF pp.6--7. -/
def disjointColoredProductElement (R : Type*) [CommRing R] (l d : ℕ)
    (C : ColoredProduct l d) : GradedAlgebra R l d :=
  (C.val.toList.map fun a => coloredCycle R l d a.1 a.2.val).prod

/-- The polynomial centralizer Q_d, PDF p.4. Commuting with all variables
is equivalent to commuting with the subalgebra they generate. -/
def polynomialCentralizer (R : Type*) [CommRing R] (l d : ℕ) :
    Subalgebra R (GradedAlgebra R l d) :=
  Subalgebra.centralizer R (Set.range (gradedX R l d))

/-- A specified family is a basis of a specified ambient submodule.
This asserts both linear independence and exact span, without choosing
membership proofs or imposing the nonzero-ring convention for `Module.rank`.
PDF pp.6--12. -/
def IsBasisFor {R A J : Type*} [CommRing R] [Ring A] [Algebra R A]
    (b : J → A) (M : Submodule R A) : Prop :=
  LinearIndependent R b ∧ Submodule.span R (Set.range b) = M

/-- An ordinary partition is its multiset of strictly positive parts.
An empty multiset is the empty partition (PDF p.7). -/
def IsPartition (mu : Multiset ℕ) : Prop := ∀ a ∈ mu, 0 < a

/-- M_d(l), using source colors 0,...,l-1 as component indices, PDF p.7. -/
abbrev Multipartition (l d : ℕ) :=
  {lam : Fin l → Multiset ℕ //
    (∀ r, IsPartition (lam r)) ∧ ∑ r : Fin l, (lam r).sum = d}

/-- Sum of the quotients floor(mu_i/l), PDF p.9. -/
def quotientSize (l : ℕ) (mu : Multiset ℕ) : ℕ :=
  (mu.map fun a => a / l).sum

/-- P_d(l), PDF p.9. Positive parts only; padding zeros is done separately. -/
abbrev PartitionIndex (l d : ℕ) :=
  {mu : Multiset ℕ // IsPartition mu ∧ mu.card + quotientSize l mu ≤ d}

/-- The explicitly given phi of PDF p.9. A part a in color r gives
(a-1)l+r; zero outputs are omitted from the ordinary partition. -/
def partitionPhi (l : ℕ) (lam : Fin l → Multiset ℕ) : Multiset ℕ :=
  ∑ r : Fin l, ((lam r).map fun a => (a - 1) * l + r.val).filter (fun b => 0 < b)

/-- The source inverse formula (PDF p.9): restore exactly the lost color-zero
singletons using total size d, then separate by residue modulo l. -/
def partitionInverse (l d : ℕ) (mu : Multiset ℕ) : Fin l → Multiset ℕ :=
  fun r => ((mu + Multiset.replicate (d - quotientSize l mu - mu.card) 0).filter
    (fun a => a % l = r.val)).map (fun a => a / l + 1)

/-- Cycle type, with all fixed points and their colors counted, PDF pp.7--8. -/
def cycleType {l d : ℕ} (C : ColoredProduct l d) : Fin l → Multiset ℕ :=
  fun r => ((C.val.filter fun a => a.2 = r).val.map fun a => a.1.val.1.card)

/-- z_d(lambda): each distinct canonical colored product is included once.
In particular no stabilizer multiplicity or division by d! occurs. PDF p.8. -/
def orbitSum (R : Type*) [CommRing R] (l d : ℕ)
    (lam : Multipartition l d) : GradedAlgebra R l d :=
  ∑ C ∈ (Finset.univ : Finset (ColoredProduct l d)).filter
    (fun C => cycleType C = lam.val), disjointColoredProductElement R l d C

/-- The rank formula of Theorem 2.3, PDF p.6, computed in Q, not N.
The finite tuple m records the multiplicity of cycles of size a+1.
The empty product and sum at d=0 give rank 1. -/
def centralizerIndexCount (l d : ℕ) : ℚ :=
  ∑ m ∈ (Finset.univ : Finset (Fin d → Fin (d + 1))).filter
      (fun m => ∑ a : Fin d, (a.val + 1) * (m a).val = d),
    ((Nat.factorial d : ℚ) / ∏ a : Fin d, (Nat.factorial (m a).val : ℚ)) *
      ∏ a : Fin d, ((l : ℚ) / (a.val + 1 : ℕ)) ^ (m a).val

/-- The sum of all a-cycles of color r, with marked singletons, PDF p.8. -/
def singleCycleSum (R : Type*) [CommRing R] (l d a r : ℕ) :
    GradedAlgebra R l d :=
  ∑ A ∈ (Finset.univ : Finset (MarkedCycle d)).filter
    (fun A => A.val.1.card = a), coloredCycle R l d A r

/-- y_i(k), summing ordered distinct choices of k/l earlier letters.
The last letter is i, and the color is k mod l (PDF p.8). -/
def murphyY (R : Type*) [CommRing R] (l d : ℕ) (i : Fin d) (k : ℕ) :
    GradedAlgebra R l d :=
  ∑ e ∈ (Finset.univ : Finset (Fin (k / l) → Fin d)).filter
      (fun e => Function.Injective e ∧ ∀ j, (e j).val < i.val),
    hElement R l d (List.ofFn e ++ [i]).toFinset (k % l) *
      gradedW R l d (List.ofFn e ++ [i]).formPerm

/-- All distinct rearrangements of a partition padded to d entries by zeros.
The bound mu.sum+1 accommodates every part, including the empty partition.
PDF pp.9,12. -/
def rearrangements (d : ℕ) (mu : Multiset ℕ) :
    Finset (Fin d → Fin (mu.sum + 1)) :=
  Finset.univ.filter fun e =>
    (((List.ofFn fun i : Fin d => (e i).val) : Multiset ℕ).filter (fun a => 0 < a)) = mu

/-- Monomial symmetric sum for an explicitly given family, PDF pp.9,12.
Each exponent tuple occurs once, even if its entries repeat. -/
def symmetricMonomial {A : Type*} [Ring A] {d : ℕ}
    (x : Fin d → ℕ → A) (mu : Multiset ℕ) : A :=
  ∑ e ∈ rearrangements d mu, (List.ofFn fun i : Fin d => x i (e i).val).prod

/-- m_d(mu), the second central basis in the graded algebra, PDF p.9. -/
def murphyM (R : Type*) [CommRing R] (l d : ℕ) (mu : Multiset ℕ) :
    GradedAlgebra R l d := symmetricMonomial (murphyY R l d) mu

/-- Error products in Lemma 2.6: the head cycle contains i, every cycle lies
in S_(i+1), factors have the uniform color l-1, and the total number of
letters is at most p. The set is empty at p=0. PDF pp.8--9. -/
def murphyErrorProducts (R : Type*) [CommRing R] (l d : ℕ)
    (i : Fin d) (p : ℕ) : Set (GradedAlgebra R l d) :=
  {z | ∃ (A : MarkedCycle d) (t : List (MarkedCycle d)),
    i ∈ A.val.1 ∧
    (A :: t).Pairwise (fun B C => Disjoint B.val.1 C.val.1) ∧
    (∀ B ∈ A :: t, ∀ j ∈ B.val.1, j.val ≤ i.val) ∧
    ((A :: t).foldl (fun (S : Finset (Fin d)) (B : MarkedCycle d) => S ∪ B.val.1) ∅).card ≤ p ∧
    z = ((A :: t).map fun B => coloredCycle R l d B (l - 1)).prod}

/-- All relations of the degenerate affine Hecke algebra, PDF p.1.
The sign is s_i x_(i+1) = x_i s_i + 1. -/
inductive DegenerateAffineHeckeRel (R : Type*) [CommRing R] (d : ℕ) :
    FreeAlgebra R (DegenerateHeckeLetter d) → FreeAlgebra R (DegenerateHeckeLetter d) → Prop
  | unit : DegenerateAffineHeckeRel R d (freeW R d 1) 1
  | group (u v : Equiv.Perm (Fin d)) : DegenerateAffineHeckeRel R d
      (freeW R d u * freeW R d v) (freeW R d (u * v))
  | commute (i j : Fin d) : DegenerateAffineHeckeRel R d
      (degenerateFreeX R d i * degenerateFreeX R d j) (degenerateFreeX R d j * degenerateFreeX R d i)
  | adjacent (i j : Fin d) (hj : j.val = i.val + 1) : DegenerateAffineHeckeRel R d
      (freeW R d (Equiv.swap i j) * degenerateFreeX R d j)
      (degenerateFreeX R d i * freeW R d (Equiv.swap i j) + 1)
  | far (i j k : Fin d) (hj : j.val = i.val + 1) (hki : k ≠ i) (hkj : k ≠ j) :
      DegenerateAffineHeckeRel R d (freeW R d (Equiv.swap i j) * degenerateFreeX R d k)
        (degenerateFreeX R d k * freeW R d (Equiv.swap i j))

/-- The cyclotomic relation for the monic polynomial
f(X)=X^l+sum_(a<l)c_a X^a. At d=0 there is no first variable and no
extra relation, giving H_0^f=R. PDF pp.1,21. -/
inductive CyclotomicRel (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R) :
    FreeAlgebra R (DegenerateHeckeLetter d) → FreeAlgebra R (DegenerateHeckeLetter d) → Prop
  | hecke {a b} (h : DegenerateAffineHeckeRel R d a b) : CyclotomicRel R l d c a b
  | cyclotomic (i : Fin d) (hi : i.val = 0) : CyclotomicRel R l d c
      (degenerateFreeX R d i ^ l + ∑ a : Fin l,
        algebraMap R _ (c a) * degenerateFreeX R d i ^ a.val) 0

/-- Literal presented degenerate cyclotomic Hecke algebra, PDF p.1. -/
abbrev CyclotomicAlgebra (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R) :=
  RingQuot (CyclotomicRel R l d c)

/-- Canonical quotient map, PDF p.1. -/
def degenerateCyclotomicQuotientMap (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R) :
    FreeAlgebra R (DegenerateHeckeLetter d) →ₐ[R] CyclotomicAlgebra R l d c :=
  RingQuot.mkAlgHom R (CyclotomicRel R l d c)

/-- x_(i+1) in H_d^f; separate from the graded variable, PDF pp.1,10--11. -/
def degenerateCyclotomicVariable (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R) (i : Fin d) :
    CyclotomicAlgebra R l d c := degenerateCyclotomicQuotientMap R l d c (degenerateFreeX R d i)

/-- p_d(mu), with distinct rearrangements, PDF p.12. -/
def cyclotomicP (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R)
    (mu : Multiset ℕ) : CyclotomicAlgebra R l d c :=
  symmetricMonomial (fun i k => degenerateCyclotomicVariable R l d c i ^ k) mu

/-- Symmetry under the usual permutation of variables, PDF pp.1--2. -/
def IsSymmetricPolynomial {R : Type*} [CommRing R] {d : ℕ}
    (p : MvPolynomial (Fin d) R) : Prop :=
  ∀ w : Equiv.Perm (Fin d), MvPolynomial.rename w p = p

/-- Evaluation at the commuting cyclotomic variables, expressed as the finite
coefficient sum of ordered monomials to allow a noncommutative ambient algebra.
PDF pp.1--2. -/
def cyclotomicEvaluate (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R)
    (p : MvPolynomial (Fin d) R) : CyclotomicAlgebra R l d c :=
  ∑ e ∈ p.support, p.coeff e • orderedMonomial (degenerateCyclotomicVariable R l d c) (fun i => e i)

/-- Source-prescribed power sums, PDF p.12. -/
def cyclotomicPowerSum (R : Type*) [CommRing R] (l d : ℕ) (c : Fin l → R)
    (r : ℕ) : CyclotomicAlgebra R l d c := ∑ i : Fin d, degenerateCyclotomicVariable R l d c i ^ r

/-- Sanity: a marked singleton has its letter even though its permutation is 1. -/
example {d : ℕ} (i : Fin d) :
    IsMarkedCycle ({i}, (1 : Equiv.Perm (Fin d))) := by
  exact ⟨[i], by simp, by simp, by simp, by simp⟩

/-- Sanity: the d=0 monomial is the empty product 1. -/
example {A : Type*} [Monoid A] (x : Fin 0 → A) (e : Fin 0 → ℕ) :
    orderedMonomial x e = 1 := by
  simp [orderedMonomial]

/-- Sanity: the presentation really kills x_1^l, including l=1. -/
example (R : Type*) [CommRing R] (l : ℕ) :
    gradedX R l 1 (0 : Fin 1) ^ l = 0 := by
  have h := RingQuot.mkAlgHom_rel R (GradedRel.truncate (R := R) (l := l)
    (d := 1) (0 : Fin 1))
  simpa only [gradedX, gradedMap, map_pow, map_zero] using h

/-- Sanity: the Hecke sign is the printed plus sign, on two letters. -/
example (R : Type*) [CommRing R] (l : ℕ) (c : Fin l → R) :
    degenerateCyclotomicQuotientMap R l 2 c (freeW R 2 (Equiv.swap (0 : Fin 2) 1)) *
        degenerateCyclotomicVariable R l 2 c 1 =
      degenerateCyclotomicVariable R l 2 c 0 *
        degenerateCyclotomicQuotientMap R l 2 c (freeW R 2 (Equiv.swap (0 : Fin 2) 1)) + 1 := by
  have h := RingQuot.mkAlgHom_rel R
    (CyclotomicRel.hecke (l := l) (c := c)
      (DegenerateAffineHeckeRel.adjacent (R := R) (d := 2) (0 : Fin 2) 1 (by decide)))
  simpa only [degenerateCyclotomicVariable, degenerateCyclotomicQuotientMap, map_mul, map_add, map_one] using h

/-- Sanity: all three lost color-zero singleton parts are restored at d=3. -/
example : partitionInverse 1 3 0 (0 : Fin 1) = {1, 1, 1} := by
  simp [partitionInverse, quotientSize, Multiset.filter_singleton]

/-- Sanity: the rational rank expression has the correct empty value. -/
example (l : ℕ) : centralizerIndexCount l 0 = 1 := by
  simp [centralizerIndexCount]

end QAlgorithms.Papers.Independent.Intake100.P40
Source
Centers of degenerate cyclotomic Hecke algebras and parabolic category O, arXiv:math/0607717v3, https://arxiv.org/abs/math/0607717v3
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P40.ColoredProduct

For any natural numbers l,dl,dl,d, this is the type of finite sets sss of pairs ((I,w),r)((I,w),r)((I,w),r), where r∈{0,…,l−1}r\in\{0,\ldots,l-1\}r∈{0,…,l−1} and (I,w)(I,w)(I,w) has a witness consisting of a nonempty list of distinct indices in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} whose entry set is III and whose associated cyclic permutation is www, subject to two conditions: the supports III belonging to any two distinct members of sss are disjoint, and the union of all these supports is {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The disjointness requirement applies even when two entries differ only in their colors. When d=0d=0d=0, the only such finite set is the empty set, for every lll; when l=0l=0l=0 and d>0d>0d>0, there are no such finite sets.

QAlgorithms.Papers.Independent.Intake100.P40.CyclotomicAlgebra

For any commutative ring RRR, natural numbers l,dl,dl,d, and coefficient function c:{0,…,l−1}→Rc:\{0,\ldots,l-1\}\to Rc:{0,…,l−1}→R, this defines an RRR-algebra as the quotient of the free associative unital RRR-algebra on formal generators xix_ixi​, for 0≤i<d0\le i<d0≤i<d, and WwW_wWw​, for permutations www of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, by the relations

Wid=1,WuWv=Wuv,xixj=xjxi,W(i j)xj=xiW(i j)+1when j=i+1,W(i j)xk=xkW(i j)when j=i+1 and k≠i,j,x0l+∑a=0l−1c(a)x0a=0if d>0.\begin{gathered} W_{\mathrm{id}}=1,\qquad W_uW_v=W_{uv},\qquad x_ix_j=x_jx_i,\\ W_{(i\,j)}x_j=x_iW_{(i\,j)}+1 \quad\text{when }j=i+1,\\ W_{(i\,j)}x_k=x_kW_{(i\,j)} \quad\text{when }j=i+1\text{ and }k\ne i,j,\\ x_0^l+\sum_{a=0}^{l-1}c(a)x_0^a=0 \quad\text{if }d>0. \end{gathered}Wid​=1,Wu​Wv​=Wuv​,xi​xj​=xj​xi​,W(ij)​xj​=xi​W(ij)​+1when j=i+1,W(ij)​xk​=xk​W(ij)​when j=i+1 and k=i,j,x0l​+a=0∑l−1​c(a)x0a​=0if d>0.​

All indices in these relations must lie in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. There is no positivity assumption on lll or ddd, and RRR may be the zero ring. If l=0l=0l=0 and d>0d>0d>0, the last relation is 1=01=01=0. If d=0d=0d=0, there are no xix_ixi​, no adjacent or far relations, and no cyclotomic relation; the only permutation generator is identified with 111, so the quotient is canonically RRR.

QAlgorithms.Papers.Independent.Intake100.P40.CyclotomicRel

For any commutative ring RRR, arbitrary natural numbers l,dl,dl,d, and any coefficient family c=(ca)0≤a<lc=(c_a)_{0\le a<l}c=(ca​)0≤a<l​ in RRR, let FFF be the free associative unital RRR-algebra with generators XiX_iXi​, 0≤i<d0\le i<d0≤i<d, and separate generators WwW_wWw​ for every permutation www of these indices. This declaration defines a binary relation on FFF consisting of all pairs

(Wid,1),(WuWv,Wuv)for all permutations u,v,(XiXj,XjXi)for all i,j<d,(W(i j)Xj,XiW(i j)+1)when i,j<d and j=i+1,(W(i j)Xk,XkW(i j))when i,j,k<d, j=i+1, k≠i, k≠j,\begin{aligned} &(W_{\mathrm{id}},1),\\ &(W_uW_v,W_{uv}) &&\text{for all permutations }u,v,\\ &(X_iX_j,X_jX_i) &&\text{for all }i,j<d,\\ &(W_{(i\,j)}X_j,X_iW_{(i\,j)}+1) &&\text{when }i,j<d\text{ and }j=i+1,\\ &(W_{(i\,j)}X_k,X_kW_{(i\,j)}) &&\text{when }i,j,k<d,\ j=i+1,\ k\ne i,\ k\ne j, \end{aligned}​(Wid​,1),(Wu​Wv​,Wuv​)(Xi​Xj​,Xj​Xi​)(W(ij)​Xj​,Xi​W(ij)​+1)(W(ij)​Xk​,Xk​W(ij)​)​​for all permutations u,v,for all i,j<d,when i,j<d and j=i+1,when i,j,k<d, j=i+1, k=i, k=j,​

together with the pair

(Xil+∑a=0l−1ι(ca)Xia, 0)for every i<d satisfying i=0,\left(X_i^l+\sum_{a=0}^{l-1}\iota(c_a)X_i^a,\ 0\right) \quad\text{for every }i<d\text{ satisfying }i=0,(Xil​+a=0∑l−1​ι(ca​)Xia​, 0)for every i<d satisfying i=0,

where (i j)(i\,j)(ij) swaps i,ji,ji,j, uvuvuv is permutation multiplication, and ι:R→F\iota:R\to Fι:R→F is the scalar map. The first five kinds of pairs are included through their membership in the relation generated by those five clauses. These are related pairs of free-algebra elements; this declaration does not itself impose equality or closure under symmetry, transitivity, or algebra operations. There are no restrictions on the coefficients. If d=0d=0d=0, there is no instance of the last clause; if l=0l=0l=0, the coefficient family and sum are empty, and for d>0d>0d>0 the last clause supplies the pair (1,0)(1,0)(1,0).

QAlgorithms.Papers.Independent.Intake100.P40.DegenerateAffineHeckeRel

For any commutative ring RRR and natural number ddd, let FFF be the free associative unital RRR-algebra with a generator XiX_iXi​ for every i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1} and a separate generator WwW_wWw​ for every permutation www of these indices. This declaration defines a binary relation on FFF whose related pairs are exactly those supplied by the following five clauses:

(Wid, 1),(WuWv, Wuv)for all permutations u,v,(XiXj, XjXi)for all i,j<d,(W(i j)Xj, XiW(i j)+1)for all i,j<d with j=i+1,(W(i j)Xk, XkW(i j))for all i,j,k<d with j=i+1, k≠i, k≠j.\begin{aligned} &(W_{\mathrm{id}},\,1),\\ &(W_uW_v,\,W_{uv}) &&\text{for all permutations }u,v,\\ &(X_iX_j,\,X_jX_i) &&\text{for all }i,j<d,\\ &(W_{(i\,j)}X_j,\,X_iW_{(i\,j)}+1) &&\text{for all }i,j<d\text{ with }j=i+1,\\ &(W_{(i\,j)}X_k,\,X_kW_{(i\,j)}) &&\text{for all }i,j,k<d\text{ with }j=i+1,\ k\ne i,\ k\ne j. \end{aligned}​(Wid​,1),(Wu​Wv​,Wuv​)(Xi​Xj​,Xj​Xi​)(W(ij)​Xj​,Xi​W(ij)​+1)(W(ij)​Xk​,Xk​W(ij)​)​​for all permutations u,v,for all i,j<d,for all i,j<d with j=i+1,for all i,j,k<d with j=i+1, k=i, k=j.​

Here (i j)(i\,j)(ij) is the permutation swapping iii and jjj, and uvuvuv is permutation multiplication. These are ordered pairs in a relation on the free algebra; the declaration itself does not identify their entries or add symmetry, transitivity, or compatibility with algebra operations. The case d=0d=0d=0 is included: there is still a generator for the unique permutation, while every clause requiring an index has no instances. The adjacent clause has no instances for d<2d<2d<2, and the final clause has none for d<3d<3d<3. No nontriviality assumption is imposed on RRR.

QAlgorithms.Papers.Independent.Intake100.P40.DegenerateHeckeLetter

For each natural number ddd, including d=0d=0d=0, this defines an alphabet with two disjoint kinds of letters: a letter xix_ixi​ for every i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, and a letter wσw_\sigmawσ​ for every permutation σ\sigmaσ of that set. Each constructor is injective, and no letter of the first kind equals a letter of the second kind. These are letters, with no multiplication or algebraic relations specified. When d=0d=0d=0, there are no xxx-letters and exactly one www-letter, indexed by the unique permutation of the empty set.

QAlgorithms.Papers.Independent.Intake100.P40.GradedAlgebra

For every commutative ring RRR and natural numbers l,dl,dl,d, this abbreviates the ring quotient of the free associative unital RRR-algebra on generators XiX_iXi​ and WσW_\sigmaWσ​, indexed by i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1} and permutations σ\sigmaσ of that set, obtained by imposing

Wid=1,WuWv=Wuv,XiXj=XjXi,WwXi=Xw(i)Ww,Xil=0W_{\mathrm{id}}=1,\qquad W_uW_v=W_{uv},\qquad X_iX_j=X_jX_i,\qquad W_wX_i=X_{w(i)}W_w,\qquad X_i^l=0Wid​=1,Wu​Wv​=Wuv​,Xi​Xj​=Xj​Xi​,Ww​Xi​=Xw(i)​Ww​,Xil​=0

for every applicable index and permutation. Equivalently, it identifies the displayed pairs using the smallest ring congruence containing them. Both l=0l=0l=0 and d=0d=0d=0 are allowed: when l=0l=0l=0 and d>0d>0d>0, a truncation relation imposes 1=01=01=0, so the quotient is the zero ring; when d=0d=0d=0, there are no relations involving an XiX_iXi​.

QAlgorithms.Papers.Independent.Intake100.P40.GradedRel

For every commutative ring RRR and natural numbers l,dl,dl,d, this defines a binary relation on the free associative unital RRR-algebra on letters xix_ixi​ and wσw_\sigmawσ​, where i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1} and σ\sigmaσ is a permutation of that set. Writing XiX_iXi​ and WσW_\sigmaWσ​ for the corresponding free generators, its related pairs are precisely the following pairs, for all indicated indices and permutations:

(Wid,1),(WuWv,Wuv),(XiXj,XjXi),(WwXi,Xw(i)Ww),(Xil,0).(W_{\mathrm{id}},1),\qquad (W_uW_v,W_{uv}),\qquad (X_iX_j,X_jX_i),\qquad (W_wX_i,X_{w(i)}W_w),\qquad (X_i^l,0).(Wid​,1),(Wu​Wv​,Wuv​),(Xi​Xj​,Xj​Xi​),(Ww​Xi​,Xw(i)​Ww​),(Xil​,0).

Here uvuvuv is permutation composition, applying vvv first and then uuu. The definition specifies these pairs themselves; it does not take their equivalence closure or their closure under ring operations. If l=0l=0l=0 and an index iii exists, the last kind of pair is (1,0)(1,0)(1,0). If d=0d=0d=0, only the first two kinds have instances.

QAlgorithms.Papers.Independent.Intake100.P40.IsBasisFor

For arbitrary types R,A,JR,A,JR,A,J, with RRR a commutative ring, AAA a ring equipped with an RRR-algebra structure, a family b:J→Ab:J\to Ab:J→A, and an RRR-submodule M⊆AM\subseteq AM⊆A, this defines the proposition that bbb is linearly independent over RRR and that its RRR-linear span is exactly MMM. Explicitly, every finitely supported relation ∑j∈Jcjbj=0\sum_{j\in J}c_jb_j=0∑j∈J​cj​bj​=0, with cj∈Rc_j\in Rcj​∈R, has all coefficients zero, and

span⁡R{bj:j∈J}=M.\operatorname{span}_R\{b_j:j\in J\}=M.spanR​{bj​:j∈J}=M.

No finiteness assumption on JJJ, commutativity assumption on AAA, or nonzero-ring assumption is imposed. If JJJ is empty, the proposition holds exactly when M={0}M=\{0\}M={0}.

QAlgorithms.Papers.Independent.Intake100.P40.IsMarkedCycle

For every natural number ddd and pair (S,σ)(S,\sigma)(S,σ) consisting of a finite subset S⊆{0,…,d−1}S\subseteq\{0,\ldots,d-1\}S⊆{0,…,d−1} and a permutation σ\sigmaσ of that set, this defines the condition that there exists a nonempty list ttt of indices with no repeated entries, whose set of entries is exactly SSS, and whose associated cyclic permutation is exactly σ\sigmaσ. The permutation associated to the list cycles through its entries in their listed order and fixes indices outside the list; a singleton list gives the identity permutation. Thus SSS must be nonempty, but σ\sigmaσ is allowed to be the identity, as occurs for a singleton list. No pair satisfies the condition when d=0d=0d=0.

QAlgorithms.Papers.Independent.Intake100.P40.IsPartition

For any finite multiset μ\muμ of natural numbers, this defines the proposition that every entry of μ\muμ is strictly positive:

∀a∈μ,0<a.\forall a\in\mu,\quad 0<a.∀a∈μ,0<a.

Repeated entries are permitted, no ordering is specified, and the empty multiset satisfies the condition vacuously.

QAlgorithms.Papers.Independent.Intake100.P40.IsSymmetricPolynomial

For any commutative ring RRR, any natural number ddd, and any polynomial ppp over RRR in the variables indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines the assertion that every permutation www of the index set leaves ppp unchanged when every variable TiT_iTi​ is replaced by Tw(i)T_{w(i)}Tw(i)​:

p((Tw(i))i=0d−1)=p((Ti)i=0d−1)for every w.p\bigl((T_{w(i)})_{i=0}^{d-1}\bigr) = p\bigl((T_i)_{i=0}^{d-1}\bigr) \qquad\text{for every }w.p((Tw(i)​)i=0d−1​)=p((Ti​)i=0d−1​)for every w.

The ring is not required to be nonzero. The case d=0d=0d=0 is included: there are no variables and every such polynomial satisfies the assertion.

QAlgorithms.Papers.Independent.Intake100.P40.MarkedCycle

For every natural number ddd, this abbreviates the type of pairs (S,σ)(S,\sigma)(S,σ), equipped with evidence that there exists a nonempty list ttt of distinct elements of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} whose set of entries is SSS and whose associated cyclic permutation is σ\sigmaσ. Here SSS is a finite subset, σ\sigmaσ is a permutation of the whole index set, and the associated permutation cycles through the list in its listed order while fixing all other indices. The witnessing list is not itself part of the stored pair. Singleton sets paired with the identity permutation are included, and there are no such objects when d=0d=0d=0.

QAlgorithms.Papers.Independent.Intake100.P40.Multipartition

For any natural numbers l,dl,dl,d, this is the type of families (λr)0≤r<l(\lambda_r)_{0\le r<l}(λr​)0≤r<l​ of finite multisets of natural numbers such that every entry in every λr\lambda_rλr​ is strictly positive and

∑r=0l−1 ∑a∈λra=d,\sum_{r=0}^{l-1}\ \sum_{a\in\lambda_r}a=d,r=0∑l−1​ a∈λr​∑​a=d,

where entries are counted with multiplicity. Individual multisets may be empty. When l=0l=0l=0, the empty family is admissible exactly when d=0d=0d=0; when d=0d=0d=0, every component must be empty.

QAlgorithms.Papers.Independent.Intake100.P40.PartitionIndex

For any natural numbers l,dl,dl,d, this is the type of finite multisets μ\muμ of strictly positive natural numbers satisfying

∣μ∣+∑a∈μ(adivl)≤d,|\mu|+\sum_{a\in\mu}(a\mathbin{\mathrm{div}}l)\le d,∣μ∣+a∈μ∑​(adivl)≤d,

where ∣μ∣|\mu|∣μ∣ counts entries with multiplicity and division is natural-number division. The empty multiset is admissible for every l,dl,dl,d. When l=0l=0l=0, each quotient is zero, so the bound becomes ∣μ∣≤d|\mu|\le d∣μ∣≤d, with no further bound on the sizes of its positive entries; when d=0d=0d=0, only the empty multiset is admissible.

QAlgorithms.Papers.Independent.Intake100.P40.centralizerIndexCount

For arbitrary natural numbers l,dl,dl,d, the defined rational number is

∑(m0,…,md−1)∈{0,…,d}d∑a=0d−1(a+1)ma=dd!∏a=0d−1ma!∏a=0d−1(la+1)ma.\sum_{\substack{(m_0,\ldots,m_{d-1})\in\{0,\ldots,d\}^{d}\\ \sum_{a=0}^{d-1}(a+1)m_a=d}} \frac{d!}{\prod_{a=0}^{d-1}m_a!} \prod_{a=0}^{d-1}\left(\frac{l}{a+1}\right)^{m_a}.(m0​,…,md−1​)∈{0,…,d}d∑a=0d−1​(a+1)ma​=d​∑​∏a=0d−1​ma​!d!​a=0∏d−1​(a+1l​)ma​.

All arithmetic in each summand, apart from the natural-number factorials and exponents, is rational arithmetic. The sum runs over every function from the ddd indices to {0,…,d}\{0,\ldots,d\}{0,…,d} satisfying the displayed weighted-sum equality. When d=0d=0d=0, the unique empty function satisfies the condition and both empty products are 111, so the value is 111. When l=0l=0l=0, powers with exponent 000 still have value 111, including 000^000; the value is 000 for d>0d>0d>0.

QAlgorithms.Papers.Independent.Intake100.P40.coloredCycle

For any commutative ring RRR, natural numbers l,dl,dl,d, pair A=(I,w)A=(I,w)A=(I,w) witnessed by a nonempty list of distinct indices in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} with entry set III and associated cyclic permutation www, and arbitrary natural number rrr, this defines an element in the RRR-algebra generated by xix_ixi​ and WvW_vWv​, for indices iii and permutations vvv, subject to Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, xixj=xjxix_ix_j=x_jx_ixi​xj​=xj​xi​, Wvxi=xv(i)WvW_vx_i=x_{v(i)}W_vWv​xi​=xv(i)​Wv​, and xil=0x_i^l=0xil​=0, by

(∑e:{0,…,d−1}→{0,…,l−1}ei=0 for i∉I∑i∈Iei=(∣I∣−1)(l−1)+rx0e0x1e1⋯xd−1ed−1)Ww.\left( \sum_{\substack{e:\{0,\ldots,d-1\}\to\{0,\ldots,l-1\}\\ e_i=0\text{ for }i\notin I\\ \sum_{i\in I}e_i=(|I|-1)(l-1)+r}} x_0^{e_0}x_1^{e_1}\cdots x_{d-1}^{e_{d-1}} \right)W_w.​e:{0,…,d−1}→{0,…,l−1}ei​=0 for i∈/I∑i∈I​ei​=(∣I∣−1)(l−1)+r​∑​x0e0​​x1e1​​⋯xd−1ed−1​​​Ww​.

Both subtractions in the degree condition are natural-number subtraction, truncated at zero. There is no requirement that r<lr<lr<l; if no exponent assignment satisfies the conditions, the sum is zero. Such an AAA cannot exist when d=0d=0d=0. When l=0l=0l=0, its nonempty support ensures that there are no exponent assignments, and the algebra also satisfies 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.coloredProductFintype

For every pair of natural numbers l,dl,dl,d, this supplies a finite enumeration of all finite sets of colored pairs ((I,w),r)((I,w),r)((I,w),r), where 0≤r<l0\le r<l0≤r<l, each I⊆{0,…,d−1}I\subseteq\{0,\ldots,d-1\}I⊆{0,…,d−1} is the entry set of a nonempty list of distinct indices, and www is that list’s associated cyclic permutation, such that the supports of distinct entries are disjoint and their union is all of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. When d=0d=0d=0, the enumeration has exactly the empty finite set as its member; when l=0l=0l=0 and d>0d>0d>0, it has no members.

QAlgorithms.Papers.Independent.Intake100.P40.cycleType

For arbitrary natural numbers l,dl,dl,d, let CCC be a finite set of pairs ((S,w),r)((S,w),r)((S,w),r), where r∈{0,…,l−1}r\in\{0,\ldots,l-1\}r∈{0,…,l−1}, S⊆{0,…,d−1}S\subseteq\{0,\ldots,d-1\}S⊆{0,…,d−1}, and there exists a nonempty list of distinct indices whose underlying set is SSS and whose associated cyclic permutation is www. Thus SSS is nonempty, www cycles through that list and fixes indices outside SSS, and a singleton list gives the identity permutation. Assume that the supports SSS of distinct members of CCC are pairwise disjoint and their union is all of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The output assigns to each color rrr the multiset of cardinalities ∣S∣|S|∣S∣ of precisely those members of CCC with color rrr, retaining repeated cardinalities. A color occurring nowhere gives the empty multiset. When d=0d=0d=0, CCC is empty and every component is empty; when l=0l=0l=0, such an input CCC exists only if d=0d=0d=0, and the output is an empty-domain function.

QAlgorithms.Papers.Independent.Intake100.P40.cyclotomicEvaluate

For any commutative ring RRR, natural numbers l,dl,dl,d, function c:{0,…,l−1}→Rc:\{0,\ldots,l-1\}\to Rc:{0,…,l−1}→R, and polynomial ppp over RRR in variables indexed by {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, let AAA be the RRR-algebra generated by XiX_iXi​ and permutation generators WwW_wWw​, subject to Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XiXj=XjXiX_iX_j=X_jX_iXi​Xj​=Xj​Xi​, W(i i+1)Xi+1=XiW(i i+1)+1W_{(i\,i+1)}X_{i+1}=X_iW_{(i\,i+1)}+1W(ii+1)​Xi+1​=Xi​W(ii+1)​+1, and W(i i+1)Xk=XkW(i i+1)W_{(i\,i+1)}X_k=X_kW_{(i\,i+1)}W(ii+1)​Xk​=Xk​W(ii+1)​ for k≠i,i+1k\ne i,i+1k=i,i+1, together with X0l+∑a=0l−1c(a)X0a=0X_0^l+\sum_{a=0}^{l-1}c(a)X_0^a=0X0l​+∑a=0l−1​c(a)X0a​=0 when d>0d>0d>0; adjacent indices must exist. For each exponent vector eee, let pe∈Rp_e\in Rpe​∈R be its coefficient in ppp. This defines

ev⁡(p)=∑e∈supp⁡(p)pe⋅(X0e(0)X1e(1)⋯Xd−1e(d−1))in A,\operatorname{ev}(p) = \sum_{e\in\operatorname{supp}(p)} p_e\cdot \left(X_0^{e(0)}X_1^{e(1)}\cdots X_{d-1}^{e(d-1)}\right) \quad\text{in }A,ev(p)=e∈supp(p)∑​pe​⋅(X0e(0)​X1e(1)​⋯Xd−1e(d−1)​)in A,

where the dot is scalar multiplication by RRR, the support consists of the exponent vectors with nonzero coefficient, and each product is in increasing index order. No symmetry assumption is imposed on ppp. The zero polynomial gives an empty sum, hence zero. If d=0d=0d=0, the product is empty and equals 111, so this gives the image of the constant coefficient. If l=0<dl=0<dl=0<d, the quotient satisfies 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.cyclotomicP

For any commutative ring RRR, natural numbers l,dl,dl,d, function c:{0,…,l−1}→Rc:\{0,\ldots,l-1\}\to Rc:{0,…,l−1}→R, and finite multiset μ\muμ of natural numbers, let AAA be the RRR-algebra generated by XiX_iXi​, for 0≤i<d0\le i<d0≤i<d, and WwW_wWw​, for permutations of these indices, with relations Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XiXj=XjXiX_iX_j=X_jX_iXi​Xj​=Xj​Xi​, W(i i+1)Xi+1=XiW(i i+1)+1W_{(i\,i+1)}X_{i+1}=X_iW_{(i\,i+1)}+1W(ii+1)​Xi+1​=Xi​W(ii+1)​+1, and W(i i+1)Xk=XkW(i i+1)W_{(i\,i+1)}X_k=X_kW_{(i\,i+1)}W(ii+1)​Xk​=Xk​W(ii+1)​ when k≠i,i+1k\ne i,i+1k=i,i+1, together with X0l+∑a=0l−1c(a)X0a=0X_0^l+\sum_{a=0}^{l-1}c(a)X_0^a=0X0l​+∑a=0l−1​c(a)X0a​=0 if d>0d>0d>0; adjacent indices must exist. Writing SSS for the sum of the entries of μ\muμ, this defines

Pμ=∑e:{0,…,d−1}→{0,…,S}the multiset of positive values of e is μX0e(0)X1e(1)⋯Xd−1e(d−1)in A.P_\mu= \sum_{\substack{e:\{0,\ldots,d-1\}\to\{0,\ldots,S\}\\ \text{the multiset of positive values of }e\text{ is }\mu}} X_0^{e(0)}X_1^{e(1)}\cdots X_{d-1}^{e(d-1)} \quad\text{in }A.Pμ​=e:{0,…,d−1}→{0,…,S}the multiset of positive values of e is μ​∑​X0e(0)​X1e(1)​⋯Xd−1e(d−1)​in A.

Each exponent function is counted once, and products follow increasing index order. No positivity condition is imposed on the entries of μ\muμ. If μ\muμ contains zero, or has more than ddd entries, the indexing set is empty and Pμ=0P_\mu=0Pμ​=0. For the empty multiset, Pμ=1P_\mu=1Pμ​=1, including when d=0d=0d=0; when d=0d=0d=0, every nonempty μ\muμ gives zero. If l=0<dl=0<dl=0<d, the quotient satisfies 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.cyclotomicPowerSum

For any commutative ring RRR, natural numbers l,d,rl,d,rl,d,r, and coefficient function c:{0,…,l−1}→Rc:\{0,\ldots,l-1\}\to Rc:{0,…,l−1}→R, let AAA be the RRR-algebra with generators XiX_iXi​, for 0≤i<d0\le i<d0≤i<d, and WwW_wWw​, for permutations of those indices, satisfying Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XiXj=XjXiX_iX_j=X_jX_iXi​Xj​=Xj​Xi​, W(i i+1)Xi+1=XiW(i i+1)+1W_{(i\,i+1)}X_{i+1}=X_iW_{(i\,i+1)}+1W(ii+1)​Xi+1​=Xi​W(ii+1)​+1, and W(i i+1)Xk=XkW(i i+1)W_{(i\,i+1)}X_k=X_kW_{(i\,i+1)}W(ii+1)​Xk​=Xk​W(ii+1)​ for k≠i,i+1k\ne i,i+1k=i,i+1, together with X0l+∑a=0l−1c(a)X0a=0X_0^l+\sum_{a=0}^{l-1}c(a)X_0^a=0X0l​+∑a=0l−1​c(a)X0a​=0 if d>0d>0d>0; adjacent indices must exist. This defines the element

∑i=0d−1Xir∈A.\sum_{i=0}^{d-1}X_i^r\in A.i=0∑d−1​Xir​∈A.

The exponent r=0r=0r=0 is allowed and gives d⋅1Ad\cdot1_Ad⋅1A​. When d=0d=0d=0, the sum is empty and equals zero for every rrr. The value l=0l=0l=0 is allowed; if also d>0d>0d>0, the quotient satisfies 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.degenerateCyclotomicQuotientMap

For any commutative ring RRR, natural numbers l,dl,dl,d, and function c:{0,…,l−1}→Rc:\{0,\ldots,l-1\}\to Rc:{0,…,l−1}→R, this defines the canonical RRR-algebra homomorphism from the free associative unital RRR-algebra on formal generators xix_ixi​, for 0≤i<d0\le i<d0≤i<d, and WwW_wWw​, for permutations www of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, to its quotient imposing

Wid=1,WuWv=Wuv,xixj=xjxi,W(i i+1)xi+1=xiW(i i+1)+1,W(i i+1)xk=xkW(i i+1)(k≠i,i+1),x0l+∑a=0l−1c(a)x0a=0(d>0).\begin{gathered} W_{\mathrm{id}}=1,\qquad W_uW_v=W_{uv},\qquad x_ix_j=x_jx_i,\\ W_{(i\,i+1)}x_{i+1}=x_iW_{(i\,i+1)}+1,\qquad W_{(i\,i+1)}x_k=x_kW_{(i\,i+1)}\quad(k\ne i,i+1),\\ x_0^l+\sum_{a=0}^{l-1}c(a)x_0^a=0\quad(d>0). \end{gathered}Wid​=1,Wu​Wv​=Wuv​,xi​xj​=xj​xi​,W(ii+1)​xi+1​=xi​W(ii+1)​+1,W(ii+1)​xk​=xk​W(ii+1)​(k=i,i+1),x0l​+a=0∑l−1​c(a)x0a​=0(d>0).​

Adjacent indices are required to lie in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The homomorphism sends each free generator to its equivalence class and preserves the RRR-algebra operations. Neither lll nor ddd is required to be positive: for l=0<dl=0<dl=0<d, the quotient satisfies 1=01=01=0; for d=0d=0d=0, the cyclotomic relation is absent and the quotient is canonically RRR.

QAlgorithms.Papers.Independent.Intake100.P40.degenerateCyclotomicVariable

For any commutative ring RRR, natural numbers l,dl,dl,d, coefficient function c:{0,…,l−1}→Rc:\{0,\ldots,l-1\}\to Rc:{0,…,l−1}→R, and index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, this defines XiX_iXi​ to be the image of the formal generator xix_ixi​ in the quotient of the free associative unital RRR-algebra on generators xjx_jxj​ and WwW_wWw​, indexed respectively by j∈{0,…,d−1}j\in\{0,\ldots,d-1\}j∈{0,…,d−1} and permutations www of that set, subject to

Wid=1,WuWv=Wuv,xjxk=xkxj,W(j j+1)xj+1=xjW(j j+1)+1,W(j j+1)xk=xkW(j j+1)(k≠j,j+1),x0l+∑a=0l−1c(a)x0a=0.\begin{gathered} W_{\mathrm{id}}=1,\quad W_uW_v=W_{uv},\quad x_jx_k=x_kx_j,\\ W_{(j\,j+1)}x_{j+1}=x_jW_{(j\,j+1)}+1,\quad W_{(j\,j+1)}x_k=x_kW_{(j\,j+1)}\quad(k\ne j,j+1),\\ x_0^l+\sum_{a=0}^{l-1}c(a)x_0^a=0. \end{gathered}Wid​=1,Wu​Wv​=Wuv​,xj​xk​=xk​xj​,W(jj+1)​xj+1​=xj​W(jj+1)​+1,W(jj+1)​xk​=xk​W(jj+1)​(k=j,j+1),x0l​+a=0∑l−1​c(a)x0a​=0.​

All indices must exist in the indicated finite set. The supplied index iii requires d>0d>0d>0, so there is no instance of this definition with an index when d=0d=0d=0. The value l=0l=0l=0 is allowed, in which case the quotient satisfies 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.degenerateFreeX

For every commutative ring RRR, every natural number ddd, and every index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, this defines XiX_iXi​ to be the canonical generator corresponding to the letter xix_ixi​ in the free associative unital RRR-algebra whose alphabet consists of distinct letters xjx_jxj​ for indices jjj and wσw_\sigmawσ​ for permutations σ\sigmaσ of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. No relations among these generators are imposed here. For d=0d=0d=0, there is no admissible index iii.

QAlgorithms.Papers.Independent.Intake100.P40.disjointColoredProductElement

For any commutative ring RRR, natural numbers l,dl,dl,d, and finite set CCC of entries ((I,w),r)((I,w),r)((I,w),r), where 0≤r<l0\le r<l0≤r<l, each (I,w)(I,w)(I,w) is represented by a nonempty list of distinct indices with entry set III and associated cyclic permutation www, and the supports of distinct entries are disjoint and cover {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines

∏((I,w),r) in the list obtained from C[(∑e:{0,…,d−1}→{0,…,l−1}ei=0 for i∉I∑i∈Iei=(∣I∣−1)(l−1)+rx0e0⋯xd−1ed−1)Ww],\prod_{((I,w),r)\text{ in the list obtained from }C} \left[ \left( \sum_{\substack{e:\{0,\ldots,d-1\}\to\{0,\ldots,l-1\}\\ e_i=0\text{ for }i\notin I\\ \sum_{i\in I}e_i=(|I|-1)(l-1)+r}} x_0^{e_0}\cdots x_{d-1}^{e_{d-1}} \right)W_w \right],((I,w),r) in the list obtained from C∏​​​e:{0,…,d−1}→{0,…,l−1}ei​=0 for i∈/I∑i∈I​ei​=(∣I∣−1)(l−1)+r​∑​x0e0​​⋯xd−1ed−1​​​Ww​​,

with the factors multiplied in the order of that list. The ambient RRR-algebra has generators xi,Wvx_i,W_vxi​,Wv​ and defining relations Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, xixj=xjxix_ix_j=x_jx_ixi​xj​=xj​xi​, Wvxi=xv(i)WvW_vx_i=x_{v(i)}W_vWv​xi​=xv(i)​Wv​, and xil=0x_i^l=0xil​=0; subtraction in the summation condition is natural-number subtraction, truncated at zero. An empty inner sum is zero, and an empty product is 111. In particular, when d=0d=0d=0, CCC is empty and the result is 111; when l=0<dl=0<dl=0<d, no such CCC exists.

QAlgorithms.Papers.Independent.Intake100.P40.freeW

For every commutative ring RRR, every natural number ddd, and every permutation σ\sigmaσ of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines WσW_\sigmaWσ​ to be the canonical generator corresponding to the letter wσw_\sigmawσ​ in the free associative unital RRR-algebra on the letters xix_ixi​ and wτw_\tauwτ​, indexed respectively by indices and permutations of that set. In this free algebra, the notation does not impose Wid=1W_{\mathrm{id}}=1Wid​=1 or any multiplication relations among the WσW_\sigmaWσ​. When d=0d=0d=0, the definition still supplies a generator for the unique permutation of the empty set.

QAlgorithms.Papers.Independent.Intake100.P40.gradedMap

For every commutative ring RRR and natural numbers l,dl,dl,d, this defines the canonical RRR-algebra homomorphism from the free associative unital RRR-algebra on generators XiX_iXi​ and WσW_\sigmaWσ​ to its ring quotient imposing

Wid=1,WuWv=Wuv,XiXj=XjXi,WwXi=Xw(i)Ww,Xil=0W_{\mathrm{id}}=1,\qquad W_uW_v=W_{uv},\qquad X_iX_j=X_jX_i,\qquad W_wX_i=X_{w(i)}W_w,\qquad X_i^l=0Wid​=1,Wu​Wv​=Wuv​,Xi​Xj​=Xj​Xi​,Ww​Xi​=Xw(i)​Ww​,Xil​=0

for all indices i,j∈{0,…,d−1}i,j\in\{0,\ldots,d-1\}i,j∈{0,…,d−1} and permutations u,v,wu,v,wu,v,w of that set. The map sends each free-algebra element to its quotient class. The parameters may be zero; in particular, if l=0l=0l=0 and d>0d>0d>0, the target satisfies 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.gradedW

For every commutative ring RRR, natural numbers l,dl,dl,d, and permutation www of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines W‾w\overline W_wWw​ to be the quotient class of the free generator corresponding to the letter www_www​. Its ambient algebra is the quotient of the free associative unital RRR-algebra on generators XiX_iXi​ and WσW_\sigmaWσ​ by

Wid=1,WuWv=Wuv,XiXj=XjXi,WσXi=Xσ(i)Wσ,Xil=0W_{\mathrm{id}}=1,\qquad W_uW_v=W_{uv},\qquad X_iX_j=X_jX_i,\qquad W_\sigma X_i=X_{\sigma(i)}W_\sigma,\qquad X_i^l=0Wid​=1,Wu​Wv​=Wuv​,Xi​Xj​=Xj​Xi​,Wσ​Xi​=Xσ(i)​Wσ​,Xil​=0

for all applicable indices and permutations. The definition includes d=0d=0d=0, when www is the unique permutation of the empty set and its class is 111. If l=0l=0l=0 and d>0d>0d>0, the quotient is the zero ring.

QAlgorithms.Papers.Independent.Intake100.P40.gradedX

For every commutative ring RRR, natural numbers l,dl,dl,d, and index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, this defines X‾i\overline X_iXi​ to be the quotient class of the free generator corresponding to the letter xix_ixi​. Its ambient algebra is the quotient of the free associative unital RRR-algebra on letters xjx_jxj​ and wσw_\sigmawσ​ by the relations

Wid=1,WuWv=Wuv,XjXk=XkXj,WwXj=Xw(j)Ww,Xjl=0W_{\mathrm{id}}=1,\qquad W_uW_v=W_{uv},\qquad X_jX_k=X_kX_j,\qquad W_wX_j=X_{w(j)}W_w,\qquad X_j^l=0Wid​=1,Wu​Wv​=Wuv​,Xj​Xk​=Xk​Xj​,Ww​Xj​=Xw(j)​Ww​,Xjl​=0

for every applicable index and permutation. There is no admissible iii when d=0d=0d=0; if l=0l=0l=0 and d>0d>0d>0, this quotient is the zero ring.

QAlgorithms.Papers.Independent.Intake100.P40.hElement

For every commutative ring RRR, natural numbers l,d,rl,d,rl,d,r, and finite subset I⊆{0,…,d−1}I\subseteq\{0,\ldots,d-1\}I⊆{0,…,d−1}, this defines an element hI,rh_{I,r}hI,r​ as follows. Work in the quotient of the free associative unital RRR-algebra on generators Xi,WwX_i,W_wXi​,Ww​ imposing Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XiXj=XjXiX_iX_j=X_jX_iXi​Xj​=Xj​Xi​, WwXi=Xw(i)WwW_wX_i=X_{w(i)}W_wWw​Xi​=Xw(i)​Ww​, and Xil=0X_i^l=0Xil​=0 for all applicable indices and permutations, and write X‾i\overline X_iXi​ for the quotient class of XiX_iXi​. Then

hI,r=∑e:{0,…,d−1}→{0,…,l−1}ei=0 for every i∉I∑i∈Iei=(∣I∣−˙1)(l−˙1)+rX‾0e0X‾1e1⋯X‾d−1ed−1,h_{I,r} = \sum_{\substack{e:\{0,\ldots,d-1\}\to\{0,\ldots,l-1\}\\ e_i=0\ \text{for every }i\notin I\\ \sum_{i\in I}e_i=(|I|\mathbin{\dot-}1)(l\mathbin{\dot-}1)+r}} \overline X_0^{e_0}\overline X_1^{e_1}\cdots \overline X_{d-1}^{e_{d-1}},hI,r​=e:{0,…,d−1}→{0,…,l−1}ei​=0 for every i∈/I∑i∈I​ei​=(∣I∣−˙​1)(l−˙​1)+r​∑​X0e0​​X1e1​​⋯Xd−1ed−1​​,

where a−˙b=max⁡(a−b,0)a\mathbin{\dot-}b=\max(a-b,0)a−˙​b=max(a−b,0) is natural-number subtraction and each product follows increasing index order. An empty indexing set gives a zero sum. In particular, if l=0l=0l=0 and d>0d>0d>0, there are no exponent assignments; if d=0d=0d=0, necessarily I=∅I=\varnothingI=∅, and the sum is 111 for r=0r=0r=0 and 000 otherwise. If l>0l>0l>0 and I=∅I=\varnothingI=∅, the same values hold because only the all-zero exponent assignment can contribute.

QAlgorithms.Papers.Independent.Intake100.P40.markedCycleFintype

For every natural number ddd, this supplies a finite enumeration of all pairs (I,w)(I,w)(I,w), where I⊆{0,…,d−1}I\subseteq\{0,\ldots,d-1\}I⊆{0,…,d−1} and www is a permutation of that set, satisfying the following condition: there exists a nonempty list of distinct indices whose set of entries is III and whose associated cyclic permutation is www. The witnessing list is not part of the enumerated data. In particular, III must be nonempty, so there are no such pairs when d=0d=0d=0; singleton supports are allowed and give the identity permutation.

QAlgorithms.Papers.Independent.Intake100.P40.murphyErrorProducts

Let RRR be any commutative ring, let l,d,pl,d,pl,d,p be arbitrary natural numbers, and choose i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}. Work in the quotient of the free associative RRR-algebra on XjX_jXj​ and permutation generators WwW_wWw​, with relations Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XjXh=XhXjX_jX_h=X_hX_jXj​Xh​=Xh​Xj​, WwXj=Xw(j)WwW_wX_j=X_{w(j)}W_wWw​Xj​=Xw(j)​Ww​, and Xjl=0X_j^l=0Xjl​=0. A marked cycle B=(SB,wB)B=(S_B,w_B)B=(SB​,wB​) is a pair represented by a nonempty list of distinct indices with underlying set SBS_BSB​ and cyclic permutation wBw_BwB​, fixing indices outside that set; singleton lists give the identity permutation. For every subset SSS and natural number sss, put

HS,s=∑e:{0,…,d−1}→{n∈N:n<l}e(j)=0 for j∉S∑j∈Se(j)=(∣S∣−˙1)(l−˙1)+sX0e(0)⋯Xd−1e(d−1),H_{S,s}= \sum_{\substack{e:\{0,\ldots,d-1\}\to\{n\in\mathbb N:n<l\}\\ e(j)=0\text{ for }j\notin S\\ \sum_{j\in S}e(j)=(|S|\mathbin{\dot-}1)(l\mathbin{\dot-}1)+s}} X_0^{e(0)}\cdots X_{d-1}^{e(d-1)},HS,s​=e:{0,…,d−1}→{n∈N:n<l}e(j)=0 for j∈/S∑j∈S​e(j)=(∣S∣−˙​1)(l−˙​1)+s​∑​X0e(0)​⋯Xd−1e(d−1)​,

where −˙\dot-−˙​ denotes truncated natural subtraction. The defined set consists exactly of elements zzz for which there exist a marked cycle AAA and a finite list ttt of marked cycles such that i∈SAi\in S_Ai∈SA​, the supports of the entries of the nonempty list A::tA::tA::t are pairwise disjoint, every index in any of these supports is at most iii, their union has cardinality at most ppp, and zzz is the product, in that list order, of the factors HSB,l−˙1WwBH_{S_B,l\mathbin{\dot-}1}W_{w_B}HSB​,l−˙​1​WwB​​. The list ttt may be empty, and the union need not cover all ddd indices. For p=0p=0p=0, the existential conditions are impossible because the union contains iii, so the set is empty. There is no permissible iii when d=0d=0d=0. At l=0l=0l=0, the color l−˙1l\mathbin{\dot-}1l−˙​1 is 000, and the quotient has 1=01=01=0 whenever such an iii exists.

QAlgorithms.Papers.Independent.Intake100.P40.murphyM

Let RRR be any commutative ring, let l,dl,dl,d be arbitrary natural numbers, and let μ\muμ be any multiset of natural numbers, without a positivity or size hypothesis. Work in the quotient of the free associative RRR-algebra on generators XjX_jXj​, 0≤j<d0\le j<d0≤j<d, and WwW_wWw​, indexed by permutations of the ddd indices, with relations Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XjXh=XhXjX_jX_h=X_hX_jXj​Xh​=Xh​Xj​, WwXj=Xw(j)WwW_wX_j=X_{w(j)}W_wWw​Xj​=Xw(j)​Ww​, and Xjl=0X_j^l=0Xjl​=0. Define

HS,s=∑b:{0,…,d−1}→{n∈N:n<l}b(j)=0 for j∉S∑j∈Sb(j)=(∣S∣−˙1)(l−˙1)+sX0b(0)⋯Xd−1b(d−1),H_{S,s}= \sum_{\substack{b:\{0,\ldots,d-1\}\to\{n\in\mathbb N:n<l\}\\ b(j)=0\text{ for }j\notin S\\ \sum_{j\in S}b(j)=(|S|\mathbin{\dot-}1)(l\mathbin{\dot-}1)+s}} X_0^{b(0)}\cdots X_{d-1}^{b(d-1)},HS,s​=b:{0,…,d−1}→{n∈N:n<l}b(j)=0 for j∈/S∑j∈S​b(j)=(∣S∣−˙​1)(l−˙​1)+s​∑​X0b(0)​⋯Xd−1b(d−1)​,

where −˙\dot-−˙​ is truncated natural subtraction. For each i<di<di<d and k∈Nk\in\mathbb Nk∈N, define Yi,kY_{i,k}Yi,k​ as the sum over injective functions f:{0,…,k/l−1}→{0,…,d−1}f:\{0,\ldots,k/l-1\}\to\{0,\ldots,d-1\}f:{0,…,k/l−1}→{0,…,d−1} satisfying f(j)<if(j)<if(j)<i, with summand HSf,k mod lWwfH_{S_f,k\bmod l}W_{w_f}HSf​,kmodl​Wwf​​; here SfS_fSf​ is the underlying set of the ordered list [f(0),…,f(k/l−1),i][f(0),\ldots,f(k/l-1),i][f(0),…,f(k/l−1),i], and wfw_fwf​ cycles through that list and fixes all other indices, with a singleton list giving the identity. Writing M=∑a∈μaM=\sum_{a\in\mu}aM=∑a∈μ​a, the defined element is

∑e:{0,…,d−1}→{0,…,M}the multiset of positive entries of e equals μY0,e(0)Y1,e(1)⋯Yd−1,e(d−1),\sum_{\substack{e:\{0,\ldots,d-1\}\to\{0,\ldots,M\}\\ \text{the multiset of positive entries of }e\text{ equals }\mu}} Y_{0,e(0)}Y_{1,e(1)}\cdots Y_{d-1,e(d-1)},e:{0,…,d−1}→{0,…,M}the multiset of positive entries of e equals μ​∑​Y0,e(0)​Y1,e(1)​⋯Yd−1,e(d−1)​,

with factors in increasing index order. All empty sums are 000 and empty products are 111. In particular, a zero entry in μ\muμ, or ∣μ∣>d|\mu|>d∣μ∣>d, makes the result 000; for d=0d=0d=0, it is 111 for empty μ\muμ and 000 otherwise. Division by zero and remainder modulo zero use k/0=0k/0=0k/0=0 and k mod 0=kk\bmod0=kkmod0=k; l=0l=0l=0 is allowed, and for d>0d>0d>0 the quotient has 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.murphyY

Let RRR be any commutative ring, let l,d,kl,d,kl,d,k be arbitrary natural numbers, and choose an index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, so that no such input exists when d=0d=0d=0. Work in the quotient of the free associative RRR-algebra on XjX_jXj​ and permutation generators WwW_wWw​, with relations Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XjXh=XhXjX_jX_h=X_hX_jXj​Xh​=Xh​Xj​, WwXj=Xw(j)WwW_wX_j=X_{w(j)}W_wWw​Xj​=Xw(j)​Ww​, and Xjl=0X_j^l=0Xjl​=0. Put q=k/lq=k/lq=k/l and s=k mod ls=k\bmod ls=kmodl, using natural-number division and remainder. Sum over all injective functions e:{0,…,q−1}→{0,…,d−1}e:\{0,\ldots,q-1\}\to\{0,\ldots,d-1\}e:{0,…,q−1}→{0,…,d−1} such that e(j)<ie(j)<ie(j)<i for every jjj. For each eee, let Le=[e(0),…,e(q−1),i]L_e=[e(0),\ldots,e(q-1),i]Le​=[e(0),…,e(q−1),i], let SeS_eSe​ be its underlying set, and let wew_ewe​ be its cyclic permutation, fixing indices outside the list; when q=0q=0q=0, this permutation is the identity. The summand is HSe,sWweH_{S_e,s}W_{w_e}HSe​,s​Wwe​​, with

HS,s=∑b:{0,…,d−1}→{n∈N:n<l}b(j)=0 for j∉S∑j∈Sb(j)=(∣S∣−˙1)(l−˙1)+sX0b(0)⋯Xd−1b(d−1),H_{S,s}= \sum_{\substack{b:\{0,\ldots,d-1\}\to\{n\in\mathbb N:n<l\}\\ b(j)=0\text{ for }j\notin S\\ \sum_{j\in S}b(j)=(|S|\mathbin{\dot-}1)(l\mathbin{\dot-}1)+s}} X_0^{b(0)}\cdots X_{d-1}^{b(d-1)},HS,s​=b:{0,…,d−1}→{n∈N:n<l}b(j)=0 for j∈/S∑j∈S​b(j)=(∣S∣−˙​1)(l−˙​1)+s​∑​X0b(0)​⋯Xd−1b(d−1)​,

where −˙\dot-−˙​ is truncated natural subtraction. The defined element is the sum of these summands. If q>iq>iq>i, there are no eligible functions and the result is 000; if q=0q=0q=0, the unique empty function contributes one summand. At l=0l=0l=0, division gives q=0q=0q=0 and remainder gives s=ks=ks=k; the exponent-assignment sum is empty because d>0d>0d>0, so the result is 000.

QAlgorithms.Papers.Independent.Intake100.P40.orbitSum

Let RRR be any commutative ring, let l,dl,dl,d be arbitrary natural numbers, and let λ=(λr)0≤r<l\lambda=(\lambda_r)_{0\le r<l}λ=(λr​)0≤r<l​ be a family of multisets of strictly positive natural numbers satisfying ∑r<l∑a∈λra=d\sum_{r<l}\sum_{a\in\lambda_r}a=d∑r<l​∑a∈λr​​a=d. Work in the quotient of the free associative RRR-algebra with generators XjX_jXj​, 0≤j<d0\le j<d0≤j<d, and WwW_wWw​, one for every permutation www of these indices, by the relations Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XjXk=XkXjX_jX_k=X_kX_jXj​Xk​=Xk​Xj​, WwXj=Xw(j)WwW_wX_j=X_{w(j)}W_wWw​Xj​=Xw(j)​Ww​, and Xjl=0X_j^l=0Xjl​=0. For a subset SSS of the indices and a natural number rrr, put

HS,r=∑e:{0,…,d−1}→{n∈N:n<l}e(j)=0 for j∉S∑j∈Se(j)=(∣S∣−˙1)(l−˙1)+rX0e(0)⋯Xd−1e(d−1),H_{S,r}=\sum_{\substack{e:\{0,\ldots,d-1\}\to\{n\in\mathbb N:n<l\}\\ e(j)=0\text{ for }j\notin S\\ \sum_{j\in S}e(j)=(|S|\mathbin{\dot-}1)(l\mathbin{\dot-}1)+r}} X_0^{e(0)}\cdots X_{d-1}^{e(d-1)},HS,r​=e:{0,…,d−1}→{n∈N:n<l}e(j)=0 for j∈/S∑j∈S​e(j)=(∣S∣−˙​1)(l−˙​1)+r​∑​X0e(0)​⋯Xd−1e(d−1)​,

where −˙\dot-−˙​ is truncated natural subtraction. A marked cycle (S,w)(S,w)(S,w) means that some nonempty list of distinct indices has underlying set SSS and associated cyclic permutation www, fixing indices outside SSS; singleton lists give the identity permutation. Consider every finite set CCC of pairs ((S,w),r)((S,w),r)((S,w),r) with r<lr<lr<l, pairwise disjoint supports, and supports covering all ddd indices. Retain exactly those CCC for which, for every r<lr<lr<l, the multiset of support sizes of its members colored rrr equals λr\lambda_rλr​. The defined element is the sum, over these retained CCC, of the product of HS,rWwH_{S,r}W_wHS,r​Ww​ over its members, taken in the order of the list obtained by converting that finite set to a list. Empty sums are 000 and empty products are 111. In particular, for d=0d=0d=0 the result is 111; for l=0<dl=0<dl=0<d there is no admissible λ\lambdaλ. No nontriviality assumption is imposed on RRR.

QAlgorithms.Papers.Independent.Intake100.P40.orderedMonomial

For every monoid AAA, every natural number ddd, every family xi∈Ax_i\in Axi​∈A indexed by i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, and every family of natural-number exponents eie_iei​, this defines the ordered monomial to be

x0e0x1e1⋯xd−1ed−1,x_0^{e_0}x_1^{e_1}\cdots x_{d-1}^{e_{d-1}},x0e0​​x1e1​​⋯xd−1ed−1​​,

with factors in increasing index order. No commutativity assumption is made on AAA. Exponent zero contributes the monoid identity, and when d=0d=0d=0 the empty product is the identity.

QAlgorithms.Papers.Independent.Intake100.P40.partitionInverse

For arbitrary natural numbers l,dl,dl,d and an arbitrary multiset μ\muμ of natural numbers, define Q=∑a∈μ⌊a/l⌋Q=\sum_{a\in\mu}\lfloor a/l\rfloorQ=∑a∈μ​⌊a/l⌋, counting multiplicities, and let N=(d−˙Q)−˙∣μ∣N=(d\mathbin{\dot-}Q)\mathbin{\dot-}|\mu|N=(d−˙​Q)−˙​∣μ∣, where u−˙v=max⁡(u−v,0)u\mathbin{\dot-}v=\max(u-v,0)u−˙​v=max(u−v,0). The output is a function on the indices r∈{0,…,l−1}r\in\{0,\ldots,l-1\}r∈{0,…,l−1}: append NNN copies of 000 to μ\muμ, retain precisely the entries aaa whose remainder modulo lll equals rrr, and replace each retained entry by ⌊a/l⌋+1\lfloor a/l\rfloor+1⌊a/l⌋+1, preserving multiplicities. No positivity, size, or partition condition is imposed on μ\muμ, and the subtractions are truncated even when Q+∣μ∣>dQ+|\mu|>dQ+∣μ∣>d. Natural-number division and remainder satisfy a/0=0a/0=0a/0=0 and a mod 0=aa\bmod0=aamod0=a; when l=0l=0l=0, the output has an empty index set.

QAlgorithms.Papers.Independent.Intake100.P40.partitionPhi

For any natural number lll and arbitrary family (λr)0≤r<l(\lambda_r)_{0\le r<l}(λr​)0≤r<l​ of finite multisets of natural numbers, this defines a multiset by replacing each occurrence of a∈λra\in\lambda_ra∈λr​ with

(a−1)l+r,(a-1)l+r,(a−1)l+r,

discarding each resulting zero, and adding the resulting multisets over all rrr. Multiplicities are retained, and a−1a-1a−1 is natural-number subtraction, truncated at zero. There is no requirement that the input entries be positive or have any prescribed total sum: in particular, both a=0a=0a=0 and a=1a=1a=1 produce rrr, which is discarded exactly when r=0r=0r=0. When l=0l=0l=0, the indexing set is empty and the output is the empty multiset.

QAlgorithms.Papers.Independent.Intake100.P40.polynomialCentralizer

For any commutative ring RRR and natural numbers l,dl,dl,d, let GGG be the RRR-algebra generated by xix_ixi​, for 0≤i<d0\le i<d0≤i<d, and WwW_wWw​, for permutations www of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, subject to Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, xixj=xjxix_ix_j=x_jx_ixi​xj​=xj​xi​, Wwxi=xw(i)WwW_wx_i=x_{w(i)}W_wWw​xi​=xw(i)​Ww​, and xil=0x_i^l=0xil​=0. This defines the RRR-subalgebra

{z∈G: ∀i∈{0,…,d−1}, zxi=xiz}.\{z\in G:\ \forall i\in\{0,\ldots,d-1\},\ zx_i=x_iz\}.{z∈G: ∀i∈{0,…,d−1}, zxi​=xi​z}.

When d=0d=0d=0, the commuting condition is vacuous, so this is all of GGG. When l=0l=0l=0 and d>0d>0d>0, the defining relations give 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.quotientSize

For any natural number lll and finite multiset μ\muμ of natural numbers, this defines the natural number

∑a∈μ(adivl),\sum_{a\in\mu}(a\mathbin{\mathrm{div}}l),a∈μ∑​(adivl),

counting entries with multiplicity, where for l>0l>0l>0 the quotient is ⌊a/l⌋\lfloor a/l\rfloor⌊a/l⌋. No positivity condition on the entries is required. Natural-number division by zero is defined to be zero, so the result is zero when l=0l=0l=0; it is also zero when μ\muμ is empty.

QAlgorithms.Papers.Independent.Intake100.P40.rearrangements

For any natural number ddd and any multiset μ\muμ of natural numbers, let M=∑a∈μaM=\sum_{a\in\mu}aM=∑a∈μ​a, counting multiplicities. The defined finite set consists of all functions e:{0,…,d−1}→{0,…,M}e:\{0,\ldots,d-1\}\to\{0,\ldots,M\}e:{0,…,d−1}→{0,…,M} for which the multiset of strictly positive entries among e(0),…,e(d−1)e(0),\ldots,e(d-1)e(0),…,e(d−1) is exactly μ\muμ. Thus zero entries of the function are discarded before comparison, and repeated positive entries retain their multiplicities. No positivity condition is assumed on μ\muμ: if it contains a zero, the finite set is empty, and it is also empty if ∣μ∣>d|\mu|>d∣μ∣>d. If μ\muμ is empty, the finite set contains exactly the all-zero function, including the unique empty function when d=0d=0d=0; when d=0d=0d=0 and μ\muμ is nonempty, the finite set is empty.

QAlgorithms.Papers.Independent.Intake100.P40.singleCycleSum

Let RRR be any commutative ring and let l,d,a,rl,d,a,rl,d,a,r be arbitrary natural numbers. In the quotient of the free associative RRR-algebra on generators XjX_jXj​, 0≤j<d0\le j<d0≤j<d, and WwW_wWw​, indexed by permutations of these ddd indices, impose Wid=1W_{\mathrm{id}}=1Wid​=1, WuWv=WuvW_uW_v=W_{uv}Wu​Wv​=Wuv​, XjXk=XkXjX_jX_k=X_kX_jXj​Xk​=Xk​Xj​, WwXj=Xw(j)WwW_wX_j=X_{w(j)}W_wWw​Xj​=Xw(j)​Ww​, and Xjl=0X_j^l=0Xjl​=0. A marked cycle is a pair (S,w)(S,w)(S,w) arising from a nonempty list of distinct indices: SSS is its underlying set and www its cyclic permutation, fixing all indices outside SSS; for a singleton list, www is the identity. For each such pair with ∣S∣=a|S|=a∣S∣=a, form HS,rWwH_{S,r}W_wHS,r​Ww​, where

HS,r=∑e:{0,…,d−1}→{n∈N:n<l}e(j)=0 for j∉S∑j∈Se(j)=(∣S∣−˙1)(l−˙1)+rX0e(0)⋯Xd−1e(d−1)H_{S,r}= \sum_{\substack{e:\{0,\ldots,d-1\}\to\{n\in\mathbb N:n<l\}\\ e(j)=0\text{ for }j\notin S\\ \sum_{j\in S}e(j)=(|S|\mathbin{\dot-}1)(l\mathbin{\dot-}1)+r}} X_0^{e(0)}\cdots X_{d-1}^{e(d-1)}HS,r​=e:{0,…,d−1}→{n∈N:n<l}e(j)=0 for j∈/S∑j∈S​e(j)=(∣S∣−˙​1)(l−˙​1)+r​∑​X0e(0)​⋯Xd−1e(d−1)​

and −˙\dot-−˙​ denotes truncated natural subtraction. The defined element is the sum of HS,rWwH_{S,r}W_wHS,r​Ww​ over all marked-cycle pairs with support size exactly aaa, counting each pair once regardless of how many lists represent it. There is no restriction r<lr<lr<l. An empty indexing set gives 000, in particular when a=0a=0a=0, a>da>da>d, or d=0d=0d=0. The parameter l=0l=0l=0 is allowed; if d>0d>0d>0, the quotient then has 1=01=01=0.

QAlgorithms.Papers.Independent.Intake100.P40.symmetricMonomial

Let AAA be any ring, not assumed commutative, let ddd be any natural number, let xxx assign an element xi,n∈Ax_{i,n}\in Axi,n​∈A to every i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1} and n∈Nn\in\mathbb Nn∈N, and let μ\muμ be any multiset of natural numbers. Writing M=∑a∈μaM=\sum_{a\in\mu}aM=∑a∈μ​a, the defined element is

∑e:{0,…,d−1}→{0,…,M}the multiset of positive entries of e equals μx0,e(0)x1,e(1)⋯xd−1,e(d−1).\sum_{\substack{e:\{0,\ldots,d-1\}\to\{0,\ldots,M\}\\ \text{the multiset of positive entries of }e\text{ equals }\mu}} x_{0,e(0)}x_{1,e(1)}\cdots x_{d-1,e(d-1)}.e:{0,…,d−1}→{0,…,M}the multiset of positive entries of e equals μ​∑​x0,e(0)​x1,e(1)​⋯xd−1,e(d−1)​.

The factors are multiplied in increasing index order, and factors xi,0x_{i,0}xi,0​ are included without any assumption that they equal 111. Multiplicities in the multiset comparison are preserved. If μ\muμ contains a zero or has more than ddd entries, the sum is empty and equals 000. For empty μ\muμ, the value is x0,0⋯xd−1,0x_{0,0}\cdots x_{d-1,0}x0,0​⋯xd−1,0​. When d=0d=0d=0, the value is 111 if μ\muμ is empty and 000 otherwise.

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