Inclusion-exclusion chocolate count 1560
ProvedWorkbookCorrected.plus_69069combinatoricscorrectedelementaryworkbook
The binomial inclusion-exclusion count
holds as an identity of natural numbers.
Formalization Note: This corrects Lean-Workbook record lean_workbook_plus_69069, which omitted the colon after the theorem name and used a preamble of only Mathlib.Analysis.Complex.Basic.
Source: InternLM Lean-Workbook, record lean_workbook_plus_69069 (Apache-2.0).
Preamble
import Mathlib.Data.Nat.Choose.Basic
Formal statement
theorem WorkbookCorrected.plus_69069 : 4 ^ 6 - (Nat.choose 4 3 * 3 ^ 6) + (Nat.choose 4 2 * 2 ^ 6) - (Nat.choose 4 1 * 1 ^ 6) = 1560 := by sorry
Source