Documentation

CslibFrontier.Foundations.Data.Fin.Counting

Counting tuples by their first coordinate #

Fin.card_filter_zero_tail counts a predicate on a nonempty-length tuple by fixing its first coordinate and counting the remaining tails. Extracted from the multilinearity-testing proof so that cube-cardinality arguments can reuse it without importing a coding-theory application.

theorem Fin.card_filter_zero_tail {F : Type u_1} [Fintype F] {n : ℕ} (P : F → (Fin n → F) → Prop) [(t : F) → DecidablePred (P t)] :
{x : Fin (n + 1) → F | P (x 0) (tail x)}.card = ∑ t : F, {y : Fin n → F | P t y}.card

Counting the points of F ^ (n + 1) by their first coordinate and their tail.