Deterministic APSP in O(n^2.996001) time on a word RAM (library form)
ProvedLight.Filter.apsp_2996001All-pairs shortest paths on directed graphs with integer weights and no negative cycles can be solved deterministically in time on a word RAM with -bit words:
The problem. An instance of size is a directed graph on the vertices given by a partial weight function : is the weight of the edge , or undefined if there is no such edge. Instances have no negative cycle. The input is the adjacency matrix followed by the weight matrix, both row by row. The output has two cells for every pair : the flag followed by the distance if is reachable from , and the flag otherwise.
The machine and the time bound. means: for every there are a program of the word RAM, a number and a function with for some and all , such that on every instance of every size whose input numbers have absolute value at most , and for every word size , the program halts within steps, accepts, and leaves the correct output. The word RAM has no division, no shift, no bitwise operation and no randomness.
The bound improves the deterministic exponent of the previous entry. The proof runs in time for large (savings with block size ).
This is the library form of the campaign goal TrulySubcubicAPSP.apsp_bound_2996001; the platform node TrulySubcubicAPSP.sourceSpecificationTransport carries it over to the campaign's own definitions.
Formalization Note APSP and Problem.SolvedInTime are those of the namespace EndStatement (on the platform the definition TrulySubcubicAPSP_SourceSpecification); the exponent is the rational numeral .
/- 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 7c34437be804. import Definitions.Def_APSP2996001_Defs2 set_option autoImplicit false set_option relaxedAutoImplicit false open Filter ThreeSumApsp open Light open Light.Filter open ThreeSumApsp.Spec Light.Sec3
theorem Light.Filter.apsp_2996001 : EndStatement.APSP.SolvedInTime (2.996001 : ℚ) := by sorry