Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Recursive child data with constructed boundary cases

Definition
mme_recursive_yz_boundary_child_plan

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

matrix-multiplicationtensor-restriction

For each literal recursive child tensor, record its proposed matrix dimensions. A boundary child is specified by exact equality of its grades and full integer profiles with a boundary profile, together with the explicit dimension formula; no boundary tensor map is an input. An interior child must have all three grades strictly positive and supply its actual matrix restriction. Products of the proposed dimensions are recorded for use in the same cofinal witness.

Definition code
import Definitions.Def_mme_recursive_yz_boundary_data
open BigOperators MME MME.TensorObj MME.RecursiveYZ.Certificate MME.RecursiveYZ.Boundary
set_option autoImplicit false
universe u
namespace MME.RecursiveYZ.Certificate

/-- Scalar profile and shape identifications for a boundary child. There is no tensor-map input. -/
def Stage.BoundaryChild {D : HashExtraction.HashData} (A : Stage D)
    (j : Fin A.childCells) (a b c : ℕ) : Prop :=
  ∃ z : Fin 3, ∃ B : Boundary.Profile A.ell (A.childMultiplicity j),
    (∀ i, ((A.childCell j).2.val i).val = B.shape z i) ∧
    (∀ i, A.mu i (A.childCell j) = B.mu z i) ∧
    a = B.a z ∧ b = B.b z ∧ c = B.c z

/-- Boundary maps are supplied by the exact-profile theorem; only interior maps remain inputs. -/
structure Stage.ChildPlan {D : HashExtraction.HashData} (A : Stage D)
    (K : Type u) [Field K] where
  a : Fin A.childCells → ℕ
  b : Fin A.childCells → ℕ
  c : Fin A.childCells → ℕ
  cases : ∀ j,
    A.BoundaryChild j (a j) (b j) (c j) ∨
    ((∀ i, 0 < ((A.childCell j).2.val i).val) ∧
      TensorObj.Restrict (MMObj K (a j) (b j) (c j)) (A.childTensor K j))

noncomputable def Stage.ChildPlan.dimA {D : HashExtraction.HashData} {A : Stage D}
    {K : Type u} [Field K] (P : A.ChildPlan K) : ℕ := ∏ j, P.a j
noncomputable def Stage.ChildPlan.dimB {D : HashExtraction.HashData} {A : Stage D}
    {K : Type u} [Field K] (P : A.ChildPlan K) : ℕ := ∏ j, P.b j
noncomputable def Stage.ChildPlan.dimC {D : HashExtraction.HashData} {A : Stage D}
    {K : Type u} [Field K] (P : A.ChildPlan K) : ℕ := ∏ j, P.c j

end MME.RecursiveYZ.Certificate
Source
Alman et al., More Asymmetry Yields Faster Matrix Multiplication, https://arxiv.org/html/2404.16349v2#S6, Remark 6.1, Theorem 6.2 and subsequent separation of boundary and interior terms.

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