cfahlgren1/math / lean /ComparatorChallenges /ShortEgyptianFractions.lean
cfahlgren1's picture
download
raw
871 Bytes
import Mathlib
namespace OAI
namespace ShortEgyptian
def IsExpansion (a b : ℕ) (ns : List ℕ) : Prop :=
ns.Pairwise (· < ·) ∧ (∀ n ∈ ns, 2 ≤ n) ∧
(ns.map (fun n => (1 : ℚ) / (n : ℚ))).sum = (a : ℚ) / (b : ℚ)
noncomputable def minLength (a b : ℕ) : ℕ :=
sInf {k : ℕ | ∃ ns : List ℕ, IsExpansion a b ns ∧ ns.length = k}
noncomputable def maxMinLength (b : ℕ) : ℕ :=
(Finset.Ico 1 b).sup (fun a => minLength a b)
theorem main :
(∀ a b : ℕ, 1 ≤ a → a < b → ∃ ns : List ℕ, IsExpansion a b ns) ∧
∃ c₁ c₂ : ℝ, 0 < c₁ ∧ 0 < c₂ ∧ ∃ b₀ : ℕ, 2 ≤ b₀ ∧
∀ b : ℕ, b₀ ≤ b →
c₁ * Real.log (Real.log (b : ℝ)) ≤ (maxMinLength b : ℝ) ∧
(maxMinLength b : ℝ) ≤ c₂ * Real.log (Real.log (b : ℝ)) := by
sorry
end ShortEgyptian
end OAI

Xet Storage Details

Size:
871 Bytes
·
Xet hash:
f65ec40c0ec5cec8796924b9b510e5563369db532beabf0eaf1952a1fd4ed93e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.