Definition 5.1.1: A partition P of [a, b] is a finite increasing list
x₀, x₁, …, xₙ with x₀ = a and xₙ = b. Write Δxᵢ = xᵢ - xᵢ₋₁. For a
bounded function f : [a, b] → ℝ, set mᵢ = inf {f x | x_{i-1} ≤ x ≤ xᵢ} and
Mᵢ = sup {f x | x_{i-1} ≤ x ≤ xᵢ}, and define the lower Darboux sum
L(P, f) = ∑ mᵢ Δxᵢ and the upper Darboux sum U(P, f) = ∑ Mᵢ Δxᵢ.
- n : ℕ
- mono : StrictMono self.points
Instances For
Lower Darboux sum L(P, f) = ∑ mᵢ Δxᵢ.
Instances For
Upper Darboux sum U(P, f) = ∑ Mᵢ Δxᵢ.
Instances For
Proposition 5.1.2: If f : [a, b] → ℝ is bounded with m ≤ f x ≤ M on
[a, b], then for every partition P of [a, b] we have
m * (b - a) ≤ L(P, f) ≤ U(P, f) ≤ M * (b - a).
Definition 5.1.3: The lower Darboux integral ∫̲_a^b f is the supremum of
all lower Darboux sums over partitions of [a, b]; the upper Darboux integral
∫̅_a^b f is the infimum of all upper Darboux sums over partitions of
[a, b]. We also write these without an explicit integration variable.
Equations
- lowerDarbouxIntegral f a b = sSup (Set.range fun (P : IntervalPartition a b) => lowerDarbouxSum f P)
Instances For
See lowerDarbouxIntegral for the description of the lower and upper
Darboux integrals.
Equations
- upperDarbouxIntegral f a b = sInf (Set.range fun (P : IntervalPartition a b) => upperDarbouxSum f P)
Instances For
The subset of real numbers consisting of rational points.
Equations
- realRationals = Set.range fun (q : ℚ) => ↑q
Instances For
Example 5.1.4: The Dirichlet function f : [0, 1] → ℝ with f x = 1 on
the rationals and f x = 0 otherwise satisfies ∫̲₀¹ f = 0 and ∫̅₀¹ f = 1.
Equations
- dirichletFunction x = if x ∈ realRationals then 1 else 0
Instances For
The Dirichlet function only takes values in [0, 1].
Equations
- One or more equations did not get rendered due to their size.
Instances For
See dirichletFunction. The lower Darboux integral over [0, 1] is zero.
See dirichletFunction. The upper Darboux integral over [0, 1] is one.
Definition 5.1.6: A partition P̃ of [a, b] is a refinement of a
partition P if, viewed as sets of partition points, P ⊆ P̃.
Instances For
Proposition 5.1.7: For a bounded function f : [a, b] → ℝ, if P̃ is a
refinement of a partition P of [a, b], then L(P, f) ≤ L(P̃, f) and
U(P̃, f) ≤ U(P, f).
A partition exists whenever the interval is nonempty.
Two partitions admit a common refinement given by the union of their points.
Any lower sum is bounded above by any upper sum.
Proposition 5.1.8: If a bounded function f : [a, b] → ℝ satisfies
m ≤ f x ≤ M on [a, b], then the lower and upper Darboux integrals obey
m * (b - a) ≤ ∫̲_a^b f ≤ ∫̅_a^b f ≤ M * (b - a).
Definition 5.1.9: A bounded function f : [a, b] → ℝ is Riemann
integrable if the lower and upper Darboux integrals coincide. The collection of
such functions on [a, b] is denoted ℛ([a, b]), and when f is Riemann
integrable its integral ∫_a^b f is the common value of the lower and upper
integrals.
Equations
- RiemannIntegrableOn f a b = ((∃ (M : ℝ), ∀ x ∈ Set.Icc a b, |f x| ≤ M) ∧ lowerDarbouxIntegral f a b = upperDarbouxIntegral f a b)
Instances For
The set ℛ([a, b]) of Riemann integrable functions on [a, b].
Equations
- riemannIntegrableFunctions a b = {f : ℝ → ℝ | RiemannIntegrableOn f a b}
Instances For
The Riemann integral of an integrable function is the common value of the lower and upper Darboux integrals.
Equations
- riemannIntegral f a b hf = lowerDarbouxIntegral f a b
Instances For
Proposition 5.1.10: If f : [a, b] → ℝ is Riemann integrable and
bounded between m and M on [a, b], then the integral is bounded by
m * (b - a) and M * (b - a).
Example 5.1.11: A constant function f x = c is Riemann integrable on
[a, b], and its integral is c * (b - a).
Example 5.1.12: The step function on [0, 2] given by
f x = 1 for x < 1, f 1 = 1 / 2, and f x = 0 for x > 1 is Riemann
integrable with integral ∫_0^2 f = 1.
Instances For
The step function only takes values in [0, 1].
See stepFunctionExample. The function is Riemann integrable on [0, 2]
and its integral equals 1.
Proposition 5.1.13: A bounded function f : [a, b] → ℝ is Riemann
integrable if for every ε > 0 there exists a partition P of [a, b] with
U(P, f) - L(P, f) < ε.
Example 5.1.14: For every b > 0 the function x ↦ 1 / (1 + x) is
Riemann integrable on [0, b].