Development/AbelianVarietyTheory/Proofs/GlobalInterpolation/ExistsRanksRankValFrame.lean
51have hx1 : (1 : ℝ) ≤ s.x := by linarith52have hx0 : (0 : ℝ) < s.x := by linarith53have hH1 : s.x ^ 2 ≤ s.x ^ (2 + 8 * s.eps) := by54rw [← Real.rpow_natCast]55exact Real.rpow_le_rpow_of_exponent_le hx1 (by push_cast; linarith)56have hH2 : s.x ^ (2 + 8 * s.eps) ≤ s.x ^ 3 := by57rw [← Real.rpow_natCast]58exact Real.rpow_le_rpow_of_exponent_le hx1 (by push_cast; linarith)59have he2 : (φ.ord : ℝ) ≤ 2 * s.x ^ 3 := by linarith60have hB : s.x ^ 4 ≤ s.x ^ (9 / 2 + 10 * s.eps) := by61rw [← Real.rpow_natCast]62exact Real.rpow_le_rpow_of_exponent_le hx1 (by push_cast; linarith)63have hd : s.x * s.delta1 = s.x ^ (1 - s.eps / 8) := by64unfold Scale.delta165rw [sub_eq_add_neg, Real.rpow_add hx0, Real.rpow_one]66have hA1 : 2 ≤ Real.sqrt (s.x * s.delta1) := by67apply Real.le_sqrt_of_sq_le68rw [hd]69have h1 : s.x ^ (1 / 2 : ℝ) ≤ s.x ^ (1 - s.eps / 8) :=70Real.rpow_le_rpow_of_exponent_le hx1 (by linarith)71have h2 : (4 : ℝ) ≤ s.x ^ (1 / 2 : ℝ) := by72rw [← Real.sqrt_eq_rpow]73apply Real.le_sqrt_of_sq_le74linarith75linarith76have hA2 : Real.sqrt (s.x * s.delta1) ≤ s.x := by77rw [Real.sqrt_le_left hx0.le, hd, ← Real.rpow_natCast]78exact Real.rpow_le_rpow_of_exponent_le hx1 (by push_cast; linarith)79have p2 : 16 * s.x ≤ s.x ^ 2 := by nlinarith80have p3 : 16 * s.x ^ 2 ≤ s.x ^ 3 := by nlinarith81have p4 : 16 * s.x ^ 3 ≤ s.x ^ 4 := by nlinarith82obtain ⟨m, hm, hm1, hm2⟩ := exists_even_between _ hA183obtain ⟨k, hk, hk1, hk2⟩ := exists_even_between (s.x ^ (9 / 2 + 10 * s.eps)) (by linarith)84have a1 : 2 ≤ m := by85have : ((2 : ℕ) : ℝ) ≤ m := by push_cast; linarith86exact_mod_cast this87have a2 : m + 3 ≤ k := by88have : (m : ℝ) + 3 ≤ k := by linarith89exact_mod_cast this90have a3 : m ≤ 2 * φ.ord := by91have : (m : ℝ) ≤ 2 * (φ.ord : ℝ) := by linarith92exact_mod_cast this93have a4 : 2 * φ.ord ≤ k := by94have : 2 * (φ.ord : ℝ) ≤ k := by linarith95exact_mod_cast this96obtain ⟨R, rfl, rfl, rfl, hR⟩ := exists_ranks_of_frame φ k m (TOv s)97⌈10 * ((k + m - 1 : ℕ) : ℝ) * (((2 * φ.ord : ℕ) : ℝ) +98((2 * φ.ord : ℕ) : ℝ) ^ 2 * ((k : ℝ) - 1) ^ 3 * s.L ^ 2 / m) / 8⌉₊ hk hm a1 a2 a3 a499exact ⟨R, rfl, ⟨he1, hp2⟩, ⟨hm1, hm2⟩, ⟨hk1, hk2⟩, hR⟩100