ComparatorChallenges/UniformKServer.lean

GitHub source file

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

  1. structure OAI.UniformKServer.RationalMetric line 12

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:15 (same declaration text).

  2. abbrev OAI.UniformKServer.Configuration line 19

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:22 (same declaration text).

  3. abbrev OAI.UniformKServer.History line 20

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:23 (same declaration text).

  4. def OAI.UniformKServer.serve line 22

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:25 (same declaration text).

  5. def OAI.UniformKServer.costAlong line 25

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:28 (same declaration text).

  6. def OAI.UniformKServer.offlineCost All finite serving-label choices, knowing the entire request word line 31

    Source documentation

    All finite serving-label choices, knowing the entire request word.

    L4DEL explanation

    All finite serving-label choices, knowing the entire request word.

    1. 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

  7. inductive OAI.UniformKServer.HeadMove line 35

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:60 (same declaration text).

  8. structure OAI.UniformKServer.BitTape line 39

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:64 (same declaration text).

  9. def OAI.UniformKServer.BitTape.blank line 46

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:71 (same declaration text).

  10. def OAI.UniformKServer.BitTape.ofWord line 48

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:73 (same declaration text).

  11. def OAI.UniformKServer.BitTape.shift line 53

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:78 (same declaration text).

  12. structure OAI.UniformKServer.BitAction line 64

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:89 (same declaration text).

  13. structure OAI.UniformKServer.BitMachine line 72

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:97 (same declaration text).

  14. structure OAI.UniformKServer.MachineState line 79

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:104 (same declaration text).

  15. def OAI.UniformKServer.BitMachine.initial line 88

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:113 (same declaration text).

  16. def OAI.UniformKServer.BitMachine.step line 91

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:116 (same declaration text).

  17. def OAI.UniformKServer.BitMachine.run line 102

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:127 (same declaration text).

  18. def OAI.UniformKServer.BitMachine.install At a request boundary only the input/output interface is refreshed line 107

    Source 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.

    1. 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

  19. def OAI.UniformKServer.natCode Self-delimiting binary code: ℓ ones, a zero, then ℓ low-to-high bits line 115

    Source 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.

    1. 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 :=
    …
  20. def OAI.UniformKServer.rationalCode line 118

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:143 (same declaration text).

  21. def OAI.UniformKServer.instanceCode line 121

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:146 (same declaration text).

  22. def OAI.UniformKServer.bitValue line 127

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:152 (same declaration text).

  23. def OAI.UniformKServer.outputValue line 131

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:156 (same declaration text).

  24. def OAI.UniformKServer.polynomialBudget A dominating polynomial; every fixed polynomial nonnegative on natural inputs is bounded by one of this form after increasing c and e line 136

    Source 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.

    1. 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
  25. def OAI.UniformKServer.requestBudget line 138

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:163 (same declaration text).

  26. def OAI.UniformKServer.boot line 141

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:166 (same declaration text).

  27. def OAI.UniformKServer.requestStep line 146

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:171 (same declaration text).

  28. inductive OAI.UniformKServer.Reachable Reachability includes every binary choice, not merely an almost-sure set line 153

    Source 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.

    1. 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

  29. def OAI.UniformKServer.selectedLabel Modulo makes the semantic recursion total even for unsuccessful machines line 164

    Source 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.

    1. 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

  30. def OAI.UniformKServer.machineExpectedCost line 167

    Also declared: OAI/Combinatorics/UniformKServer/Basic.lean:192 (same declaration text).

  31. def OAI.UniformKServer.UniformAlgorithmClaim Full uniform main objective in the explicit bit model, not a theorem or assumption line 184

    Source 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.

    1. 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 :=
    …
  32. theorem OAI.UniformKServer.uniform_squared_logarithmic_main Challenge statement: Uniform bit algorithm for the squared-logarithmic $k$-server bound sorry line 200

    Source 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.

    1. This explanation is a condensed rendering of this declaration's own doc comment at the pinned source commit.
    2. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    3. 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