Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Literal CW powers with graded exact profiles in physical cells

Definition
mme_recursive_yz_CW_cells

by raresbuhai · Sep 12, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

group-actionsmatrix-multiplicationtensor-restriction

For a field KKK, CW parameter qqq, child level ℓ\ellℓ, and LLL child positions, the source is the literal tensor CWq⊗L2ℓ−1\mathrm{CW}_q^{\otimes L2^{\ell-1}}CWq⊗L2ℓ−1​. Its canonical word basis records an actual CW coordinate in every elementary factor. The fine label at each child position is the word of actual CW coordinate grades.

Given a cell map, a grade triple per cell, and a fine-word histogram per cell and mode, the unbroken tensor is the simultaneous restriction to basis words with exactly those grades and histograms. Its coordinate indices and full fine-label blocks are defined explicitly. A permutation of child positions lifts to a permutation of all elementary factors. These are concrete tensor and label definitions for repairing the recursively extracted pieces.

Definition code
import Definitions.Def_mme_recursive_yz_cell_shuffles
import Definitions.Def_mme_complete_split_profile_projection
import Definitions.Def_mme_kronPow_position_permutation_linear_data
import Definitions.Def_mme_dwz_cw_square_fine_split_grading

open BigOperators MME MME.TensorObj MME.CompleteSplit MME.DWZStep1Support Module
set_option autoImplicit false
universe u v w
namespace MME.RecursiveYZ.CWCells

abbrev WordIndex (q ell L : ℕ) := Fin (L * 2 ^ (ell - 1)) → ULift.{u} (Fin (q + 2))

noncomputable def source (K : Type u) [Field K] (q ell L : ℕ) : TensorObj K 3 :=
  (CWObj K q).kronPow (L * 2 ^ (ell - 1))

noncomputable def basis (K : Type u) [Field K] (q ell L : ℕ) (i : Fin 3) :
    Basis (WordIndex.{u} q ell L) K ((source K q ell L).V i) :=
  kronPowModeWordBasis (CWObj K q) i
    ((cwThreeCanonicalBasis K q i).reindex Equiv.ulift.symm) (L * 2 ^ (ell - 1))

/-- The literal fine grades in each CW child position. -/
def label {P : Type v} (q ell L : ℕ) (positions : Fin L ≃ P)
    (w : WordIndex.{u} q ell L) : P → CompleteWord ell :=
  fun p r ↦ cwSquareCoordGrade q (w (finProdFinEquiv (positions.symm p, r))).down

def grade {ell : ℕ} (w : CompleteWord ell) : ℕ := ∑ r, (w r).val

def allowed {P : Type v} {C : Type w} [Fintype P]
    (q ell L : ℕ) (positions : Fin L ≃ P)
    (cell : P → C) (shape : C → Fin 3 → ℕ)
    (mu : Fin 3 → C → CompleteWord ell → ℕ) (i : Fin 3) (x : WordIndex.{u} q ell L) : Prop :=
  (∀ p, grade (label q ell L positions x p) = shape (cell p) i) ∧
    Useful cell (mu i) (label q ell L positions x)

noncomputable def grading {P : Type v} {C : Type w} [Fintype P]
    (K : Type u) [Field K] (q ell L : ℕ) (positions : Fin L ≃ P)
    (cell : P → C) (shape : C → Fin 3 → ℕ)
    (mu : Fin 3 → C → CompleteWord ell → ℕ) : (source K q ell L).TypeGrading 2 :=
  (source K q ell L).basisAllAllowedGrading (basis K q ell L)
    (allowed q ell L positions cell shape mu)

noncomputable def unbroken {P : Type v} {C : Type w} [Fintype P]
    (K : Type u) [Field K] (q ell L : ℕ) (positions : Fin L ≃ P)
    (cell : P → C) (shape : C → Fin 3 → ℕ)
    (mu : Fin 3 → C → CompleteWord ell → ℕ) : TensorObj K 3 :=
  (source K q ell L).basisAllAllowedSubtensor (basis K q ell L)
    (allowed q ell L positions cell shape mu)

abbrev Coord {P : Type v} {C : Type w} [Fintype P]
    (q ell L : ℕ) (positions : Fin L ≃ P)
    (cell : P → C) (shape : C → Fin 3 → ℕ)
    (mu : Fin 3 → C → CompleteWord ell → ℕ) (i : Fin 3) :=
  {x : WordIndex.{u} q ell L // allowed q ell L positions cell shape mu i x}

abbrev Block {P : Type v} {C : Type w} [Fintype P]
    (ell : ℕ) (cell : P → C) (shape : C → Fin 3 → ℕ)
    (mu : Fin 3 → C → CompleteWord ell → ℕ) (i : Fin 3) :=
  CellWord cell grade (fun c ↦ shape c i) (mu i)

/-- Lift a permutation of child positions to all of their elementary CW factors. -/
def leafPermutation {P : Type v} (ell L : ℕ) (positions : Fin L ≃ P) (e : Equiv.Perm P) :
    Equiv.Perm (Fin (L * 2 ^ (ell - 1))) :=
  (finProdFinEquiv.symm.trans
    (Equiv.prodCongr ((positions.trans e).trans positions.symm) (Equiv.refl _))).trans finProdFinEquiv

end MME.RecursiveYZ.CWCells
Source
Finite cell-profile formulation of the common-position shuffles used in the Hole Lemma application of Alman et al., More Asymmetry Yields Faster Matrix Multiplication, arXiv:2404.16349v2, Section 6.5; https://arxiv.org/html/2404.16349v2.

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