Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact prescribed-profile word count for a nonuniform graded alphabet

Proved
mme_prescribed_graded_alphabet_word_card

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

combinatoricsdwzmatrix-multiplicationprescribed-z

For any finite graded alphabet, the number of words with a prescribed rational grade profile equals the multinomial coefficient times the product of grade-fiber cardinalities raised to their prescribed counts.

Preamble
import Definitions.Def_mme_kron_pow_word_reindex
import Definitions.Def_mme_dwz_prescribed_z_split_value
import Mathlib.Data.Nat.Choose.Multinomial
open MME MME.DWZComponentRestriction MME.DWZRestrictedValue
open scoped BigOperators
universe u
set_option autoImplicit false
Formal statement
theorem mme_prescribed_graded_alphabet_word_card
    {I : Type u} [Fintype I] [DecidableEq I] {t : ℕ}
    (grade : I → Fin t) (p : IntegerZSplitProfile t) (m : ℕ) :
    Nat.card {w : PowIndex I (p.length m) // prescribedZWord grade p m w} =
      Nat.multinomial Finset.univ (fun a ↦ p.count a * m) *
        ∏ a, (Fintype.card {i : I // grade i = a}) ^ (p.count a * m)  := by sorry
Source
Exact type-class enumeration for the prescribed Z-word restrictions used in Duan, Wu, Zhou, Faster Matrix Multiplication via Asymmetric Hashing, Definitions 3.7 and 8.1.

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