ComparatorChallenges/BinaryEditLower.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. inductive OAI.TreeEdit.EditStep A single unit-cost insertion, deletion, or substitution at any position line 10

    Source documentation

    A single unit-cost insertion, deletion, or substitution at any position.

    L4DEL explanation

    A single unit-cost insertion, deletion, or substitution at any position.

    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: ComparatorChallenges/TreeEdit.lean:10 (same declaration text), OAI/Combinatorics/TreeEdit/Model.lean:10 (same declaration text).

    inductive EditStep {α : Type u} : List α → List α → Prop
      | insert (p q : List α) (a : α) : EditStep (p ++ q) (p ++ a :: q)
      | delete (p q : List α) (a : α) : EditStep (p ++ a :: q) (p ++ q)
      | substitute (p q : List α) (a b : α) : EditStep (p ++ a :: q) (p ++ b :: q)
    
    /-- An edit script with no restriction on intermediate word lengths. -/
  2. inductive OAI.TreeEdit.EditScript An edit script with no restriction on intermediate word lengths line 16

    Source documentation

    An edit script with no restriction on intermediate word lengths.

    L4DEL explanation

    An edit script with no restriction on intermediate word lengths.

    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: ComparatorChallenges/TreeEdit.lean:16 (same declaration text), OAI/Combinatorics/TreeEdit/Model.lean:16 (same declaration text).

    inductive EditScript {α : Type u} : List α → List α → ℕ → Prop
      | nil (x : List α) : EditScript x x 0
      | cons {x y z : List α} {n : ℕ} :
          EditStep x y → EditScript y z n → EditScript x z (n + 1)

    Mentions: OAI.TreeEdit.EditStep

  3. def OAI.TreeEdit.ed line 21

    Also declared: ComparatorChallenges/TreeEdit.lean:22 (same declaration text), OAI/Combinatorics/TreeEdit/Model.lean:22 (same declaration text).

  4. abbrev OAI.TreeEdit.RealL1 line 24

    Also declared: ComparatorChallenges/TreeEdit.lean:26 (same declaration text), OAI/Combinatorics/TreeEdit/Model.lean:26 (same declaration text).

  5. abbrev OAI.TreeEdit.Word line 25

    Also declared: OAI/Combinatorics/TreeEdit/Model.lean:54 (same declaration text).

  6. def OAI.TreeEdit.BinaryLower.distortion The product of the two maximal pairwise distance ratios line 30

    Source documentation

    The product of the two maximal pairwise distance ratios.

    L4DEL explanation

    The product of the two maximal pairwise distance ratios.

    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)

    Distinct definitions of this name: OAI/Combinatorics/BinaryEdit/Model.lean:19 (different declaration text). Qualify references as OAI.TreeEdit.BinaryLower.distortion@path.

    noncomputable def distortion {X : Type u} (ρ : X → X → ℝ) (f : X → RealL1) : ℝ :=
    …

    Mentions: OAI.TreeEdit.RealL1

  7. def OAI.TreeEdit.BinaryLower.c1 The infimum over every injective map into the full real sequence space ℓ₁ line 35

    Source documentation

    The infimum over every injective map into the full real sequence space ℓ₁.

    L4DEL explanation

    The infimum over every injective map into the full real sequence space ℓ₁.

    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)

    Distinct definitions of this name: OAI/Combinatorics/BinaryEdit/Model.lean:25 (different declaration text). Qualify references as OAI.TreeEdit.BinaryLower.c1@path.

    noncomputable def c1 (X : Type u) (ρ : X → X → ℝ) : ℝ :=
    …
  8. def OAI.TreeEdit.BinaryLower.binarySetDistortion line 38

    Distinct definitions of this name: OAI/Combinatorics/BinaryEdit/Model.lean:36 (different declaration text). Qualify references as OAI.TreeEdit.BinaryLower.binarySetDistortion@path.

  9. def OAI.TreeEdit.BinaryLower.growth line 42

    Distinct definitions of this name: OAI/Combinatorics/BinaryEdit/Model.lean:47 (different declaration text). Qualify references as OAI.TreeEdit.BinaryLower.growth@path.

  10. theorem OAI.TreeEdit.binary_lower_bound Challenge statement: Binary edit-distance distortion lower bound sorry line 51

    Source documentation

    The binary lower-bound theorem of OpenAI's September 27, 2026 tree-constructions manuscript: finite equal-length witnesses for every sufficiently large length cap.

    L4DEL explanation

    The binary lower-bound theorem of OpenAI's September 27, 2026 tree-constructions manuscript: finite equal-length witnesses for every sufficiently large length cap.

    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 4 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
    3. The repository's comparator configuration selects OAI.Combinatorics.BinaryEdit.BinaryLowerBound as the released solution module checked against this declaration.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/BinaryEdit/BinaryLowerBound.lean:12 (same statement text; different proof or body). Qualify references as OAI.TreeEdit.binary_lower_bound@path.

    theorem binary_lower_bound :
        ∃ c : ℝ, 0 < c ∧ ∃ d₀ : ℕ, ∀ d : ℕ, d₀ ≤ d →
          ∃ n : ℕ, 1 ≤ n ∧ n ≤ d ∧
            ∃ W : Finset (Word Bool n), 2 ≤ W.card ∧
              growth c d ≤ binarySetDistortion W := by
    …

    Mentions: OAI.TreeEdit.Word