Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Regional recipes with proved explicit entropy copy guarantees

Definition
mme_entropy_regional_CW_recipe

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

matrix-multiplicationmore-asymmetryregional-entropy

Finite recipes use existing consistent integer regional steps, but count copies by the explicit summed-entropy lower formula and its finite hash, rounding and repair losses. Compilation to the existing IntegerRecipe is a separate proved theorem. No entropy estimate or tensor map is stored as a premise.

Definition code
import Definitions.Def_mme_regional_entropy_copy_bound
open BigOperators MME MME.ProfiledCW MME.RecursiveYZ MME.RecursiveYZ.CWCells
open scoped Classical
set_option autoImplicit false
namespace MME.RegionRealization

/-- Finite recipes with explicit regional entropy copy guarantees. No entropy rate,
prime, hash state, selected family, or tensor map is supplied as an assumption. -/
inductive EntropyRecipe : (N ell : ℕ) → Predicate N → Type
  | boundary {N ell P} (data : BoundaryEnd ell N P) : EntropyRecipe N ell P
  | descend {N ell lower : ℕ} {P Q : Predicate N}
      (level_decreases : lower < ell) (types copies : ℕ)
      (steps : Fin types → IntegerStep lower N P)
      (enough : ∀ j, copies ≤ (steps j).entropyCopies)
      (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 : EntropyRecipe N lower Q) : EntropyRecipe 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, EntropyRecipe (size j) ell (Q j)) : EntropyRecipe N ell P
  | rotate {N ell P} (child : EntropyRecipe N ell P) :
      EntropyRecipe N ell (fun i ↦ P (cyclicPerm.symm i))
  | swap {N ell P} (child : EntropyRecipe N ell P) :
      EntropyRecipe N ell (fun i ↦ P (swapFirstTwoPerm.symm i))

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

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

def EntropyRecipe.dims {N ell : ℕ} {P : Predicate N} : EntropyRecipe N ell P → ℕ × ℕ × ℕ
  | .boundary 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 EntropyRecipe.a {N ell : ℕ} {P : Predicate N} (D : EntropyRecipe N ell P) : ℕ := D.dims.1
def EntropyRecipe.b {N ell : ℕ} {P : Predicate N} (D : EntropyRecipe N ell P) : ℕ := D.dims.2.1
def EntropyRecipe.c {N ell : ℕ} {P : Predicate N} (D : EntropyRecipe N ell P) : ℕ := D.dims.2.2

end MME.RegionRealization
Source
Uniform entropy-based integer regional construction for the More Asymmetry matrix multiplication campaign, https://arxiv.org/html/2404.16349v2#S6 . The numerical surplus certificate remains Open.

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