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

8 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/BinaryEditLower.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)
    
    /-- A script of precisely `n` edits. There is no restriction on its intermediate lengths. -/
  2. inductive OAI.TreeEdit.EditScript An edit script with no restriction on intermediate word lengths line 16

    Source documentation

    A script of precisely n edits. There is no restriction on its intermediate 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/BinaryEditLower.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)
    
    /-- Ordinary unit-cost edit distance. The set is nonempty (delete then insert). -/

    Mentions: OAI.TreeEdit.EditStep

  3. def OAI.TreeEdit.ed Ordinary unit-cost edit distance line 22

    Source documentation

    Ordinary unit-cost edit distance. The set is nonempty (delete then insert).

    L4DEL explanation

    Ordinary unit-cost edit distance. The set is nonempty (delete then insert).

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

    noncomputable def ed {α : Type u} (x y : List α) : ℕ :=
    …
  4. abbrev OAI.TreeEdit.RealL1 The full infinite-dimensional real ℓ₁ space line 26

    Source documentation

    The full infinite-dimensional real ℓ₁ space.

    L4DEL explanation

    The full infinite-dimensional real ℓ₁ 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)

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

    abbrev RealL1 := lp (fun _ : ℕ => ℝ) 1
  5. def OAI.TreeEdit.distortion Product of the two maximal pairwise distance ratios line 29

    Source documentation

    Product of the two maximal pairwise distance ratios.

    L4DEL explanation

    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)

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

    noncomputable def distortion (W : Finset (List Bool)) (f : W → RealL1) : ℝ :=
    …

    Mentions: OAI.TreeEdit.RealL1

  6. def OAI.TreeEdit.c1 Infimum over all injective ℓ₁ maps, used on finite sets with at least two points line 36

    Source documentation

    Infimum over all injective ℓ₁ maps, used on finite sets with at least two points.

    L4DEL explanation

    Infimum over all injective ℓ₁ maps, used on finite sets with at least two points.

    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/TreeEdit/Model.lean:36 (same declaration text).

    noncomputable def c1 (W : Finset (List Bool)) : ℝ :=
    …
  7. def OAI.TreeEdit.BinaryLowerBound The binary main endpoint, for every sufficiently large cap (natural logarithms) line 40

    Source documentation

    The binary main endpoint, for every sufficiently large cap (natural logarithms).

    L4DEL explanation

    The binary main endpoint, for every sufficiently large cap (natural logarithms).

    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/TreeEdit/Model.lean:40 (same declaration text).

    def BinaryLowerBound : Prop :=
    …
  8. theorem OAI.TreeEdit.binary_torus Challenge statement: Tree-based binary edit-distance distortion lower bound sorry line 46

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

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Distinct definitions of this name: OAI/Combinatorics/TreeEdit/TorusLowerBound.lean:106 (same statement text; different proof or body). Qualify references as OAI.TreeEdit.binary_torus@path.

    theorem binary_torus : BinaryLowerBound := by
    …

    Mentions: OAI.TreeEdit.BinaryLowerBound