A query of the Theorem 30 data structure with pruned encodings meets its specification for all limits
ProvedLight.Sec4.queryAtSpec_allLet be a program of the light language that holds the fourteen routines of Section 4 at the numbers and the body of queryAt at number . Then for every limits , queryAt meets its specification:
for all parameters with , , block address , matrices , with entries of absolute value at most , limits satisfying , every memory holding the data structure for at , all and every depth with , the call ends within steps, returns , keeps the data structure, and changes only the scratch cells from .
Setting. The data structure of Theorem 30 is built for parameters with ( levels, inner levels), integer matrices and with entries of absolute value at most , and a threshold . It lives in a block of memory starting at an address : the shared tables of Section 2 with the pruned encodings of the row bands of and column bands of (only the leaves whose decimal digits contain at most nines are stored), the directory, the table of trie roots (one per tile) and the trie array (one trie per tile, holding the values of its boxes). The limits must satisfy the bounds : the standing assumptions (an address fits in a word and ), the block fits in memory, and , and fit in a word.
Compared with the statement for a single program and limits, the hypotheses on the routines called by the query are discharged: every program holding the routines of Section 4 at their numbers meets all their specifications.
“Procedure meets its specification within steps” means: called at any depth allowed by the hypothesis, with the given argument values and a memory satisfying the precondition, the body of terminates within steps without violating the limits, and the returned value and final memory satisfy the postcondition.
Formalization Note The statement is Has40 P → P[Proc.queryAt]? = some queryAtBody → ∀ lim, QueryAtSpecP lim P.
/- 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 27a2fa4bab32. import Definitions.Def_APSP299791_Defs5 set_option autoImplicit false set_option relaxedAutoImplicit false open Light open Light.Sec4
theorem Light.Sec4.queryAtSpec_all {P : Program} (h : Has40 P)
(h55 : P[Proc.queryAt]? = some queryAtBody) : ∀ lim, QueryAtSpecP lim P := by sorry