Region-labeled cell counts equal their fiber counts
Provedmme_recursive_yz_count_sigma_fibermatrix-multiplicationtensor-extraction
A cell whose label records its region counts exactly the positions in that region. The result holds for arbitrary finite dependent position families. The root exponent bound remains a separate obligation.
Preamble
import Definitions.Def_mme_recursive_yz_compatibility open MME.RecursiveYZ
Formal statement
theorem mme_recursive_yz_count_sigma_fiber
{R : Type*} [Fintype R] {P C : R → Type*} [∀ r, Fintype (P r)]
{W : Type*} (cell : ∀ r, P r → C r) (f : (Σ r, P r) → W)
(r : R) (c : C r) (w : W) :
count (fun p : Σ r, P r => (⟨p.1, cell p.1 p.2⟩ : Σ r, C r)) f ⟨r,c⟩ w =
count (cell r) (fun p => f ⟨r,p⟩) c w := by sorrySource
Checked tensor restrictions and released global histogram extraction.