ComparatorChallenges/UniformKServer.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.
Project sources: Pinned openai/math documentation, Pinned formalization catalogue
32 declarations, 1 contain sorry, 0 declared as axioms
- structure
OAI.UniformKServer.RationalMetricline 12Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:15 (same declaration text).
- abbrev
OAI.UniformKServer.Configurationline 19Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:22 (same declaration text).
- abbrev
OAI.UniformKServer.Historyline 20Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:23 (same declaration text).
- def
OAI.UniformKServer.serveline 22Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:25 (same declaration text).
- def
OAI.UniformKServer.costAlongline 25Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:28 (same declaration text).
- def
OAI.UniformKServer.offlineCostAll finite serving-label choices, knowing the entire request word line 31Source documentation
All finite serving-label choices, knowing the entire request word.
L4DEL explanation
All finite serving-label choices, knowing the entire request word.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:34 (same declaration text).
noncomputable def offlineCost {n k : ℕ} (d : RationalMetric n) (s : Configuration n k) (w : List (Fin n)) : ℝ := …Mentions: OAI.UniformKServer.RationalMetric, OAI.UniformKServer.Configuration
- inductive
OAI.UniformKServer.HeadMoveline 35Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:60 (same declaration text).
- structure
OAI.UniformKServer.BitTapeline 39Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:64 (same declaration text).
- def
OAI.UniformKServer.BitTape.blankline 46Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:71 (same declaration text).
- def
OAI.UniformKServer.BitTape.ofWordline 48Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:73 (same declaration text).
- def
OAI.UniformKServer.BitTape.shiftline 53Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:78 (same declaration text).
- structure
OAI.UniformKServer.BitActionline 64Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:89 (same declaration text).
- structure
OAI.UniformKServer.BitMachineline 72Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:97 (same declaration text).
- structure
OAI.UniformKServer.MachineStateline 79Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:104 (same declaration text).
- def
OAI.UniformKServer.BitMachine.initialline 88Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:113 (same declaration text).
- def
OAI.UniformKServer.BitMachine.stepline 91Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:116 (same declaration text).
- def
OAI.UniformKServer.BitMachine.runline 102Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:127 (same declaration text).
- def
OAI.UniformKServer.BitMachine.installAt a request boundary only the input/output interface is refreshed line 107Source documentation
At a request boundary only the input/output interface is refreshed. Work tapes and control retain the complete internal state.
L4DEL explanation
At a request boundary only the input/output interface is refreshed. Work tapes and control retain the complete internal state.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:132 (same declaration text).
def install (M : BitMachine) (s : MachineState M) (input : List Bool) : MachineState M := …
Mentions: OAI.UniformKServer.BitMachine, OAI.UniformKServer.MachineState
- def
OAI.UniformKServer.natCodeSelf-delimiting binary code: ℓ ones, a zero, then ℓ low-to-high bits line 115Source documentation
Self-delimiting binary code: ℓ ones, a zero, then ℓ low-to-high bits. This fixes one standard binary encoding rather than allowing a nonuniform advice string to be included in the input.
L4DEL explanation
Self-delimiting binary code: ℓ ones, a zero, then ℓ low-to-high bits. This fixes one standard binary encoding rather than allowing a nonuniform advice string to be included in the input.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:140 (same declaration text).
def natCode (a : ℕ) : List Bool := …
- def
OAI.UniformKServer.rationalCodeline 118Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:143 (same declaration text).
- def
OAI.UniformKServer.instanceCodeline 121Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:146 (same declaration text).
- def
OAI.UniformKServer.bitValueline 127Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:152 (same declaration text).
- def
OAI.UniformKServer.outputValueline 131Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:156 (same declaration text).
- def
OAI.UniformKServer.polynomialBudgetA dominating polynomial; every fixed polynomial nonnegative on natural inputs is bounded by one of this form after increasing c and e line 136Source documentation
A dominating polynomial; every fixed polynomial nonnegative on natural inputs is bounded by one of this form after increasing c and e.
L4DEL explanation
A dominating polynomial; every fixed polynomial nonnegative on natural inputs is bounded by one of this form after increasing c and e.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:161 (same declaration text).
def polynomialBudget (c e x : ℕ) : ℕ := c * (x + 1)^e
- def
OAI.UniformKServer.requestBudgetline 138Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:163 (same declaration text).
- def
OAI.UniformKServer.bootline 141Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:166 (same declaration text).
- def
OAI.UniformKServer.requestStepline 146Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:171 (same declaration text).
- inductive
OAI.UniformKServer.ReachableReachability includes every binary choice, not merely an almost-sure set line 153Source documentation
Reachability includes every binary choice, not merely an almost-sure set. The index counts requests already served.
L4DEL explanation
Reachability includes every binary choice, not merely an almost-sure set. The index counts requests already served.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:178 (same declaration text).
inductive Reachable {n k : ℕ} (M : BitMachine) (c e : ℕ) (d : RationalMetric n) (s : Configuration n k) : ℕ → MachineState M → Prop | boot : Reachable M c e d s 0 (boot M c e d s) | next {t z} : Reachable M c e d s t z → (r : Fin n) → (bits : Fin (requestBudget c e (instanceCode d s).length (t+1)) → Bool) → Reachable M c e d s (t+1) (requestStep M c e (instanceCode d s).length (t+1) z r bits) /-- Modulo makes the semantic recursion total even for unsuccessful machines. The main statement separately requires the output to be < k at *every* reachable outcome, so no invalid output is accepted or silently repaired. -/Mentions: OAI.UniformKServer.BitMachine, OAI.UniformKServer.RationalMetric, OAI.UniformKServer.Configuration, OAI.UniformKServer.MachineState, OAI.UniformKServer.boot, OAI.UniformKServer.requestBudget, OAI.UniformKServer.instanceCode, OAI.UniformKServer.requestStep
- def
OAI.UniformKServer.selectedLabelModulo makes the semantic recursion total even for unsuccessful machines line 164Source documentation
Modulo makes the semantic recursion total even for unsuccessful machines. The main statement separately requires the output to be < k at every reachable outcome, so no invalid output is accepted or silently repaired.
L4DEL explanation
Modulo makes the semantic recursion total even for unsuccessful machines. The main statement separately requires the output to be < k at every reachable outcome, so no invalid output is accepted or silently repaired.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:189 (same declaration text).
def selectedLabel {M : BitMachine} {k : ℕ} (hk : 0 < k) (s : MachineState M) : Fin k := …Mentions: OAI.UniformKServer.BitMachine, OAI.UniformKServer.MachineState
- def
OAI.UniformKServer.machineExpectedCostline 167Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:192 (same declaration text).
- def
OAI.UniformKServer.UniformAlgorithmClaimFull uniform main objective in the explicit bit model, not a theorem or assumption line 184Source documentation
Full uniform main objective in the explicit bit model, not a theorem or assumption. Machine transition steps are bit operations. Installing the standard input and reading/erasing the output adds only O(L + budget) charged bit operations, hence is absorbed by a single larger polynomial. A single deterministic boot is sufficient for the source construction.
L4DEL explanation
Full uniform main objective in the explicit bit model, not a theorem or assumption. Machine transition steps are bit operations. Installing the standard input and reading/erasing the output adds only O(L + budget) charged bit operations, hence is absorbed by a single larger polynomial. A single deterministic boot is sufficient for the source construction.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:209 (same declaration text).
def UniformAlgorithmClaim : Prop := …
- theorem
OAI.UniformKServer.uniform_squared_logarithmic_mainChallenge statement: Uniform bit algorithm for the squared-logarithmic $k$-server bound sorry line 200Source documentation
A single uniform randomized bit machine has squared-logarithmic expected movement and a uniform polynomial bound on each request's bit operations.
L4DEL explanation
A single uniform randomized bit machine has squared-logarithmic expected movement and a uniform polynomial bound on each request's bit operations.
- This explanation is a condensed rendering of this declaration's own doc comment at the pinned source commit.
- The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
- The repository's comparator configuration selects OAI.Combinatorics.UniformKServer.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Combinatorics/UniformKServer/Main.lean:25 (same statement text; different proof or body). Qualify references as OAI.UniformKServer.uniform_squared_logarithmic_main@path.
theorem uniform_squared_logarithmic_main : UniformAlgorithmClaim := by …
Mentions: OAI.UniformKServer.UniformAlgorithmClaim