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

44 declarations. Mathlib docs · Source

Unit Partition

Fix n a positive integer. BoxIntegral.unitPartition.box are boxes in ι → ℝ obtained by dividing the unit box uniformly into boxes of side length 1 / n and translating the boxes by vectors ν : ι → ℤ.

Let B be a BoxIntegral. A unitPartition.box is admissible for B (more precisely its index is admissible) if it is contained in B. There are finitely many admissible unitPartition.box for B and thus we can form the corresponding tagged prepartition, see BoxIntegral.unitPartition.prepartition (note that each unitPartition.box comes with its tag situated at its "upper most" vertex). If B satisfies hasIntegralVertices, that is its vertices are in ι → ℤ, then the corresponding prepartition is actually a partition.

Main definitions and results

  • BoxIntegral.hasIntegralVertices: a Prop that states that the vertices of the box have coordinates in ℤ

  • BoxIntegral.unitPartition.box: a BoxIntegral, indexed by ν : ι → ℤ, with vertices ν i / n and of side length 1 / n.

  • BoxIntegral.unitPartition.admissibleIndex: For B : BoxIntegral.Box, the set of indices of unitPartition.box that are subsets of B. This is a finite set.

  • BoxIntegral.unitPartition.prepartition_isPartition: For B : BoxIntegral.Box, if B has integral vertices, then the prepartition of unitPartition.box admissible for B is a partition of B.

  • tendsto_tsum_div_pow_atTop_integral: let s be a bounded, measurable set of ι → ℝ whose frontier has zero volume and let F be a continuous function. Then the limit as n → ∞ of ∑ F x / n ^ card ι, where the sum is over the points in s ∩ n⁻¹ • (ι → ℤ), tends to the integral of F over s.

  • tendsto_card_div_pow_atTop_volume: let s be a bounded, measurable set of ι → ℝ whose frontier has zero volume. Then the limit as n → ∞ of card (s ∩ n⁻¹ • (ι → ℤ)) / n ^ card ι tends to the volume of s.

  • tendsto_card_div_pow_atTop_volume': a version of tendsto_card_div_pow_atTop_volume where we assume in addition that x • s ⊆ y • s whenever 0 < x ≤ y. Then we get the same limit card (s ∩ x⁻¹ • (ι → ℤ)) / x ^ card ι → volume s but the limit is over a real variable x.

theorem BoxIntegral.unitPartition.prepartition.congr_simp E1 #

∀ {ι : Type u_1} (n n_1 : ℕ) (e_n : n = n_1) [inst : NeZero n] [inst_1 : Fintype ι] (B : BoxIntegral.Box ι),
  BoxIntegral.unitPartition.prepartition n B = BoxIntegral.unitPartition.prepartition n_1 B

theorem Module.Basis.isUnitSMul.congr_simp E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (v v_1 : Module.Basis ι R M),
  v = v_1 → ∀ {w w_1 : ι → R} (e_w : w = w_1) (hw : ∀ (i : ι), IsUnit (w i)), v.isUnitSMul hw = v_1.isUnitSMul ⋯

theorem BoxIntegral.unitPartition.admissibleIndex.congr_simp E1 #

∀ {ι : Type u_1} (n n_1 : ℕ) (e_n : n = n_1) [inst : NeZero n] [inst_1 : Fintype ι] (B B_1 : BoxIntegral.Box ι),
  B = B_1 → BoxIntegral.unitPartition.admissibleIndex n B = BoxIntegral.unitPartition.admissibleIndex n_1 B_1

theorem Equiv.smulRight.congr_simp E1 #

∀ {α : Type u_4} {β : Type u_5} [inst : GroupWithZero α] [inst_1 : MulAction α β] {a a_1 : α} (e_a : a = a_1)
  (ha : a ≠ 0), Equiv.smulRight ha = Equiv.smulRight ⋯

theorem BoxIntegral.unitPartition.box.congr_simp E1 #

∀ {ι : Type u_1} (n n_1 : ℕ) (e_n : n = n_1) [inst : NeZero n] (ν ν_1 : ι → ℤ),
  ν = ν_1 → BoxIntegral.unitPartition.box n ν = BoxIntegral.unitPartition.box n_1 ν_1

def BoxIntegral.hasIntegralVertices E1 #

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

A BoxIntegral.Box has integral vertices if its vertices have coordinates in ℤ.

theorem BoxIntegral.le_hasIntegralVertices_of_isBounded E1 #

∀ {ι : Type u_1} [Finite ι] {s : Set (ι → ℝ)}, Bornology.IsBounded s → ∃ B, BoxIntegral.hasIntegralVertices B ∧ s ⊆ ↑B

Any bounded set is contained in a BoxIntegral.Box with integral vertices.

def BoxIntegral.unitPartition.box E1 #

{ι : Type u_1} → (n : ℕ) → [NeZero n] → (ι → ℤ) → BoxIntegral.Box ι

A BoxIntegral, indexed by a positive integer n and ν : ι → ℤ, with corners ν i / n and of side length 1 / n.

theorem BoxIntegral.unitPartition.box_lower E0 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] (ν : ι → ℤ), (BoxIntegral.unitPartition.box n ν).lower = fun i ↦ ↑(ν i) / ↑n

theorem BoxIntegral.unitPartition.box_upper E0 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] (ν : ι → ℤ),
  (BoxIntegral.unitPartition.box n ν).upper = fun i ↦ (↑(ν i) + 1) / ↑n

theorem BoxIntegral.unitPartition.mem_box_iff E0 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] {ν : ι → ℤ} {x : ι → ℝ},
  x ∈ BoxIntegral.unitPartition.box n ν ↔ ∀ (i : ι), ↑(ν i) / ↑n < x i ∧ x i ≤ (↑(ν i) + 1) / ↑n

theorem BoxIntegral.unitPartition.mem_box_iff' E0 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] {ν : ι → ℤ} {x : ι → ℝ},
  x ∈ BoxIntegral.unitPartition.box n ν ↔ ∀ (i : ι), ↑(ν i) < ↑n * x i ∧ ↑n * x i ≤ ↑(ν i) + 1

abbrev BoxIntegral.unitPartition.tag E1 #

{ι : Type u_1} → ℕ → (ι → ℤ) → ι → ℝ

The tag of (the index of) a unitPartition.box.

theorem BoxIntegral.unitPartition.tag_apply E0 #

∀ {ι : Type u_1} (n : ℕ) (ν : ι → ℤ) (i : ι), BoxIntegral.unitPartition.tag n ν i = (↑(ν i) + 1) / ↑n

theorem BoxIntegral.unitPartition.tag_injective E1 #

∀ {ι : Type u_1} (n : ℕ) [NeZero n], Function.Injective fun ν ↦ BoxIntegral.unitPartition.tag n ν

theorem BoxIntegral.unitPartition.tag_mem E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] (ν : ι → ℤ),
  BoxIntegral.unitPartition.tag n ν ∈ BoxIntegral.unitPartition.box n ν

def BoxIntegral.unitPartition.index E1 #

{ι : Type u_1} → ℕ → (ι → ℝ) → ι → ℤ

For x : ι → ℝ, its index is the index of the unique unitPartition.box to which it belongs.

theorem BoxIntegral.unitPartition.index_apply E0 #

∀ {ι : Type u_1} (m : ℕ) {x : ι → ℝ} (i : ι), BoxIntegral.unitPartition.index m x i = ⌈↑m * x i⌉ - 1

theorem BoxIntegral.unitPartition.mem_box_iff_index E0 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] {x : ι → ℝ} {ν : ι → ℤ},
  x ∈ BoxIntegral.unitPartition.box n ν ↔ BoxIntegral.unitPartition.index n x = ν

theorem BoxIntegral.unitPartition.index_tag E0 #

∀ {ι : Type u_1} (n : ℕ) [NeZero n] (ν : ι → ℤ),
  BoxIntegral.unitPartition.index n (BoxIntegral.unitPartition.tag n ν) = ν

theorem BoxIntegral.unitPartition.disjoint E1 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] {ν ν' : ι → ℤ},
  ν ≠ ν' ↔ Disjoint ↑(BoxIntegral.unitPartition.box n ν) ↑(BoxIntegral.unitPartition.box n ν')

theorem BoxIntegral.unitPartition.box_injective E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n], Function.Injective fun ν ↦ BoxIntegral.unitPartition.box n ν

theorem BoxIntegral.unitPartition.box.upper_sub_lower E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] (ν : ι → ℤ) (i : ι),
  (BoxIntegral.unitPartition.box n ν).upper i - (BoxIntegral.unitPartition.box n ν).lower i = 1 / ↑n

theorem BoxIntegral.unitPartition.diam_boxIcc E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] (ν : ι → ℤ),
  Metric.diam (BoxIntegral.Box.Icc (BoxIntegral.unitPartition.box n ν)) ≤ 1 / ↑n

theorem BoxIntegral.unitPartition.volume_box E0 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] (ν : ι → ℤ),
  MeasureTheory.volume ↑(BoxIntegral.unitPartition.box n ν) = 1 / ↑n ^ Fintype.card ι

theorem BoxIntegral.unitPartition.setFinite_index E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] {s : Set (ι → ℝ)},
  MeasureTheory.NullMeasurableSet s MeasureTheory.volume →
    MeasureTheory.volume s ≠ ⊤ → {ν | ↑(BoxIntegral.unitPartition.box n ν) ⊆ s}.Finite

def BoxIntegral.unitPartition.admissibleIndex E1 #

{ι : Type u_1} → (n : ℕ) → [NeZero n] → [Fintype ι] → BoxIntegral.Box ι → Finset (ι → ℤ)

For B : BoxIntegral.Box, the set of indices of unitPartition.box that are subsets of B. This is a finite set. These boxes cover B if it has integral vertices, see unitPartition.prepartition_isPartition.

theorem BoxIntegral.unitPartition.mem_admissibleIndex_iff E0 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] [inst_1 : Fintype ι] {B : BoxIntegral.Box ι} {ν : ι → ℤ},
  ν ∈ BoxIntegral.unitPartition.admissibleIndex n B ↔ BoxIntegral.unitPartition.box n ν ≤ B

def BoxIntegral.unitPartition.prepartition E1 #

{ι : Type u_1} → (n : ℕ) → [NeZero n] → [Fintype ι] → (B : BoxIntegral.Box ι) → BoxIntegral.TaggedPrepartition B

For B : BoxIntegral.Box, the TaggedPrepartition formed by the set of all unitPartition.box whose index is B-admissible.

theorem BoxIntegral.unitPartition.mem_prepartition_iff E0 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] [inst_1 : Fintype ι] {B I : BoxIntegral.Box ι},
  I ∈ BoxIntegral.unitPartition.prepartition n B ↔
    ∃ ν ∈ BoxIntegral.unitPartition.admissibleIndex n B, BoxIntegral.unitPartition.box n ν = I

theorem BoxIntegral.unitPartition.mem_prepartition_boxes_iff E0 #

∀ {ι : Type u_1} {n : ℕ} [inst : NeZero n] [inst_1 : Fintype ι] {B I : BoxIntegral.Box ι},
  I ∈ (BoxIntegral.unitPartition.prepartition n B).boxes ↔
    ∃ ν ∈ BoxIntegral.unitPartition.admissibleIndex n B, BoxIntegral.unitPartition.box n ν = I

theorem BoxIntegral.unitPartition.prepartition_tag E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] {ν : ι → ℤ} {B : BoxIntegral.Box ι},
  ν ∈ BoxIntegral.unitPartition.admissibleIndex n B →
    (BoxIntegral.unitPartition.prepartition n B).tag (BoxIntegral.unitPartition.box n ν) =
      BoxIntegral.unitPartition.tag n ν

theorem BoxIntegral.unitPartition.box_index_tag_eq_self E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] {B I : BoxIntegral.Box ι},
  I ∈ (BoxIntegral.unitPartition.prepartition n B).boxes →
    BoxIntegral.unitPartition.box n
        (BoxIntegral.unitPartition.index n ((BoxIntegral.unitPartition.prepartition n B).tag I)) =
      I

theorem BoxIntegral.unitPartition.prepartition_isHenstock E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] (B : BoxIntegral.Box ι),
  (BoxIntegral.unitPartition.prepartition n B).IsHenstock

theorem BoxIntegral.unitPartition.prepartition_isSubordinate E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] (B : BoxIntegral.Box ι) {r : ℝ} (hr : 0 < r),
  1 / ↑n ≤ r → (BoxIntegral.unitPartition.prepartition n B).IsSubordinate fun x ↦ ⟨r, hr⟩

theorem BoxIntegral.unitPartition.mem_admissibleIndex_of_mem_box E0 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] {B : BoxIntegral.Box ι},
  BoxIntegral.hasIntegralVertices B →
    ∀ {x : ι → ℝ}, x ∈ B → BoxIntegral.unitPartition.index n x ∈ BoxIntegral.unitPartition.admissibleIndex n B

If B : BoxIntegral.Box has integral vertices and contains the point x, then the index of x is admissible for B.

theorem BoxIntegral.unitPartition.prepartition_isPartition E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] [inst_1 : Fintype ι] {B : BoxIntegral.Box ι},
  BoxIntegral.hasIntegralVertices B → (BoxIntegral.unitPartition.prepartition n B).IsPartition

If B : BoxIntegral.Box has integral vertices, then prepartition n B is a partition of B.

theorem BoxIntegral.unitPartition.mem_smul_span_iff E0 #

∀ {ι : Type u_1} {n : ℕ} [NeZero n] [inst : Finite ι] {v : ι → ℝ},
  v ∈ (↑n)⁻¹ • Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι)) ↔ ∀ (i : ι), ↑n * v i ∈ Set.range ⇑(algebraMap ℤ ℝ)

theorem BoxIntegral.unitPartition.tag_mem_smul_span E1 #

∀ {ι : Type u_1} (n : ℕ) [NeZero n] [inst : Finite ι] (ν : ι → ℤ),
  BoxIntegral.unitPartition.tag n ν ∈ (↑n)⁻¹ • Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι))

theorem BoxIntegral.unitPartition.tag_index_eq_self_of_mem_smul_span E1 #

∀ {ι : Type u_1} (n : ℕ) [NeZero n] [inst : Finite ι] {x : ι → ℝ},
  x ∈ (↑n)⁻¹ • Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι)) →
    BoxIntegral.unitPartition.tag n (BoxIntegral.unitPartition.index n x) = x

theorem BoxIntegral.unitPartition.integralSum_eq_tsum_div E1 #

∀ {ι : Type u_1} (n : ℕ) [inst : NeZero n] (s : Set (ι → ℝ)) (F : (ι → ℝ) → ℝ) [inst_1 : Fintype ι]
  {B : BoxIntegral.Box ι},
  BoxIntegral.hasIntegralVertices B →
    s ⊆ ↑B →
      BoxIntegral.integralSum (s.indicator F) MeasureTheory.volume.toBoxAdditive.toSMul
          (BoxIntegral.unitPartition.prepartition n B) =
        (∑' (x : ↑(s ∩ (↑n)⁻¹ • ↑(Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι))))), F ↑x) / ↑n ^ Fintype.card ι

theorem tendsto_tsum_div_pow_atTop_integral E1 #

∀ {ι : Type u_1} (s : Set (ι → ℝ)) (F : (ι → ℝ) → ℝ) [inst : Fintype ι],
  Continuous F →
    Bornology.IsBounded s →
      MeasurableSet s →
        MeasureTheory.volume (frontier s) = 0 →
          Filter.Tendsto
            (fun n ↦
              (∑' (x : ↑(s ∩ (↑n)⁻¹ • ↑(Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι))))), F ↑x) / ↑n ^ Fintype.card ι)
            Filter.atTop (nhds (∫ (x : ι → ℝ) in s, F x))

Let s be a bounded, measurable set of ι → ℝ whose frontier has zero volume and let F be a continuous function. Then the limit as n → ∞ of ∑ F x / n ^ card ι, where the sum is over the points in s ∩ n⁻¹ • (ι → ℤ), tends to the integral of F over s.

theorem tendsto_card_div_pow_atTop_volume E1 #

∀ {ι : Type u_1} (s : Set (ι → ℝ)) [inst : Fintype ι],
  Bornology.IsBounded s →
    MeasurableSet s →
      MeasureTheory.volume (frontier s) = 0 →
        Filter.Tendsto
          (fun n ↦ ↑(Nat.card ↑(s ∩ (↑n)⁻¹ • ↑(Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι))))) / ↑n ^ Fintype.card ι)
          Filter.atTop (nhds (MeasureTheory.volume.real s))

Let s be a bounded, measurable set of ι → ℝ whose frontier has zero volume. Then the limit as n → ∞ of card (s ∩ n⁻¹ • (ι → ℤ)) / n ^ card ι tends to the volume of s. This is a special case of tendsto_card_div_pow with F = 1.

theorem tendsto_card_div_pow_atTop_volume' E1 #

∀ {ι : Type u_1} (s : Set (ι → ℝ)) [inst : Fintype ι],
  Bornology.IsBounded s →
    MeasurableSet s →
      MeasureTheory.volume (frontier s) = 0 →
        (∀ ⦃x y : ℝ⦄, 0 < x → x ≤ y → x • s ⊆ y • s) →
          Filter.Tendsto
            (fun x ↦ ↑(Nat.card ↑(s ∩ x⁻¹ • ↑(Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι))))) / x ^ Fintype.card ι)
            Filter.atTop (nhds (MeasureTheory.volume.real s))

A version of tendsto_card_div_pow_atTop_volume for a real variable.