Theorems · Theorem · number theory
Nat.Ico_filter_modEq_card
∀ (a b : ℕ) {r : ℕ},
0 < r → ∀ (v : ℕ), ↑{x ∈ Finset.Ico a b | x ≡ v [MOD r]}.card = max (⌈(↑b - ↑v) / ↑r⌉ - ⌈(↑a - ↑v) / ↑r⌉) 0There are ⌈(b - v) / r⌉ - ⌈(a - v) / r⌉ numbers congruent to v mod r in [a, b),
if a ≤ b. Nat version of Int.Ico_filter_modEq_card.
- Defined in
- Mathlib.Data.Int.CardIntervalMod
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 85 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites11
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finset.cardstatement · cited by 2,327
- Finset.filterstatement · cited by 949
- Finset.Icostatement · cited by 450
- Int.cast_natCastproof · cited by 393
- Nat.ModEqstatement · cited by 225
- Int.ceilstatement and proof · cited by 138
- Finset.card_mapproof · cited by 114
- Nat.cast_ltproof · cited by 80
- Nat.castEmbeddingproof · cited by 29
- Nat.Ico_filter_modEq_castproof · cited by 1
- Int.Ico_filter_modEq_cardproof · cited by 1
Cited by1
Results whose statement or proof uses this declaration.
- Nat.count_modEq_card_eq_ceilproof · cited by 1