Download tasks/binary-edit-lower/tests/Challenge.lean from leonflux/FLUX-openai-math-flx-revised: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/datasets/leonflux/FLUX-openai-math-flx-revised/resolve/main/tasks/binary-edit-lower/tests/Challenge.lean
- Command line
-
hf download hf://datasets/leonflux/FLUX-openai-math-flx-revised/tasks/binary-edit-lower/tests/Challenge.lean
-
curl -L -o Challenge.lean https://huggingface.co/datasets/leonflux/FLUX-openai-math-flx-revised/resolve/main/tasks/binary-edit-lower/tests/Challenge.lean
2.29 kB
Lean 4 · 10
declarations statementsfull
10A single unit-cost insertion, deletion, or substitution at any position.
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)16An edit script with no restriction on intermediate word lengths.
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)noncomputable def ed {α : Type u} (x y : List α) : ℕ := body · 1 line
sInf {n | EditScript x y n}abbrev RealL1 := lp (fun _ : ℕ => ℝ) 1 abbrev Word (α : Type u) (n : ℕ) := {x : List α // x.length = n} 30The product of the two maximal pairwise distance ratios.
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‖}35The infimum over every injective map into the full real sequence space ℓ₁.
noncomputable def c1 (X : Type u) (ρ : X → X → ℝ) : ℝ := body · 1 line
sInf {D : ℝ | ∃ f : X → RealL1, Function.Injective f ∧ D = distortion ρ f}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 : ℝ))noncomputable def growth (c : ℝ) (d : ℕ) : ℝ := body · 1 line
Real.exp (c * Real.sqrt (Real.log (d : ℝ) * Real.log (Real.log (d : ℝ))))51The binary lower-bound theorem of OpenAI's September 27, 2026 tree-constructions manuscript: finite equal-length witnesses for every sufficiently large length cap.
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
sorryOutline