Colored 3SUM target indicators on inputs containing an integer of magnitude greater than n
OpenThreeSumFuture.wide_colored_occupancy_19202794081843sumalgorithmsword-ram
Construct the deterministic five-argument target-indicator program when at least one original signed input has absolute value greater than the input length. For each fixed polynomial input bound the program must meet the strict exponent 1.920279408184, preserve the caller prefix, return every target and its exact pair-membership bit, and work on every coloring and admissible memory. This promise concerns the actual input values.
Preamble
import Definitions.Def_Submission_Weighted_Global_TernaryFastProgramResources import Definitions.Def_Submission_Weighted_Global_TernaryFastProgramBudget import Definitions.Def_Submission_ThreeSum_LightArgumentTable import Definitions.Def_ThreeSumFuture_GroupedMomentReport set_option autoImplicit false set_option relaxedAutoImplicit false open Light ThreeSum StageBounds open ThreeSum.LightWeightedGlobalFastProgramProof (Receipt scanFree)
Formal statement
theorem ThreeSumFuture.wide_colored_occupancy_1920279408184 :
∀ (κ : ℕ) (wrapper report : Stmt),
∃ (m b p K cutoff : ℕ) (P : Program) (need : ℕ → ℕ → Need) (time : ℕ → ℕ) (a : ℝ),
0<m ∧ 1<WeightedGlobalCoverScale.outputSize m ∧ 1<b ∧ p.Prime ∧ PolyNeed need ∧
1≤a ∧ a<((1.920279408184 : ℚ) : ℝ) ∧ PowerBound time a ∧
(∀ n U, 5+(U+1)^2≤(need n U).word ∧ 1+6*n≤(need n U).cells ∧ 2≤(need n U).depth) ∧
P[0]?=some wrapper ∧ P[1]?=some report ∧ P[2]?=some (LightArgumentTable.stores 0 4) ∧
let M := WeightedGlobalCoverScale.outputSize m
∀ [Fact p.Prime] {lim : Limits} {n src free : ℕ} (x : Fin n → ℤ) (mem : ℕ → ℤ),
cutoff≤n → 0<n → src+n≤free → Seg mem src (List.ofFn x) →
(∀ i, |x i|≤((n^κ : ℕ):ℤ)) → (∃ j : Fin n, (n:ℤ) < |x j|) →
∀ c<p^(LightWeightedGlobalDimensions.dim M b p K n (n^κ)),
∀ initialized, Receipt M b p K κ n free c mem initialized →
∀ (i : ℕ) (hi : i<ColorParameters.count (LightColorParametersCosts.width n))
(input : ℕ → ℤ),
let fields := scanFree M b p K κ n free
let dst := fields+6
let par := ColorParameters.parameter hi
let xs := ColorClassLists.classList par x 0 1
let ys := ColorClassLists.classList par x 1 1
let zs := ColorClassLists.classList par x 2 (-1)
Kept initialized input fields → Seg input fields (ColorParameters.fields par) →
∀ depth, (need n (n^κ)).Ok lim dst depth →
Meets lim P 3 (depth+1)
[src,n,LightWeightedGlobalGlobalPrelude.params free,fields,dst] input (time n)
(fun len out => len=(zs.length:ℤ) ∧ Kept input out fields ∧
∀ j : Fin zs.length, out (dst+1+4*n+j.val)=zs.get j ∧
(out (dst+1+5*n+j.val)=0 ∨ out (dst+1+5*n+j.val)=1) ∧
(out (dst+1+5*n+j.val)=1 ↔
ThreeSumFuture.GroupedMomentReport.pairHit xs ys (zs.get j))) := by sorrySource
Remaining wide-input case of the public 3SUM frontier https://prove2.me/theorems/37eba3bc-5d40-51d7-ab0b-b67f7c509af4. The complementary dense program was proved by Gonçalo Perdigão at https://prove2.me/theorems/58a3d022-68b6-5b0c-8ab1-5e5317f960ee. The underlying Light machine and global calling convention are from the existing 3SUM benchmark.