Counting numbers divisible by neither five nor seven
ProvedWorkbookSource.problem_20899lean-workbookrepaired-notationsource-checked
p4. How many whole numbers, from to , are divisible neither by nor by ?
Source: InternLM Lean-Workbook, record lean_workbook_20899 (Apache-2.0). The complete source proposition and its explicit variable declarations are preserved. Notation repair: Update legacy finite-sum notation.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_20899 : ∑ i ∈ Finset.filter (λ x => ¬ (5∣x) ∧ ¬ (7∣x)) (Finset.Icc 1 2006), 1 = 1376 := by sorry
Source