Definition 1.1.5. (Riemann integrability) The interval I should be closed, though we will not enforce this. We also permit the length to be 0. We index the tags and deltas starting from 0 rather than 1
in the text as this is slightly more convenient in Lean.
- x_mono : StrictMono self.x
Instances For
Instances For
Instances For
Instances For
Sigma (TaggedPartition I) is the type of all partitions of I with an unspecified number n of components. Here we define what it means to converge to zero in this type.
Equations
- TaggedPartition.nhds_zero I = Filter.comap (fun (P : Sigma (TaggedPartition I)) => P.snd.norm) (nhds 0)
Instances For
Equations
- riemann_integral_eq f I R = Filter.Tendsto (fun (P : Sigma (TaggedPartition I)) => TaggedPartition.RiemannSum f P.snd) (TaggedPartition.nhds_zero I) (nhds R)
Instances For
Construct a uniform partition of [a,b] into n equal pieces with left endpoint tags.
Equations
- One or more equations did not get rendered due to their size.
Instances For
For any positive interval and δ > 0, there exists a tagged partition with norm ≤ δ.
The filter TaggedPartition.nhds_zero is non-trivial when the interval has positive length.
We enforce I to be closed and nonempty for the definition of Riemann integrability.
The nonempty constraint ensures meaningful integration and excludes degenerate cases.
Equations
- RiemannIntegrableOn f I = (I = BoundedInterval.Icc I.a I.b ∧ (↑I).Nonempty ∧ ∃ (R : ℝ), riemann_integral_eq f I R)
Instances For
Equations
- riemannIntegral f I = if h : RiemannIntegrableOn f I then ⋯.choose else 0
Instances For
When an interval has zero length, all Riemann sums equal zero.
When an interval has zero length and Riemann sums converge to R, then R = 0.
This requires that the filter is non-trivial (Filter.NeBot), which holds when I.a = I.b.
When a nonempty closed interval [a,b] has zero length, then a = b.
Definition 1.1.15 (Riemann integrability, Riemann sums converge)
Definition 1.1.15 (Riemann integrability, characterization)
Definition 1.1.15 (Riemann integrability).
Definition 1.1.15. (Riemann integrability)
Helper: Modify a tagged partition by changing one tag
Equations
Instances For
The Riemann sum difference when changing one tag
Definition 1.1.15
- disjoint : (↑self.T).PairwiseDisjoint BoundedInterval.toSet
Instances For
Equations
- F.agreesWith f = Set.EqOn f F.f ↑I
Instances For
Equations
- PiecewiseConstantOn f I = ∃ (F : PiecewiseConstantFunction I), F.agreesWith f
Instances For
Instances For
Exercise 1.1.20 (Piecewise constant functions, integral well-defined)
Equations
Instances For
Exercise 1.1.20 (Piecewise constant functions, integral of a representation)
Exercise 1.1.21 (a) (Linearity, scalar multiple is piecewise constant)
Exercise 1.1.21 (a) (Linearity, integral of a scalar multiple)
Exercise 1.1.21 (a) (Linearity, sum is piecewise constant)
Exercise 1.1.21 (a) (Linearity, integral of a sum)
Exercise 1.1.21 (b) (Monotonicity of the piecewise constant integral)
Exercise 1.1.21 (c) (Indicator functions, indicator is piecewise constant)
Exercise 1.1.21 (c) (Indicator functions, integral of an indicator)
Definition 1.1.6 (Darboux integral, lower)
Equations
Instances For
Definition 1.1.6 (Darboux integral, upper)
Equations
Instances For
Helper: Construct a constant piecewise constant function with a given value
Equations
Instances For
Helper: The integral of a constant piecewise constant function
Helper: Construct the negation of a piecewise constant function
Equations
Instances For
Helper: The integral of a negated piecewise constant function
Helper: Convert a PiecewiseConstantFunction to PiecewiseConstantOn and relate integrals
Helper: Apply PiecewiseConstantFunction.integral_mono between two
PiecewiseConstantFunctions via PiecewiseConstantOn.
Definition 1.1.6 (Darboux integral, lower is at most upper)
Definition 1.1.6 (Darboux integral, integrability)
Equations
- DarbouxIntegrableOn f I = (I = BoundedInterval.Icc I.a I.b ∧ (↑I).Nonempty ∧ (∃ (M : ℝ), ∀ x ∈ I, |f x| ≤ M) ∧ LowerDarbouxIntegral f I = UpperDarbouxIntegral f I)
Instances For
We give the Darboux integral the "junk" value of the lower Darboux integral when the function is not integrable.
Equations
- darbouxIntegral f I = LowerDarbouxIntegral f I
Instances For
Definition 1.1.6 (Darboux integral, negation)
Exercise 1.1.22 (Riemann and Darboux integrability agree)
Exercise 1.1.22 (the two integrals agree)
Exercise 1.1.23
Exercise 1.1.23'
Exercise 1.1.24 (a) (scalar multiple, integrability).
Exercise 1.1.24 (a) (scalar multiple, integral).
Exercise 1.1.24 (a) (sum, integrability).
Exercise 1.1.24 (a) (sum, integral).
Exercise 1.1.24 (b) (Monotonicity of the piecewise constant integral)
Exercise 1.1.24 (c) (Indicator functions)
Exercise 1.1.24 (c) (Piecewise constant integral of indicator functions)
Exercise 1.1.24 (Uniqueness)
Exercise 1.1.25 (Area interpretation, region under the graph)
Exercise 1.1.25 (Area interpretation, region below the graph)
Exercise 1.1.25 (Area interpretation, integrability criterion)
Exercise 1.1.25 (Area interpretation, integral as a difference of measures)