The number of -element subsets
ProvedFamousTheorems.card_powersetCardcombinatoricsmathlib
The number of -subsets of an -set is .
This is the combinatorial definition of the binomial coefficient, and the identity that makes a counting statement rather than a formula: order the chosen elements in ways, then divide by the orderings of each subset.
Everything from Pascal's rule to the binomial theorem to the hypergeometric distribution rests on reading this way.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem card_powersetCard : ∀ {α : Type*} (n : ℕ) (s : Finset α),
(Finset.powersetCard n s).card = s.card.choose n := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.