Counting a residue class in a thousand-number interval
ProvedWorkbookSource.problem_7425lean-workbooksource-checked
How many integers between and are congruent to
Source: InternLM Lean-Workbook, record lean_workbook_7425 (Apache-2.0). The complete source proposition and its explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_7425 : Finset.card (Finset.filter (λ x => x % 7 = 2) (Finset.Icc 1000 2000)) = 143 := by sorry
Source