Documentation

Mathlib.Data.Sym.NatCard

Nat.card versions of Fintype.card lemmas on Sym #

Each of the lemmas assuming [Fintype α] and Fintype.card can be restated using Nat.card alone.

instance Sym.instInfiniteOfNeZeroNat (α : Type u_1) {k : } [Infinite α] [NeZero k] :
Infinite (Sym α k)
theorem Sym.natCard_sym_eq_multichoose (α : Type u_1) (k : ) :

A version of card_sym_eq_multichoose that does not need finiteness.

theorem Sym.natCard_sym_eq_choose (α : Type u_1) (k : ) :
Nat.card (Sym α k) = (Nat.card α + k - 1).choose k

A version of card_sym_eq_choose that does not need finiteness.

instance Sym2.instInfinite (α : Type u_1) [Infinite α] :
theorem Sym2.natCard (α : Type u_1) :
Nat.card (Sym2 α) = (Nat.card α + 1).choose 2

Type stars and bars for the case n = 2.