Formalism/SharpRestriction/RamificationFrobenius/TotientGaloisClasses/ExplicitFormulaErrorOfHostConditions.lean
151‖An.logDerivativeAtOne χ‖ ≤ C * Real.log x152153def HType.level (T : HType) (o : ℕ) : Level := ⟨T.toKSet, o⟩154155theorem EAtH.explicit_formula_error_of_host_conditions {T : HType} {κ : HConst} {X x : ℝ} {φ : Frame} {H : HostRaw φ} (hr : T.InRange X x φ.e) (hC : 0 ≤ κ.C)156(h : HostConditions T κ X x H) {TT : Finset φ.A} (hs : φ.Shares TT (x ^ (-1 + T.eps))) :157EAtH (T.level φ.o) H TT x T.eps (κ.C * T.J) := by158refine ⟨rfl, h.kept, h.e, hs, h.c1, fun θ hθ N _ χ hχ => (h.b.2 θ hθ N χ hχ).trans ?_⟩159obtain ⟨h1, h2, -⟩ := hr160have hJ : (0 : ℝ) < T.J := by exact_mod_cast T.one_le_J161have h3 := Real.log_le_log (Real.rpow_pos_of_pos (by linarith) _) h2162rw [Real.log_rpow (by linarith), div_mul_eq_mul_div, one_mul, div_le_iff₀ hJ] at h3163rw [mul_assoc]164exact mul_le_mul_of_nonneg_left (by linarith) hC165166end Formalism.HC167168end