A buffered positive-moment report and exact overflow checks decide tripartite 3SUM
ProvedThreeSumFuture.buffered_moment_report_sound3sumalgorithmslinear-algebra
For finite integer lists of left operands, right operands and target sums, a valid grouped positive-moment certificate returns a Boolean. The returned bit is one exactly when a requested value is a sum of a left and a right operand. The certificate records actual consecutive moments of each group in a memory buffer. The result permits arbitrary overlaps, duplicates, empty inputs, groups with many physical sums, and repeated requests.
Preamble
import Definitions.Def_ThreeSumFuture_GroupedMomentReport import Theorems.Thm_ThreeSumFuture_hankel_support_threshold import Mathlib.Tactic.Ring open ThreeSumFuture.GroupedMomentReport open scoped BigOperators set_option maxHeartbeats 350000
Formal statement
theorem ThreeSumFuture.buffered_moment_report_sound (left right targets : List ℤ) (cap base space exceptions : ℕ)
(mem : ℕ → ℤ) (r : ℤ)
(cert : Certificate left right targets cap base space exceptions mem r) :
(r=0 ∨ r=1) ∧ (r=1 ↔ ∃ z ∈ targets, pairHit left right z) := by sorrySource
Correctness bridge for the grouped-moment route in the 3SUM mission. It uses the positive Hankel support threshold https://prove2.me/theorems/f3d02372-09c9-532b-a04d-761eae1d6570 and the finite Light overflow procedure has been separately verified at https://prove2.me/theorems/7a9e7719-2e92-57c1-adb4-6a84f5939bf9.