Introduction to Measure Theory, Section 1.2.1: Properties of Lebesgue outer measure #
A companion to (the introduction to) Section 1.2.1 of the book "An introduction to Measure Theory".
Exercise 1.2.3(i) (Empty set)
Exercise 1.2.3(ii) (Monotonicity)
Lebesgue outer measure is non-negative. Since it's the sInf of sums of box volumes, which are all ≥ 0, the result is ≥ 0.
Exercise 1.2.3(iii) (Countable subadditivity)
Finite subadditivity
Extract the left and right endpoints of a BoundedInterval. Returns (a, b) where a is the left endpoint and b is the right endpoint.
Equations
Instances For
Bisect a BoundedInterval into left and right halves using closed intervals. Left half: [a, m], Right half: [m, b], where m is the midpoint. Using closed intervals ensures coverage (union equals original) while maintaining measure-theoretic properties (overlap has measure zero).
Equations
Instances For
The left half of bisection has half the original length
The right half of bisection has half the original length
Bisecting preserves total length
The left endpoint of bisect.fst is I.a
The left endpoint of bisect.snd is I.midpoint
The midpoint is in the first half of bisection (as the right endpoint of Icc)
The midpoint is in the second half of bisection (as the left endpoint of Icc)
A point is in I.bisect.snd iff it's in I.toSet and at or above the midpoint
A point is in I.bisect.fst iff it's in I.toSet and below the midpoint
For any nonempty interval and target value less than the length, we can find two points in the interval with separation exceeding the target. This is the key density fact: achievable differences are dense in [0, length].
The diameter of a nonempty box equals the diagonal length √(∑ |side i|ₗ²). This is the key fact: the supremum of pairwise distances equals the diagonal. For closed intervals, the diagonal is achieved at corners. For open intervals, the diagonal is the limit (supremum) of achievable distances.
If B.diameter < set_dist E F, then B cannot intersect both E and F. This is the core geometric fact needed for finite additivity of separated sets.
Decidable equality for boxes, needed for Finset operations
Subdivide a box by bisecting each coordinate axis, producing 2^d sub-boxes. Each sub-box is formed by taking one half-interval from each coordinate. We use Finset.univ (all possible d-bit patterns) to enumerate all 2^d combinations.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Each sub-box of a subdivision has diameter at most the original diameter divided by √2. This follows because each side is halved, reducing the diagonal by a factor related to √2. Note: The hypothesis that B is nonempty is necessary because bisection always creates closed intervals, which can turn degenerate open intervals (Ioo a a) into nonempty singletons.
Subdivide a box k times, producing a Finset of boxes. After k iterations, each original box becomes up to 2^(d*k) sub-boxes.
Equations
- B.subdivide_iter 0 = {B}
- B.subdivide_iter k.succ = (B.subdivide_iter k).biUnion Box.subdivide
Instances For
All sides in subdivide_iter for k ≥ 1 are Icc intervals
A nonempty box remains nonempty after k iterations of subdivision
Grid alignment: sides in subdivide_iter start at grid positions. Requires nonempty box to ensure sides have a ≤ b (backwards intervals break the formula).
Volume is preserved through iterative subdivision
Number of subdivisions needed to get diameter below threshold r. Each subdivision reduces diameter by factor of √2, so after k iterations: diameter ≤ original_diameter / (√2)^k We need (√2)^k > diameter/r, i.e., k > log(diameter/r) / log(√2) = 2·log₂(diameter/r).
Equations
Instances For
After iter_count subdivisions, all sub-boxes have diameter < r
Subdivided boxes cover the original box: any point in B.toSet is contained in some box in subdivide_iter B k.
Any ℕ-indexed cover gives an upper bound on outer measure. Follows directly from the infimum definition.
Upper bound from finset-indexed cover: if a set is covered by ⋃ n, ⋃ B ∈ I n, B.toSet where each I n is a finite set of boxes, then the outer measure is bounded by the sum of volumes.
Proof strategy:
- The sigma type (n : ℕ) × ↑(I n) is countable (and hence encodable)
- Use Encodable instance to define S : ℕ → Box d via decoding
- Pad with zero-volume box for invalid decodings
- Apply le_of_nat_cover and bound the enumerated sum
For any set with finite outer measure, we can find a cover whose volume is within ε of the outer measure. This follows from the definition of outer measure as an infimum.
Lemma 1.2.5 (Finite additivity for separated sets). If E and F are separated (dist(E,F) > 0), then m*(E ∪ F) = m*(E) + m*(F).
Proof strategy (from textbook):
- Direction ≤: Use subadditivity
- Direction ≥: Show m*(E ∪ F) ≥ m*(E) + m*(F)
- If m*(E ∪ F) = ⊤, trivial
- If m*(E ∪ F) < ⊤:
- Get epsilon-close cover of E ∪ F
- Refine cover so all boxes have diameter < dist(E,F)
- Partition boxes into E-intersecting and F-intersecting (disjoint by geometric separation)
- Sum volumes separately: m*(E) + m*(F) ≤ sum of refined cover ≤ m*(E ∪ F) + ε
- Take ε → 0 to conclude
Sum bound from partition filter: if volumes B' satisfy B.vol ≤ B'.vol + ε, then summing over P_nonempty gives total bound with card * ε term.
Shrunk boxes B' inherit injectivity from parent boxes' disjointness when B' are nonempty.
Every bounded interval (Ioo, Icc, Ioc, Ico) is a bounded set
Every box is bounded (product of bounded intervals)
Elementary sets are bounded (finite union of bounded boxes)
Elementary measure of empty set is zero (handles proof term mismatch)
Finite indexed union of boxes is elementary (uses IsElementary.union' which takes a finset of sets)
For any box cover of an elementary set, the sum of volumes bounds the measure from below. This is the key step using Heine-Borel compactness: inflate boxes to open cover, extract finite subcover of compact approximation, use finite subadditivity.
Direction 1: Elementary measure is a lower bound for outer measure (Partition gives a finite cover, outer measure is infimum over covers) Uses measure_le_cover_sum for the core Heine-Borel argument.
Direction 2: Outer measure is bounded by elementary measure (Uses: m*(E) ≤ J*(E) for bounded E, and J*(E) ≤ hE.measure for elementary E)
Dimension 0 case of Lemma 1.2.6
Lemma 1.2.6 (Outer measure of elementary sets). For any elementary set E, Lebesgue outer measure equals elementary measure.
Cantor's theorem
The distance on EuclideanSpace' 1 equals the distance in ℝ via equiv_Real
Preimage of closed interval [a,b] under equiv_Real equals the corresponding 1D box
Lebesgue outer measure of a closed interval [a,b] equals b - a
Lebesgue measure of an open interval ≤ length (when a < b)
Monotonicity of Jordan outer measure, for two bounded sets
An enumeration of rationals in [0,1] as real numbers
Equations
- Remark_1_2_8.q n = ↑(Remark_1_2_8.q_enum n)
Instances For
The counterexample set U: union of open intervals around rationals in [0,1]. U(ε) = ⋃_{n:ℕ} (q_n - ε/2^{n+1}, q_n + ε/2^{n+1})
Equations
- Remark_1_2_8.U_real ε = ⋃ (n : ℕ), Set.Ioo (Remark_1_2_8.q n - ε / 2 ^ (n + 1)) (Remark_1_2_8.q n + ε / 2 ^ (n + 1))
Instances For
The set U lifted to EuclideanSpace' 1
Equations
Instances For
U_real is open (union of open intervals)
Unit interval [0,1] as a BoundedInterval
Equations
Instances For
Unit box in 1D: [0,1] lifted to Box 1
Instances For
Unit interval as the preimage of [0,1] equals unit box
Jordan outer measure of unit box is 1
Closure of U contains the preimage of [0,1]
Jordan outer measure of U ≥ 1. Proof uses: density of ℚ → closure(U) ⊇ [0,1] → Jordan_outer(U) ≥ Jordan_outer([0,1]) = 1.
Lebesgue outer measure of U ≤ 2ε (countable subadditivity). U = ⋃_n (q_n - ε/2^{n+1}, q_n + ε/2^{n+1}), each interval has length 2ε/2^{n+1}, and ∑ 2ε/2^{n+1} = 2ε.
Proof structure:
- Express U as countable union: U = ⋃_n E_n
- By countable subadditivity (union_le): m*(U) ≤ ∑' m*(E_n)
- Each component bounded: m*(E_n) ≤ 2ε/2^{n+1} (component_lebesgue_le)
- Geometric sum: ∑' 2ε/2^{n+1} = 2ε (tsum_interval_lengths)
- EReal tsum comparison: ∑' m*(E_n) ≤ ∑' (2ε/2^{n+1}) = 2ε
Measure is additive on unions of elementary sets with disjoint interiors: μ(E ∪ F) = μ(E) + μ(F).
When boxes are pairwise almost-disjoint, restricting to the first n boxes preserves this.
When boxes are pairwise almost-disjoint, any of the first n is almost-disjoint from the last.
For any BoundedInterval, interior (closure I) ⊆ closure (interior I). This holds because all interval types (Ioo, Icc, Ioc, Ico) have closure = Icc and interior = Ioo, so interior(closure(I)) = Ioo ⊆ Icc = closure(interior(I)).
For any box, the interior of its frontier is empty. This holds regardless of whether the box uses closed intervals (Icc), open intervals (Ioo), or half-open intervals, because the frontier of a box is a lower-dimensional set (union of faces).
The interior of a finite union of box frontiers is empty. This is because each box frontier
is a closed set with empty interior, and we can apply interior_union_isClosed_of_interior_empty
iteratively.
Restricting pairwise almost-disjoint from ℕ to Fin N preserves the property.
For nonneg Real sequences, if all partial sums are ≤ c (an EReal bound), then tsum ≤ c.
This is the converse direction of EReal.finset_sum_le_tsum.
Lemma 1.2.9 (Outer measure of countable unions of almost disjoint boxes). For pairwise almost disjoint boxes, m*(⋃ Bᵢ) = ∑' m*(Bᵢ) = ∑' |Bᵢ|.
Remark 1.2.10
Exercise 1.2.5: For any set that equals a countable union of almost disjoint boxes, the Lebesgue outer measure equals the Jordan inner measure.
Equations
- B.IsDyadicAtScale n = ∃ (a : Fin d → ℤ), B = DyadicCube n a
Instances For
Equations
- B.IsDyadic = ∃ (n : ℕ), B.IsDyadicAtScale ↑n
Instances For
Dyadic cubes at scale n ≥ 0 have sidelength at most 1.
Dyadic cubes at the same scale with different indices have disjoint interiors.
The dyadic cubes at scale n cover all of ℝᵈ.
Dyadic cubes at the same scale are pairwise almost disjoint.
Two dyadic cubes are either almost disjoint or one contains the other.
For any point x in an open set E, there exists a dyadic cube containing x with the cube contained in E.
For a point x, the unique dyadic cube at scale n containing x.
Equations
- dyadicCubeContaining n x = DyadicCube n fun (i : Fin d) => ⌊x i * 2 ^ n⌋
Instances For
The dyadic cube containing x at scale n indeed contains x.
The interior of a dyadic cube is nonempty.
At the same scale, dyadic cubes with different indices cannot have one contained in the other (since containment would imply empty interior for one).
Lemma 1.2.11: Every open set is a countable union of almost disjoint dyadic cubes. Note: every dyadic cube is nonempty Proof outline: 1. For each x ∈ E, by exists_dyadic_cube_subset, there exists a dyadic cube containing x ⊆ E 2. The set of all such dyadic cubes is countable (subset of ℕ × (Fin d → ℤ)) 3. Take maximal cubes (not strictly contained in another cube in the collection) 4. By DyadicCube.nesting, distinct maximal cubes are almost disjoint 5. E equals the union of these maximal cubes
Lemma 1.2.12 (Outer regularity). Proof has not been formalized yet.
For any set E and ε > 0, there exists an open U ⊇ E with m*(U) ≤ m*(E) + ε. This follows from outer regularity (Lemma 1.2.12).
Compact sets in Euclidean space have finite Lebesgue outer measure.