op869_integer_schedule_asymptotic
For every positive integer C, the integer budget F_m^(m²) fits in any sufficiently large n for some m≥2 whose target m^m is at least exp(c(log n)^(1/3)(log log n)^(2/3)), with a positive constant c depending only on C.
Statement
theorem op869_integer_schedule_asymptotic (C : ℕ) (hC : 1 ≤ C) : ∃ c : ℝ, 0 < c ∧ ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → ∃ m : ℕ, 2 ≤ m ∧ (let K := m^m; let F := C*K^3*2^(C*(m+1)); F^(m^2) ≤ n) ∧ Real.exp (c * (Real.log (n : ℝ) ^ ((1 : ℝ) / 3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ) / 3))) ≤ (m^m : ℝ)
- Source
- The schedule inversion is related to arXiv:2610.41516 Section 2.3; this uses the explicit m^m and F^(m²) schedule.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 2
- op869_general_budget_inversionFor any integer budget growing at least linearly whose next-budget logarithm is O(m³ log m), every sufficiently large n admits a feasible…
- op869_three_colorable_lower_bound_of_forcingIf the bounded adversary game forces m^m colours on at most exp(C m³ log m) vertices for every m ≥ 2, then the three-colourable…
The proof, explained
To fit the integer fold-schedule budget B(C, m) = (C * (m^m)^3 * 2^(C*(m+1)))^(m^2) into any sufficiently large integer n, we choose m ≥ 2 to be the maximal index satisfying B(C, m) ≤ n < B(C, m+1). From the upper bound n < B(C, m+1), asymptotic logarithmic estimates establish that log n ≤ D * m^3 * log m and log(log n) ≤ E * log m for constants D and E depending only on C. A scalar inversion inequality combining (log n)^(1/3) and (log log n)^(2/3) bounds their product by W * m * log m = W * log(m^m) for W = D * E^2 + 1. Setting c = 1/W and exponentiating yields the required lower bound exp(c * (log n)^(1/3) * (log log n)^(2/3)) ≤ m^m.
For C ≥ 1 and m ≥ 1, the integer budget B(C, m) = (C * (m^m)^3 * 2^(C*(m+1)))^(m^2) satisfies m ≤ B(C, m).
Setting K = m^m and F = C * K^3 * 2^(C*(m+1)), we form the chain of inequalities m ≤ K ≤ K^3 ≤ F ≤ F^(m^2) = B(C, m). The power bounds follow from positivity of exponents, and the product bound K^3 ≤ F holds because C ≥ 1 and 2^(C*(m+1)) ≥ 1. Chaining these inequalities with transitivity proves m ≤ B(C, m).
uses
Nat.le_pow,Nat.one_le_pow,le_transdef op869_asym_integer_budget_internal (C m : ℕ) : ℕ := (C*(m^m)^3*2^(C*(m+1)))^(m^2) theorem op869_asym_budget_big_internal (C m : ℕ) (hC : 1 ≤ C) (hm : 1 ≤ m) : m ≤ op869_asym_integer_budget_internal C m := by have hm0 : 0 < m := by omega let K := m^m let F := C*K^3*2^(C*(m+1)) have hK : m ≤ K := by dsimp [K]; exact Nat.le_pow hm0 have hKpow : K ≤ K^3 := Nat.le_pow (by decide) have hF : K^3 ≤ F := by dsimp [F] have hp : 1 ≤ 2^(C*(m+1)) := Nat.one_le_pow _ _ (by decide) calc K^3 = 1*K^3*1 := by simp _ ≤ C*K^3*2^(C*(m+1)) := by gcongr have hm2 : 0 < m^2 := by positivity have hpow : F ≤ F^(m^2) := Nat.le_pow hm2 exact le_trans hK (le_trans hKpow (le_trans hF hpow))
For any sequence B : ℕ → ℕ with m ≤ B(m) for all m ≥ 1 and any n ≥ B(2), there exists an integer m ≥ 2 such that B(m) ≤ n < B(m+1).
Any candidate m with B(m) ≤ n satisfies m ≤ B(m) ≤ n < n+1. We pick m = Nat.findGreatest (fun k => B(k) ≤ n) (n+1). Since B(2) ≤ n, we have 2 ≤ m; by specification of findGreatest, B(m) ≤ n; and by its maximality, B(m+1) > n.
uses
le_trans,Nat.findGreatest,Nat.le_findGreatest,Nat.findGreatest_spec,Nat.findGreatest_is_greatesttheorem op869_asym_maximal_budget_internal (B : ℕ → ℕ) (hbig : ∀ m, 1 ≤ m → m ≤ B m) (n : ℕ) (h2 : B 2 ≤ n) : ∃ m, 2 ≤ m ∧ B m ≤ n ∧ n < B (m+1) := by classical have hn2 : 2 ≤ n := le_trans (hbig 2 (by decide)) h2 let p : ℕ → Prop := fun m => B m ≤ n let m := Nat.findGreatest p (n+1) have hm2 : 2 ≤ m := Nat.le_findGreatest (by omega : 2 ≤ n+1) h2 have hm : B m ≤ n := by change p m exact Nat.findGreatest_spec (P := p) (by omega : 2 ≤ n+1) h2 have hmn : m ≤ n := le_trans (hbig m (by omega)) hm have hnot : ¬ B (m+1) ≤ n := by change ¬ p (m+1) exact Nat.findGreatest_is_greatest (P := p) (by omega : m < m+1) (by omega : m+1 ≤ n+1) exact ⟨m, hm2, hm, by omega⟩
For every natural number n, n ≤ 2^n. automation
By induction on n. The base case 0 ≤ 2^0 = 1 holds. In the induction step, 2^(n+1) = 2^n * 2, and linear integer arithmetic closes n + 1 ≤ 2 * 2^n from the inductive hypothesis n ≤ 2^n and 1 ≤ 2^n.
uses
Nat.one_le_pow,pow_succlemma op869_asym_nat_le_two_pow_internal (n : ℕ) : n ≤ 2^n := by induction n with | zero => norm_num | succ n ih => have hp : 1 ≤ 2^n := by exact Nat.one_le_pow n 2 (by decide) rw [pow_succ] omega
For C ≥ 1 and m ≥ 2, the base F = C * (m^m)^3 * 2^(C*(m+1)) satisfies log F ≤ (3 + 2C) * m * log m. automation
Expanding the logarithm of the product gives log F = log C + 3 * m * log m + C * (m+1) * log 2. Since C ≤ 2^C, log C ≤ C * log 2 ≤ C * log m. Combined with C * (m+1) * log 2 ≤ C * (m+1) * log m and m - 2 ≥ 0 for m ≥ 2, non-linear arithmetic bounds the remaining terms by 2C * m * log m, proving log F ≤ (3 + 2C) * m * log m.
uses
op869_asym_nat_le_two_pow_internal,Real.log_nonneg,Real.log_le_log,Real.log_pow,Real.log_mul,Nat.cast_mul,Nat.cast_add,Nat.cast_one,mul_nonnegtheorem op869_asym_log_upper_internal (C m : ℕ) (hC : 1 ≤ C) (hm : 2 ≤ m) : Real.log (((C * (m^m)^3 * 2^(C*(m+1)))^(m^2) : ℕ) : ℝ) ≤ (3 + 2*(C : ℝ)) * (m : ℝ)^3 * Real.log (m : ℝ) := by have hC0 : 0 < C := by omega have hm0 : 0 < m := by omega have hmR : (2 : ℝ) ≤ (m : ℝ) := by exact_mod_cast hm have hCr : (0 : ℝ) ≤ C := by positivity have hlogm : 0 ≤ Real.log (m : ℝ) := Real.log_nonneg (by linarith) have hlog2le : Real.log 2 ≤ Real.log (m : ℝ) := Real.log_le_log (by norm_num) hmR have hc2 : (C : ℝ) ≤ (2 : ℝ)^C := by exact_mod_cast op869_asym_nat_le_two_pow_internal C have hlogC : Real.log (C : ℝ) ≤ (C : ℝ) * Real.log 2 := by calc Real.log (C : ℝ) ≤ Real.log ((2 : ℝ)^C) := Real.log_le_log (by positivity) hc2 _ = (C : ℝ) * Real.log 2 := Real.log_pow _ _ let F : ℕ := C * (m^m)^3 * 2^(C*(m+1)) have hF0 : 0 < F := by dsimp [F]; positivity have hlogF : Real.log (F : ℝ) = Real.log (C : ℝ) + 3*(m : ℝ)*Real.log (m : ℝ) + (C : ℝ)*((m : ℝ)+1)*Real.log 2 := by dsimp [F] push_cast rw [Real.log_mul (by positivity) (by positivity)] rw [Real.log_mul (by positivity) (by positivity)] simp only [Real.log_pow, Nat.cast_mul, Nat.cast_add, Nat.cast_one] ring have hmul1 : 0 ≤ (C : ℝ) * (Real.log (m : ℝ) - Real.log 2) := mul_nonneg hCr (sub_nonneg.mpr hlog2le) have hmul2 : 0 ≤ ((C : ℝ) * ((m : ℝ)+1)) * (Real.log (m : ℝ) - Real.log 2) := mul_nonneg (by positivity) (sub_nonneg.mpr hlog2le) have hmul3 : 0 ≤ ((C : ℝ) * ((m : ℝ)-2)) * Real.log (m : ℝ) := mul_nonneg (mul_nonneg hCr (by linarith)) hlogm have hupper : Real.log (F : ℝ) ≤ (3+2*(C : ℝ))*(m : ℝ)*Real.log (m : ℝ) := by rw [hlogF] nlinarith
For C ≥ 1 and m ≥ 2, the log budget satisfies log(B(C, m)) ≤ (3 + 2C) * m^3 * log m.
Using log(F^(m^2)) = m^2 * log F, we multiply the upper bound log F ≤ (3 + 2C) * m * log m by m^2 ≥ 0 to obtain (3 + 2C) * m^3 * log m.
uses
Real.log_pow,mul_le_mul_of_nonneg_leftchange Real.log ((F^(m^2) : ℕ) : ℝ) ≤ _ push_cast rw [Real.log_pow] push_cast calc (m : ℝ)^2 * Real.log (F : ℝ) ≤ (m : ℝ)^2 * ((3+2*(C : ℝ))*(m : ℝ)*Real.log (m : ℝ)) := mul_le_mul_of_nonneg_left hupper (by positivity) _ = (3+2*(C : ℝ))*(m : ℝ)^3*Real.log (m : ℝ) := by ring
For C ≥ 1 and m ≥ 2, the log budget at m+1 satisfies log(B(C, m+1)) ≤ 16 * (3 + 2C) * m^3 * log m.
Applying the logarithmic upper bound at m+1 yields (3 + 2C) * (m+1)^3 * log(m+1). For m ≥ 2, we have m+1 ≤ 2m (so (m+1)^3 ≤ 8m^3) and m+1 ≤ m^2 (so log(m+1) ≤ 2 * log m). Multiplying these bounds gives (m+1)^3 * log(m+1) ≤ 16 * m^3 * log m, producing the constant factor 16.
uses
Real.log_nonneg,Real.log_le_log,Real.log_pow,pow_le_pow_left₀,op869_asym_log_upper_internal,Nat.cast_add,Nat.cast_one,mul_assoc,mul_le_mul_of_nonneg_lefttheorem op869_asym_log_succ_internal (C m : ℕ) (hC : 1 ≤ C) (hm : 2 ≤ m) : Real.log (((C * ((m+1)^(m+1))^3 * 2^(C*((m+1)+1)))^((m+1)^2) : ℕ) : ℝ) ≤ 16*(3+2*(C : ℝ))*(m : ℝ)^3*Real.log (m : ℝ) := by have hm0 : 0 < (m : ℝ) := by exact_mod_cast (show 0 < m by omega) have hm2 : (2 : ℝ) ≤ (m : ℝ) := by exact_mod_cast hm have hlogm : 0 ≤ Real.log (m : ℝ) := Real.log_nonneg (by linarith) have hmplus : (m : ℝ)+1 ≤ (m : ℝ)^2 := by nlinarith have hlogplus : Real.log ((m : ℝ)+1) ≤ 2*Real.log (m : ℝ) := by calc Real.log ((m : ℝ)+1) ≤ Real.log ((m : ℝ)^2) := Real.log_le_log (by positivity) hmplus _ = 2*Real.log (m : ℝ) := by rw [Real.log_pow]; norm_num have hlogplus0 : 0 ≤ Real.log ((m : ℝ)+1) := Real.log_nonneg (by linarith) have hpow : ((m : ℝ)+1)^3 ≤ (2*(m : ℝ))^3 := pow_le_pow_left₀ (by positivity) (by linarith) 3 have hprod : ((m : ℝ)+1)^3*Real.log ((m : ℝ)+1) ≤ (2*(m : ℝ))^3*(2*Real.log (m : ℝ)) := by gcongr have hA : 0 ≤ 3+2*(C : ℝ) := by positivity have h := op869_asym_log_upper_internal C (m+1) hC (by omega) calc Real.log (((C * ((m+1)^(m+1))^3 * 2^(C*((m+1)+1)))^((m+1)^2) : ℕ) : ℝ) ≤ (3+2*(C : ℝ))*(((m : ℝ)+1)^3*Real.log ((m : ℝ)+1)) := by simpa only [Nat.cast_add, Nat.cast_one, mul_assoc] using h _ ≤ (3+2*(C : ℝ))*((2*(m : ℝ))^3*(2*Real.log (m : ℝ))) := mul_le_mul_of_nonneg_left hprod hA _ = 16*(3+2*(C : ℝ))*(m : ℝ)^3*Real.log (m : ℝ) := by ring
If x ≤ D * m^3 * log m with x > 0, m ≥ 2, and D ≥ 1, then log x ≤ (4 + D / log 2) * log m. automation
Taking the logarithm gives log x ≤ log D + 3 * log m + log(log m). We use log D ≤ D ≤ (D / log 2) * log m (since log 2 ≤ log m) and log(log m) ≤ log m - 1 ≤ log m. Summing these three terms gives log x ≤ (4 + D / log 2) * log m.
uses
Real.log_pos,Real.log_le_log,Real.log_le_sub_one_of_pos,Real.log_mul,Real.log_pow,mul_le_mul_of_nonneg_left,div_nonnegtheorem op869_asym_loglog_internal (x m D : ℝ) (hx : 0 < x) (hm : 2 ≤ m) (hD : 1 ≤ D) (hbound : x ≤ D*m^3*Real.log m) : Real.log x ≤ (4+D/Real.log 2)*Real.log m := by have hm0 : 0 < m := by linarith have hD0 : 0 < D := by linarith have hlog2 : 0 < Real.log 2 := Real.log_pos (by norm_num) have hlogm : 0 < Real.log m := Real.log_pos (by linarith) have hlogle : Real.log 2 ≤ Real.log m := Real.log_le_log (by norm_num) hm have hlogD : Real.log D ≤ D := by have h := Real.log_le_sub_one_of_pos hD0 linarith have hloglog : Real.log (Real.log m) ≤ Real.log m := by have h := Real.log_le_sub_one_of_pos hlogm linarith have hratio : D ≤ (D / Real.log 2) * Real.log m := by calc D = (D / Real.log 2) * Real.log 2 := by field_simp _ ≤ (D / Real.log 2) * Real.log m := mul_le_mul_of_nonneg_left hlogle (div_nonneg (by linarith) hlog2.le) have hlogbound : Real.log x ≤ Real.log (D*m^3*Real.log m) := Real.log_le_log hx hbound have hlogeq : Real.log (D*m^3*Real.log m) = Real.log D + 3*Real.log m + Real.log (Real.log m) := by rw [Real.log_mul (by positivity) (by positivity)] rw [Real.log_mul (by positivity) (by positivity)] rw [Real.log_pow] norm_num rw [hlogeq] at hlogbound nlinarith
For non-negative x, y, m, l, A, B, if x ≤ A * m^3 * l and y ≤ B * l, then x^(1/3) * y^(2/3) ≤ (A * B^2 + 1) * m * l.
Let z = x^(1/3) * y^(2/3), u = m * l, and D = A * B^2 + 1. Cubing z yields z^3 = x * y^2. Substituting the bounds on x and y gives x * y^2 ≤ (A * m^3 * l) * (B * l)^2 = (A * B^2) * u^3 ≤ D^3 * u^3 = (D * u)^3. Taking cube roots preserves the inequality by monotonicity of cubing on non-negative reals, so z ≤ D * u.
uses
mul_nonneg,sq_nonneg,pow_le_pow_left₀,mul_le_mul,mul_pow,Real.rpow_mul_natCast,Real.rpow_natCast,mul_le_mul_of_nonneg_left,mul_le_mul_of_nonneg_right,le_of_pow_le_pow_left₀,mul_assoctheorem op869_asym_scalar_inv_internal (x y m l A B : ℝ) (hx : 0 ≤ x) (hy : 0 ≤ y) (hm : 0 ≤ m) (hl : 0 ≤ l) (hA : 0 ≤ A) (hB : 0 ≤ B) (hxbound : x ≤ A*m^3*l) (hybound : y ≤ B*l) : x^((1 : ℝ)/3) * y^((2 : ℝ)/3) ≤ (A*B^2+1)*m*l := by let z := x^((1 : ℝ)/3) * y^((2 : ℝ)/3) let u := m*l let D := A*B^2+1 have hz : 0 ≤ z := by dsimp [z]; positivity have hu : 0 ≤ u := mul_nonneg hm hl have hD1 : 1 ≤ D := by have hnonneg : 0 ≤ A*B^2 := mul_nonneg hA (sq_nonneg B) dsimp [D] linarith have hD0 : 0 ≤ D := by linarith have hBbound : 0 ≤ B*l := mul_nonneg hB hl have hy2 : y^2 ≤ (B*l)^2 := pow_le_pow_left₀ hy hybound 2 have hxy : x*y^2 ≤ (A*B^2)*u^3 := by calc x*y^2 ≤ (A*m^3*l) * (B*l)^2 := mul_le_mul hxbound hy2 (sq_nonneg y) (by positivity) _ = (A*B^2)*u^3 := by dsimp [u]; ring have hz3 : z^3 = x*y^2 := by dsimp [z] rw [mul_pow, ← Real.rpow_mul_natCast hx, ← Real.rpow_mul_natCast hy] norm_num [Real.rpow_natCast] have hDpow : D ≤ D^3 := by have hD2 : 1 ≤ D^2 := by nlinarith have hh := mul_le_mul_of_nonneg_left hD2 hD0 nlinarith have hcoef : A*B^2 ≤ D^3 := by dsimp [D] at *; nlinarith have hcube : z^3 ≤ (D*u)^3 := by rw [hz3] calc x*y^2 ≤ (A*B^2)*u^3 := hxy _ ≤ D^3*u^3 := mul_le_mul_of_nonneg_right hcoef (by positivity) _ = (D*u)^3 := by ring have hfinal : z ≤ D*u := le_of_pow_le_pow_left₀ (by decide : (3 : ℕ) ≠ 0) (mul_nonneg hD0 hu) hcube simpa [z, D, u, mul_assoc] using hfinal
Define constants D = 16*(3+2C), E = 4+D/log 2, and W = D*E^2+1, and provide witness c = 1/W > 0 and threshold n₀ = max 3 (B(C, 2)).
From C ≥ 1, we check that D ≥ 1, E ≥ 0, and W > 0, ensuring c = 1/W > 0. We instantiate the existential quantifiers for c and the threshold n₀.
uses
Real.log_pos,div_nonneg,mul_nonneg,sq_nonneg,max,op869_asym_integer_budget_internal/-- Invert the explicit integer fold-schedule budget. -/ theorem op869_integer_schedule_asymptotic (C : ℕ) (hC : 1 ≤ C) : ∃ c : ℝ, 0 < c ∧ ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → ∃ m : ℕ, 2 ≤ m ∧ (let K := m^m; let F := C*K^3*2^(C*(m+1)); F^(m^2) ≤ n) ∧ Real.exp (c * (Real.log (n : ℝ) ^ ((1 : ℝ) / 3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ) / 3))) ≤ (m^m : ℝ) := by let D : ℝ := 16*(3+2*(C : ℝ)) let E : ℝ := 4+D/Real.log 2 let W : ℝ := D*E^2+1 have hC0 : 0 ≤ (C : ℝ) := by positivity have hD1 : 1 ≤ D := by dsimp [D]; nlinarith have hD0 : 0 ≤ D := by linarith have hlog2 : 0 < Real.log 2 := Real.log_pos (by norm_num) have hE0 : 0 ≤ E := by dsimp [E] have h := div_nonneg hD0 hlog2.le linarith have hW0 : 0 < W := by dsimp [W] have h := mul_nonneg hD0 (sq_nonneg E) linarith refine ⟨1/W, by positivity, max 3 (op869_asym_integer_budget_internal C 2), ?_⟩
For any n ≥ n₀, there exists an integer m ≥ 2 such that the budget satisfies B(C, m) ≤ n < B(C, m+1).
Because n ≥ n₀ ≥ B(C, 2), applying op869_asym_maximal_budget_internal with op869_asym_budget_big_internal produces an index m ≥ 2 such that B(C, m) ≤ n < B(C, m+1). The bound B(C, m) ≤ n immediately satisfies the budget condition.
uses
le_trans,le_max_left,le_max_right,op869_asym_maximal_budget_internal,op869_asym_budget_big_internal,op869_asym_integer_budget_internalintro n hn have hn3 : 3 ≤ n := le_trans (le_max_left _ _) hn have hnB : op869_asym_integer_budget_internal C 2 ≤ n := le_trans (le_max_right _ _) hn obtain ⟨m, hm, hbudget, hnext⟩ := op869_asym_maximal_budget_internal (op869_asym_integer_budget_internal C) (fun j hj => op869_asym_budget_big_internal C j hC hj) n hnB refine ⟨m, hm, ?_, ?_⟩ · simpa [op869_asym_integer_budget_internal] using hbudget
Both log n ≤ D * m^3 * log m and log(log n) ≤ E * log m hold.
From n < B(C, m+1), monotonicity of the logarithm gives log n ≤ log(B(C, m+1)) ≤ D * m^3 * log m by op869_asym_log_succ_internal. Applying op869_asym_loglog_internal with x = log n gives log(log n) ≤ E * log m. Also, n ≥ 3 > e ensures log n ≥ 1 and log(log n) ≥ 0.
uses
Real.le_log_iff_exp_le,le_trans,Real.log_nonneg,Nat.le_of_lt,Real.log_le_log,op869_asym_log_succ_internal,op869_asym_integer_budget_internal,op869_asym_loglog_internalhave hn0 : 0 < (n : ℝ) := by exact_mod_cast (show 0 < n by omega) have hn3r : (3 : ℝ) ≤ (n : ℝ) := by exact_mod_cast hn3 have hx1 : 1 ≤ Real.log (n : ℝ) := (Real.le_log_iff_exp_le hn0).2 (le_trans Real.exp_one_lt_three.le hn3r) have hx0 : 0 ≤ Real.log (n : ℝ) := by linarith have hy0 : 0 ≤ Real.log (Real.log (n : ℝ)) := Real.log_nonneg hx1 have hm0 : 0 ≤ (m : ℝ) := by positivity have hm2r : (2 : ℝ) ≤ (m : ℝ) := by exact_mod_cast hm have hl0 : 0 ≤ Real.log (m : ℝ) := Real.log_nonneg (by linarith) have hcast : (n : ℝ) ≤ (op869_asym_integer_budget_internal C (m+1) : ℕ) := by exact_mod_cast (Nat.le_of_lt hnext) have hlogn : Real.log (n : ℝ) ≤ Real.log (op869_asym_integer_budget_internal C (m+1) : ℕ) := Real.log_le_log hn0 hcast have hsucc := op869_asym_log_succ_internal C m hC hm change Real.log (op869_asym_integer_budget_internal C (m+1) : ℕ) ≤ D*(m : ℝ)^3*Real.log (m : ℝ) at hsucc have hxbound : Real.log (n : ℝ) ≤ D*(m : ℝ)^3*Real.log (m : ℝ) := le_trans hlogn hsucc have hybound : Real.log (Real.log (n : ℝ)) ≤ E*Real.log (m : ℝ) := by have h := op869_asym_loglog_internal (Real.log (n : ℝ)) (m : ℝ) D (by linarith) hm2r hD1 hxbound simpa [E] using h
(1/W) * (log n)^(1/3) * (log(log n))^(2/3) ≤ m * log m.
Applying the scalar inversion lemma op869_asym_scalar_inv_internal with x = log n, y = log(log n), and l = log m yields (log n)^(1/3) * (log(log n))^(2/3) ≤ (D * E^2 + 1) * m * log m = W * m * log m. Dividing both sides by W > 0 gives the claimed inequality.
uses
op869_asym_scalar_inv_internal,div_le_iff₀,mul_assoc,mul_comm,mul_left_commhave hscalar := op869_asym_scalar_inv_internal (Real.log (n : ℝ)) (Real.log (Real.log (n : ℝ))) (m : ℝ) (Real.log (m : ℝ)) D E hx0 hy0 hm0 hl0 hD0 hE0 hxbound hybound have hscale : (1/W) * (Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3)) ≤ (m : ℝ)*Real.log (m : ℝ) := by calc (1/W) * (Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3)) = ((Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3))) / W := by ring _ ≤ (m : ℝ)*Real.log (m : ℝ) := by apply (div_le_iff₀ hW0).2 simpa only [W, mul_assoc, mul_comm, mul_left_comm] using hscalar calc
exp(c * (log n)^(1/3) * (log(log n))^(2/3)) ≤ m^m.
Exponentiating both sides of the inequality from the previous step preserves order by monotonicity of exp. Rewriting m * log m = log(m^m) and simplifying exp(log(m^m)) = m^m completes the proof.
uses
Real.exp_le_exp.mpr,Real.log_pow,Real.exp_logReal.exp ((1/W) * (Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3))) ≤ Real.exp ((m : ℝ)*Real.log (m : ℝ)) := Real.exp_le_exp.mpr hscale _ = Real.exp (Real.log ((m : ℝ)^m)) := by rw [Real.log_pow] _ = (m^m : ℝ) := Real.exp_log (by positivity)
Nat.le_pow- For any natural numbers a and b with b > 0, a ≤ a^b.
Nat.one_le_pow- For any natural numbers n and m with m > 0, 1 ≤ m^n.
le_trans- Transitivity of ≤: if a ≤ b and b ≤ c, then a ≤ c.
Nat.findGreatest- The greatest natural number m ≤ n satisfying predicate P, or 0 if none exists.
Nat.le_findGreatest- If m ≤ n and P(m) holds, then m ≤ Nat.findGreatest P n.
Nat.findGreatest_spec- If m ≤ n and P(m) holds, then P holds at Nat.findGreatest P n.
Nat.findGreatest_is_greatest- If Nat.findGreatest P n < k ≤ n, then P(k) is false.
pow_succ- In any monoid, a^(n+1) = a^n * a.
op869_asym_nat_le_two_pow_internal- For every natural number n, n ≤ 2^n.
Real.log_nonneg- If x ≥ 1, then log x ≥ 0.
Real.log_le_log- If 0 < x ≤ y, then log x ≤ log y.
Real.log_pow- For real x and natural n, log(x^n) = n * log x.
Real.log_mul- For non-zero real numbers x and y, log(x * y) = log x + log y.
Nat.cast_mul- Coercion from ℕ to ℝ preserves multiplication: ↑(m * n) = ↑m * ↑n.
Nat.cast_add- Coercion from ℕ to ℝ preserves addition: ↑(m + n) = ↑m + ↑n.
Nat.cast_one- Coercion maps 1 to 1: ↑1 = 1.
mul_nonneg- If a ≥ 0 and b ≥ 0, then a * b ≥ 0.
mul_le_mul_of_nonneg_left- If b ≤ c and a ≥ 0, then a * b ≤ a * c.
pow_le_pow_left₀- If 0 ≤ a ≤ b, then a^n ≤ b^n for all natural numbers n.
op869_asym_log_upper_internal- For C ≥ 1 and m ≥ 2, the log budget satisfies log B(C, m) ≤ (3 + 2C) m^3 log m.
mul_assoc- Multiplication is associative: (a * b) * c = a * (b * c).
Real.log_pos- If x > 1, then log x > 0.
Real.log_le_sub_one_of_pos- If x > 0, then log x ≤ x - 1.
div_nonneg- If a ≥ 0 and b ≥ 0, then a / b ≥ 0.
sq_nonneg- The square of any real number is non-negative: 0 ≤ a^2.
mul_le_mul- If a ≤ b, c ≤ d with c ≥ 0 and b ≥ 0, then a * c ≤ b * d.
mul_pow- In a commutative monoid, (a * b)^n = a^n * b^n.
Real.rpow_mul_natCast- For x ≥ 0, y ∈ ℝ, and n ∈ ℕ, x^(y * n) = (x^y)^n.
Real.rpow_natCast- For real x and natural n, real power x^n equals natural power x^n.
mul_le_mul_of_nonneg_right- If b ≤ c and a ≥ 0, then b * a ≤ c * a.
le_of_pow_le_pow_left₀- For n ≠ 0 and non-negative b, if a^n ≤ b^n then a ≤ b.
max- The maximum function on a linear order.
op869_asym_integer_budget_internal- The integer budget function B(C, m) = (C * (m^m)^3 * 2^(C*(m+1)))^(m^2).
le_max_left- For any a and b, a ≤ max a b.
le_max_right- For any a and b, b ≤ max a b.
op869_asym_maximal_budget_internal- If B(m) ≥ m for all m ≥ 1 and B(2) ≤ n, there exists m ≥ 2 with B(m) ≤ n < B(m+1).
op869_asym_budget_big_internal- For C ≥ 1 and m ≥ 1, m ≤ B(C, m).
Real.le_log_iff_exp_le- For y > 0, x ≤ log y if and only if exp x ≤ y.
Nat.le_of_lt- If n < m for natural numbers, then n ≤ m.
op869_asym_log_succ_internal- For C ≥ 1 and m ≥ 2, log B(C, m+1) ≤ 16(3 + 2C) m^3 log m.
op869_asym_loglog_internal- If x ≤ D m^3 log m with x > 0, m ≥ 2, and D ≥ 1, then log x ≤ (4 + D/log 2) log m.
op869_asym_scalar_inv_internal- For non-negative variables, x ≤ A m^3 l and y ≤ B l imply x^(1/3) * y^(2/3) ≤ (A * B^2 + 1) * m * l.
div_le_iff₀- For c > 0, b / c ≤ a if and only if b ≤ a * c.
mul_comm- Multiplication is commutative: a * b = b * a.
mul_left_comm- Multiplication left-commutes: a * (b * c) = b * (a * c).
Real.exp_le_exp.mpr- If x ≤ y, then exp x ≤ exp y.
Real.exp_log- For x > 0, exp(log x) = x.
- The proof relies on automated arithmetic tactics (nlinarith, linarith, omega, ring, and positivity) to verify algebraic inequalities between polynomial, exponential, and logarithmic expressions.
- The existence of the optimal index m is established constructively over ℕ using Nat.findGreatest bounded by n+1.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
def op869_asym_integer_budget_internal (C m : ℕ) : ℕ := (C*(m^m)^3*2^(C*(m+1)))^(m^2)theorem op869_asym_budget_big_internal (C m : ℕ) (hC : 1 ≤ C) (hm : 1 ≤ m) : m ≤ op869_asym_integer_budget_internal C m := by have hm0 : 0 < m := by omega let K := m^m let F := C*K^3*2^(C*(m+1)) have hK : m ≤ K := by dsimp [K]; exact Nat.le_pow hm0 have hKpow : K ≤ K^3 := Nat.le_pow (by decide) have hF : K^3 ≤ F := by dsimp [F] have hp : 1 ≤ 2^(C*(m+1)) := Nat.one_le_pow _ _ (by decide) calc K^3 = 1*K^3*1 := by simp _ ≤ C*K^3*2^(C*(m+1)) := by gcongr have hm2 : 0 < m^2 := by positivity have hpow : F ≤ F^(m^2) := Nat.le_pow hm2 exact le_trans hK (le_trans hKpow (le_trans hF hpow))theorem op869_asym_maximal_budget_internal (B : ℕ → ℕ) (hbig : ∀ m, 1 ≤ m → m ≤ B m) (n : ℕ) (h2 : B 2 ≤ n) : ∃ m, 2 ≤ m ∧ B m ≤ n ∧ n < B (m+1) := by classical have hn2 : 2 ≤ n := le_trans (hbig 2 (by decide)) h2 let p : ℕ → Prop := fun m => B m ≤ n let m := Nat.findGreatest p (n+1) have hm2 : 2 ≤ m := Nat.le_findGreatest (by omega : 2 ≤ n+1) h2 have hm : B m ≤ n := by change p m exact Nat.findGreatest_spec (P := p) (by omega : 2 ≤ n+1) h2 have hmn : m ≤ n := le_trans (hbig m (by omega)) hm have hnot : ¬ B (m+1) ≤ n := by change ¬ p (m+1) exact Nat.findGreatest_is_greatest (P := p) (by omega : m < m+1) (by omega : m+1 ≤ n+1) exact ⟨m, hm2, hm, by omega⟩lemma op869_asym_nat_le_two_pow_internal (n : ℕ) : n ≤ 2^n := by induction n with | zero => norm_num | succ n ih => have hp : 1 ≤ 2^n := by exact Nat.one_le_pow n 2 (by decide) rw [pow_succ] omegatheorem op869_asym_log_upper_internal (C m : ℕ) (hC : 1 ≤ C) (hm : 2 ≤ m) : Real.log (((C * (m^m)^3 * 2^(C*(m+1)))^(m^2) : ℕ) : ℝ) ≤ (3 + 2*(C : ℝ)) * (m : ℝ)^3 * Real.log (m : ℝ) := by have hC0 : 0 < C := by omega have hm0 : 0 < m := by omega have hmR : (2 : ℝ) ≤ (m : ℝ) := by exact_mod_cast hm have hCr : (0 : ℝ) ≤ C := by positivity have hlogm : 0 ≤ Real.log (m : ℝ) := Real.log_nonneg (by linarith) have hlog2le : Real.log 2 ≤ Real.log (m : ℝ) := Real.log_le_log (by norm_num) hmR have hc2 : (C : ℝ) ≤ (2 : ℝ)^C := by exact_mod_cast op869_asym_nat_le_two_pow_internal C have hlogC : Real.log (C : ℝ) ≤ (C : ℝ) * Real.log 2 := by calc Real.log (C : ℝ) ≤ Real.log ((2 : ℝ)^C) := Real.log_le_log (by positivity) hc2 _ = (C : ℝ) * Real.log 2 := Real.log_pow _ _ let F : ℕ := C * (m^m)^3 * 2^(C*(m+1)) have hF0 : 0 < F := by dsimp [F]; positivity have hlogF : Real.log (F : ℝ) = Real.log (C : ℝ) + 3*(m : ℝ)*Real.log (m : ℝ) + (C : ℝ)*((m : ℝ)+1)*Real.log 2 := by dsimp [F] push_cast rw [Real.log_mul (by positivity) (by positivity)] rw [Real.log_mul (by positivity) (by positivity)] simp only [Real.log_pow, Nat.cast_mul, Nat.cast_add, Nat.cast_one] ring have hmul1 : 0 ≤ (C : ℝ) * (Real.log (m : ℝ) - Real.log 2) := mul_nonneg hCr (sub_nonneg.mpr hlog2le) have hmul2 : 0 ≤ ((C : ℝ) * ((m : ℝ)+1)) * (Real.log (m : ℝ) - Real.log 2) := mul_nonneg (by positivity) (sub_nonneg.mpr hlog2le) have hmul3 : 0 ≤ ((C : ℝ) * ((m : ℝ)-2)) * Real.log (m : ℝ) := mul_nonneg (mul_nonneg hCr (by linarith)) hlogm have hupper : Real.log (F : ℝ) ≤ (3+2*(C : ℝ))*(m : ℝ)*Real.log (m : ℝ) := by rw [hlogF] nlinarith change Real.log ((F^(m^2) : ℕ) : ℝ) ≤ _ push_cast rw [Real.log_pow] push_cast calc (m : ℝ)^2 * Real.log (F : ℝ) ≤ (m : ℝ)^2 * ((3+2*(C : ℝ))*(m : ℝ)*Real.log (m : ℝ)) := mul_le_mul_of_nonneg_left hupper (by positivity) _ = (3+2*(C : ℝ))*(m : ℝ)^3*Real.log (m : ℝ) := by ringtheorem op869_asym_log_succ_internal (C m : ℕ) (hC : 1 ≤ C) (hm : 2 ≤ m) : Real.log (((C * ((m+1)^(m+1))^3 * 2^(C*((m+1)+1)))^((m+1)^2) : ℕ) : ℝ) ≤ 16*(3+2*(C : ℝ))*(m : ℝ)^3*Real.log (m : ℝ) := by have hm0 : 0 < (m : ℝ) := by exact_mod_cast (show 0 < m by omega) have hm2 : (2 : ℝ) ≤ (m : ℝ) := by exact_mod_cast hm have hlogm : 0 ≤ Real.log (m : ℝ) := Real.log_nonneg (by linarith) have hmplus : (m : ℝ)+1 ≤ (m : ℝ)^2 := by nlinarith have hlogplus : Real.log ((m : ℝ)+1) ≤ 2*Real.log (m : ℝ) := by calc Real.log ((m : ℝ)+1) ≤ Real.log ((m : ℝ)^2) := Real.log_le_log (by positivity) hmplus _ = 2*Real.log (m : ℝ) := by rw [Real.log_pow]; norm_num have hlogplus0 : 0 ≤ Real.log ((m : ℝ)+1) := Real.log_nonneg (by linarith) have hpow : ((m : ℝ)+1)^3 ≤ (2*(m : ℝ))^3 := pow_le_pow_left₀ (by positivity) (by linarith) 3 have hprod : ((m : ℝ)+1)^3*Real.log ((m : ℝ)+1) ≤ (2*(m : ℝ))^3*(2*Real.log (m : ℝ)) := by gcongr have hA : 0 ≤ 3+2*(C : ℝ) := by positivity have h := op869_asym_log_upper_internal C (m+1) hC (by omega) calc Real.log (((C * ((m+1)^(m+1))^3 * 2^(C*((m+1)+1)))^((m+1)^2) : ℕ) : ℝ) ≤ (3+2*(C : ℝ))*(((m : ℝ)+1)^3*Real.log ((m : ℝ)+1)) := by simpa only [Nat.cast_add, Nat.cast_one, mul_assoc] using h _ ≤ (3+2*(C : ℝ))*((2*(m : ℝ))^3*(2*Real.log (m : ℝ))) := mul_le_mul_of_nonneg_left hprod hA _ = 16*(3+2*(C : ℝ))*(m : ℝ)^3*Real.log (m : ℝ) := by ringtheorem op869_asym_loglog_internal (x m D : ℝ) (hx : 0 < x) (hm : 2 ≤ m) (hD : 1 ≤ D) (hbound : x ≤ D*m^3*Real.log m) : Real.log x ≤ (4+D/Real.log 2)*Real.log m := by have hm0 : 0 < m := by linarith have hD0 : 0 < D := by linarith have hlog2 : 0 < Real.log 2 := Real.log_pos (by norm_num) have hlogm : 0 < Real.log m := Real.log_pos (by linarith) have hlogle : Real.log 2 ≤ Real.log m := Real.log_le_log (by norm_num) hm have hlogD : Real.log D ≤ D := by have h := Real.log_le_sub_one_of_pos hD0 linarith have hloglog : Real.log (Real.log m) ≤ Real.log m := by have h := Real.log_le_sub_one_of_pos hlogm linarith have hratio : D ≤ (D / Real.log 2) * Real.log m := by calc D = (D / Real.log 2) * Real.log 2 := by field_simp _ ≤ (D / Real.log 2) * Real.log m := mul_le_mul_of_nonneg_left hlogle (div_nonneg (by linarith) hlog2.le) have hlogbound : Real.log x ≤ Real.log (D*m^3*Real.log m) := Real.log_le_log hx hbound have hlogeq : Real.log (D*m^3*Real.log m) = Real.log D + 3*Real.log m + Real.log (Real.log m) := by rw [Real.log_mul (by positivity) (by positivity)] rw [Real.log_mul (by positivity) (by positivity)] rw [Real.log_pow] norm_num rw [hlogeq] at hlogbound nlinariththeorem op869_asym_scalar_inv_internal (x y m l A B : ℝ) (hx : 0 ≤ x) (hy : 0 ≤ y) (hm : 0 ≤ m) (hl : 0 ≤ l) (hA : 0 ≤ A) (hB : 0 ≤ B) (hxbound : x ≤ A*m^3*l) (hybound : y ≤ B*l) : x^((1 : ℝ)/3) * y^((2 : ℝ)/3) ≤ (A*B^2+1)*m*l := by let z := x^((1 : ℝ)/3) * y^((2 : ℝ)/3) let u := m*l let D := A*B^2+1 have hz : 0 ≤ z := by dsimp [z]; positivity have hu : 0 ≤ u := mul_nonneg hm hl have hD1 : 1 ≤ D := by have hnonneg : 0 ≤ A*B^2 := mul_nonneg hA (sq_nonneg B) dsimp [D] linarith have hD0 : 0 ≤ D := by linarith have hBbound : 0 ≤ B*l := mul_nonneg hB hl have hy2 : y^2 ≤ (B*l)^2 := pow_le_pow_left₀ hy hybound 2 have hxy : x*y^2 ≤ (A*B^2)*u^3 := by calc x*y^2 ≤ (A*m^3*l) * (B*l)^2 := mul_le_mul hxbound hy2 (sq_nonneg y) (by positivity) _ = (A*B^2)*u^3 := by dsimp [u]; ring have hz3 : z^3 = x*y^2 := by dsimp [z] rw [mul_pow, ← Real.rpow_mul_natCast hx, ← Real.rpow_mul_natCast hy] norm_num [Real.rpow_natCast] have hDpow : D ≤ D^3 := by have hD2 : 1 ≤ D^2 := by nlinarith have hh := mul_le_mul_of_nonneg_left hD2 hD0 nlinarith have hcoef : A*B^2 ≤ D^3 := by dsimp [D] at *; nlinarith have hcube : z^3 ≤ (D*u)^3 := by rw [hz3] calc x*y^2 ≤ (A*B^2)*u^3 := hxy _ ≤ D^3*u^3 := mul_le_mul_of_nonneg_right hcoef (by positivity) _ = (D*u)^3 := by ring have hfinal : z ≤ D*u := le_of_pow_le_pow_left₀ (by decide : (3 : ℕ) ≠ 0) (mul_nonneg hD0 hu) hcube simpa [z, D, u, mul_assoc] using hfinal/-- Invert the explicit integer fold-schedule budget. -/theorem op869_integer_schedule_asymptotic (C : ℕ) (hC : 1 ≤ C) : ∃ c : ℝ, 0 < c ∧ ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → ∃ m : ℕ, 2 ≤ m ∧ (let K := m^m; let F := C*K^3*2^(C*(m+1)); F^(m^2) ≤ n) ∧ Real.exp (c * (Real.log (n : ℝ) ^ ((1 : ℝ) / 3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ) / 3))) ≤ (m^m : ℝ) := by let D : ℝ := 16*(3+2*(C : ℝ)) let E : ℝ := 4+D/Real.log 2 let W : ℝ := D*E^2+1 have hC0 : 0 ≤ (C : ℝ) := by positivity have hD1 : 1 ≤ D := by dsimp [D]; nlinarith have hD0 : 0 ≤ D := by linarith have hlog2 : 0 < Real.log 2 := Real.log_pos (by norm_num) have hE0 : 0 ≤ E := by dsimp [E] have h := div_nonneg hD0 hlog2.le linarith have hW0 : 0 < W := by dsimp [W] have h := mul_nonneg hD0 (sq_nonneg E) linarith refine ⟨1/W, by positivity, max 3 (op869_asym_integer_budget_internal C 2), ?_⟩ intro n hn have hn3 : 3 ≤ n := le_trans (le_max_left _ _) hn have hnB : op869_asym_integer_budget_internal C 2 ≤ n := le_trans (le_max_right _ _) hn obtain ⟨m, hm, hbudget, hnext⟩ := op869_asym_maximal_budget_internal (op869_asym_integer_budget_internal C) (fun j hj => op869_asym_budget_big_internal C j hC hj) n hnB refine ⟨m, hm, ?_, ?_⟩ · simpa [op869_asym_integer_budget_internal] using hbudget have hn0 : 0 < (n : ℝ) := by exact_mod_cast (show 0 < n by omega) have hn3r : (3 : ℝ) ≤ (n : ℝ) := by exact_mod_cast hn3 have hx1 : 1 ≤ Real.log (n : ℝ) := (Real.le_log_iff_exp_le hn0).2 (le_trans Real.exp_one_lt_three.le hn3r) have hx0 : 0 ≤ Real.log (n : ℝ) := by linarith have hy0 : 0 ≤ Real.log (Real.log (n : ℝ)) := Real.log_nonneg hx1 have hm0 : 0 ≤ (m : ℝ) := by positivity have hm2r : (2 : ℝ) ≤ (m : ℝ) := by exact_mod_cast hm have hl0 : 0 ≤ Real.log (m : ℝ) := Real.log_nonneg (by linarith) have hcast : (n : ℝ) ≤ (op869_asym_integer_budget_internal C (m+1) : ℕ) := by exact_mod_cast (Nat.le_of_lt hnext) have hlogn : Real.log (n : ℝ) ≤ Real.log (op869_asym_integer_budget_internal C (m+1) : ℕ) := Real.log_le_log hn0 hcast have hsucc := op869_asym_log_succ_internal C m hC hm change Real.log (op869_asym_integer_budget_internal C (m+1) : ℕ) ≤ D*(m : ℝ)^3*Real.log (m : ℝ) at hsucc have hxbound : Real.log (n : ℝ) ≤ D*(m : ℝ)^3*Real.log (m : ℝ) := le_trans hlogn hsucc have hybound : Real.log (Real.log (n : ℝ)) ≤ E*Real.log (m : ℝ) := by have h := op869_asym_loglog_internal (Real.log (n : ℝ)) (m : ℝ) D (by linarith) hm2r hD1 hxbound simpa [E] using h have hscalar := op869_asym_scalar_inv_internal (Real.log (n : ℝ)) (Real.log (Real.log (n : ℝ))) (m : ℝ) (Real.log (m : ℝ)) D E hx0 hy0 hm0 hl0 hD0 hE0 hxbound hybound have hscale : (1/W) * (Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3)) ≤ (m : ℝ)*Real.log (m : ℝ) := by calc (1/W) * (Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3)) = ((Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3))) / W := by ring _ ≤ (m : ℝ)*Real.log (m : ℝ) := by apply (div_le_iff₀ hW0).2 simpa only [W, mul_assoc, mul_comm, mul_left_comm] using hscalar calc Real.exp ((1/W) * (Real.log (n : ℝ) ^ ((1 : ℝ)/3)) * (Real.log (Real.log (n : ℝ)) ^ ((2 : ℝ)/3))) ≤ Real.exp ((m : ℝ)*Real.log (m : ℝ)) := Real.exp_le_exp.mpr hscale _ = Real.exp (Real.log ((m : ℝ)^m)) := by rw [Real.log_pow] _ = (m^m : ℝ) := Real.exp_log (by positivity)