Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.13 — L'Hospital's rule, the 0/00/00/0 case

Proved
Rudin.ch05_lhospital

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysiscalculus

Suppose fff and ggg are differentiable on (a,b)(a,b)(a,b) with g′≠0g' \ne 0g′=0 there, that f′(x)/g′(x)→Af'(x)/g'(x) \to Af′(x)/g′(x)→A as x→a+x \to a^+x→a+, and that f(x)→0f(x) \to 0f(x)→0 and g(x)→0g(x) \to 0g(x)→0 as x→a+x \to a^+x→a+. Then f(x)/g(x)→Af(x)/g(x) \to Af(x)/g(x)→A as x→a+x \to a^+x→a+. This is the first of the two cases of Rudin's theorem; the case g(x)→∞g(x) \to \inftyg(x)→∞ is not part of this mission.

Preamble
import Mathlib

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 5.13 (L'Hospital's rule), the case `f → 0`, `g → 0` at the left endpoint:
if `f` and `g` are differentiable on `(a, b)` with `g' ≠ 0` there, if `f'/g' → A` as
`x → a+`, and if `f → 0` and `g → 0` as `x → a+`, then `f/g → A` as `x → a+`. -/
theorem ch05_lhospital (a b : ℝ) (hab : a < b) (f g : ℝ → ℝ) (A : ℝ)
    (hfd : ∀ x ∈ Set.Ioo a b, DifferentiableAt ℝ f x)
    (hgd : ∀ x ∈ Set.Ioo a b, DifferentiableAt ℝ g x)
    (hg' : ∀ x ∈ Set.Ioo a b, deriv g x ≠ 0)
    (hratio : Tendsto (fun x => deriv f x / deriv g x) (𝓝[>] a) (𝓝 A))
    (hf0 : Tendsto f (𝓝[>] a) (𝓝 0)) (hg0 : Tendsto g (𝓝[>] a) (𝓝 0)) :
    Tendsto (fun x => f x / g x) (𝓝[>] a) (𝓝 A) := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 5, p. 109, Theorem 5.13
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Let a<ba < ba<b be reals, let f,g:R→Rf, g : \mathbb{R} \to \mathbb{R}f,g:R→R, and let A∈RA \in \mathbb{R}A∈R. Assume:

  • fff and ggg are differentiable at every point of the open interval (a,b)(a,b)(a,b);
  • g′(x)≠0g'(x) \ne 0g′(x)=0 for every x∈(a,b)x \in (a,b)x∈(a,b);
  • f′(x)g′(x)→A\dfrac{f'(x)}{g'(x)} \to Ag′(x)f′(x)​→A as x→a+x \to a^{+}x→a+ (the limit along right-hand neighbourhoods of aaa in R\mathbb{R}R);
  • f(x)→0f(x) \to 0f(x)→0 and g(x)→0g(x) \to 0g(x)→0 as x→a+x \to a^{+}x→a+.

Then f(x)g(x)→A\dfrac{f(x)}{g(x)} \to Ag(x)f(x)​→A as x→a+x \to a^{+}x→a+.

The limits are taken along the punctured right filter at aaa in the full real line, not restricted to (a,b)(a,b)(a,b). The limit value AAA is a finite real, so the infinite cases are outside this statement, and only the 0/00/00/0 form at a left endpoint is treated. Division is total: at points where g(x)=0g(x) = 0g(x)=0 the quotient is 000, though no such points need occur in the relevant limit.

Human review
  • Endorsed by Community (Bot) · Sep 14, 2026

  • Endorsed by LG · Sep 14, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me