Recursive Y/Z filtering: exact compatibility count with both halves
Provedmme_recursive_yz_exact_compatibility_cardFix parent components of total grade and a recursive split address with prescribed left-split counts . The physical cell contains both occurrences whose left split is and occurrences whose right split is , so it has size .
Let be any finite fine-word alphabet (in particular, the full CW child-word alphabet), and prescribe cell histograms summing to these physical cell sizes. For any boundary predicate and retained-mode grouping, the exact number of compatible fine words is
where separates individual boundary cells and merges all remaining cells with the same retained-mode label. On a boundary cell, ; on an interior part, it is the sum of the corresponding cell histograms.
Taking the boundary and grouping by the Y grade gives the finite counting identity underlying Claim 6.19. Taking the boundary or and grouping by the Z grade gives its Z analogue. Both halves are included. The statement is exact at finite size and does not claim the subsequent entropy asymptotics, competitor loss, or tensor extraction.
import Definitions.Def_mme_recursive_yz_physical_words open BigOperators MME.RecursiveYZ open scoped Classical set_option autoImplicit false
theorem mme_recursive_yz_exact_compatibility_card {half R : ℕ} {W G : Type*} [Fintype W] [Fintype G]
(parent : Fin R → Fin 3 → ℕ) (n : Fin R → ℕ)
(htotal : ∀ r, parent r 0 + parent r 1 + parent r 2 = 2 * half)
(a : Address half R parent n)
(m : ∀ r, MME.RecursiveThinSplit.Split half (parent r) → ℕ)
(htype : ∀ r, MME.RecursiveThinSplit.HasJointCounts (a r) (m r))
(boundary : Cell half R parent → Prop) (group : Cell half R parent → G)
(mu : Cell half R parent → W → ℕ)
(hmass : ∀ c, ∑ w, mu c w = m c.1 c.2 + m c.1 (complement (htotal c.1) c.2)) :
Nat.card {f : Position n → W //
Compatible (fullCell htotal a) boundary group mu f} =
compatibilityNumber boundary group mu := by sorry