Theorems · Theorem · number theory
Nat.count_modEq_card_eq_ceil
∀ (b : ℕ) {r : ℕ}, 0 < r → ∀ (v : ℕ), ↑(Nat.count (fun x => x ≡ v [MOD r]) b) = ⌈(↑b - ↑(v % r)) / ↑r⌉There are ⌈(b - v % r) / r⌉ numbers in [0, b) congruent to v mod r.
- Defined in
- Mathlib.Data.Int.CardIntervalMod
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 86 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites38
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finsetproof · cited by 13,712
- Finset.cardproof · cited by 2,327
- Nat.cast_zeroproof · cited by 1,870
- MulZeroClass.zero_mulproof · cited by 1,625
- add_commproof · cited by 1,535
- LT.lt.ne'proof · cited by 1,417
- le_of_ltproof · cited by 1,175
- DivisionRingproof · cited by 1,062
- Finset.filterproof · cited by 949
- Nat.cast_addproof · cited by 586
- zero_leproof · cited by 382
- zero_subproof · cited by 335
Cited by1
Results whose statement or proof uses this declaration.
- Nat.count_modEq_cardproof · cited by 0