Mathlib Map

Theorems · Definition · number theory

Nat.count

(p : ℕ → Prop) → [DecidablePred p] → ℕ → ℕ

Count the number of naturals k < n satisfying p k.

Defined in
Mathlib.Data.Nat.Count
Cited by
55 results in Mathlib
Foundations
Depth 11 from the axioms · uses no axioms
Assumes
DecidablePred

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites0

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Nothing in Mathlib beyond the foundations.

Cited by57

Results whose statement or proof uses this declaration.