Documentation

Mathlib.SetTheory.Cardinal.NatCount

Counting on ℕ #

This file provides lemmas about the relation of Nat.count with cardinality functions.

theorem Nat.count_le_cardinal {p : Prop} [DecidablePred p] (n : ) :
(count p n) Cardinal.mk {k : | p k}
theorem Nat.count_le_setENCard {p : Prop} [DecidablePred p] (n : ) :
(count p n) {k : | p k}.encard
theorem Nat.count_le_setNCard {p : Prop} [DecidablePred p] (n : ) (h : {k : | p k}.Finite) :
count p n {k : | p k}.ncard