leonflux's picture AdithyaSK's picture
AdithyaSK HF Staff
Duplicate from FineEnvs/openai-math
ce32d8b
Raw History Blame Contribute Delete
2.29 kB

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

10
inductive EditStep {α : Type u} : List α → List α → Prop
body · 3 lines
  | 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.

16
inductive EditScript {α : Type u} : List α → List α → ℕ → Prop
body · 3 lines
  | 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)
21
noncomputable def ed {α : Type u} (x y : List α) : ℕ :=
body · 1 line
  sInf {n | EditScript x y n}
24
abbrev RealL1 := lp (fun _ : ℕ => ℝ) 1
25
abbrev Word (α : Type u) (n : ℕ) := {x : List α // x.length = n}

The product of the two maximal pairwise distance ratios.

30
noncomputable def distortion {X : Type u} (ρ : X → X → ℝ) (f : X → RealL1) : ℝ :=
body · 2 lines
  sSup {r : ℝ | ∃ x y : X, x ≠ y ∧ r = ‖f x - f y‖ / ρ x y} *
  sSup {r : ℝ | ∃ x y : X, x ≠ y ∧ r = ρ x y / ‖f x - f y‖}

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

35
noncomputable def c1 (X : Type u) (ρ : X → X → ℝ) : ℝ :=
body · 1 line
  sInf {D : ℝ | ∃ f : X → RealL1, Function.Injective f ∧ D = distortion ρ f}
38
noncomputable def binarySetDistortion {n : ℕ} (W : Finset (Word Bool n)) : ℝ :=
body · 2 lines
  c1 {x : Word Bool n // x ∈ W}
    (fun x y => (ed x.val.val y.val.val : ℝ))
42
noncomputable def growth (c : ℝ) (d : ℕ) : ℝ :=
body · 1 line
  Real.exp (c * Real.sqrt (Real.log (d : ℝ) * Real.log (Real.log (d : ℝ))))

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

51
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
proof · 1 line
  sorry