§4.1, eq. (3) — truncated inclusion–exclusion identity
ProvedEqualSubsetSum.Faster.eq_3equal-subset-sumexponential-algorithmsp2o-gran-per-chapterp2o-plan-paperp2o-v1
For integers and , Pascal's rule makes the partial sums telescope:
Hence, for even ,
It is the identity behind the upper partner counts of the detector.
Differences from the source: none.
Preamble
import Mathlib import Definitions.Def_EqualSubsetSum_Faster_Detector
Formal statement
namespace EqualSubsetSum.Faster
/-- §4.1, eq. (3) (p. 22). For `c ≥ 1` the partial sums `∑_{q=0}^{d} (-1)^q (c choose q)`
telescope to `(-1)^d (c-1 choose d)`; hence for even `d`, `f_d(c)` is `1` if `c = 0`, `0` if
`1 ≤ c ≤ d`, and `(c-1 choose d)` if `c > d`. -/
theorem eq_3 :
(∀ d c : ℕ, 1 ≤ c → truncAlt d c = (-1) ^ d * ((c - 1).choose d : ℤ)) ∧
(∀ d c : ℕ, Even d →
truncAlt d c = if c = 0 then 1 else if c ≤ d then 0 else ((c - 1).choose d : ℤ)) := by sorry
end EqualSubsetSum.Faster
Source
Cheshm Jahan, Keshavarz Hedayati, Safari, Shahrezaei, Faster Equal-Subset-Sum via Truncated Inclusion–Exclusion, STOC 2027 submission (manuscript, sha256 7ad8c8b2…61dacd1), p. 22, §4.1, eq. (3)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.