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

122 declarations and 1 deprecated aliases. Mathlib docs · Source

Partitions of rectangular boxes in ℝⁿ

In this file we define (pre)partitions of rectangular boxes in ℝⁿ. A partition of a box I in ℝⁿ (see BoxIntegral.Prepartition and BoxIntegral.Prepartition.IsPartition) is a finite set of pairwise disjoint boxes such that their union is exactly I. We use boxes : Finset (Box ι) to store the set of boxes.

Many lemmas about box integrals deal with pairwise disjoint collections of subboxes, so we define a structure BoxIntegral.Prepartition (I : BoxIntegral.Box ι) that stores a collection of boxes such that

  • each box J ∈ boxes is a subbox of I;
  • the boxes are pairwise disjoint as sets in ℝⁿ.

Then we define a predicate BoxIntegral.Prepartition.IsPartition; π.IsPartition means that the boxes of π actually cover the whole I. We also define some operations on prepartitions:

  • BoxIntegral.Prepartition.biUnion: split each box of a partition into smaller boxes;
  • BoxIntegral.Prepartition.restrict: restrict a partition to a smaller box.

We also define a SemilatticeInf structure on BoxIntegral.Prepartition I for all I : BoxIntegral.Box ι.

Tags

rectangular box, partition

def BoxIntegral.Prepartition.ctorIdx E1 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → ℕ

theorem BoxIntegral.Prepartition.single.congr_simp E1 #

∀ {ι : Type u_1} (I J J_1 : BoxIntegral.Box ι) (e_J : J = J_1) (h : J ≤ I),
  BoxIntegral.Prepartition.single I J h = BoxIntegral.Prepartition.single I J_1 ⋯

theorem BoxIntegral.Prepartition.mk.injEq E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (boxes : Finset (BoxIntegral.Box ι)) (le_of_mem' : ∀ J ∈ boxes, J ≤ I)
  (pairwiseDisjoint : (↑boxes).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet))
  (boxes_1 : Finset (BoxIntegral.Box ι)) (le_of_mem'_1 : ∀ J ∈ boxes_1, J ≤ I)
  (pairwiseDisjoint_1 : (↑boxes_1).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet)),
  ({ boxes := boxes, le_of_mem' := le_of_mem', pairwiseDisjoint := pairwiseDisjoint } =
      { boxes := boxes_1, le_of_mem' := le_of_mem'_1, pairwiseDisjoint := pairwiseDisjoint_1 }) =
    (boxes = boxes_1)

theorem BoxIntegral.Prepartition.mk.inj E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {boxes : Finset (BoxIntegral.Box ι)} {le_of_mem' : ∀ J ∈ boxes, J ≤ I}
  {pairwiseDisjoint : (↑boxes).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet)}
  {boxes_1 : Finset (BoxIntegral.Box ι)} {le_of_mem'_1 : ∀ J ∈ boxes_1, J ≤ I}
  {pairwiseDisjoint_1 : (↑boxes_1).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet)},
  { boxes := boxes, le_of_mem' := le_of_mem', pairwiseDisjoint := pairwiseDisjoint } =
      { boxes := boxes_1, le_of_mem' := le_of_mem'_1, pairwiseDisjoint := pairwiseDisjoint_1 } →
    boxes = boxes_1

theorem BoxIntegral.Prepartition.ofWithBot.congr_simp E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (boxes boxes_1 : Finset (WithBot (BoxIntegral.Box ι)))
  (e_boxes : boxes = boxes_1) (le_of_mem : ∀ J ∈ boxes, J ≤ ↑I) (pairwise_disjoint : (↑boxes).Pairwise Disjoint),
  BoxIntegral.Prepartition.ofWithBot boxes le_of_mem pairwise_disjoint = BoxIntegral.Prepartition.ofWithBot boxes_1 ⋯ ⋯

theorem BoxIntegral.Prepartition.mk.congr_simp E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (boxes boxes_1 : Finset (BoxIntegral.Box ι)) (e_boxes : boxes = boxes_1)
  (le_of_mem' : ∀ J ∈ boxes, J ≤ I)
  (pairwiseDisjoint : (↑boxes).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet)),
  { boxes := boxes, le_of_mem' := le_of_mem', pairwiseDisjoint := pairwiseDisjoint } =
    { boxes := boxes_1, le_of_mem' := ⋯, pairwiseDisjoint := ⋯ }

structure BoxIntegral.Prepartition E1 #

{ι : Type u_1} → BoxIntegral.Box ι → Type u_1

A prepartition of I : BoxIntegral.Box ι is a finite set of pairwise disjoint subboxes of I.

ctor BoxIntegral.Prepartition.mk E0 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} →
    (boxes : Finset (BoxIntegral.Box ι)) →
      (∀ J ∈ boxes, J ≤ I) →
        (↑boxes).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet) → BoxIntegral.Prepartition I

abbrev BoxIntegral.Prepartition.boxes E1 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → Finset (BoxIntegral.Box ι)

The underlying set of boxes

theorem BoxIntegral.Prepartition.le_of_mem' E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (self : BoxIntegral.Prepartition I), ∀ J ∈ self.boxes, J ≤ I

Each box is a sub-box of I

theorem BoxIntegral.Prepartition.pairwiseDisjoint E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (self : BoxIntegral.Prepartition I),
  (↑self.boxes).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet)

The boxes in a prepartition are pairwise disjoint.

instance BoxIntegral.Prepartition.instMembershipBox E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → Membership (BoxIntegral.Box ι) (BoxIntegral.Prepartition I)

theorem BoxIntegral.Prepartition.mem_boxes E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), J ∈ π.boxes ↔ J ∈ π

theorem BoxIntegral.Prepartition.mem_mk E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} {s : Finset (BoxIntegral.Box ι)} {h₁ : ∀ J ∈ s, J ≤ I}
  {h₂ : (↑s).Pairwise (Function.onFun Disjoint BoxIntegral.Box.toSet)},
  J ∈ { boxes := s, le_of_mem' := h₁, pairwiseDisjoint := h₂ } ↔ J ∈ s

theorem BoxIntegral.Prepartition.disjoint_coe_of_mem E1 #

∀ {ι : Type u_1} {I J₁ J₂ : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I),
  J₁ ∈ π → J₂ ∈ π → J₁ ≠ J₂ → Disjoint ↑J₁ ↑J₂

theorem BoxIntegral.Prepartition.le_of_mem E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), J ∈ π → J ≤ I

theorem BoxIntegral.Prepartition.lower_le_lower E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), J ∈ π → I.lower ≤ J.lower

theorem BoxIntegral.Prepartition.upper_le_upper E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), J ∈ π → J.upper ≤ I.upper

theorem BoxIntegral.Prepartition.injective_boxes E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι}, Function.Injective BoxIntegral.Prepartition.boxes

theorem BoxIntegral.Prepartition.ext E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  (∀ (J : BoxIntegral.Box ι), J ∈ π₁ ↔ J ∈ π₂) → π₁ = π₂

theorem BoxIntegral.Prepartition.ext_iff E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  π₁ = π₂ ↔ ∀ (J : BoxIntegral.Box ι), J ∈ π₁ ↔ J ∈ π₂

def BoxIntegral.Prepartition.single E1 #

{ι : Type u_1} → (I J : BoxIntegral.Box ι) → J ≤ I → BoxIntegral.Prepartition I

The singleton prepartition {J}, J ≤ I.

theorem BoxIntegral.Prepartition.single_boxes E0 #

∀ {ι : Type u_1} (I J : BoxIntegral.Box ι) (h : J ≤ I), (BoxIntegral.Prepartition.single I J h).boxes = {J}

theorem BoxIntegral.Prepartition.mem_single E0 #

∀ {ι : Type u_1} {I J J' : BoxIntegral.Box ι} (h : J ≤ I), J' ∈ BoxIntegral.Prepartition.single I J h ↔ J' = J

instance BoxIntegral.Prepartition.instLE E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → LE (BoxIntegral.Prepartition I)

We say that π ≤ π' if each box of π is a subbox of some box of π'.

instance BoxIntegral.Prepartition.partialOrder E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → PartialOrder (BoxIntegral.Prepartition I)

instance BoxIntegral.Prepartition.instOrderTop E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → OrderTop (BoxIntegral.Prepartition I)

instance BoxIntegral.Prepartition.instOrderBot E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → OrderBot (BoxIntegral.Prepartition I)

instance BoxIntegral.Prepartition.instInhabited E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → Inhabited (BoxIntegral.Prepartition I)

theorem BoxIntegral.Prepartition.le_def E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I}, π₁ ≤ π₂ ↔ ∀ J ∈ π₁, ∃ J' ∈ π₂, J ≤ J'

theorem BoxIntegral.Prepartition.mem_top E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι}, J ∈ ⊤ ↔ J = I

theorem BoxIntegral.Prepartition.top_boxes E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι}, ⊤.boxes = {I}

theorem BoxIntegral.Prepartition.notMem_bot E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι}, J ∉ ⊥

theorem BoxIntegral.Prepartition.bot_boxes E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι}, ⊥.boxes = ∅

theorem BoxIntegral.Prepartition.injOn_setOfPred_mem_Icc_setOfPred_lower_eq E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) (x : ι → ℝ),
  Set.InjOn (fun J ↦ {i | J.lower i = x i}) {J | J ∈ π ∧ x ∈ BoxIntegral.Box.Icc J}

An auxiliary lemma used to prove that the same point can't belong to more than 2 ^ Fintype.card ι closed boxes of a prepartition.

theorem BoxIntegral.Prepartition.card_filter_mem_Icc_le E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) [inst : Fintype ι] (x : ι → ℝ),
  {J ∈ π.boxes | x ∈ BoxIntegral.Box.Icc J}.card ≤ 2 ^ Fintype.card ι

The set of boxes of a prepartition that contain x in their closures has cardinality at most 2 ^ Fintype.card ι.

def BoxIntegral.Prepartition.iUnion E1 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → Set (ι → ℝ)

Given a prepartition π : BoxIntegral.Prepartition I, π.iUnion is the part of I covered by the boxes of π.

theorem BoxIntegral.Prepartition.iUnion_def E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), π.iUnion = ⋃ J ∈ π, ↑J

theorem BoxIntegral.Prepartition.iUnion_def' E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), π.iUnion = ⋃ J ∈ π.boxes, ↑J

theorem BoxIntegral.Prepartition.mem_iUnion E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) {x : ι → ℝ}, x ∈ π.iUnion ↔ ∃ J ∈ π, x ∈ J

theorem BoxIntegral.Prepartition.iUnion_single E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (h : J ≤ I), (BoxIntegral.Prepartition.single I J h).iUnion = ↑J

theorem BoxIntegral.Prepartition.iUnion_top E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι}, ⊤.iUnion = ↑I

theorem BoxIntegral.Prepartition.iUnion_eq_empty E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ : BoxIntegral.Prepartition I}, π₁.iUnion = ∅ ↔ π₁ = ⊥

theorem BoxIntegral.Prepartition.iUnion_bot E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι}, ⊥.iUnion = ∅

theorem BoxIntegral.Prepartition.subset_iUnion E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), J ∈ π → ↑J ⊆ π.iUnion

theorem BoxIntegral.Prepartition.iUnion_subset E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), π.iUnion ⊆ ↑I

theorem BoxIntegral.Prepartition.iUnion_mono E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I}, π₁ ≤ π₂ → π₁.iUnion ⊆ π₂.iUnion

theorem BoxIntegral.Prepartition.disjoint_boxes_of_disjoint_iUnion E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  Disjoint π₁.iUnion π₂.iUnion → Disjoint π₁.boxes π₂.boxes

theorem BoxIntegral.Prepartition.le_iff_nonempty_imp_le_and_iUnion_subset E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  π₁ ≤ π₂ ↔ (∀ J ∈ π₁, ∀ J' ∈ π₂, (↑J ∩ ↑J').Nonempty → J ≤ J') ∧ π₁.iUnion ⊆ π₂.iUnion

def BoxIntegral.Prepartition.biUnion E1 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} →
    BoxIntegral.Prepartition I → ((J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J) → BoxIntegral.Prepartition I

Given a prepartition π of a box I and a collection of prepartitions πi J of all boxes J ∈ π, returns the prepartition of I into the union of the boxes of all πi J.

Though we only use the values of πi on the boxes of π, we require πi to be a globally defined function.

theorem BoxIntegral.Prepartition.biUnion_boxes E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J),
  (π.biUnion πi).boxes = π.boxes.biUnion fun J ↦ (πi J).boxes

theorem BoxIntegral.Prepartition.mem_biUnion E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J}, J ∈ π.biUnion πi ↔ ∃ J' ∈ π, J ∈ πi J'

theorem BoxIntegral.Prepartition.biUnion_le E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J), π.biUnion πi ≤ π

theorem BoxIntegral.Prepartition.biUnion_top E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), (π.biUnion fun x ↦ ⊤) = π

theorem BoxIntegral.Prepartition.biUnion_congr E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I}
  {πi₁ πi₂ : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J},
  π₁ = π₂ → (∀ J ∈ π₁, πi₁ J = πi₂ J) → π₁.biUnion πi₁ = π₂.biUnion πi₂

theorem BoxIntegral.Prepartition.biUnion_congr_of_le E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I}
  {πi₁ πi₂ : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J},
  π₁ = π₂ → (∀ J ≤ I, πi₁ J = πi₂ J) → π₁.biUnion πi₁ = π₂.biUnion πi₂

theorem BoxIntegral.Prepartition.iUnion_biUnion E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J), (π.biUnion πi).iUnion = ⋃ J ∈ π, (πi J).iUnion

theorem BoxIntegral.Prepartition.sum_biUnion_boxes E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {M : Type u_2} [inst : AddCommMonoid M] (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J) (f : BoxIntegral.Box ι → M),
  ∑ J ∈ π.boxes.biUnion fun J ↦ (πi J).boxes, f J = ∑ J ∈ π.boxes, ∑ J' ∈ (πi J).boxes, f J'

def BoxIntegral.Prepartition.biUnionIndex E1 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} →
    BoxIntegral.Prepartition I →
      ((J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J) → BoxIntegral.Box ι → BoxIntegral.Box ι

Given a box J ∈ π.biUnion πi, returns the box J' ∈ π such that J ∈ πi J'. For J ∉ π.biUnion πi, returns I.

theorem BoxIntegral.Prepartition.biUnionIndex_mem E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J}, J ∈ π.biUnion πi → π.biUnionIndex πi J ∈ π

theorem BoxIntegral.Prepartition.biUnionIndex_le E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J) (J : BoxIntegral.Box ι), π.biUnionIndex πi J ≤ I

theorem BoxIntegral.Prepartition.mem_biUnionIndex E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J}, J ∈ π.biUnion πi → J ∈ πi (π.biUnionIndex πi J)

theorem BoxIntegral.Prepartition.le_biUnionIndex E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J}, J ∈ π.biUnion πi → J ≤ π.biUnionIndex πi J

theorem BoxIntegral.Prepartition.biUnionIndex_of_mem E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J},
  J ∈ π → ∀ {J' : BoxIntegral.Box ι}, J' ∈ πi J → π.biUnionIndex πi J' = J

Uniqueness property of BoxIntegral.Prepartition.biUnionIndex.

theorem BoxIntegral.Prepartition.biUnion_assoc E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J)
  (πi' : BoxIntegral.Box ι → (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J),
  (π.biUnion fun J ↦ (πi J).biUnion (πi' J)) = (π.biUnion πi).biUnion fun J ↦ πi' (π.biUnionIndex πi J) J

def BoxIntegral.Prepartition.ofWithBot E1 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} →
    (boxes : Finset (WithBot (BoxIntegral.Box ι))) →
      (∀ J ∈ boxes, J ≤ ↑I) → (↑boxes).Pairwise Disjoint → BoxIntegral.Prepartition I

Create a BoxIntegral.Prepartition from a collection of possibly empty boxes by filtering out the empty one if it exists.

theorem BoxIntegral.Prepartition.mem_ofWithBot E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} {boxes : Finset (WithBot (BoxIntegral.Box ι))} {h₁ : ∀ J ∈ boxes, J ≤ ↑I}
  {h₂ : (↑boxes).Pairwise Disjoint}, J ∈ BoxIntegral.Prepartition.ofWithBot boxes h₁ h₂ ↔ ↑J ∈ boxes

theorem BoxIntegral.Prepartition.iUnion_ofWithBot E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (boxes : Finset (WithBot (BoxIntegral.Box ι)))
  (le_of_mem : ∀ J ∈ boxes, J ≤ ↑I) (pairwise_disjoint : (↑boxes).Pairwise Disjoint),
  (BoxIntegral.Prepartition.ofWithBot boxes le_of_mem pairwise_disjoint).iUnion = ⋃ J ∈ boxes, ↑J

theorem BoxIntegral.Prepartition.ofWithBot_le E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) {boxes : Finset (WithBot (BoxIntegral.Box ι))}
  {le_of_mem : ∀ J ∈ boxes, J ≤ ↑I} {pairwise_disjoint : (↑boxes).Pairwise Disjoint},
  (∀ J ∈ boxes, J ≠ ⊥ → ∃ J' ∈ π, J ≤ ↑J') → BoxIntegral.Prepartition.ofWithBot boxes le_of_mem pairwise_disjoint ≤ π

theorem BoxIntegral.Prepartition.le_ofWithBot E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) {boxes : Finset (WithBot (BoxIntegral.Box ι))}
  {le_of_mem : ∀ J ∈ boxes, J ≤ ↑I} {pairwise_disjoint : (↑boxes).Pairwise Disjoint},
  (∀ J ∈ π, ∃ J' ∈ boxes, ↑J ≤ J') → π ≤ BoxIntegral.Prepartition.ofWithBot boxes le_of_mem pairwise_disjoint

theorem BoxIntegral.Prepartition.ofWithBot_mono E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {boxes₁ : Finset (WithBot (BoxIntegral.Box ι))}
  {le_of_mem₁ : ∀ J ∈ boxes₁, J ≤ ↑I} {pairwise_disjoint₁ : (↑boxes₁).Pairwise Disjoint}
  {boxes₂ : Finset (WithBot (BoxIntegral.Box ι))} {le_of_mem₂ : ∀ J ∈ boxes₂, J ≤ ↑I}
  {pairwise_disjoint₂ : (↑boxes₂).Pairwise Disjoint},
  (∀ J ∈ boxes₁, J ≠ ⊥ → ∃ J' ∈ boxes₂, J ≤ J') →
    BoxIntegral.Prepartition.ofWithBot boxes₁ le_of_mem₁ pairwise_disjoint₁ ≤
      BoxIntegral.Prepartition.ofWithBot boxes₂ le_of_mem₂ pairwise_disjoint₂

theorem BoxIntegral.Prepartition.sum_ofWithBot E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {M : Type u_2} [inst : AddCommMonoid M]
  (boxes : Finset (WithBot (BoxIntegral.Box ι))) (le_of_mem : ∀ J ∈ boxes, J ≤ ↑I)
  (pairwise_disjoint : (↑boxes).Pairwise Disjoint) (f : BoxIntegral.Box ι → M),
  ∑ J ∈ (BoxIntegral.Prepartition.ofWithBot boxes le_of_mem pairwise_disjoint).boxes, f J =
    ∑ J ∈ boxes, Option.elim' 0 f J

def BoxIntegral.Prepartition.restrict E1 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J

Restrict a prepartition to a box.

theorem BoxIntegral.Prepartition.mem_restrict E0 #

∀ {ι : Type u_1} {I J J₁ : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I),
  J₁ ∈ π.restrict J ↔ ∃ J' ∈ π, ↑J₁ = ↑J ⊓ ↑J'

theorem BoxIntegral.Prepartition.mem_restrict' E0 #

∀ {ι : Type u_1} {I J J₁ : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I),
  J₁ ∈ π.restrict J ↔ ∃ J' ∈ π, ↑J₁ = ↑J ∩ ↑J'

theorem BoxIntegral.Prepartition.restrict_mono E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I}, π₁ ≤ π₂ → π₁.restrict J ≤ π₂.restrict J

theorem BoxIntegral.Prepartition.monotone_restrict E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι}, Monotone fun π ↦ π.restrict J

theorem BoxIntegral.Prepartition.restrict_boxes_of_le E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), I ≤ J → (π.restrict J).boxes = π.boxes

Restricting to a larger box does not change the set of boxes. We cannot claim equality of prepartitions because they have different types.

theorem BoxIntegral.Prepartition.restrict_self E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), π.restrict I = π

theorem BoxIntegral.Prepartition.iUnion_restrict E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), (π.restrict J).iUnion = ↑J ∩ π.iUnion

theorem BoxIntegral.Prepartition.restrict_biUnion E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J), J ∈ π → (π.biUnion πi).restrict J = πi J

theorem BoxIntegral.Prepartition.biUnion_le_iff E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J} {π' : BoxIntegral.Prepartition I},
  π.biUnion πi ≤ π' ↔ ∀ J ∈ π, πi J ≤ π'.restrict J

theorem BoxIntegral.Prepartition.le_biUnion_iff E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J} {π' : BoxIntegral.Prepartition I},
  π' ≤ π.biUnion πi ↔ π' ≤ π ∧ ∀ J ∈ π, π'.restrict J ≤ πi J

instance BoxIntegral.Prepartition.instSemilatticeInf E0 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → SemilatticeInf (BoxIntegral.Prepartition I)

theorem BoxIntegral.Prepartition.inf_def E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π₁ π₂ : BoxIntegral.Prepartition I),
  π₁ ⊓ π₂ = π₁.biUnion fun J ↦ π₂.restrict J

theorem BoxIntegral.Prepartition.mem_inf E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  J ∈ π₁ ⊓ π₂ ↔ ∃ J₁ ∈ π₁, ∃ J₂ ∈ π₂, ↑J = ↑J₁ ⊓ ↑J₂

theorem BoxIntegral.Prepartition.iUnion_inf E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π₁ π₂ : BoxIntegral.Prepartition I), (π₁ ⊓ π₂).iUnion = π₁.iUnion ∩ π₂.iUnion

def BoxIntegral.Prepartition.filter E1 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → (BoxIntegral.Box ι → Prop) → BoxIntegral.Prepartition I

The prepartition with boxes {J ∈ π | p J}.

theorem BoxIntegral.Prepartition.filter_boxes E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) (p : BoxIntegral.Box ι → Prop),
  (π.filter p).boxes = {J ∈ π.boxes | p J}

theorem BoxIntegral.Prepartition.mem_filter E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) {p : BoxIntegral.Box ι → Prop},
  J ∈ π.filter p ↔ J ∈ π ∧ p J

theorem BoxIntegral.Prepartition.filter_le E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) (p : BoxIntegral.Box ι → Prop), π.filter p ≤ π

theorem BoxIntegral.Prepartition.filter_of_true E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) {p : BoxIntegral.Box ι → Prop},
  (∀ J ∈ π, p J) → π.filter p = π

theorem BoxIntegral.Prepartition.filter_true E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I), (π.filter fun x ↦ True) = π

theorem BoxIntegral.Prepartition.iUnion_filter_not E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) (p : BoxIntegral.Box ι → Prop),
  (π.filter fun J ↦ ¬p J).iUnion = π.iUnion \ (π.filter p).iUnion

theorem BoxIntegral.Prepartition.sum_fiberwise E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {α : Type u_2} {M : Type u_3} [inst : AddCommMonoid M]
  (π : BoxIntegral.Prepartition I) (f : BoxIntegral.Box ι → α) (g : BoxIntegral.Box ι → M),
  ∑ y ∈ Finset.image f π.boxes, ∑ J ∈ (π.filter fun J ↦ f J = y).boxes, g J = ∑ J ∈ π.boxes, g J

def BoxIntegral.Prepartition.disjUnion E1 #

{ι : Type u_1} →
  {I : BoxIntegral.Box ι} →
    (π₁ π₂ : BoxIntegral.Prepartition I) → Disjoint π₁.iUnion π₂.iUnion → BoxIntegral.Prepartition I

Union of two disjoint prepartitions.

theorem BoxIntegral.Prepartition.disjUnion_boxes E0 #

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

theorem BoxIntegral.Prepartition.mem_disjUnion E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I} (H : Disjoint π₁.iUnion π₂.iUnion),
  J ∈ π₁.disjUnion π₂ H ↔ J ∈ π₁ ∨ J ∈ π₂

theorem BoxIntegral.Prepartition.iUnion_disjUnion E0 #

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

theorem BoxIntegral.Prepartition.sum_disj_union_boxes E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I} {M : Type u_2} [inst : AddCommMonoid M],
  Disjoint π₁.iUnion π₂.iUnion →
    ∀ (f : BoxIntegral.Box ι → M), ∑ J ∈ π₁.boxes ∪ π₂.boxes, f J = ∑ J ∈ π₁.boxes, f J + ∑ J ∈ π₂.boxes, f J

def BoxIntegral.Prepartition.distortion E1 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → [Fintype ι] → NNReal

The distortion of a prepartition is the maximum of the distortions of the boxes of this prepartition.

theorem BoxIntegral.Prepartition.distortion_le_of_mem E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) [inst : Fintype ι],
  J ∈ π → J.distortion ≤ π.distortion

theorem BoxIntegral.Prepartition.distortion_le_iff E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) [inst : Fintype ι] {c : NNReal},
  π.distortion ≤ c ↔ ∀ J ∈ π, J.distortion ≤ c

theorem BoxIntegral.Prepartition.distortion_biUnion E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} [inst : Fintype ι] (π : BoxIntegral.Prepartition I)
  (πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J),
  (π.biUnion πi).distortion = π.boxes.sup fun J ↦ (πi J).distortion

theorem BoxIntegral.Prepartition.distortion_disjUnion E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I} [inst : Fintype ι]
  (h : Disjoint π₁.iUnion π₂.iUnion), (π₁.disjUnion π₂ h).distortion = max π₁.distortion π₂.distortion

theorem BoxIntegral.Prepartition.distortion_of_const E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I) [inst : Fintype ι] {c : NNReal},
  π.boxes.Nonempty → (∀ J ∈ π, J.distortion = c) → π.distortion = c

theorem BoxIntegral.Prepartition.distortion_top E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι), ⊤.distortion = I.distortion

theorem BoxIntegral.Prepartition.distortion_bot E0 #

∀ {ι : Type u_1} [inst : Fintype ι] (I : BoxIntegral.Box ι), ⊥.distortion = 0

def BoxIntegral.Prepartition.IsPartition E1 #

{ι : Type u_1} → {I : BoxIntegral.Box ι} → BoxIntegral.Prepartition I → Prop

A prepartition π of I is a partition if the boxes of π cover the whole I.

theorem BoxIntegral.Prepartition.isPartition_iff_iUnion_eq E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I}, π.IsPartition ↔ π.iUnion = ↑I

theorem BoxIntegral.Prepartition.isPartition_single_iff E0 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} (h : J ≤ I), (BoxIntegral.Prepartition.single I J h).IsPartition ↔ J = I

theorem BoxIntegral.Prepartition.isPartitionTop E1 #

∀ {ι : Type u_1} (I : BoxIntegral.Box ι), ⊤.IsPartition

theorem BoxIntegral.Prepartition.IsPartition.iUnion_eq E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I}, π.IsPartition → π.iUnion = ↑I

theorem BoxIntegral.Prepartition.IsPartition.iUnion_subset E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I},
  π.IsPartition → ∀ (π₁ : BoxIntegral.Prepartition I), π₁.iUnion ⊆ π.iUnion

theorem BoxIntegral.Prepartition.IsPartition.existsUnique E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I} {x : ι → ℝ},
  π.IsPartition → x ∈ I → ∃! J, J ∈ π ∧ x ∈ J

theorem BoxIntegral.Prepartition.IsPartition.nonempty_boxes E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I}, π.IsPartition → π.boxes.Nonempty

theorem BoxIntegral.Prepartition.IsPartition.le_iff E0 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  π₂.IsPartition → (π₁ ≤ π₂ ↔ ∀ J ∈ π₁, ∀ J' ∈ π₂, (↑J ∩ ↑J').Nonempty → J ≤ J')

theorem BoxIntegral.Prepartition.IsPartition.biUnion E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I}
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J},
  π.IsPartition → (∀ J ∈ π, (πi J).IsPartition) → (π.biUnion πi).IsPartition

theorem BoxIntegral.Prepartition.IsPartition.restrict E1 #

∀ {ι : Type u_1} {I J : BoxIntegral.Box ι} {π : BoxIntegral.Prepartition I},
  π.IsPartition → J ≤ I → (π.restrict J).IsPartition

theorem BoxIntegral.Prepartition.IsPartition.inf E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I},
  π₁.IsPartition → π₂.IsPartition → (π₁ ⊓ π₂).IsPartition

theorem BoxIntegral.Prepartition.iUnion_biUnion_partition E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} (π : BoxIntegral.Prepartition I)
  {πi : (J : BoxIntegral.Box ι) → BoxIntegral.Prepartition J},
  (∀ J ∈ π, (πi J).IsPartition) → (π.biUnion πi).iUnion = π.iUnion

theorem BoxIntegral.Prepartition.isPartitionDisjUnionOfEqDiff E1 #

∀ {ι : Type u_1} {I : BoxIntegral.Box ι} {π₁ π₂ : BoxIntegral.Prepartition I} (h : π₂.iUnion = ↑I \ π₁.iUnion),
  (π₁.disjUnion π₂ ⋯).IsPartition

Deprecated aliases

NameNew nameSince
BoxIntegral.Prepartition.injOn_setOf_mem_Icc_setOf_lower_eqBoxIntegral.Prepartition.injOn_setOfPred_mem_Icc_setOfPred_lower_eq2026-07-09