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.Basic

74 declarations. Mathlib docs · Source

Integrals of Riemann, Henstock-Kurzweil, and McShane

In this file we define the integral of a function over a box in ℝⁿ. The same definition works for Riemann, Henstock-Kurzweil, and McShane integrals.

As usual, we represent ℝⁿ as the type of functions ι → ℝ for some finite type ι. A rectangular box (l, u] in ℝⁿ is defined to be the set {x : ι → ℝ | ∀ i, l i < x i ∧ x i ≤ u i}, see BoxIntegral.Box.

Let vol be a box-additive function on boxes in ℝⁿ with codomain E →L[ℝ] F. Given a function f : ℝⁿ → E, a box I and a tagged partition π of this box, the integral sum of f over π with respect to the volume vol is the sum of vol J (f (π.tag J)) over all boxes of π. Here π.tag J is the point (tag) in ℝⁿ associated with the box J.

The integral is defined as the limit of integral sums along a filter. Different filters correspond to different integration theories. In order to avoid code duplication, all our definitions and theorems take an argument l : BoxIntegral.IntegrationParams. This is a type that holds three Boolean values, and encodes eight filters including those corresponding to Riemann, Henstock-Kurzweil, and McShane integrals.

Following the design of infinite sums (see hasSum and tsum), we define a predicate BoxIntegral.HasIntegral and a function BoxIntegral.integral that returns a vector satisfying the predicate or zero if the function is not integrable.

Then we prove some basic properties of box integrals (linearity, a formula for the integral of a constant). We also prove a version of the Henstock-Sacks inequality (see BoxIntegral.Integrable.dist_integralSum_le_of_memBaseSet and BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet_of_iUnion_eq), prove integrability of continuous functions, and provide a criterion for integrability w.r.t. a non-Riemann filter (e.g., Henstock-Kurzweil and McShane).

Notation

  • ℝⁿ: local notation for ι → ℝ

Tags

integral

Integral sum and its basic properties

Basic integrability theory

Henstock-Sacks inequality and integrability on subboxes

Henstock-Sacks inequality for Henstock-Kurzweil integral says the following. Let f be a function integrable on a box I; let r : ℝⁿ → (0, ∞) be a function such that for any tagged partition of I subordinate to r, the integral sum over this partition is ε-close to the integral. Then for any tagged prepartition (i.e. a finite collections of pairwise disjoint subboxes of I with tagged points) π, the integral sum over π differs from the integral of f over the part of I covered by π by at most ε. The actual statement in the library is a bit more complicated to make it work for any BoxIntegral.IntegrationParams. We formalize several versions of this inequality in BoxIntegral.Integrable.dist_integralSum_le_of_memBaseSet, BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet_of_iUnion_eq, and BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet.

Instead of using predicate assumptions on r, we define BoxIntegral.Integrable.convergenceR (h : integrable I l f vol) (ε : ℝ) (c : ℝ≥0) : ℝⁿ → (0, ∞) to be a function r such that

  • if l.bRiemann, then r is a constant;
  • if ε > 0, then for any tagged partition π of I subordinate to r (more precisely, satisfying the predicate l.mem_base_set I c r), the integral sum of f over π differs from the integral of f over I by at most ε.

The proof is mostly based on [Russel A. Gordon, The integrals of Lebesgue, Denjoy, Perron, and Henstock][Gordon55].

Integrability conditions

theorem MeasureTheory.Measure.toBoxAdditive.congr_simp E1 #

∀ {ι : Type u_1} [inst : Finite ι] (μ μ_1 : MeasureTheory.Measure (ι → ℝ)) (e_μ : μ = μ_1)
  [inst_1 : MeasureTheory.IsLocallyFiniteMeasure μ], μ.toBoxAdditive = μ_1.toBoxAdditive

theorem BoxIntegral.Integrable.convergenceR.congr_simp E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I I_1 : BoxIntegral.Box ι} (e_I : I = I_1)
  [inst_4 : Fintype ι] {l l_1 : BoxIntegral.IntegrationParams} (e_l : l = l_1) {f f_1 : (ι → ℝ) → E} (e_f : f = f_1)
  {vol vol_1 : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} (e_vol : vol = vol_1) (h : BoxIntegral.Integrable I l f vol)
  (ε ε_1 : ℝ),
  ε = ε_1 →
    ∀ (a a_1 : NNReal), a = a_1 → ∀ (a_2 a_3 : ι → ℝ), a_2 = a_3 → h.convergenceR ε a a_2 = ⋯.convergenceR ε_1 a_1 a_3

def BoxIntegral.integralSum E3 #

{ι : Type u} →
  {E : Type v} →
    {F : Type w} →
      [inst : NormedAddCommGroup E] →
        [inst_1 : NormedSpace ℝ E] →
          [inst_2 : NormedAddCommGroup F] →
            [inst_3 : NormedSpace ℝ F] →
              {I : BoxIntegral.Box ι} →
                ((ι → ℝ) → E) → BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤ → BoxIntegral.TaggedPrepartition I → F

The integral sum of f : ℝⁿ → E over a tagged prepartition π w.r.t. box-additive volume vol with codomain E →L[ℝ] F is the sum of vol J (f (π.tag J)) over all boxes of π.

theorem BoxIntegral.integralSum_congr E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι}
  {π : BoxIntegral.TaggedPrepartition I} {f₁ f₂ : (ι → ℝ) → E} {vol₁ vol₂ : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  Set.EqOn f₁ f₂ (BoxIntegral.Box.Icc I) →
    Set.EqOn ⇑vol₁ ⇑vol₂ ↑π.boxes → BoxIntegral.integralSum f₁ vol₁ π = BoxIntegral.integralSum f₂ vol₂ π

theorem BoxIntegral.integralSum_biUnionTagged E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.TaggedPrepartition J),
  BoxIntegral.integralSum f vol (π.biUnionTagged πi) = ∑ J ∈ π.boxes, BoxIntegral.integralSum f vol (πi J)

theorem BoxIntegral.integralSum_biUnion_partition E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) (π : BoxIntegral.TaggedPrepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J),
  (∀ J ∈ π, (πi J).IsPartition) →
    BoxIntegral.integralSum f vol (π.biUnionPrepartition πi) = BoxIntegral.integralSum f vol π

theorem BoxIntegral.integralSum_inf_partition E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) (π : BoxIntegral.TaggedPrepartition I)
  {π' : BoxIntegral.Prepartition I},
  π'.IsPartition → BoxIntegral.integralSum f vol (π.infPrepartition π') = BoxIntegral.integralSum f vol π

theorem BoxIntegral.integralSum_fiberwise E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} {α : Type u_1}
  (g : BoxIntegral.Box ι → α) (f : (ι → ℝ) → E) (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤)
  (π : BoxIntegral.TaggedPrepartition I),
  ∑ y ∈ Finset.image g π.boxes, BoxIntegral.integralSum f vol (π.filter fun x ↦ g x = y) =
    BoxIntegral.integralSum f vol π

theorem BoxIntegral.integralSum_sub_partitions E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) {π₁ π₂ : BoxIntegral.TaggedPrepartition I},
  π₁.IsPartition →
    π₂.IsPartition →
      BoxIntegral.integralSum f vol π₁ - BoxIntegral.integralSum f vol π₂ =
        ∑ J ∈ (π₁.toPrepartition ⊓ π₂.toPrepartition).boxes,
          ((vol J) (f ((π₁.infPrepartition π₂.toPrepartition).tag J)) -
            (vol J) (f ((π₂.infPrepartition π₁.toPrepartition).tag J)))

theorem BoxIntegral.integralSum_disjUnion E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) {π₁ π₂ : BoxIntegral.TaggedPrepartition I}
  (h : Disjoint π₁.iUnion π₂.iUnion),
  BoxIntegral.integralSum f vol (π₁.disjUnion π₂ h) =
    BoxIntegral.integralSum f vol π₁ + BoxIntegral.integralSum f vol π₂

theorem BoxIntegral.integralSum_add E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f g : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) (π : BoxIntegral.TaggedPrepartition I),
  BoxIntegral.integralSum (f + g) vol π = BoxIntegral.integralSum f vol π + BoxIntegral.integralSum g vol π

theorem BoxIntegral.integralSum_neg E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) (π : BoxIntegral.TaggedPrepartition I),
  BoxIntegral.integralSum (-f) vol π = -BoxIntegral.integralSum f vol π

theorem BoxIntegral.integralSum_smul E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} (c : ℝ) (f : (ι → ℝ) → E)
  (vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤) (π : BoxIntegral.TaggedPrepartition I),
  BoxIntegral.integralSum (c • f) vol π = c • BoxIntegral.integralSum f vol π

def BoxIntegral.HasIntegral E1 #

{ι : Type u} →
  {E : Type v} →
    {F : Type w} →
      [inst : NormedAddCommGroup E] →
        [inst_1 : NormedSpace ℝ E] →
          [inst_2 : NormedAddCommGroup F] →
            [inst_3 : NormedSpace ℝ F] →
              [Fintype ι] →
                BoxIntegral.Box ι →
                  BoxIntegral.IntegrationParams → ((ι → ℝ) → E) → BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤ → F → Prop

The predicate HasIntegral I l f vol y says that y is the integral of f over I along l w.r.t. volume vol. This means that integral sums of f tend to 𝓝 y along BoxIntegral.IntegrationParams.toFilteriUnion I ⊤.

def BoxIntegral.Integrable E1 #

{ι : Type u} →
  {E : Type v} →
    {F : Type w} →
      [inst : NormedAddCommGroup E] →
        [inst_1 : NormedSpace ℝ E] →
          [inst_2 : NormedAddCommGroup F] →
            [inst_3 : NormedSpace ℝ F] →
              [Fintype ι] →
                BoxIntegral.Box ι →
                  BoxIntegral.IntegrationParams → ((ι → ℝ) → E) → BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤ → Prop

A function is integrable if there exists a vector that satisfies the HasIntegral predicate.

def BoxIntegral.integral E1 #

{ι : Type u} →
  {E : Type v} →
    {F : Type w} →
      [inst : NormedAddCommGroup E] →
        [inst_1 : NormedSpace ℝ E] →
          [inst_2 : NormedAddCommGroup F] →
            [inst_3 : NormedSpace ℝ F] →
              [Fintype ι] →
                BoxIntegral.Box ι →
                  BoxIntegral.IntegrationParams → ((ι → ℝ) → E) → BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤ → F

The integral of a function f over a box I along a filter l w.r.t. a volume vol. Returns zero on non-integrable functions.

theorem BoxIntegral.hasIntegral_congr E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] [inst_4 : Fintype ι] (I : BoxIntegral.Box ι)
  (l : BoxIntegral.IntegrationParams) {f₁ f₂ : (ι → ℝ) → E} {vol₁ vol₂ : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  Set.EqOn f₁ f₂ (BoxIntegral.Box.Icc I) →
    Set.EqOn (⇑vol₁) (⇑vol₂) (Set.Iic I) →
      ∀ (y : F), BoxIntegral.HasIntegral I l f₁ vol₁ y ↔ BoxIntegral.HasIntegral I l f₂ vol₂ y

theorem BoxIntegral.HasIntegral.tendsto E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F},
  BoxIntegral.HasIntegral I l f vol y →
    Filter.Tendsto (BoxIntegral.integralSum f vol) (BoxIntegral.IntegrationParams.toFilteriUnion I ⊤) (nhds y)

Reinterpret BoxIntegral.HasIntegral as Filter.Tendsto, e.g., dot-notation theorems that are shadowed in the BoxIntegral.HasIntegral namespace.

theorem BoxIntegral.hasIntegral_iff E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F},
  BoxIntegral.HasIntegral I l f vol y ↔
    ∀ ε > 0,
      ∃ r,
        (∀ (c : NNReal), l.RCond (r c)) ∧
          ∀ (c : NNReal) (π : BoxIntegral.TaggedPrepartition I),
            l.MemBaseSet I c (r c) π → π.IsPartition → dist (BoxIntegral.integralSum f vol π) y ≤ ε

The ε-δ definition of BoxIntegral.HasIntegral.

theorem BoxIntegral.HasIntegral.of_mul E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F}
  (a : ℝ),
  (∀ (ε : ℝ),
      0 < ε →
        ∃ r,
          (∀ (c : NNReal), l.RCond (r c)) ∧
            ∀ (c : NNReal) (π : BoxIntegral.TaggedPrepartition I),
              l.MemBaseSet I c (r c) π → π.IsPartition → dist (BoxIntegral.integralSum f vol π) y ≤ a * ε) →
    BoxIntegral.HasIntegral I l f vol y

Quite often it is more natural to prove an estimate of the form a * ε, not ε in the RHS of BoxIntegral.hasIntegral_iff, so we provide this auxiliary lemma.

theorem BoxIntegral.integrable_iff_cauchy E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F],
  BoxIntegral.Integrable I l f vol ↔
    Cauchy (Filter.map (BoxIntegral.integralSum f vol) (BoxIntegral.IntegrationParams.toFilteriUnion I ⊤))

theorem BoxIntegral.integrable_iff_cauchy_basis E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F],
  BoxIntegral.Integrable I l f vol ↔
    ∀ ε > 0,
      ∃ r,
        (∀ (c : NNReal), l.RCond (r c)) ∧
          ∀ (c₁ c₂ : NNReal) (π₁ π₂ : BoxIntegral.TaggedPrepartition I),
            l.MemBaseSet I c₁ (r c₁) π₁ →
              π₁.IsPartition →
                l.MemBaseSet I c₂ (r c₂) π₂ →
                  π₂.IsPartition → dist (BoxIntegral.integralSum f vol π₁) (BoxIntegral.integralSum f vol π₂) ≤ ε

In a complete space, a function is integrable if and only if its integral sums form a Cauchy net. Here we restate this fact in terms of ∀ ε > 0, ∃ r, ....

theorem BoxIntegral.HasIntegral.mono E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F} {l₁ l₂ : BoxIntegral.IntegrationParams},
  BoxIntegral.HasIntegral I l₁ f vol y → l₂ ≤ l₁ → BoxIntegral.HasIntegral I l₂ f vol y

theorem BoxIntegral.Integrable.hasIntegral E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol → BoxIntegral.HasIntegral I l f vol (BoxIntegral.integral I l f vol)

theorem BoxIntegral.Integrable.mono E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  {l' : BoxIntegral.IntegrationParams}, BoxIntegral.Integrable I l f vol → l' ≤ l → BoxIntegral.Integrable I l' f vol

theorem BoxIntegral.HasIntegral.unique E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y y' : F},
  BoxIntegral.HasIntegral I l f vol y → BoxIntegral.HasIntegral I l f vol y' → y = y'

theorem BoxIntegral.HasIntegral.integrable E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F},
  BoxIntegral.HasIntegral I l f vol y → BoxIntegral.Integrable I l f vol

theorem BoxIntegral.HasIntegral.integral_eq E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F},
  BoxIntegral.HasIntegral I l f vol y → BoxIntegral.integral I l f vol = y

theorem BoxIntegral.HasIntegral.add E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f g : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y y' : F},
  BoxIntegral.HasIntegral I l f vol y →
    BoxIntegral.HasIntegral I l g vol y' → BoxIntegral.HasIntegral I l (f + g) vol (y + y')

theorem BoxIntegral.Integrable.add E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f g : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol → BoxIntegral.Integrable I l g vol → BoxIntegral.Integrable I l (f + g) vol

theorem BoxIntegral.integral_add E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f g : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol →
    BoxIntegral.Integrable I l g vol →
      BoxIntegral.integral I l (f + g) vol = BoxIntegral.integral I l f vol + BoxIntegral.integral I l g vol

theorem BoxIntegral.HasIntegral.neg E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F},
  BoxIntegral.HasIntegral I l f vol y → BoxIntegral.HasIntegral I l (-f) vol (-y)

theorem BoxIntegral.Integrable.neg E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol → BoxIntegral.Integrable I l (-f) vol

theorem BoxIntegral.Integrable.of_neg E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l (-f) vol → BoxIntegral.Integrable I l f vol

theorem BoxIntegral.integrable_neg E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l (-f) vol ↔ BoxIntegral.Integrable I l f vol

theorem BoxIntegral.integral_neg E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.integral I l (-f) vol = -BoxIntegral.integral I l f vol

theorem BoxIntegral.HasIntegral.sub E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f g : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y y' : F},
  BoxIntegral.HasIntegral I l f vol y →
    BoxIntegral.HasIntegral I l g vol y' → BoxIntegral.HasIntegral I l (f - g) vol (y - y')

theorem BoxIntegral.Integrable.sub E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f g : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol → BoxIntegral.Integrable I l g vol → BoxIntegral.Integrable I l (f - g) vol

theorem BoxIntegral.integral_sub E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f g : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol →
    BoxIntegral.Integrable I l g vol →
      BoxIntegral.integral I l (f - g) vol = BoxIntegral.integral I l f vol - BoxIntegral.integral I l g vol

theorem BoxIntegral.hasIntegral_const E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} (c : E),
  BoxIntegral.HasIntegral I l (fun x ↦ c) vol ((vol I) c)

theorem BoxIntegral.integral_const E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} (c : E),
  BoxIntegral.integral I l (fun x ↦ c) vol = (vol I) c

theorem BoxIntegral.integrable_const E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} (c : E),
  BoxIntegral.Integrable I l (fun x ↦ c) vol

theorem BoxIntegral.hasIntegral_zero E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.HasIntegral I l (fun x ↦ 0) vol 0

theorem BoxIntegral.integrable_zero E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l (fun x ↦ 0) vol

theorem BoxIntegral.integral_zero E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.integral I l (fun x ↦ 0) vol = 0

theorem BoxIntegral.HasIntegral.sum E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {α : Type u_1} {s : Finset α}
  {f : α → (ι → ℝ) → E} {g : α → F},
  (∀ i ∈ s, BoxIntegral.HasIntegral I l (f i) vol (g i)) →
    BoxIntegral.HasIntegral I l (fun x ↦ ∑ i ∈ s, f i x) vol (∑ i ∈ s, g i)

theorem BoxIntegral.HasIntegral.smul E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {y : F},
  BoxIntegral.HasIntegral I l f vol y → ∀ (c : ℝ), BoxIntegral.HasIntegral I l (c • f) vol (c • y)

theorem BoxIntegral.Integrable.smul E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol → ∀ (c : ℝ), BoxIntegral.Integrable I l (c • f) vol

theorem BoxIntegral.Integrable.of_smul E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {c : ℝ},
  BoxIntegral.Integrable I l (c • f) vol → c ≠ 0 → BoxIntegral.Integrable I l f vol

theorem BoxIntegral.integral_smul E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} (c : ℝ),
  BoxIntegral.integral I l (fun x ↦ c • f x) vol = c • BoxIntegral.integral I l f vol

theorem BoxIntegral.integral_nonneg E1 #

∀ {ι : Type u} {I : BoxIntegral.Box ι} [inst : Fintype ι] {l : BoxIntegral.IntegrationParams} {g : (ι → ℝ) → ℝ},
  (∀ x ∈ BoxIntegral.Box.Icc I, 0 ≤ g x) →
    ∀ (μ : MeasureTheory.Measure (ι → ℝ)) [inst_1 : MeasureTheory.IsLocallyFiniteMeasure μ],
      0 ≤ BoxIntegral.integral I l g μ.toBoxAdditive.toSMul

The integral of a nonnegative function w.r.t. a volume generated by a locally-finite measure is nonnegative.

theorem BoxIntegral.norm_integral_le_of_norm_le E1 #

∀ {ι : Type u} {E : Type v} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {I : BoxIntegral.Box ι}
  [inst_2 : Fintype ι] {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {g : (ι → ℝ) → ℝ},
  (∀ x ∈ BoxIntegral.Box.Icc I, ‖f x‖ ≤ g x) →
    ∀ (μ : MeasureTheory.Measure (ι → ℝ)) [inst_3 : MeasureTheory.IsLocallyFiniteMeasure μ],
      BoxIntegral.Integrable I l g μ.toBoxAdditive.toSMul →
        ‖BoxIntegral.integral I l f μ.toBoxAdditive.toSMul‖ ≤ BoxIntegral.integral I l g μ.toBoxAdditive.toSMul

If ‖f x‖ ≤ g x on [l, u] and g is integrable, then the norm of the integral of f is less than or equal to the integral of g.

theorem BoxIntegral.norm_integral_le_of_le_const E1 #

∀ {ι : Type u} {E : Type v} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {I : BoxIntegral.Box ι}
  [inst_2 : Fintype ι] {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {c : ℝ},
  (∀ x ∈ BoxIntegral.Box.Icc I, ‖f x‖ ≤ c) →
    ∀ (μ : MeasureTheory.Measure (ι → ℝ)) [inst_3 : MeasureTheory.IsLocallyFiniteMeasure μ],
      ‖BoxIntegral.integral I l f μ.toBoxAdditive.toSMul‖ ≤ μ.real ↑I * c

def BoxIntegral.Integrable.convergenceR E1 #

{ι : Type u} →
  {E : Type v} →
    {F : Type w} →
      [inst : NormedAddCommGroup E] →
        [inst_1 : NormedSpace ℝ E] →
          [inst_2 : NormedAddCommGroup F] →
            [inst_3 : NormedSpace ℝ F] →
              {I : BoxIntegral.Box ι} →
                [inst_4 : Fintype ι] →
                  {l : BoxIntegral.IntegrationParams} →
                    {f : (ι → ℝ) → E} →
                      {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} →
                        BoxIntegral.Integrable I l f vol → ℝ → NNReal → (ι → ℝ) → ↑(Set.Ioi 0)

If ε > 0, then BoxIntegral.Integrable.convergenceR is a function r : ℝ≥0 → ℝⁿ → (0, ∞) such that for every c : ℝ≥0, for every tagged partition π subordinate to r (and satisfying additional distortion estimates if BoxIntegral.IntegrationParams.bDistortion l = true), the corresponding integral sum is ε-close to the integral.

If BoxIntegral.IntegrationParams.bRiemann = true, then r c x does not depend on x. If ε ≤ 0, then we use r c x = 1.

theorem BoxIntegral.Integrable.convergenceR_cond E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  (h : BoxIntegral.Integrable I l f vol) (ε : ℝ) (c : NNReal), l.RCond (h.convergenceR ε c)

theorem BoxIntegral.Integrable.dist_integralSum_integral_le_of_memBaseSet E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι}
  {π : BoxIntegral.TaggedPrepartition I} [inst_4 : Fintype ι] {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E}
  {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {c : NNReal} {ε : ℝ} (h : BoxIntegral.Integrable I l f vol),
  0 < ε →
    l.MemBaseSet I c (h.convergenceR ε c) π →
      π.IsPartition → dist (BoxIntegral.integralSum f vol π) (BoxIntegral.integral I l f vol) ≤ ε

theorem BoxIntegral.Integrable.dist_integralSum_le_of_memBaseSet E2 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  {c₁ c₂ : NNReal} {ε₁ ε₂ : ℝ} {π₁ π₂ : BoxIntegral.TaggedPrepartition I} (h : BoxIntegral.Integrable I l f vol),
  0 < ε₁ →
    0 < ε₂ →
      l.MemBaseSet I c₁ (h.convergenceR ε₁ c₁) π₁ →
        l.MemBaseSet I c₂ (h.convergenceR ε₂ c₂) π₂ →
          π₁.iUnion = π₂.iUnion → dist (BoxIntegral.integralSum f vol π₁) (BoxIntegral.integralSum f vol π₂) ≤ ε₁ + ε₂

Henstock-Sacks inequality. Let r₁ r₂ : ℝⁿ → (0, ∞) be a function such that for any tagged partition of I subordinate to rₖ, k=1,2, the integral sum of f over this partition differs from the integral of f by at most εₖ. Then for any two tagged prepartition π₁ π₂ subordinate to r₁ and r₂ respectively and covering the same part of I, the integral sums of f over these prepartitions differ from each other by at most ε₁ + ε₂.

The actual statement

  • uses BoxIntegral.Integrable.convergenceR instead of a predicate assumption on r;
  • uses BoxIntegral.IntegrationParams.MemBaseSet instead of “subordinate to r” to account for additional requirements like being a Henstock partition or having a bounded distortion.

See also BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet_of_iUnion_eq and BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet.

theorem BoxIntegral.Integrable.tendsto_integralSum_toFilter_prod_self_inf_iUnion_eq_uniformity E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol →
    Filter.Tendsto (fun π ↦ (BoxIntegral.integralSum f vol π.1, BoxIntegral.integralSum f vol π.2))
      (l.toFilter I ×ˢ l.toFilter I ⊓ Filter.principal {π | π.1.iUnion = π.2.iUnion}) (uniformity F)

If f is integrable on I along l, then for two sufficiently fine tagged prepartitions (in the sense of the filter BoxIntegral.IntegrationParams.toFilter l I) such that they cover the same part of I, the integral sums of f over π₁ and π₂ are very close to each other.

theorem BoxIntegral.Integrable.cauchy_map_integralSum_toFilteriUnion E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  BoxIntegral.Integrable I l f vol →
    ∀ (π₀ : BoxIntegral.Prepartition I),
      Cauchy (Filter.map (BoxIntegral.integralSum f vol) (BoxIntegral.IntegrationParams.toFilteriUnion I π₀))

If f is integrable on a box I along l, then for any fixed subset s of I that can be represented as a finite union of boxes, the integral sums of f over tagged prepartitions that cover exactly s form a Cauchy “sequence” along l.

theorem BoxIntegral.Integrable.to_subbox_aux E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I J : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F],
  BoxIntegral.Integrable I l f vol →
    ∀ (hJ : J ≤ I),
      ∃ y,
        BoxIntegral.HasIntegral J l f vol y ∧
          Filter.Tendsto (BoxIntegral.integralSum f vol)
            (BoxIntegral.IntegrationParams.toFilteriUnion I (BoxIntegral.Prepartition.single I J hJ)) (nhds y)

theorem BoxIntegral.Integrable.to_subbox E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I J : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F], BoxIntegral.Integrable I l f vol → J ≤ I → BoxIntegral.Integrable J l f vol

If f is integrable on a box I, then it is integrable on any subbox of I.

theorem BoxIntegral.Integrable.tendsto_integralSum_toFilteriUnion_single E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I J : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F],
  BoxIntegral.Integrable I l f vol →
    ∀ (hJ : J ≤ I),
      Filter.Tendsto (BoxIntegral.integralSum f vol)
        (BoxIntegral.IntegrationParams.toFilteriUnion I (BoxIntegral.Prepartition.single I J hJ))
        (nhds (BoxIntegral.integral J l f vol))

If f is integrable on a box I, then integral sums of f over tagged prepartitions that cover exactly a subbox J ≤ I tend to the integral of f over J along l.

theorem BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet_of_iUnion_eq E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι}
  {π : BoxIntegral.TaggedPrepartition I} [inst_4 : Fintype ι] {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E}
  {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {c : NNReal} {ε : ℝ} [CompleteSpace F]
  (h : BoxIntegral.Integrable I l f vol),
  0 < ε →
    l.MemBaseSet I c (h.convergenceR ε c) π →
      ∀ {π₀ : BoxIntegral.Prepartition I},
        π.iUnion = π₀.iUnion →
          dist (BoxIntegral.integralSum f vol π) (∑ J ∈ π₀.boxes, BoxIntegral.integral J l f vol) ≤ ε

Henstock-Sacks inequality. Let r : ℝⁿ → (0, ∞) be a function such that for any tagged partition of I subordinate to r, the integral sum of f over this partition differs from the integral of f by at most ε. Then for any tagged prepartition π subordinate to r, the integral sum of f over this prepartition differs from the integral of f over the part of I covered by π by at most ε.

The actual statement

  • uses BoxIntegral.Integrable.convergenceR instead of a predicate assumption on r;
  • uses BoxIntegral.IntegrationParams.MemBaseSet instead of “subordinate to r” to account for additional requirements like being a Henstock partition or having a bounded distortion;
  • takes an extra argument π₀ : prepartition I and an assumption π.Union = π₀.Union instead of using π.to_prepartition.

theorem BoxIntegral.Integrable.dist_integralSum_sum_integral_le_of_memBaseSet E2 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι}
  {π : BoxIntegral.TaggedPrepartition I} [inst_4 : Fintype ι] {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E}
  {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} {c : NNReal} {ε : ℝ} [CompleteSpace F]
  (h : BoxIntegral.Integrable I l f vol),
  0 < ε →
    l.MemBaseSet I c (h.convergenceR ε c) π →
      dist (BoxIntegral.integralSum f vol π) (∑ J ∈ π.boxes, BoxIntegral.integral J l f vol) ≤ ε

Henstock-Sacks inequality. Let r : ℝⁿ → (0, ∞) be a function such that for any tagged partition of I subordinate to r, the integral sum of f over this partition differs from the integral of f by at most ε. Then for any tagged prepartition π subordinate to r, the integral sum of f over this prepartition differs from the integral of f over the part of I covered by π by at most ε.

The actual statement

  • uses BoxIntegral.Integrable.convergenceR instead of a predicate assumption on r;
  • uses BoxIntegral.IntegrationParams.MemBaseSet instead of “subordinate to r” to account for additional requirements like being a Henstock partition or having a bounded distortion;

theorem BoxIntegral.Integrable.tendsto_integralSum_sum_integral E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F],
  BoxIntegral.Integrable I l f vol →
    ∀ (π₀ : BoxIntegral.Prepartition I),
      Filter.Tendsto (BoxIntegral.integralSum f vol) (BoxIntegral.IntegrationParams.toFilteriUnion I π₀)
        (nhds (∑ J ∈ π₀.boxes, BoxIntegral.integral J l f vol))

Integral sum of f over a tagged prepartition π such that π.Union = π₀.Union tends to the sum of integrals of f over the boxes of π₀.

theorem BoxIntegral.Integrable.sum_integral_congr E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [CompleteSpace F],
  BoxIntegral.Integrable I l f vol →
    ∀ {π₁ π₂ : BoxIntegral.Prepartition I},
      π₁.iUnion = π₂.iUnion →
        ∑ J ∈ π₁.boxes, BoxIntegral.integral J l f vol = ∑ J ∈ π₂.boxes, BoxIntegral.integral J l f vol

If f is integrable on I, then fun J ↦ integral J l f vol is box-additive on subboxes of I: if π₁, π₂ are two prepartitions of I covering the same part of I, the sum of integrals of f over the boxes of π₁ is equal to the sum of integrals of f over the boxes of π₂.

See also BoxIntegral.Integrable.toBoxAdditive for a bundled version.

def BoxIntegral.Integrable.toBoxAdditive E1 #

{ι : Type u} →
  {E : Type v} →
    {F : Type w} →
      [inst : NormedAddCommGroup E] →
        [inst_1 : NormedSpace ℝ E] →
          [inst_2 : NormedAddCommGroup F] →
            [inst_3 : NormedSpace ℝ F] →
              {I : BoxIntegral.Box ι} →
                [inst_4 : Fintype ι] →
                  {l : BoxIntegral.IntegrationParams} →
                    {f : (ι → ℝ) → E} →
                      {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} →
                        [CompleteSpace F] → BoxIntegral.Integrable I l f vol → BoxIntegral.BoxAdditiveMap ι F ↑I

If f is integrable on I, then fun J ↦ integral J l f vol is box-additive on subboxes of I: if π₁, π₂ are two prepartitions of I covering the same part of I, the sum of integrals of f over the boxes of π₁ is equal to the sum of integrals of f over the boxes of π₂.

See also BoxIntegral.Integrable.sum_integral_congr for an unbundled version.

theorem BoxIntegral.Integrable.toBoxAdditive_apply E0 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤}
  [inst_5 : CompleteSpace F] (h : BoxIntegral.Integrable I l f vol) (J : BoxIntegral.Box ι),
  h.toBoxAdditive J = BoxIntegral.integral J l f vol

theorem BoxIntegral.integrable_of_bounded_and_ae_continuousWithinAt E1 #

∀ {ι : Type u} {E : Type v} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [inst_2 : Fintype ι]
  (l : BoxIntegral.IntegrationParams) [CompleteSpace E] {I : BoxIntegral.Box ι} {f : (ι → ℝ) → E},
  (∃ C, ∀ x ∈ BoxIntegral.Box.Icc I, ‖f x‖ ≤ C) →
    ∀ (μ : MeasureTheory.Measure (ι → ℝ)) [inst_4 : MeasureTheory.IsLocallyFiniteMeasure μ],
      (∀ᵐ (x : ι → ℝ) ∂μ.restrict (BoxIntegral.Box.Icc I), ContinuousWithinAt f (BoxIntegral.Box.Icc I) x) →
        BoxIntegral.Integrable I l f μ.toBoxAdditive.toSMul

A function that is bounded and a.e. continuous on a box I is integrable on I.

theorem BoxIntegral.integrable_of_bounded_and_ae_continuous E1 #

∀ {ι : Type u} {E : Type v} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [inst_2 : Fintype ι]
  (l : BoxIntegral.IntegrationParams) [CompleteSpace E] {I : BoxIntegral.Box ι} {f : (ι → ℝ) → E},
  (∃ C, ∀ x ∈ BoxIntegral.Box.Icc I, ‖f x‖ ≤ C) →
    ∀ (μ : MeasureTheory.Measure (ι → ℝ)) [inst_4 : MeasureTheory.IsLocallyFiniteMeasure μ],
      (∀ᵐ (x : ι → ℝ) ∂μ, ContinuousAt f x) → BoxIntegral.Integrable I l f μ.toBoxAdditive.toSMul

A function that is bounded on a box I and a.e. continuous is integrable on I.

This is a version of integrable_of_bounded_and_ae_continuousWithinAt with a stronger continuity assumption so that the user does not need to specialize the continuity assumption to each box on which the theorem is to be applied.

theorem BoxIntegral.integrable_of_continuousOn E1 #

∀ {ι : Type u} {E : Type v} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [inst_2 : Fintype ι]
  (l : BoxIntegral.IntegrationParams) [CompleteSpace E] {I : BoxIntegral.Box ι} {f : (ι → ℝ) → E},
  ContinuousOn f (BoxIntegral.Box.Icc I) →
    ∀ (μ : MeasureTheory.Measure (ι → ℝ)) [inst_4 : MeasureTheory.IsLocallyFiniteMeasure μ],
      BoxIntegral.Integrable I l f μ.toBoxAdditive.toSMul

A continuous function is box-integrable with respect to any locally finite measure.

This is true for any volume with bounded variation.

theorem BoxIntegral.HasIntegral.of_bRiemann_eq_false_of_forall_isLittleO E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  l.bRiemann = false →
    ∀ (B : BoxIntegral.BoxAdditiveMap ι ℝ ↑I),
      (∀ (J : BoxIntegral.Box ι), 0 ≤ B J) →
        ∀ (g : BoxIntegral.BoxAdditiveMap ι F ↑I) (s : Set (ι → ℝ)),
          s.Countable →
            (s.Nonempty → l.bHenstock = true) →
              (∀ (c : NNReal),
                  ∀ x ∈ BoxIntegral.Box.Icc I ∩ s,
                    ∀ ε > 0,
                      ∃ δ > 0,
                        ∀ J ≤ I,
                          BoxIntegral.Box.Icc J ⊆ Metric.closedBall x δ →
                            x ∈ BoxIntegral.Box.Icc J →
                              (l.bDistortion = true → J.distortion ≤ c) → dist ((vol J) (f x)) (g J) ≤ ε) →
                (∀ (c : NNReal),
                    ∀ x ∈ BoxIntegral.Box.Icc I \ s,
                      ∀ ε > 0,
                        ∃ δ > 0,
                          ∀ J ≤ I,
                            BoxIntegral.Box.Icc J ⊆ Metric.closedBall x δ →
                              (l.bHenstock = true → x ∈ BoxIntegral.Box.Icc J) →
                                (l.bDistortion = true → J.distortion ≤ c) → dist ((vol J) (f x)) (g J) ≤ ε * B J) →
                  BoxIntegral.HasIntegral I l f vol (g I)

This is an auxiliary lemma used to prove two statements at once. Use one of the next two lemmas instead.

theorem BoxIntegral.HasIntegral.of_le_Henstock_of_forall_isLittleO E2 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {l : BoxIntegral.IntegrationParams} {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤},
  l ≤ BoxIntegral.IntegrationParams.Henstock →
    ∀ (B : BoxIntegral.BoxAdditiveMap ι ℝ ↑I),
      (∀ (J : BoxIntegral.Box ι), 0 ≤ B J) →
        ∀ (g : BoxIntegral.BoxAdditiveMap ι F ↑I) (s : Set (ι → ℝ)),
          s.Countable →
            (∀ (c : NNReal),
                ∀ x ∈ BoxIntegral.Box.Icc I ∩ s,
                  ∀ ε > 0,
                    ∃ δ > 0,
                      ∀ J ≤ I,
                        BoxIntegral.Box.Icc J ⊆ Metric.closedBall x δ →
                          x ∈ BoxIntegral.Box.Icc J →
                            (l.bDistortion = true → J.distortion ≤ c) → dist ((vol J) (f x)) (g J) ≤ ε) →
              (∀ (c : NNReal),
                  ∀ x ∈ BoxIntegral.Box.Icc I \ s,
                    ∀ ε > 0,
                      ∃ δ > 0,
                        ∀ J ≤ I,
                          BoxIntegral.Box.Icc J ⊆ Metric.closedBall x δ →
                            x ∈ BoxIntegral.Box.Icc J →
                              (l.bDistortion = true → J.distortion ≤ c) → dist ((vol J) (f x)) (g J) ≤ ε * B J) →
                BoxIntegral.HasIntegral I l f vol (g I)

A function f has Henstock (or ⊥) integral over I is equal to the value of a box-additive function g on I provided that vol J (f x) is sufficiently close to g J for sufficiently small boxes J ∋ x. This lemma is useful to prove, e.g., to prove the Divergence theorem for integral along ⊥.

Let l be either BoxIntegral.IntegrationParams.Henstock or ⊥. Let g a box-additive function on subboxes of I. Suppose that there exists a nonnegative box-additive function B and a countable set s with the following property.

For every c : ℝ≥0, a point x ∈ I.Icc, and a positive ε there exists δ > 0 such that for any box J ≤ I such that

  • x ∈ J.Icc ⊆ Metric.closedBall x δ;
  • if l.bDistortion (i.e., l = ⊥), then the distortion of J is less than or equal to c,

the distance between the term vol J (f x) of an integral sum corresponding to J and g J is less than or equal to ε if x ∈ s and is less than or equal to ε * B J otherwise.

Then f is integrable on I along l with integral g I.

theorem BoxIntegral.HasIntegral.mcShane_of_forall_isLittleO E1 #

∀ {ι : Type u} {E : Type v} {F : Type w} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace ℝ F] {I : BoxIntegral.Box ι} [inst_4 : Fintype ι]
  {f : (ι → ℝ) → E} {vol : BoxIntegral.BoxAdditiveMap ι (E →L[ℝ] F) ⊤} (B : BoxIntegral.BoxAdditiveMap ι ℝ ↑I),
  (∀ (J : BoxIntegral.Box ι), 0 ≤ B J) →
    ∀ (g : BoxIntegral.BoxAdditiveMap ι F ↑I),
      (∀ (x : NNReal),
          ∀ x ∈ BoxIntegral.Box.Icc I,
            ∀ ε > 0,
              ∃ δ > 0, ∀ J ≤ I, BoxIntegral.Box.Icc J ⊆ Metric.closedBall x δ → dist ((vol J) (f x)) (g J) ≤ ε * B J) →
        BoxIntegral.HasIntegral I BoxIntegral.IntegrationParams.McShane f vol (g I)

Suppose that there exists a nonnegative box-additive function B with the following property.

For every c : ℝ≥0, a point x ∈ I.Icc, and a positive ε there exists δ > 0 such that for any box J ≤ I such that

  • J.Icc ⊆ Metric.closedBall x δ;
  • if l.bDistortion (i.e., l = ⊥), then the distortion of J is less than or equal to c,

the distance between the term vol J (f x) of an integral sum corresponding to J and g J is less than or equal to ε * B J.

Then f is McShane integrable on I with integral g I.