The number of subsets of a finite set
ProvedFamousTheorems.card_powersetcombinatoricsmathlib
A set with elements has subsets.
Each element is independently in or out of a subset, giving choices per element. Equivalently subsets correspond to characteristic functions .
Summing the binomial coefficients recovers it as , the case of the binomial theorem. It is the reason exhaustive search over subsets is exponential, and the finite shadow of Cantor's theorem.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem card_powerset : ∀ {α : Type*} (s : Finset α), s.powerset.card = 2 ^ s.card := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.