Coprime residue filters thin oversized 3SUM groups while preserving target membership
ProvedThreeSumFuture.coprime_residue_support_sieve3sumalgorithmscombinatoricsnumber-theory
Let A be a finite set of distinct physical integer sums and a a target. Filter A independently by congruence to a for each modulus in a pairwise coprime family M, with all moduli at least P. Suppose each absolute difference is strictly below P^(b+1). Across the family the total number of surviving non-target modes is at most b times the number of original non-target modes. If this bound is less than |M|(D+1), at least one filter contains at most D false modes and retains the target exactly when the original group does. This gives a sufficient condition for applying a fixed-order positive Hankel test to a group that overflowed before filtering.
Preamble
module public import Mathlib.Combinatorics.Enumerative.DoubleCounting public import Mathlib.RingTheory.Coprime.Lemmas public import Mathlib.Algebra.Order.BigOperators.Group.Finset public section open scoped BigOperators
Formal statement
theorem ThreeSumFuture.coprime_residue_support_sieve (A : Finset ℤ) (a : ℤ) (M : Finset ℕ) (P b D : ℕ)
(hP : 2 ≤ P) (hmin : ∀ m ∈ M, P ≤ m)
(hcop : ∀ i ∈ M, ∀ j ∈ M, i ≠ j → Nat.Coprime i j)
(hsize : ∀ s ∈ A, (s-a).natAbs < P^(b+1)) :
let filterAt := fun (T : Finset ℤ) (m : ℕ) => T.filter (fun s => m ∣ (s-a).natAbs)
(∑ m ∈ M, (filterAt (A.erase a) m).card) ≤ b*(A.erase a).card ∧
(b*(A.erase a).card < M.card*(D+1) →
∃ m ∈ M, (filterAt A m).card ≤ D+(if a ∈ A then 1 else 0) ∧
(a ∈ filterAt A m ↔ a ∈ A)) := by sorrySource
Elementary coprime-divisor counting applied to exact positive-moment overflow reporting in the 3SUM mission. Uses the standard product-divisibility and finite bipartite double-counting lemmas in Mathlib. The support threshold used by the reporter is https://prove2.me/theorems/f3d02372-09c9-532b-a04d-761eae1d6570.