- Ioo (a b : ℝ) : BoundedInterval
- Icc (a b : ℝ) : BoundedInterval
- Ioc (a b : ℝ) : BoundedInterval
- Ico (a b : ℝ) : BoundedInterval
Instances For
Coerces a BoundedInterval to its underlying set of real numbers.
Equations
- ↑(BoundedInterval.Ioo a b) = Set.Ioo a b
- ↑(BoundedInterval.Icc a b) = Set.Icc a b
- ↑(BoundedInterval.Ioc a b) = Set.Ioc a b
- ↑(BoundedInterval.Ico a b) = Set.Ico a b
Instances For
The empty BoundedInterval is represented as the degenerate open interval (0,0).
Equations
- BoundedInterval.instEmpty = { emptyCollection := BoundedInterval.Ioo 0 0 }
The empty BoundedInterval coerces to the empty set.
This is to make Finsets of BoundedIntervals work properly
Simp lemmas for coercing each BoundedInterval constructor to Set ℝ.
Some helpful general lemmas about BoundedInterval
BoundedInterval.Ioo cannot equal BoundedInterval.Icc
BoundedInterval.Ioo cannot equal BoundedInterval.Ioc
BoundedInterval.Ioo cannot equal BoundedInterval.Ico
BoundedInterval.Ioc cannot equal BoundedInterval.Ico
BoundedInterval.Icc cannot equal BoundedInterval.Ioc
BoundedInterval.Icc cannot equal BoundedInterval.Ico
BoundedInterval.toSet is injective for non-empty intervals
If x < sSup X, then there exists z ∈ X with x < z
If sInf X < x, then there exists w ∈ X with w ≤ x
A set of reals is bounded and order-connected if and only if it equals some bounded interval.
The intersection of two bounded intervals is again a bounded interval.
Instance enabling ∩ notation for BoundedIntervals.
Equations
- BoundedInterval.instInter = { inter := fun (I J : BoundedInterval) => ⋯.choose }
The intersection of BoundedIntervals equals the set-theoretic intersection.
Instance enabling ∈ notation for membership in BoundedInterval.
Equations
- BoundedInterval.instMembership = { mem := fun (I : BoundedInterval) (x : ℝ) => x ∈ ↑I }
Membership in BoundedInterval is equivalent to membership in its underlying set.
Instance enabling ⊆ notation for BoundedIntervals.
Equations
- BoundedInterval.instSubset = { Subset := fun (I J : BoundedInterval) => ∀ x ∈ I, x ∈ J }
Subset of BoundedIntervals is equivalent to subset of their underlying sets.
Extracts the left endpoint of a bounded interval.
Equations
- (BoundedInterval.Ioo a b).a = a
- (BoundedInterval.Icc a b).a = a
- (BoundedInterval.Ioc a b).a = a
- (BoundedInterval.Ico a b).a = a
Instances For
Extracts the right endpoint of a bounded interval.
Equations
- (BoundedInterval.Ioo a b).b = b
- (BoundedInterval.Icc a b).b = b
- (BoundedInterval.Ioc a b).b = b
- (BoundedInterval.Ico a b).b = b
Instances For
Any nonempty BoundedInterval has a ≤ b
Any bounded interval is contained in the closed interval with the same endpoints.
The open interval with the same endpoints is contained in any bounded interval.
Definition 1.1.1 (boxes): The length of an interval is max(b - a, 0).
Instances For
Length is always non-negative
Using ||ₗ subscript here to not override ||
Equations
- One or more equations did not get rendered due to their size.
Instances For
Lifts a 1-dimensional interval to a 1-dimensional box.
Instances For
Coercing to Box 1 is injective: equal boxes implies equal intervals.
A 1D box's set equals the image of the interval under the Real ≃ EuclideanSpace' 1 equivalence.
Using ||ᵥ subscript here to not override ||
Equations
- One or more equations did not get rendered due to their size.
Instances For
A box with all degenerate sides [x, x] has volume 0 when d > 0
The volume of a 1D box equals the length of the underlying interval.
A set is elementary if it can be expressed as a finite union of boxes.
Equations
- IsElementary E = ∃ (S : Finset (Box d)), E = ⋃ B ∈ S, ↑B
Instances For
Every box is an elementary set (witnessed by the singleton finset).
Exercise 1.1.1 (Boolean closure): The union of two elementary sets is elementary.
The union of a finset of elementary sets is elementary.
Exercise 1.1.1 (Boolean closure): The intersection of two elementary sets is elementary.
Exercise 1.1.1 (Boolean closure): The set difference of two elementary sets is elementary.
Exercise 1.1.1 (Boolean closure): The symmetric difference of two elementary sets is elementary.
Exercise 1.1.1 (Boolean closure): Translation of an elementary set is elementary.
A sublemma for proving Lemma 1.1.2(i): Any finset of intervals admits a common refinement into pairwise disjoint sub-intervals.
Every elementary set can be partitioned into pairwise disjoint boxes.
Exercise for Lemma 1.1.2(ii): Interval length equals the limit of lattice point counts scaled by 1/N.
Lattice points in a box decompose as a product of lattice points in each interval side.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Helper lemma for Lemma 1.1.2(ii): Box volume equals the limit of lattice point counts scaled by N^(-d).
Lemma 1.1.2(ii), helper lemma: Sum of volumes equals limit of lattice counts over a disjoint union.
Lemma 1.1.2(ii): Two disjoint partitions of the same set have equal sums of volumes.
The elementary measure of a set, defined as the sum of volumes over a disjoint partition.
Instances For
The measure equals the sum of volumes for any disjoint box partition of the set.
Exercise 1.1.2: give an alternate proof of this proposition by showing that
the two partitions T₁, T₂ admit a mutual refinement into boxes arising from
taking Cartesian products of elements from finite collections of disjoint intervals.
Elementary measure is always non-negative.
Measure is additive on disjoint elementary sets: μ(E ∪ F) = μ(E) + μ(F).
Two different proofs that a set is elementary yield the same measure.
If two elementary sets are equal, their measures are equal.
Measure of a sum over insert a S' equals the measure of a plus the measure of the sum over S'.
Measure is additive on pairwise disjoint finsets of elementary sets.
The empty set has measure zero.
Elementary measure is monotone: if E ⊆ F then μ(E) ≤ μ(F).
Subadditivity of measure on unions: μ(E ∪ F) ≤ μ(E) + μ(F).
Subadditivity of measure on finset unions: μ(⋃ S) ≤ ∑ μ(E) for E ∈ S.
Helper: Translation preserves interval length
Translation is injective on sets: if S₁ + {x} = S₂ + {x}, then S₁ = S₂
Elementary measure is translation-invariant: μ(E + {x}) = μ(E).
Exercise 1.1.3 (uniqueness of elementary measure): Any non-negative, additive, translation-invariant function on elementary sets is a scalar multiple of the standard elementary measure.
The d-dimensional unit cube (0,1]^d.
Equations
- Box.unit_cube d = { side := fun (x : Fin d) => BoundedInterval.Ioc 0 1 }
Instances For
Any measure satisfying normalization m'(unit cube) = 1 must equal the standard elementary measure.
The Cartesian product of two boxes is a box in the sum dimension.
Equations
Instances For
Exercise 1.1.4: The Cartesian product of two elementary sets is elementary.
Measure is multiplicative on products: μ(E₁ × E₂) = μ(E₁) * μ(E₂).