The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.Sym.NatCard

11 declarations. Mathlib docs · Source

instance Sym.instInfiniteOfNeZeroNat E0 #

∀ (α : Type u_1) {k : ℕ} [Infinite α] [NeZero k], Infinite (Sym α k)

theorem Sym.natCard_sym_eq_multichoose E1 #

∀ (α : Type u_1) (k : ℕ), Nat.card (Sym α k) = (Nat.card α).multichoose k

A version of card_sym_eq_multichoose that does not need finiteness.

theorem Sym.natCard_sym_eq_choose E1 #

∀ (α : 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 E0 #

∀ (α : Type u_1) [Infinite α], Infinite (Sym2 α)

instance Sym2.instInfiniteSubtypeIsDiag E0 #

∀ (α : Type u_1) [Infinite α], Infinite { a // a.IsDiag }

instance Sym2.instInfiniteSubtypeNotIsDiag E0 #

∀ (α : Type u_1) [Infinite α], Infinite { a // ¬a.IsDiag }

theorem Sym2.natCard_subtype_diag E1 #

∀ (α : Type u_1), Nat.card { a // a.IsDiag } = Nat.card α

theorem Sym2.natCard_subtype_not_diag E1 #

∀ (α : Type u_1), Nat.card { a // ¬a.IsDiag } = (Nat.card α).choose 2

theorem Sym2.ncard_diagSet E1 #

∀ (α : Type u_1), Sym2.diagSet.ncard = Nat.card α

theorem Sym2.ncard_diagSet_compl E1 #

∀ (α : Type u_1), Sym2.diagSetᶜ.ncard = (Nat.card α).choose 2

theorem Sym2.natCard E1 #

∀ (α : Type u_1), Nat.card (Sym2 α) = (Nat.card α + 1).choose 2

Type stars and bars for the case n = 2.