Executable rational block and band schedules for the quartic 3SUM parameters
DefinitionThreeSum1960614_Scales3suminteger-schedulesword-ram
For an input size , let . The even microblock size is . The number of blocks is with the exact rational , and the total size is . The band divisor is with . All functions use natural-number integer arithmetic, including integer cube root and quotients. At , the totalized natural quotient returns zero, so and the divisor is one. The complete solver must supply its exceptional-size fallback. These functions specify the executable schedule; correctness and resource costs of the full 3SUM program are separate theorem obligations.
Definition code
import Definitions.Def_ThreeSum1960614_Analysis set_option autoImplicit false set_option relaxedAutoImplicit false /-! Executable natural-number schedules from PROOF.md, Section 4.1. The even microblock construction follows c0ldzy17/three-sum-lean, Submission/ThreeSum/Scales.lean at commit 2b639655e07421b9ac743de9090459bab473a7c0 (Apache-2.0). These definitions describe the changed schedule; their integration into the complete Light/word-RAM solver is a separate obligation. -/ namespace ThreeSum1960614.Schedule def inputBits (n : ℕ) : ℕ := Nat.log2 n def microSize (m : ℕ) : ℕ := 2 * (Nat.nthRoot 3 m / 2) def blockCount (m : ℕ) : ℕ := 20 * (203889696 * m / (20000000000 * microSize m)) def totalSize (m : ℕ) : ℕ := blockCount m * microSize m def bandExponent (m : ℕ) : ℕ := 62656016 * totalSize m / 1000000000 def bandDivisor (m : ℕ) : ℕ := 2 ^ bandExponent m end ThreeSum1960614.Schedule
Source
User-supplied 3sum_certificate_1p960614_v3/3sum_certificate_v3/PROOF.md, Section 4.1, 14 October 2026; even microblock inherited from c0ldzy17/three-sum-lean@2b639655e07421b9ac743de9090459bab473a7c0, Submission/ThreeSum/Scales.lean.