Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedlemma · leanprover/lean4:v4.32.0

BKLNW.exp_neg_le_pow

PrimeNumberTheoremAnd.IEANTN.BKLNW.BKLNW_tables · PrimeNumberTheoremAnd/IEANTN/BKLNW/BKLNW_tables.lean:102 to 116

Mathematical statement

Exact Lean statement

lemma exp_neg_le_pow (n : ℕ) {x : ℝ} (hx : (n : ℝ) ≤ x) : exp (-x) ≤ exp_neg_one_ub ^ n

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma exp_neg_le_pow (n : ) {x : } (hx : (n : )  x) : exp (-x)  exp_neg_one_ub ^ n := by  have h1 : exp (-x)  exp (-(n : )) := by    have : -x  -(n : ) := by linarith    exact (Real.exp_le_exp).2 this  have hbase : exp (-1)  exp_neg_one_ub := by    exact le_of_lt Real.exp_neg_one_lt_d9  have hpos : 0  exp (-1) := by positivity  have hExp : exp (-(n : )) = exp (-1) ^ n := by    have hmul : (n : ) * (-1) = -(n : ) := by ring    simpa [hmul] using (Real.exp_nat_mul (-1) n)  calc    exp (-x)  exp (-(n : )) := h1    _ = exp (-1) ^ n := hExp    _  exp_neg_one_ub ^ n := by      exact pow_le_pow_left₀ hpos hbase n