ComparatorChallenges/TreeEdit.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
8 declarations, 1 contain sorry, 0 declared as axioms
- inductive
OAI.TreeEdit.EditStepA single unit-cost insertion, deletion, or substitution at any position line 10Source 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.
- 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. -/ - inductive
OAI.TreeEdit.EditScriptAn edit script with no restriction on intermediate word lengths line 16Source documentation
A script of precisely
nedits. There is no restriction on its intermediate lengths.L4DEL explanation
An edit script with no restriction on intermediate word lengths.
- 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
- def
OAI.TreeEdit.edOrdinary unit-cost edit distance line 22Source 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).
- 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 α) : ℕ := … - abbrev
OAI.TreeEdit.RealL1The full infinite-dimensional real ℓ₁ space line 26Source documentation
The full infinite-dimensional real ℓ₁ space.
L4DEL explanation
The full infinite-dimensional real ℓ₁ space.
- 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
- def
OAI.TreeEdit.distortionProduct of the two maximal pairwise distance ratios line 29Source documentation
Product of the two maximal pairwise distance ratios.
L4DEL explanation
Product of the two maximal pairwise distance ratios.
- 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
- def
OAI.TreeEdit.c1Infimum over all injective ℓ₁ maps, used on finite sets with at least two points line 36Source 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.
- 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)) : ℝ := …
- def
OAI.TreeEdit.BinaryLowerBoundThe binary main endpoint, for every sufficiently large cap (natural logarithms) line 40Source 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).
- 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 := …
- theorem
OAI.TreeEdit.binary_torusChallenge statement: Tree-based binary edit-distance distortion lower bound sorry line 46L4DEL explanation
This declaration is an exact comparator-selected statement. Read the Lean statement below for its mathematical content.
- The linked formalization note covers 4 distinct comparator results, so its combined Scope prose is not copied onto this declaration.
- 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