Theorems · Theorem · number theory
Nat.count_of_forall
∀ {p : ℕ → Prop} [inst : DecidablePred p] {n : ℕ}, (∀ n' < n, p n') → Nat.count p n = nAlias of the reverse direction of Nat.count_iff_forall.
- Defined in
- Mathlib.Data.Nat.Count
- Cited by
- 2 results in Mathlib
- Foundations
- Depth 60 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- DecidablePred
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites2
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Nat.countstatement · cited by 55
- Nat.count_iff_forallproof · cited by 1
Cited by2
Results whose statement or proof uses this declaration.
- Nat.nth_of_forallproof · cited by 1
- Nat.count_trueproof · cited by 0