Section 12 pasting: Bernoulli tail polynomial combinatorics #
Finset re-indexing and cardinality-grouping lemmas for the Bernoulli-tail
operator endpoint of the fromHToG recurrence.
Rewrite the terminal truncated type sum as a sum over support finsets.
Group the terminal support-finset sum by cardinality, producing the binomial
coefficients in the Bernoulli-tail polynomial. The key combinatorial step is
Mathlib's Finset.sum_powerset_apply_card, applied to Finset.univ : Finset (Fin k).
Terminal endpoint of the recurrence weight: after all k bits have been
converted, the truncated type sum is exactly the Bernoulli-tail polynomial
F(G).
At prefix length zero, the recurrence weight is exactly the eligibility
indicator for the remaining type: the empty prefix contributes the identity when
|τtail| ≥ d + 1, and contributes zero otherwise.