Definition 4.5.2 (Euler's number): Euler's number e is the real number
defined by e := exp(1), with series expansion e = ∑' n : ℕ, 1 / n!.
Equations
Instances For
Definition 4.5.3 (Natural logarithm): the natural logarithm is the function
log : (0, ∞) → ℝ, also denoted ln, defined as the inverse of exp : ℝ → (0, ∞).
Equations
- naturalLog x = Real.log ↑x
Instances For
The restricted natural logarithm and exponential satisfy
exp (naturalLog x) = x for x > 0 and naturalLog (exp y) = y.
Series characterization of Euler's number via the exponential series at x = 1.
Helper for Proposition 4.5.1: rewrite (Real.exp 1) ^ x using realEulerNumber.
Proposition 4.5.1: for every real number x, the exponential function satisfies
Real.exp x = realEulerNumber ^ x (that is, exp(x) = e^x).
Theorem 4.5.1 (Basic properties of exp, part (a)): for every real number x,
the series ∑' n : ℕ, x^n / n! is absolutely convergent. In particular,
Real.exp x = ∑' n : ℕ, x^n / n! for all x, the associated power series has
infinite radius of convergence, and Real.exp is real analytic on ℝ.
Theorem 4.5.7 (Logarithm properties, part (a)): for every x > 0,
the derivative of ln is ln'(x) = 1 / x. In particular, for any 0 < a < b,
∫ x in a..b, (1 / x) = ln(b) - ln(a).
Helper for Theorem 4.5.9: the logarithm of 1 is 0.
Helper for Theorem 4.5.11: on (0, 2), log equals its centered
power series at 1, and that series is summable.
Helper for Proposition 4.5.2: unconditional summability of the alternating harmonic series implies summability of the harmonic series.
Helper for Proposition 4.5.2: any putative witness of the target conjunction
would force a Summable claim that is already refuted under Lean's
unconditional Summable semantics on ℕ.
Helper for Proposition 4.5.2: Real.log 2 is nonzero.
Helper for Proposition 4.5.2: any proof of the target conjunction forces
Real.log 2 = 0 under unconditional tsum semantics.
Helper for Proposition 4.5.2: any proof of the target conjunction would force summability of the (unshifted) harmonic series.
Helper for Proposition 4.5.2: the target conjunction yields a contradiction
with Real.not_summable_one_div_natCast.
Helper for Proposition 4.5.2: contradiction with harmonic divergence yields direct negation of the target conjunction.
Helper for Proposition 4.5.2: under Lean's default unconditional Summable
semantics on ℕ, the target conjunction is equivalent to False.
Helper for Proposition 4.5.2: under Lean's default unconditional
Summable semantics on ℕ, both asserted claims in the target conjunction are
blocked.
Helper for Proposition 4.5.2: the alternating harmonic partial sums converge
conditionally (as a limit of finite sums), even though unconditional
Summable on ℕ fails for this series in Lean.
Helper for Proposition 4.5.2: if the target conjunction held, then the ordered
partial sums would converge to Real.log 2.
Helper for Proposition 4.5.2: the limit of alternating-harmonic partial sums, when it exists, is unique.
Helper for Proposition 4.5.2: under the target conjunction, any candidate
limit of alternating-harmonic partial sums must equal Real.log 2.
Proposition 4.5.2: the alternating harmonic series converges to ln(2),
encoded in Lean as convergence of ordered partial sums:
∑_{n=1}^∞ (-1)^{n+1}/n = ln(2) becomes
Tendsto (fun N => ∑ n < N, (-1)^n/(n+1)) atTop (𝓝 (log 2)).