Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact feasibility criterion for cell-profile word blocks

Proved
mme_recursive_cellWord_nonempty_iff_mass_and_grade

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

matrix-multiplicationtensor-complexity

Let PPP be a finite set of positions, WWW a finite set of words, and c:P→Cc:P\to Cc:P→C the cell assignment. Let g:W→Gg:W\to Gg:W→G assign grades, s:C→Gs:C\to Gs:C→G prescribe the cell grades, and μ:C×W→N\mu:C\times W\to\mathbb Nμ:C×W→N prescribe multiplicities. There exists an assignment f:P→Wf:P\to Wf:P→W satisfying

g(f(p))=s(c(p)),∣{p:c(p)=d, f(p)=w}∣=μ(d,w)g(f(p))=s(c(p)),\qquad |\{p:c(p)=d,\ f(p)=w\}|=\mu(d,w)g(f(p))=s(c(p)),∣{p:c(p)=d, f(p)=w}∣=μ(d,w)

for every position, cell, and word if and only if

∑w∈Wμ(d,w)=∣c−1(d)∣,μ(d,w)>0⟹g(w)=s(d).\sum_{w\in W}\mu(d,w)=|c^{-1}(d)|, \qquad \mu(d,w)>0\Longrightarrow g(w)=s(d).w∈W∑​μ(d,w)=∣c−1(d)∣,μ(d,w)>0⟹g(w)=s(d).

Thus total mass and grade support are the complete combinatorial feasibility conditions for a cell-profile block. No finiteness assumption on the cell or grade sets is required.

Preamble
import Definitions.Def_mme_recursive_yz_stage_certificate
import Mathlib.Data.Fintype.EquivFin
import Mathlib.SetTheory.Cardinal.Finite
import Mathlib.Data.Fintype.BigOperators

open BigOperators MME MME.RecursiveYZ MME.RecursiveYZ.Certificate MME.CompleteSplit
Formal statement
theorem mme_recursive_cellWord_nonempty_iff_mass_and_grade
    {P C W G : Type*} [Fintype P] [Fintype W]
    (cell : P → C) (grade : W → G) (shape : C → G) (mu : C → W → ℕ) :
    Nonempty (CellWord cell grade shape mu) ↔
      (∀ c, ∑ w, mu c w = Nat.card {p : P // cell p = c}) ∧
      (∀ c w, 0 < mu c w → grade w = shape c) := by sorry
Source
Direct finite histogram realization for RecursiveYZ.CellWord and the mass/reference-target fields of RecursiveYZ.Certificate.Stage.

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