Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite CW recursion with independent regions and all six mode roles

Definition
mme_recursive_regional_CW_data

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

matrix-multiplicationmore-asymmetryrecursive-extraction

A finite RegionalPlan combines exact-profile interior descents, proved boundary endpoints, products over disjoint position regions, and cyclic or transposed mode roles. Every descent strictly decreases the level. Region children may independently recurse and change mode roles.

The computed input count charges every exact type cover; the output count retains every repaired copy. Regional products multiply both counts and all matrix dimensions.

The recipe contains finite combinatorial predicates and data only. It does not assume a tensor restriction or assert existence of a plan achieving a numerical exponent.

Definition code
import Definitions.Def_mme_recursive_profiled_CW_data
import Definitions.Def_mme_six_symmetrized_tau_value

open BigOperators MME MME.TensorObj
set_option autoImplicit false
namespace MME.ProfiledCW

/-- Finite recipes allowing joint descent, position regions, and all six mode roles.
Every constructor stores only finite combinatorial data, never a tensor map. -/
inductive RegionalPlan : (N ell : ℕ) → Predicate N → Type
  | base {N ell P} (data : Plan N ell P) : RegionalPlan N ell P
  | descend {N ell lower : ℕ} {P Q : Predicate N}
      (level_decreases : lower < ell)
      (types copies : ℕ)
      (steps : Fin types → ExactStep lower N P)
      (enough : ∀ j, copies ≤ (steps j).copies)
      (inside : ∀ j i x, (steps j).output i x → Q i x)
      (cover : ∀ x : Fin 3 → FineWord N, supported x → (∀ i, Q i (x i)) →
        ∃! j, ∀ i, (steps j).output i (x i))
      (next : RegionalPlan N lower Q) : RegionalPlan N ell P
  | partition {N ell parts : ℕ} {P : Predicate N}
      (size : Fin parts → ℕ)
      (positions : ((j : Fin parts) × Fin (size j)) ≃ Fin N)
      (Q : ∀ j, Predicate (size j))
      (inside : ∀ i x, (∀ j, Q j i (fun r ↦ x (positions ⟨j,r⟩))) → P i x)
      (children : ∀ j, RegionalPlan (size j) ell (Q j)) : RegionalPlan N ell P
  | rotate {N ell P} (child : RegionalPlan N ell P) :
      RegionalPlan N ell (fun i ↦ P (cyclicPerm.symm i))
  | swap {N ell P} (child : RegionalPlan N ell P) :
      RegionalPlan N ell (fun i ↦ P (swapFirstTwoPerm.symm i))

def RegionalPlan.inputs {N ell : ℕ} {P : Predicate N} : RegionalPlan N ell P → ℕ
  | .base D => D.inputs
  | .descend _ types _ _ _ _ _ next => types * next.inputs
  | .partition _ _ _ _ children => ∏ j, (children j).inputs
  | .rotate D => D.inputs
  | .swap D => D.inputs

def RegionalPlan.outputs {N ell : ℕ} {P : Predicate N} : RegionalPlan N ell P → ℕ
  | .base D => D.outputs
  | .descend _ _ copies _ _ _ _ next => copies * next.outputs
  | .partition _ _ _ _ children => ∏ j, (children j).outputs
  | .rotate D => D.outputs
  | .swap D => D.outputs

def RegionalPlan.dims {N ell : ℕ} {P : Predicate N} : RegionalPlan N ell P → ℕ × ℕ × ℕ
  | .base D => (D.a, D.b, D.c)
  | .descend _ _ _ _ _ _ _ next => next.dims
  | .partition _ _ _ _ children =>
      (∏ j, (children j).dims.1, ∏ j, (children j).dims.2.1, ∏ j, (children j).dims.2.2)
  | .rotate D => (D.dims.2.2, D.dims.1, D.dims.2.1)
  | .swap D => (D.dims.2.2, D.dims.2.1, D.dims.1)

def RegionalPlan.a {N ell : ℕ} {P : Predicate N} (D : RegionalPlan N ell P) : ℕ := D.dims.1
def RegionalPlan.b {N ell : ℕ} {P : Predicate N} (D : RegionalPlan N ell P) : ℕ := D.dims.2.1
def RegionalPlan.c {N ell : ℕ} {P : Predicate N} (D : RegionalPlan N ell P) : ℕ := D.dims.2.2

end MME.ProfiledCW
Source
Alman et al., More Asymmetry Yields Faster Matrix Multiplication, https://arxiv.org/html/2404.16349v2#S6 , Theorems 6.2 and 6.4, Proposition 6.3. Finite constructive certificate interface with explicit type-cover source costs.

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