The top procedure of the filtering host at σ = 0.0336175 writes the all-edges flags
ProvedLight.Filter2.top_specapsp-2995561apsp-exponentfine-grained-complexityword-ram
Let procedure of solve Light.Filter2.oracleTask with time and need , and let the parameter procedures (ParamProcs), the sieve, prime-filter and fill procedures (TopProcs), the core and round bodies, the procedures of a round (RoundProcs) and of the final answer (FinalProcs) be in place in . If Env holds for the all-edges instance at depth with first memory and free pointer , then topBody, run in the frame , ends within tTop To n U steps with the all-edges flags aeFlags n AB BC AC at x.out and every other cell below as in .
Preamble
/-
Copyright (c) 2026 Anthropic, PBC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
SPDX-License-Identifier: Apache-2.0
-/
-- Generated by skeleton subtraction from the ThreeSumApsp library at commit 3b45b374640a.
import Definitions.Def_APSP2995561_Defs2
set_option autoImplicit false
set_option relaxedAutoImplicit false
open ThreeSumApsp
open Light
open Light.Filter2
open ThreeSumApsp.Spec Light.Sec3
variable {lim : Limits}
variable {P₀ R : Program} {pO pAggr pStep pFA pCert pArg pCopy : ℕ} {To : List ℕ → ℕ}
{needo : List ℕ → Need} {d : ℕ} {x : AEInst} {fr : ℕ} {μ0 : ℕ → ℤ}
set_option maxHeartbeats 1600000
Formal statement
theorem Light.Filter2.top_spec (hsol : SolvesN Light.Filter2.oracleTask P₀ pO To needo)
{pLog pSqrt pPow pDiv pSieve pPF pFill pCore pRound pFinal pGroup pScan : ℕ}
(HPa : Light.Filter2.ParamProcs (P₀ ++ R) pLog pSqrt pPow pDiv)
(HT : Light.Filter2.TopProcs (P₀ ++ R) pSieve pPF pFill)
(hC : (P₀ ++ R)[pCore]? = some (Light.Filter2.coreBody pRound pFinal))
(hRd : (P₀ ++ R)[pRound]? = some (Light.Filter2.roundBody pO pAggr pStep pFA))
(HP : Light.Filter2.RoundProcs (P₀ ++ R) pO pAggr pStep pFA pCert pArg pCopy)
(HF : Light.Filter2.FinalProcs (P₀ ++ R) pFinal pGroup pScan)
(E : Light.Filter2.Env lim d x fr μ0 needo) :
Ends lim (P₀ ++ R) d (Light.Filter2.topBody pLog pSqrt pPow pDiv pSieve pPF pFill pCore)
⟨Light.frame [x.n, x.U, x.ab, x.bc, x.ac, x.out, fr], μ0⟩ (Light.Filter2.tTop To x.n x.U) fun σ' =>
Seg σ'.mem x.out (aeFlags x.n x.AB x.BC x.AC) ∧ KeptBut μ0 σ'.mem fr x.out (x.n * x.n) := by sorrySource
Developed for the prove2.me APSP exponent campaign (https://prove2.me/campaigns/apsp-exponent) on top of the Lean formalization anthropics/formal-math, folder 3sum-apsp, commit e1a4e65 (https://github.com/anthropics/formal-math/tree/e1a4e6508154ea59f030480661590a9fe3018011/3sum-apsp; Lean v4.33.1, Mathlib v4.33.1). The statement comes from the file 3sum-apsp/ThreeSumApsp/Filter2/HostAssemble.lean of the campaign's modified copy of that library, which is not published; the new definitions it uses are in the platform definition bundles APSP2995561_Defs1 and APSP2995561_Defs2 (and APSP2996001_Defs1-2, APSP299791_Defs1-5 of the earlier entries). It follows the technical note "Deterministic APSP via thin products" (revised 7 October 2026) refining J. Alman and V. Vassilevska Williams, "Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs", arXiv:2610.06783v1 (https://arxiv.org/abs/2610.06783v1), Lemma 3.1.