Exact numeric word count for a union of binary grade patterns
Provedmme_coupled_binary_word_union_cardinalitycombinatoricstensor-restriction
Let be natural numbers and let be a finite set of length- patterns with entries in . A word has letters in two disjoint copies of , and its grade pattern records which copy each letter belongs to. The number of words whose grade pattern belongs to is
Each distinct pattern contributes exactly independent numeric label choices. The formula counts the set of patterns, so repeated descriptions of the same pattern do not inflate the count; it also holds for empty pattern sets and zero lengths.
Preamble
import Definitions.Def_mme_kron_pow_word_reindex import Mathlib.Data.Fintype.Pi import Mathlib.Logic.Equiv.Basic open MME.DWZComponentRestriction BigOperators universe u set_option autoImplicit false
Formal statement
theorem mme_coupled_binary_word_union_cardinality (q N : ℕ)
(patterns : Finset (Fin N → Fin 3))
(hbinary : ∀ b ∈ patterns, ∀ r, b r = 0 ∨ b r = 1) :
Fintype.card {w : PowIndex (ULift.{u} (Fin q ⊕ Fin q)) N //
(fun r ↦ Sum.elim (fun _ ↦ (0 : Fin 3)) (fun _ ↦ 1)
(PowIndex.get N w r).down) ∈ patterns} = patterns.card * q ^ N := by sorrySource
Equivalence between each grade fiber and a product of numeric labels, followed by a disjoint sum over the pattern set.