The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V18. Measure and integration

Mathlib.Analysis.BoxIntegral.Partition.Filter

67 declarations. Mathlib docs · Source

Filters used in box-based integrals

First we define a structure BoxIntegral.IntegrationParams. This structure will be used as an argument in the definition of BoxIntegral.integral in order to use the same definition for a few well-known definitions of integrals based on partitions of a rectangular box into subboxes (Riemann integral, Henstock-Kurzweil integral, and McShane integral).

This structure holds three Boolean values (see below), and encodes eight different sets of parameters; only four of these values are used somewhere in mathlib4. Three of them correspond to the integration theories listed above, and one is a generalization of the one-dimensional Henstock-Kurzweil integral such that the divergence theorem works without additional integrability assumptions.

Finally, for each set of parameters l : BoxIntegral.IntegrationParams and a rectangular box I : BoxIntegral.Box ι, we define several Filters that will be used either in the definition of the corresponding integral, or in the proofs of its properties. We equip BoxIntegral.IntegrationParams with a BoundedOrder structure such that larger IntegrationParams produce larger filters.

Main definitions

Integration parameters

The structure BoxIntegral.IntegrationParams has 3 Boolean fields with the following meaning:

  • bRiemann: the value true means that the filter corresponds to a Riemann-style integral, i.e. in the definition of integrability we require a constant upper estimate r on the size of boxes of a tagged partition; the value false means that the estimate may depend on the position of the tag.

  • bHenstock: the value true means that we require that each tag belongs to its own closed box; the value false means that we only require that tags belong to the ambient box.

  • bDistortion: the value true means that r can depend on the maximal ratio of sides of the same box of a partition. Presence of this case make quite a few proofs harder but we can prove the divergence theorem only for the filter BoxIntegral.IntegrationParams.GP = ⊥ = {bRiemann := false, bHenstock := true, bDistortion := true}.

Well-known sets of parameters

Out of eight possible values of BoxIntegral.IntegrationParams, the following four are used in the library.

  • BoxIntegral.IntegrationParams.Riemann (bRiemann = true, bHenstock = true, bDistortion = false): this value corresponds to the Riemann integral; in the corresponding filter, we require that the diameters of all boxes J of a tagged partition are bounded from above by a constant upper estimate that may not depend on the geometry of J, and each tag belongs to the corresponding closed box.

  • BoxIntegral.IntegrationParams.Henstock (bRiemann = false, bHenstock = true, bDistortion = false): this value corresponds to the most natural generalization of Henstock-Kurzweil integral to higher dimension; the only (but important!) difference between this theory and Riemann integral is that instead of a constant upper estimate on the size of all boxes of a partition, we require that the partition is subordinate to a possibly discontinuous function r : (ι → ℝ) → {x : ℝ | 0 < x}, i.e. each box J is included in a closed ball with center π.tag J and radius r J.

  • BoxIntegral.IntegrationParams.McShane (bRiemann = false, bHenstock = false, bDistortion = false): this value corresponds to the McShane integral; the only difference with the Henstock integral is that we allow tags to be outside of their boxes; the tags still have to be in the ambient closed box, and the partition still has to be subordinate to a function.

  • BoxIntegral.IntegrationParams.GP = ⊥ (bRiemann = false, bHenstock = true, bDistortion = true): this is the least integration theory in our list, i.e., all functions integrable in any other theory is integrable in this one as well. This is a non-standard generalization of the Henstock-Kurzweil integral to higher dimension. In dimension one, it generates the same filter as Henstock. In higher dimension, this generalization defines an integration theory such that the divergence of any Fréchet differentiable function f is integrable, and its integral is equal to the sum of integrals of f over the faces of the box, taken with appropriate signs.

    A function f is GP-integrable if for any ε > 0 and c : ℝ≥0 there exists r : (ι → ℝ) → {x : ℝ | 0 < x} such that for any tagged partition π subordinate to r, if each tag belongs to the corresponding closed box and for each box J ∈ π, the maximal ratio of its sides is less than or equal to c, then the integral sum of f over π is ε-close to the integral.

Filters and predicates on TaggedPrepartition I

For each value of IntegrationParams and a rectangular box I, we define a few filters on TaggedPrepartition I. First, we define a predicate

structure BoxIntegral.IntegrationParams.MemBaseSet (l : BoxIntegral.IntegrationParams)
  (I : BoxIntegral.Box ι) (c : ℝ≥0) (r : (ι → ℝ) → Ioi (0 : ℝ))
  (π : BoxIntegral.TaggedPrepartition I) : Prop where

This predicate says that

  • if l.bHenstock, then π is a Henstock prepartition, i.e. each tag belongs to the corresponding closed box;
  • π is subordinate to r;
  • if l.bDistortion, then the distortion of each box in π is less than or equal to c;
  • if l.bDistortion, then there exists a prepartition π' with distortion ≤ c that covers exactly I \ π.iUnion.

The last condition is always true for c > 1, see TODO section for more details.

Then we define a predicate BoxIntegral.IntegrationParams.RCond on functions r : (ι → ℝ) → {x : ℝ | 0 < x}. If l.bRiemann, then this predicate requires r to be a constant function, otherwise it imposes no restrictions on r. We introduce this definition to prove a few dot-notation lemmas: e.g., BoxIntegral.IntegrationParams.RCond.min says that the pointwise minimum of two functions that satisfy this condition satisfies this condition as well.

Then we define four filters on BoxIntegral.TaggedPrepartition I.

  • BoxIntegral.IntegrationParams.toFilterDistortion: an auxiliary filter that takes parameters (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι) (c : ℝ≥0) and returns the filter generated by all sets {π | MemBaseSet l I c r π}, where r is a function satisfying the predicate BoxIntegral.IntegrationParams.RCond l;

  • BoxIntegral.IntegrationParams.toFilter l I: the supremum of l.toFilterDistortion I c over all c : ℝ≥0;

  • BoxIntegral.IntegrationParams.toFilterDistortioniUnion l I c π₀, where π₀ is a prepartition of I: the infimum of l.toFilterDistortion I c and the principal filter generated by {π | π.iUnion = π₀.iUnion};

  • BoxIntegral.IntegrationParams.toFilteriUnion l I π₀: the supremum of l.toFilterDistortioniUnion l I c π₀ over all c : ℝ≥0. This is the filter (in the case π₀ = ⊤ is the one-box partition of I) used in the definition of the integral of a function over a box.

Implementation notes

  • Later we define the integral of a function over a rectangular box as the limit (if it exists) of the integral sums along BoxIntegral.IntegrationParams.toFilteriUnion l I ⊤. While it is possible to define the integral with a general filter on BoxIntegral.TaggedPrepartition I as a parameter, many lemmas (e.g., Sacks-Henstock lemma and most results about integrability of functions) require the filter to have a predictable structure. So, instead of adding assumptions about the filter here and there, we define this auxiliary type that can encode all integration theories we need in practice.

  • While the definition of the integral only uses the filter BoxIntegral.IntegrationParams.toFilteriUnion l I ⊤ and partitions of a box, some lemmas (e.g., the Henstock-Sacks lemmas) are best formulated in terms of the predicate MemBaseSet and other filters defined above.

  • We use Bool instead of Prop for the fields of IntegrationParams in order to have decidable equality and inequalities.

TODO

Currently, BoxIntegral.IntegrationParams.MemBaseSet explicitly requires that there exists a partition of the complement I \ π.iUnion with distortion ≤ c. For c > 1, this condition is always true but the proof of this fact requires more API about BoxIntegral.Prepartition.splitMany. We should formalize this fact, then either require c > 1 everywhere, or replace ≤ c with < c so that we automatically get c > 1 for a non-trivial prepartition (and consider the special case π = ⊥ separately if needed).

Tags

integral, rectangular box, partition, filter

theorem BoxIntegral.Prepartition.disjUnion.congr_simp E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π₁ π₁_1 : BoxIntegral.Prepartition I) (e_π₁ : π₁ = π₁_1)
  (π₂ π₂_1 : BoxIntegral.Prepartition I) (e_π₂ : π₂ = π₂_1) (h : Disjoint π₁.iUnion π₂.iUnion),
  π₁.disjUnion π₂ h = π₁_1.disjUnion π₂_1 ⋯

theorem BoxIntegral.Prepartition.compl.congr_simp E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} [inst : Finite ι] (π π_1 : BoxIntegral.Prepartition I),
  π = π_1 → π.compl = π_1.compl

theorem BoxIntegral.TaggedPrepartition.embedBox.congr_simp E1 #

∀ {ι : Type u_1} (I J : BoxIntegral.Box ι) (h : I ≤ J),
  BoxIntegral.TaggedPrepartition.embedBox I J h = BoxIntegral.TaggedPrepartition.embedBox I J h

theorem BoxIntegral.IntegrationParams.mk.injEq E0 #

∀ (bRiemann bHenstock bDistortion bRiemann_1 bHenstock_1 bDistortion_1 : Bool),
  ({ bRiemann := bRiemann, bHenstock := bHenstock, bDistortion := bDistortion } =
      { bRiemann := bRiemann_1, bHenstock := bHenstock_1, bDistortion := bDistortion_1 }) =
    (bRiemann = bRiemann_1 ∧ bHenstock = bHenstock_1 ∧ bDistortion = bDistortion_1)

theorem BoxIntegral.IntegrationParams.mk.inj E1 #

∀ {bRiemann bHenstock bDistortion bRiemann_1 bHenstock_1 bDistortion_1 : Bool},
  { bRiemann := bRiemann, bHenstock := bHenstock, bDistortion := bDistortion } =
      { bRiemann := bRiemann_1, bHenstock := bHenstock_1, bDistortion := bDistortion_1 } →
    bRiemann = bRiemann_1 ∧ bHenstock = bHenstock_1 ∧ bDistortion = bDistortion_1

def BoxIntegral.IntegrationParams.ctorIdx E1 #

BoxIntegral.IntegrationParams → ℕ

theorem BoxIntegral.TaggedPrepartition.unionComplToSubordinate.congr_simp E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {I : BoxIntegral.Box ι} (π₁ π₁_1 : BoxIntegral.TaggedPrepartition I)
  (e_π₁ : π₁ = π₁_1) (π₂ π₂_1 : BoxIntegral.Prepartition I) (e_π₂ : π₂ = π₂_1) (hU : π₂.iUnion = ↑I \ π₁.iUnion)
  (r r_1 : (ι → ℝ) → ↑(Set.Ioi 0)),
  r = r_1 → π₁.unionComplToSubordinate π₂ hU r = π₁_1.unionComplToSubordinate π₂_1 ⋯ r_1

structure BoxIntegral.IntegrationParams E1 #

Type

An IntegrationParams is a structure holding 3 Boolean values used to define a filter to be used in the definition of a box-integrable function.

theorem BoxIntegral.IntegrationParams.ext E1 #

∀ {x y : BoxIntegral.IntegrationParams},
  x.bRiemann = y.bRiemann → x.bHenstock = y.bHenstock → x.bDistortion = y.bDistortion → x = y

theorem BoxIntegral.IntegrationParams.ext_iff E0 #

∀ {x y : BoxIntegral.IntegrationParams},
  x = y ↔ x.bRiemann = y.bRiemann ∧ x.bHenstock = y.bHenstock ∧ x.bDistortion = y.bDistortion

ctor BoxIntegral.IntegrationParams.mk E0 #

Bool → Bool → Bool → BoxIntegral.IntegrationParams

abbrev BoxIntegral.IntegrationParams.bRiemann E1 #

BoxIntegral.IntegrationParams → Bool

true if the filter corresponds to a Riemann-style integral, i.e. in the definition of integrability we require a constant upper estimate r on the size of boxes of a tagged partition; the value false means that the estimate may depend on the position of the tag.

abbrev BoxIntegral.IntegrationParams.bHenstock E1 #

BoxIntegral.IntegrationParams → Bool

true if we require that each tag belongs to its own closed box; the value false means that we only require that tags belong to the ambient box.

abbrev BoxIntegral.IntegrationParams.bDistortion E1 #

BoxIntegral.IntegrationParams → Bool

true if r can depend on the maximal ratio of sides of the same box of a partition. Presence of this case makes quite a few proofs harder but we can prove the divergence theorem only for the filter BoxIntegral.IntegrationParams.GP = ⊥ = {bRiemann := false, bHenstock := true, bDistortion := true}.

def BoxIntegral.IntegrationParams.equivProd E1 #

BoxIntegral.IntegrationParams ≃ Bool × Boolᵒᵈ × Boolᵒᵈ

Auxiliary equivalence with a product type used to lift an order.

instance BoxIntegral.IntegrationParams.instPartialOrder E0 #

PartialOrder BoxIntegral.IntegrationParams

def BoxIntegral.IntegrationParams.isoProd E1 #

BoxIntegral.IntegrationParams ≃o Bool × Boolᵒᵈ × Boolᵒᵈ

Auxiliary OrderIso with a product type used to lift a BoundedOrder structure.

instance BoxIntegral.IntegrationParams.instBoundedOrder E0 #

BoundedOrder BoxIntegral.IntegrationParams

instance BoxIntegral.IntegrationParams.instInhabited E0 #

Inhabited BoxIntegral.IntegrationParams

The value BoxIntegral.IntegrationParams.GP = ⊥ (bRiemann = false, bHenstock = true, bDistortion = true) corresponds to a generalization of the Henstock integral such that the Divergence theorem holds true without additional integrability assumptions, see the module docstring for details.

instance BoxIntegral.IntegrationParams.instDecidableLE E0 #

DecidableLE BoxIntegral.IntegrationParams

instance BoxIntegral.IntegrationParams.instDecidableEq E0 #

DecidableEq BoxIntegral.IntegrationParams

def BoxIntegral.IntegrationParams.Riemann E1 #

BoxIntegral.IntegrationParams

The BoxIntegral.IntegrationParams corresponding to the Riemann integral. In the corresponding filter, we require that the diameters of all boxes J of a tagged partition are bounded from above by a constant upper estimate that may not depend on the geometry of J, and each tag belongs to the corresponding closed box.

def BoxIntegral.IntegrationParams.Henstock E1 #

BoxIntegral.IntegrationParams

The BoxIntegral.IntegrationParams corresponding to the Henstock-Kurzweil integral. In the corresponding filter, we require that the tagged partition is subordinate to a (possibly, discontinuous) positive function r and each tag belongs to the corresponding closed box.

def BoxIntegral.IntegrationParams.McShane E1 #

BoxIntegral.IntegrationParams

The BoxIntegral.IntegrationParams corresponding to the McShane integral. In the corresponding filter, we require that the tagged partition is subordinate to a (possibly, discontinuous) positive function r; the tags may be outside of the corresponding closed box (but still inside the ambient closed box I.Icc).

def BoxIntegral.IntegrationParams.GP E1 #

BoxIntegral.IntegrationParams

The BoxIntegral.IntegrationParams corresponding to the generalized Perron integral. In the corresponding filter, we require that the tagged partition is subordinate to a (possibly, discontinuous) positive function r and each tag belongs to the corresponding closed box. We also require an upper estimate on the distortion of all boxes of the partition.

theorem BoxIntegral.IntegrationParams.henstock_le_riemann E1 #

BoxIntegral.IntegrationParams.Henstock ≤ BoxIntegral.IntegrationParams.Riemann

theorem BoxIntegral.IntegrationParams.henstock_le_mcShane E1 #

BoxIntegral.IntegrationParams.Henstock ≤ BoxIntegral.IntegrationParams.McShane

theorem BoxIntegral.IntegrationParams.gp_le E1 #

∀ {l : BoxIntegral.IntegrationParams}, BoxIntegral.IntegrationParams.GP ≤ l

structure BoxIntegral.IntegrationParams.MemBaseSet E1 #

{ι : Type u_1} →
  [Fintype ι] →
    BoxIntegral.IntegrationParams →
      (I : BoxIntegral.Box ι) → NNReal → ((ι → ℝ) → ↑(Set.Ioi 0)) → BoxIntegral.TaggedPrepartition I → Prop

The predicate corresponding to a base set of the filter defined by an IntegrationParams. It says that

  • if l.bHenstock, then π is a Henstock prepartition, i.e. each tag belongs to the corresponding closed box;
  • π is subordinate to r;
  • if l.bDistortion, then the distortion of each box in π is less than or equal to c;
  • if l.bDistortion, then there exists a prepartition π' with distortion ≤ c that covers exactly I \ π.iUnion.

The last condition is automatically verified for partitions, and is used in the proof of the Sacks-Henstock inequality to compare two prepartitions covering the same part of the box.

It is also automatically satisfied for any c > 1, see TODO section of the module docstring for details.

ctor BoxIntegral.IntegrationParams.MemBaseSet.mk E0 #

∀ {ι : Type u_1} [inst : Fintype ι] {l : BoxIntegral.IntegrationParams} {I : BoxIntegral.Box ι} {c : NNReal}
  {r : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I},
  π.IsSubordinate r →
    (l.bHenstock = true → π.IsHenstock) →
      (l.bDistortion = true → π.distortion ≤ c) →
        (l.bDistortion = true → ∃ π', π'.iUnion = ↑I \ π.iUnion ∧ π'.distortion ≤ c) → l.MemBaseSet I c r π

theorem BoxIntegral.IntegrationParams.MemBaseSet.isSubordinate E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {l : BoxIntegral.IntegrationParams} {I : BoxIntegral.Box ι} {c : NNReal}
  {r : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I}, l.MemBaseSet I c r π → π.IsSubordinate r

theorem BoxIntegral.IntegrationParams.MemBaseSet.isHenstock E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {l : BoxIntegral.IntegrationParams} {I : BoxIntegral.Box ι} {c : NNReal}
  {r : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I},
  l.MemBaseSet I c r π → l.bHenstock = true → π.IsHenstock

theorem BoxIntegral.IntegrationParams.MemBaseSet.distortion_le E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {l : BoxIntegral.IntegrationParams} {I : BoxIntegral.Box ι} {c : NNReal}
  {r : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I},
  l.MemBaseSet I c r π → l.bDistortion = true → π.distortion ≤ c

theorem BoxIntegral.IntegrationParams.MemBaseSet.exists_compl E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {l : BoxIntegral.IntegrationParams} {I : BoxIntegral.Box ι} {c : NNReal}
  {r : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I},
  l.MemBaseSet I c r π → l.bDistortion = true → ∃ π', π'.iUnion = ↑I \ π.iUnion ∧ π'.distortion ≤ c

def BoxIntegral.IntegrationParams.RCond E1 #

{ι : Type u_2} → BoxIntegral.IntegrationParams → ((ι → ℝ) → ↑(Set.Ioi 0)) → Prop

A predicate saying that in case l.bRiemann = true, the function r is a constant.

def BoxIntegral.IntegrationParams.toFilterDistortion E1 #

{ι : Type u_1} →
  [Fintype ι] →
    BoxIntegral.IntegrationParams → (I : BoxIntegral.Box ι) → NNReal → Filter (BoxIntegral.TaggedPrepartition I)

A set s : Set (TaggedPrepartition I) belongs to l.toFilterDistortion I c if there exists a function r : ℝⁿ → (0, ∞) (or a constant r if l.bRiemann = true) such that s contains each prepartition π such that l.MemBaseSet I c r π.

def BoxIntegral.IntegrationParams.toFilter E1 #

{ι : Type u_1} →
  [Fintype ι] → BoxIntegral.IntegrationParams → (I : BoxIntegral.Box ι) → Filter (BoxIntegral.TaggedPrepartition I)

A set s : Set (TaggedPrepartition I) belongs to l.toFilter I if for any c : ℝ≥0 there exists a function r : ℝⁿ → (0, ∞) (or a constant r if l.bRiemann = true) such that s contains each prepartition π such that l.MemBaseSet I c r π.

def BoxIntegral.IntegrationParams.toFilterDistortioniUnion E1 #

{ι : Type u_1} →
  [Fintype ι] →
    BoxIntegral.IntegrationParams →
      (I : BoxIntegral.Box ι) → NNReal → BoxIntegral.Prepartition I → Filter (BoxIntegral.TaggedPrepartition I)

A set s : Set (TaggedPrepartition I) belongs to l.toFilterDistortioniUnion I c π₀ if there exists a function r : ℝⁿ → (0, ∞) (or a constant r if l.bRiemann = true) such that s contains each prepartition π such that l.MemBaseSet I c r π and π.iUnion = π₀.iUnion.

def BoxIntegral.IntegrationParams.toFilteriUnion E1 #

{ι : Type u_1} →
  [Fintype ι] →
    {l : BoxIntegral.IntegrationParams} →
      (I : BoxIntegral.Box ι) → BoxIntegral.Prepartition I → Filter (BoxIntegral.TaggedPrepartition I)

A set s : Set (TaggedPrepartition I) belongs to l.toFilteriUnion I π₀ if for any c : ℝ≥0 there exists a function r : ℝⁿ → (0, ∞) (or a constant r if l.bRiemann = true) such that s contains each prepartition π such that l.MemBaseSet I c r π and π.iUnion = π₀.iUnion.

theorem BoxIntegral.IntegrationParams.rCond_of_bRiemann_eq_false E1 #

∀ {ι : Type u_2} (l : BoxIntegral.IntegrationParams), l.bRiemann = false → ∀ {r : (ι → ℝ) → ↑(Set.Ioi 0)}, l.RCond r

theorem BoxIntegral.IntegrationParams.toFilter_inf_iUnion_eq E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι)
  (π₀ : BoxIntegral.Prepartition I),
  l.toFilter I ⊓ Filter.principal {π | π.iUnion = π₀.iUnion} = BoxIntegral.IntegrationParams.toFilteriUnion I π₀

theorem BoxIntegral.IntegrationParams.MemBaseSet.mono' E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι) {c₁ c₂ : NNReal} {l₁ l₂ : BoxIntegral.IntegrationParams}
  {r₁ r₂ : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I},
  l₁ ≤ l₂ → c₁ ≤ c₂ → (∀ J ∈ π, r₁ (π.tag J) ≤ r₂ (π.tag J)) → l₁.MemBaseSet I c₁ r₁ π → l₂.MemBaseSet I c₂ r₂ π

theorem BoxIntegral.IntegrationParams.MemBaseSet.mono E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι) {c₁ c₂ : NNReal} {l₁ l₂ : BoxIntegral.IntegrationParams}
  {r₁ r₂ : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.TaggedPrepartition I},
  l₁ ≤ l₂ → c₁ ≤ c₂ → (∀ x ∈ BoxIntegral.Box.Icc I, r₁ x ≤ r₂ x) → l₁.MemBaseSet I c₁ r₁ π → l₂.MemBaseSet I c₂ r₂ π

theorem BoxIntegral.IntegrationParams.MemBaseSet.exists_common_compl E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {I : BoxIntegral.Box ι} {c₁ c₂ : NNReal} {l : BoxIntegral.IntegrationParams}
  {r₁ r₂ : (ι → ℝ) → ↑(Set.Ioi 0)} {π₁ π₂ : BoxIntegral.TaggedPrepartition I},
  l.MemBaseSet I c₁ r₁ π₁ →
    l.MemBaseSet I c₂ r₂ π₂ →
      π₁.iUnion = π₂.iUnion →
        ∃ π,
          π.iUnion = ↑I \ π₁.iUnion ∧
            (l.bDistortion = true → π.distortion ≤ c₁) ∧ (l.bDistortion = true → π.distortion ≤ c₂)

theorem BoxIntegral.IntegrationParams.MemBaseSet.unionComplToSubordinate E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {I : BoxIntegral.Box ι} {c : NNReal} {l : BoxIntegral.IntegrationParams}
  {r₁ r₂ : (ι → ℝ) → ↑(Set.Ioi 0)} {π₁ : BoxIntegral.TaggedPrepartition I},
  l.MemBaseSet I c r₁ π₁ →
    (∀ x ∈ BoxIntegral.Box.Icc I, r₂ x ≤ r₁ x) →
      ∀ {π₂ : BoxIntegral.Prepartition I} (hU : π₂.iUnion = ↑I \ π₁.iUnion),
        (l.bDistortion = true → π₂.distortion ≤ c) → l.MemBaseSet I c r₁ (π₁.unionComplToSubordinate π₂ hU r₂)

theorem BoxIntegral.IntegrationParams.MemBaseSet.filter E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {I : BoxIntegral.Box ι} {c : NNReal} {l : BoxIntegral.IntegrationParams}
  {π : BoxIntegral.TaggedPrepartition I} {r : (ι → ℝ) → ↑(Set.Ioi 0)},
  l.MemBaseSet I c r π → ∀ (p : BoxIntegral.Box ι → Prop), l.MemBaseSet I c r (π.filter p)

theorem BoxIntegral.IntegrationParams.biUnionTagged_memBaseSet E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {I : BoxIntegral.Box ι} {c : NNReal} {l : BoxIntegral.IntegrationParams}
  {r : (ι → ℝ) → ↑(Set.Ioi 0)} {π : BoxIntegral.Prepartition I}
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.TaggedPrepartition J},
  (∀ J ∈ π, l.MemBaseSet J c r (πi J)) →
    (∀ J ∈ π, (πi J).IsPartition) →
      (l.bDistortion = true → π.compl.distortion ≤ c) → l.MemBaseSet I c r (π.biUnionTagged πi)

theorem BoxIntegral.IntegrationParams.RCond.mono E1 #

∀ {l₁ l₂ : BoxIntegral.IntegrationParams} {ι : Type u_2} {r : (ι → ℝ) → ↑(Set.Ioi 0)}, l₁ ≤ l₂ → l₂.RCond r → l₁.RCond r

theorem BoxIntegral.IntegrationParams.RCond.min E1 #

∀ {l : BoxIntegral.IntegrationParams} {ι : Type u_2} {r₁ r₂ : (ι → ℝ) → ↑(Set.Ioi 0)},
  l.RCond r₁ → l.RCond r₂ → l.RCond fun x ↦ min (r₁ x) (r₂ x)

theorem BoxIntegral.IntegrationParams.toFilterDistortion_mono E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {c₁ c₂ : NNReal} {l₁ l₂ : BoxIntegral.IntegrationParams} (I : BoxIntegral.Box ι),
  l₁ ≤ l₂ → c₁ ≤ c₂ → l₁.toFilterDistortion I c₁ ≤ l₂.toFilterDistortion I c₂

theorem BoxIntegral.IntegrationParams.toFilter_mono E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι) {l₁ l₂ : BoxIntegral.IntegrationParams},
  l₁ ≤ l₂ → l₁.toFilter I ≤ l₂.toFilter I

theorem BoxIntegral.IntegrationParams.toFilteriUnion_mono E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι) {l₁ l₂ : BoxIntegral.IntegrationParams},
  l₁ ≤ l₂ →
    ∀ (π₀ : BoxIntegral.Prepartition I),
      BoxIntegral.IntegrationParams.toFilteriUnion I π₀ ≤ BoxIntegral.IntegrationParams.toFilteriUnion I π₀

theorem BoxIntegral.IntegrationParams.toFilteriUnion_congr E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι) (l : BoxIntegral.IntegrationParams)
  {π₁ π₂ : BoxIntegral.Prepartition I},
  π₁.iUnion = π₂.iUnion →
    BoxIntegral.IntegrationParams.toFilteriUnion I π₁ = BoxIntegral.IntegrationParams.toFilteriUnion I π₂

theorem BoxIntegral.IntegrationParams.hasBasis_toFilterDistortion E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι) (c : NNReal),
  (l.toFilterDistortion I c).HasBasis l.RCond fun r ↦ {π | l.MemBaseSet I c r π}

theorem BoxIntegral.IntegrationParams.hasBasis_toFilterDistortioniUnion E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι) (c : NNReal)
  (π₀ : BoxIntegral.Prepartition I),
  (l.toFilterDistortioniUnion I c π₀).HasBasis l.RCond fun r ↦ {π | l.MemBaseSet I c r π ∧ π.iUnion = π₀.iUnion}

theorem BoxIntegral.IntegrationParams.hasBasis_toFilteriUnion E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι)
  (π₀ : BoxIntegral.Prepartition I),
  (BoxIntegral.IntegrationParams.toFilteriUnion I π₀).HasBasis (fun r ↦ ∀ (c : NNReal), l.RCond (r c)) fun r ↦
    {π | ∃ c, l.MemBaseSet I c (r c) π ∧ π.iUnion = π₀.iUnion}

theorem BoxIntegral.IntegrationParams.hasBasis_toFilteriUnion_top E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι),
  (BoxIntegral.IntegrationParams.toFilteriUnion I ⊤).HasBasis (fun r ↦ ∀ (c : NNReal), l.RCond (r c)) fun r ↦
    {π | ∃ c, l.MemBaseSet I c (r c) π ∧ π.IsPartition}

theorem BoxIntegral.IntegrationParams.hasBasis_toFilter E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι),
  (l.toFilter I).HasBasis (fun r ↦ ∀ (c : NNReal), l.RCond (r c)) fun r ↦ {π | ∃ c, l.MemBaseSet I c (r c) π}

theorem BoxIntegral.IntegrationParams.tendsto_embedBox_toFilteriUnion_top E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {I J : BoxIntegral.Box ι} (l : BoxIntegral.IntegrationParams) (h : I ≤ J),
  Filter.Tendsto (⇑(BoxIntegral.TaggedPrepartition.embedBox I J h)) (BoxIntegral.IntegrationParams.toFilteriUnion I ⊤)
    (BoxIntegral.IntegrationParams.toFilteriUnion J (BoxIntegral.Prepartition.single J I h))

theorem BoxIntegral.IntegrationParams.exists_memBaseSet_le_iUnion_eq E0 #

∀ {ι : Type u_1} [inst : Fintype ι] {I : BoxIntegral.Box ι} {c : NNReal} (l : BoxIntegral.IntegrationParams)
  (π₀ : BoxIntegral.Prepartition I),
  π₀.distortion ≤ c →
    π₀.compl.distortion ≤ c →
      ∀ (r : (ι → ℝ) → ↑(Set.Ioi 0)), ∃ π, l.MemBaseSet I c r π ∧ π.toPrepartition ≤ π₀ ∧ π.iUnion = π₀.iUnion

theorem BoxIntegral.IntegrationParams.exists_memBaseSet_isPartition E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {c : NNReal} (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι),
  I.distortion ≤ c → ∀ (r : (ι → ℝ) → ↑(Set.Ioi 0)), ∃ π, l.MemBaseSet I c r π ∧ π.IsPartition

theorem BoxIntegral.IntegrationParams.toFilterDistortioniUnion_neBot E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {c : NNReal} (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι)
  (π₀ : BoxIntegral.Prepartition I),
  π₀.distortion ≤ c → π₀.compl.distortion ≤ c → (l.toFilterDistortioniUnion I c π₀).NeBot

instance BoxIntegral.IntegrationParams.toFilterDistortioniUnion_neBot' E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι)
  (π₀ : BoxIntegral.Prepartition I), (l.toFilterDistortioniUnion I (max π₀.distortion π₀.compl.distortion) π₀).NeBot

instance BoxIntegral.IntegrationParams.toFilterDistortion_neBot E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι),
  (l.toFilterDistortion I I.distortion).NeBot

instance BoxIntegral.IntegrationParams.toFilter_neBot E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι), (l.toFilter I).NeBot

instance BoxIntegral.IntegrationParams.toFilteriUnion_neBot E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι)
  (π₀ : BoxIntegral.Prepartition I), (BoxIntegral.IntegrationParams.toFilteriUnion I π₀).NeBot

theorem BoxIntegral.IntegrationParams.eventually_isPartition E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (l : BoxIntegral.IntegrationParams) (I : BoxIntegral.Box ι),
  ∀ᶠ (π : BoxIntegral.TaggedPrepartition I) in BoxIntegral.IntegrationParams.toFilteriUnion I ⊤, π.IsPartition