While this submission is a draft, it cannot be used by other submissions.

The logarithm with values in the extended reals

Lax606786.ExtendedLog · concepts/Lax606786/ExtendedLog.lean · lax-606786

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Definition

    For r≥0r \ge 0 the logarithm log⁡r∈[−∞,∞)\log r \in [-\infty, \infty), with log⁡0=−∞\log 0 = -\infty. Growth rates lim⁡1nlog⁡an\lim \frac1n \log a_n are taken with this logarithm, so that a sequence which vanishes has rate −∞-\infty. (Arguments r<0r < 0 do not occur; they are also sent to −∞-\infty.)

    Concept map
    1 concept; 8 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitLab

    1import Mathlib.Analysis.SpecialFunctions.Log.Basic
    2
    3/-!
    4---
    5title: The logarithm with values in the extended reals
    6type: definition
    7---
    8For r≥0r \ge 0 the logarithm log⁡r∈[−∞,∞)\log r \in [-\infty, \infty), with log⁡0=−∞\log 0 = -\infty. Growth rates
    9lim⁡1nlog⁡an\lim \frac1n \log a_n are taken with this logarithm, so that a sequence which vanishes has rate
    10−∞-\infty. (Arguments r<0r < 0 do not occur; they are also sent to −∞-\infty.)
    11-/
    12
    13namespace Lax606786.ExtendedLog
    14
    15/-- `log r` for `r > 0`, and `-∞` for `r ≤ 0`. -/
    16noncomputable def logEReal (r : ℝ) : EReal := if r ≤ 0 then ⊥ else (Real.log r : EReal)
    17
    18end Lax606786.ExtendedLog
    19

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…