ComparatorChallenges/KServer.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

10 declarations, 1 contain sorry, 0 declared as axioms

  1. abbrev OAI.KServer.Configuration Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 13

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: OAI/Combinatorics/KServer/Basic.lean:13 (same declaration text).

    abbrev Configuration (k : ℕ) (X : Type u) := Fin k → X
  2. def OAI.KServer.LabelDistribution Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 15

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Basic.lean:16 (same statement text; different proof or body). Qualify references as OAI.KServer.LabelDistribution@path.

    def LabelDistribution (k : ℕ) :=
    …
  3. abbrev OAI.KServer.Policy Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 19

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

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

    abbrev Policy (k : ℕ) (X : Type u) :=
    …
  4. def OAI.KServer.serve Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 22

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Basic.lean:26 (different declaration text). Qualify references as OAI.KServer.serve@path.

    def serve {k : ℕ} {X : Type u} (s : Configuration k X)
        (label : Fin k) (request : X) : Configuration k X :=
    …

    Mentions: OAI.KServer.Configuration

  5. def OAI.KServer.serviceCost Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 26

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Basic.lean:30 (different declaration text). Qualify references as OAI.KServer.serviceCost@path.

    def serviceCost {k : ℕ} {X : Type u} [MetricSpace X]
        (s : Configuration k X) : (requests : List X) → (Fin requests.length → Fin k) → ℝ
      | [], _ => 0
      | request :: requests, labels =>
          dist (s (labels 0)) request +
            serviceCost (serve s (labels 0) request) requests (fun index => labels index.succ)

    Mentions: OAI.KServer.Configuration

  6. def OAI.KServer.pathProbability Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 33

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Basic.lean:37 (different declaration text). Qualify references as OAI.KServer.pathProbability@path.

    def pathProbability {k : ℕ} {X : Type u} (A : Policy k X)
        (history : List (X × Fin k)) :
        (requests : List X) → (Fin requests.length → Fin k) → ℝ
      | [], _ => 1
      | request :: requests, labels =>
          (A history request).val (labels 0) *
            pathProbability A (history ++ [(request, labels 0)]) requests
              (fun index => labels index.succ)

    Mentions: OAI.KServer.Policy

  7. def OAI.KServer.expectedCost Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 42

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Basic.lean:44 (different declaration text). Qualify references as OAI.KServer.expectedCost@path.

    def expectedCost {k : ℕ} {X : Type u} [MetricSpace X]
        (A : Policy k X) (s : Configuration k X) (requests : List X) : ℝ :=
    …

    Mentions: OAI.KServer.Policy, OAI.KServer.Configuration

  8. def OAI.KServer.optimalCost Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 47

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Basic.lean:51 (different declaration text). Qualify references as OAI.KServer.optimalCost@path.

    def optimalCost {k : ℕ} {X : Type u} [MetricSpace X]
        (s : Configuration k X) (requests : List X) : ℝ :=
    …

    Mentions: OAI.KServer.Configuration

  9. def OAI.KServer.MainStatement Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics line 51

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Main.lean:123 (same statement text; different proof or body). Qualify references as OAI.KServer.MainStatement@path.

    def MainStatement : Prop :=
    …
  10. theorem OAI.KServer.main_theorem Challenge statement: Squared-logarithmic randomized $k$-server on arbitrary metrics sorry line 62

    L4DEL explanation

    This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.

    1. The linked formalization note covers 2 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    2. The repository's comparator configuration selects OAI.Combinatorics.KServer.Main as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/KServer/Main.lean:155 (same statement text; different proof or body). Qualify references as OAI.KServer.main_theorem@path.

    theorem main_theorem : MainStatement.{u} := by
    …