Counting a subtype of a sum #
The elements of β ⊕ γ satisfying a predicate are those of β and those of γ that satisfy it
(Nat.card_subtype_sum); along a decomposition α ≃ β ⊕ γ the same count splits a subtype of
α (Nat.card_subtype_eq_add_of_equiv_sum).
Main results #
Nat.card_subtype_sum: counting a subtype of a sum.Nat.card_subtype_eq_add_of_equiv_sum: counting a subtype along a decomposition into a sum.