A sub-target-time colored 3SUM frontend with a physical grouped-moment certificate
OpenThreeSumFuture.buffered_colored_frontend_19202794081843sumalgorithmsword-ram
Construct a deterministic Light routine for every fixed input magnitude exponent and every coloring. It must place an actual table of grouped positive moments in scratch memory. The table covers every positive target and its supports consist of genuine sums from two color classes. Use a fixed support cap, return the buffered reporter result and leave at most n^(0.92026+o(1)) distinct overflow targets. Preserve the caller prefix and prove a uniform running exponent strictly below 1.920279408184 with polynomial auxiliary resources. The time includes building the table and doing the residual exact lookups.
Preamble
import Definitions.Def_ThreeSumFuture_GroupedMomentReport import Definitions.Def_Submission_Weighted_Global_TernaryFastProgramResources import Definitions.Def_Submission_Weighted_Global_TernaryFastProgramBudget set_option autoImplicit false set_option relaxedAutoImplicit false open ThreeSum Light StageBounds open ThreeSum.LightWeightedGlobalFastProgramProof (Receipt scanFree)
Formal statement
theorem ThreeSumFuture.buffered_colored_frontend_1920279408184 :
∀ κ : ℕ,
∃ (m b p K cutoff entry cap : ℕ) (color : Program)
(colorNeed : ℕ → ℕ → Need) (colorTime exceptionCount : ℕ → ℕ) (a : ℝ),
0 < m ∧ 1 < WeightedGlobalCoverScale.outputSize m ∧
1 < b ∧ p.Prime ∧ PolyNeed colorNeed ∧
0 ≤ a ∧ a < ((1.920279408184 : ℚ) : ℝ) ∧ PowerBound colorTime a ∧
PowerBound exceptionCount ((0.92026 : ℚ) : ℝ) ∧
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 ^ κ : ℕ) : ℤ)) →
∀ 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 : ℕ → ℤ),
Kept initialized input (scanFree M b p K κ n free) →
Seg input (scanFree M b p K κ n free)
(ColorParameters.fields (ColorParameters.parameter hi)) →
∀ depth, (colorNeed n (n ^ κ)).Ok lim (scanFree M b p K κ n free + 6) depth →
Meets lim color entry depth
[src, n, LightWeightedGlobalGlobalPrelude.params free, scanFree M b p K κ n free,
scanFree M b p K κ n free + 6] input (colorTime n)
(fun verdict out =>
ThreeSumFuture.GroupedMomentReport.Certificate
(ColorClassLists.classList (ColorParameters.parameter hi) x 0 1)
(ColorClassLists.classList (ColorParameters.parameter hi) x 1 1)
(ColorClassLists.classList (ColorParameters.parameter hi) x 2 (-1))
cap (scanFree M b p K κ n free + 6) lim.space (exceptionCount n) out verdict ∧
Kept input out (scanFree M b p K κ n free)) := by sorrySource
New implementation and complexity obligation in the positive grouped-moment route for the colored 3SUM mission frontier. The finite read-only overflow test is https://prove2.me/theorems/7a9e7719-2e92-57c1-adb4-6a84f5939bf9. The original colored ABI is https://prove2.me/theorems/18b30a34-df3e-5b98-b21d-a3df9caf247e.