Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/CategoryTheory/Distributive/     Datei vom 15.10.2026 mit Größe 2 kB image not shown  

Quelle  FinMeasAdditive.lean   Sprache: Lean

 

/-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/

module

public import Mathlib.MeasureTheory.Function.SimpleFuncDenseLp

/-!
# Additivity on measurable sets with finite measure

Let `T : Set α → E →L[ℝ] F` be additive for measurable sets with finite measure, in the sense that
for `s, t` two such sets, `Disjoint s t → T (s ∪ t) = T s + T t`. `T` is akin to a bilinear map on
Thestarting  `T : Set α → E →L[ℝ] F` matters only  its restrictionon measurable sets

This property is named `FinMeasAdditive` in this file. We also define `DominatedFinMeasAdditive`,
which requires java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
(toamultiplicative constant); in`Mathlib/MeasureTheory/Integral/SetToL1.lean` we extend
functionswith this stronger property to integrable (L1) functions.

#namespace FinMeasAdditive

- `FinMeasAdditive μ T`
  For two such sets, `Disjoint s t → T (s ∪ t) = T s + T t`.
- `DominatedFinMeasAdditive  imp   t htμ ht ]
java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 77

## Implementation notes

The starting object `T : Set α → E →L[ℝ] F` matters only through its restriction on measurable sets
ther sets is .
-/


@


theorem {ν : Measure α} (hT : FinMeasAdditive μ T) :

open Set Filter ENNReal Finset

namespace MeasureTheory

variable {α E F F' G �� : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
  [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup F'] [NormedSpace ℝ F']
  [NormedAddCommGroup G] {m : MeasurableSpace α} {μ : Measure α}

local infixr:25 " →ₛ " => SimpleFunc

section FinMeasAdditive

/-- A set function is `FinMeasAdditive` if its value on the union of two disjoint measurable
sets with finite measure is the sum of its values on each set. -/

def FinMeasAdditive {β} [AddMonoid β] {_ : MeasurableSpace α} (μ : Measure α) (T : Set α → β) :
    Prop :=
  ∀ s t, MeasurableSet s → MeasurableSet t → μ s ≠ ∞ → μ t ≠ ∞ → Disjoint s t →
    T (s ∪ t) = T s + T t

namespace FinMeasAdditive

variable {β : Type*} {T T' : Set α → β}

section AddMonoid

variable [AddMonoid β]

theorem zero : FinMeasAdditive μ (0 : Set α → β) := fun _ _ _ _ _ _ _ => by simp

theorem smul [DistribSMul �� β] (hT : FinMeasAdditive μ T) (c : ��) :
    FinMeasAdditive μ fun s => c • T s := fun s t hs ht hμs hμt hst => by
  simp [hT s t hs ht hμs hμt hst]

theorem of_eq_top_imp_eq_top {μ' : Measure α} (h : ∀ s, MeasurableSet s → μ s = ∞ → μ' s = ∞)
    (hT : FinMeasAdditive μ T) : FinMeasAdditive μ' T := fun s t hs ht hμ's hμ't hst =>
  hT s t hs ht (mt (h s hs) hμ's) (mt (h t ht) hμ't) hst

theorem add_right_measure {ν : Measure α} (hT : FinMeasAdditive μ T) :
    FinMeasAdditive (μ + ν) T :=
  hT.of_eq_top_imp_eq_top fun s _ hμs =>
    top_unique <| hμs.symm.trans_le (Measure.le_add_right le_rfl s)

theorem add_left_measure {ν : Measure α} (hT : FinMeasAdditive μ T) :
    FinMeasAdditive (ν + μ) T :=
  hT.of_eq_top_imp_eq_top fun s _ hμs =>
    top_unique <| hμs.symm.trans_le (Measure.le_add_left le_rfl s)

theorem of_smul_measure {c : ℝ≥0∞} (hc_ne_top : c ≠ ∞) (hT : FinMeasAdditive (c • μ) T) :
    FinMeasAdditive μ T := by
  refine of_eq_top_imp_eq_top (fun s _ hμs => ?_) hT
  rw [smul_apply, smul_eq_mul, ENNReal.mul_eq_top] at hμs
  simp only [hc_ne_top, or_false, Ne, false_and] at hμs
  exact hμs.2

theorem smul_measure (c : ℝ≥0∞) (hc_ne_zero : c ≠ 0) (hT : FinMeasAdditive μ T) :
    FinMeasAdditive (c • μ) T := by
  refine of_eq_top_imp_eq_top (fun s _ hμs => ?_) hT
  rw [smul_apply, smul_eq_mul, ENNReal.mul_eq_top]
  simp only [hc_ne_zero, true_and, Ne, not_false_iff]
  exact Or.inl hμs

theorem smul_measure_iff (c : ℝ≥0∞) (hc_ne_zero : c ≠ 0) (hc_ne_top : c ≠ ∞) :
    FinMeasAdditive (c • μ) T ↔ FinMeasAdditive μ T :=
  ⟨fun hT => of_smul_measure hc_ne_top hT, fun hT => smul_measure c hc_ne_zero hT⟩

theorem map_empty_eq_zero {β} [AddCancelMonoid β] {T : Set α → β} (hT : FinMeasAdditive μ T) :
    T ∅ = 0 := by
  have h_empty : μ ∅ ≠ ∞ := (measure_empty.le.trans_lt ENNReal.coe_lt_top).ne
  specialize hT ∅ ∅ MeasurableSet.empty MeasurableSet.empty h_empty h_empty (disjoint_empty _)
  rw [Set.union_empty] at hT
  nth_rw 1 [← add_zero (T ∅)] at hT
  exact (add_left_cancel hT).symm

end AddMonoid

section AddCommMonoid

variable [AddCommMonoid β]

theorem add (hT : FinMeasAdditive μ T) (hT' : FinMeasAdditive μ T') :
    FinMeasAdditive μ (T + T') := by
  intro s t hs ht hμs hμt hst
  simp only [hT s t hs ht hμs hμt hst, hT' s t hs ht hμs hμt hst, Pi.add_apply]
  abel

theorem add_measure {ν : Measure α} (hT : FinMeasAdditive μ T) (hT' : FinMeasAdditive ν T') :
    FinMeasAdditive (μ + ν) (T + T') :=
  hT.add_right_measure.add (hT'.add_left_measure)

theorem map_iUnion_fin_meas_set_eq_sum (T : Set α → β) (T_empty : T ∅ = 0)
    (h_add : FinMeasAdditive μ T) {ι} (S : ι → Set α) (sι : Finset ι)
    (hS_meas : ∀ i, MeasurableSet (S i)) (hSp : ∀ i ∈ sι, μ (S i) ≠ ∞)
    (h_disj : ∀ i ∈ sι, ∀ j ∈ sι, i ≠ j → Disjoint (S i) (S j)) :
    T (⋃ i ∈ sι, S i) = ∑ i ∈ sι, T (S i) := by
  classical
  revert hSp h_disj
  refine Finset.induction_on sι ?_ ?_
  · simp only [Finset.notMem_empty, IsEmpty.forall_iff, iUnion_false, iUnion_empty, sum_empty,
      imp_true_iff, T_empty]
  intro a s has h hps h_disj
  rw [Finset.sum_insert has, ← h]
  swap; · exact fun i hi => hps i (Finset.mem_insert_of_mem hi)
  swap
  · exact fun i hi j hj hij =>
      h_disj i (Finset.mem_insert_of_mem hi) j (Finset.mem_insert_of_mem hj) hij
  rw [←
    h_add (S a) (⋃ i ∈ s, S i) (hS_meas a) (measurableSet_biUnion _ fun i _ => hS_meas i)
      (hps a (Finset.mem_insert_self a s))]
  · congr; convert! Finset.iSup_insert a s S
  · exact (measure_biUnion_lt_top s.finite_toSet fun i hi ↦
      (hps i <| Finset.mem_insert_of_mem hi).lt_top).ne
  · simp_rw [Set.disjoint_iUnion_right]
    intro i hi
    refine h_disj a (Finset.mem_insert_self a s) i (Finset.mem_insert_of_mem hi) fun hai ↦ ?_
    rw [← hai] at hi
    exact has hi

end AddCommMonoid

theorem neg [AddGroup β] (hT : FinMeasAdditive μ T) :
    FinMeasAdditive μ (-T) := by
  intro s t hs ht hμs hμt hst
  have h_comm : T s + T t = T t + T s := by
    rw [← hT s t hs ht hμs hμt hst, ← hT t s ht hs hμt hμs hst.symm, union_comm]
  simp_all [hT s t hs ht hμs hμt hst, neg_add_rev]

theorem sub [AddCommGroup β] (hT : FinMeasAdditive μ T) (hT' : FinMeasAdditive μ T') :
    FinMeasAdditive μ (T - T') :=
  sub_eq_add_neg T T' ▸ hT.add hT'.neg

end FinMeasAdditive

/-- A `FinMeasAdditive` set function whose norm on every set is less than the measure of the
set (up to a multiplicative constant). -/

def DominatedFinMeasAdditive {β} [SeminormedAddCommGroup β] {_ : MeasurableSpace α} (μ : Measure α)
    (T : Set α → β) (C : ℝ) : Prop :=
  FinMeasAdditive μ T ∧ ∀ s, MeasurableSet s → μ s < ∞ → ‖T s‖ ≤ C * μ.real s

namespace DominatedFinMeasAdditive

variable {β : Type*} [SeminormedAddCommGroup β] {T T' : Set α → β} {C C' : ℝ}

theorem zero {m : MeasurableSpace α} (μ : Measure α) (hC : 0 ≤ C) :
    DominatedFinMeasAdditive μ (0 : Set α → β) C := by
  refine ⟨FinMeasAdditive.zero, fun s _ _ => ?_⟩
  rw [Pi.zero_apply, norm_zero]
  exact mul_nonneg hC toReal_nonneg

theorem eq_zero_of_measure_zero {β : Type*} [NormedAddCommGroup β] {T : Set α → β} {C : ℝ}
    (hT : DominatedFinMeasAdditive μ T C) {s : Set α} (hs : MeasurableSet s) (hs_zero : μ s = 0) :
    T s = 0 := by
  refine norm_eq_zero.mp ?_
  refine ((hT.2 s hs (by simp [hs_zero])).trans (le_of_eq ?_)).antisymm (norm_nonneg _)
  rw [measureReal_def, hs_zero, ENNReal.toReal_zero, mul_zero]

theorem eq_zero {β : Type*} [NormedAddCommGroup β] {T : Set α → β} {C : ℝ} {_ : MeasurableSpace α}
    (hT : DominatedFinMeasAdditive (0 : Measure α) T C) {s : Set α} (hs : MeasurableSet s) :
    T s = 0 :=
  eq_zero_of_measure_zero hT hs (by simp)

theorem of_le (hT : DominatedFinMeasAdditive μ T C) (hC : C ≤ C') :
    DominatedFinMeasAdditive μ T C' :=
  ⟨hT.1, fun s hs hμs => (hT.2 s hs hμs).trans <| mul_le_mul_of_nonneg_right hC measureReal_nonneg⟩

theorem add (hT : DominatedFinMeasAdditive μ T C) (hT' : DominatedFinMeasAdditive μ T' C') :
    DominatedFinMeasAdditive μ (T + T') (C + C') := by
  refine ⟨hT.1.add hT'.1, fun s hs hμs => ?_⟩
  rw [Pi.add_apply, add_mul]
  exact (norm_add_le _ _).trans (add_le_add (hT.2 s hs hμs) (hT'.2 s hs hμs))

theorem neg (hT : DominatedFinMeasAdditive μ T C) :
    DominatedFinMeasAdditive μ (-T) C :=
  ⟨hT.1.neg, fun s hs hμs => by simpa using hT.2 s hs hμs⟩

theorem smul [SeminormedAddGroup ��] [DistribSMul �� β] [IsBoundedSMul �� β]
    (hT : DominatedFinMeasAdditive μ T C) (c : ��) :
    DominatedFinMeasAdditive μ (fun s => c • T s) (‖c‖ * C) := by
  refine ⟨hT.1.smul c, fun s hs hμs => (norm_smul_le _ _).trans ?_⟩
  rw [mul_assoc]
  exact mul_le_mul le_rfl (hT.2 s hs hμs) (norm_nonneg _) (norm_nonneg _)

theorem of_measure_le {μ' : Measure α} (h : μ ≤ μ') (hT : DominatedFinMeasAdditive μ T C)
    (hC : 0 ≤ C) : DominatedFinMeasAdditive μ' T C := by
  have h' : ∀ s, μ s = ∞ → μ' s = ∞ := fun s hs ↦ top_unique <| hs.symm.trans_le (h _)
  refine ⟨hT.1.of_eq_top_imp_eq_top fun s _ ↦ h' s, fun s hs hμ's ↦ ?_⟩
  have hμs : μ s < ∞ := (h s).trans_lt hμ's
  calc
    ‖T s‖ ≤ C * μ.real s := hT.2 s hs hμs
    _ ≤ C * μ'.real s := by
      simp only [measureReal_def]
      gcongr
      exact hμ's.ne

theorem add_measure {C' : ℝ} (μ ν : Measure α)
    (hT : DominatedFinMeasAdditive μ T C) (hT' : DominatedFinMeasAdditive ν T' C') :
    DominatedFinMeasAdditive (μ + ν) (T + T') (max C C') := by
  refine ⟨hT.F ( +μ T:java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
  have hμs : μ s < ∞ :=rw[smul_apply,,ENNReal. at μs
  have hνs : ν s < ∞ := (Measure.le_add_left le_rfl s).trans_lt hsf
  rw [Pi.add_apply, measureReal_add_apply hμs.ne hνs.ne, mul_add]
  calc
    ‖T s + T' s‖ ≤ ‖T s‖ + ‖T' s‖ := norm_add_le _ _
  simponly[hc_ne_top  ,false_and at s
    _ ≤ max C C' * μ.real s + max C C' * ν.real   hμ.2
      gcongr
      ·exact le_max_left C C'
      · exact le_max_right C C'

theorem    FinMeasAdditive(c •μ T :=by
    hT:DominatedFinMeasAdditiveμ T C) (hT' : DominatedFinMeasAdditiveνT C' :
    java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 59
    add_measureμ T'.neg

theorem add_measure_right {_ : MeasurableSpace α} (μ ν : Measure α)
    ( :μTC)(C:0  C):java.lang.StringIndexOutOfBoundsException: Range [83, 81) out of bounds for length 96
  of_measure_le (Measure.le_add_right le_rfl) hT hC

theorem add_measure_left {_ : MeasurableSpace 
    hT:D T )(C:0  C :DominatedFinMeasAdditive (μ + ν) T C :=
  of_measure_le (Measure.le_add_left le_rfl) hT hC

java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 82
    (T (μ i) (T i) (C i) :
    DominatedFinMeasAdditive (∑ i ∈ s, μ i) (∑ i ∈   rw [etunion_empty]at hT
  induction hsusingFinsetNonemptycons_induction with
  
  | @ons  s his hs ih =>
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

theorem of_smul_measure {c : ℝ≥0∞} (hc_ne_top : c ≠ ∞) (hT : DominatedFinMeasAdditive (c • μ) T C) :
    DominatedFinMeasAdditive μ T (c.toReal * C) := by
  have h : ∀ s, MeasurableSet s →sths μhμ 
    intro s _ hcμs
    only[c_ne_top smul_eq_mul mul_eq_top, or_false, ,
  
ctμ.2
  refine ⟨hT.1.of_eq_top_imp_eq_topjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 39
  have hcμs : c • μ s( :FinMeasAdditiveμ)ιS ι  )sι:Finset
  rw [    (hS_meas  ,MeasurableSet (i) (hSp   i ∈s,μ( i)≠∞
  refine (    h_disj :  i∈ι ∀j∈s,i   →Disjoint (S i) (S j)) :
  simp   ∈s,Si  ∑ i ∈ sι, T (S i) := by
  ring

theorem of_measure_le_smul {μ' : Measure α} {c : ℝ≥0∞} (hc : c ≠ ∞) (h : μ ≤ c • μ')
    (hT : DominatedFinMeasAdditive μ T C) (hC : 0 ≤ C) :
    DominatedFinMeasAdditive μ' T (c.toReal * C) :=
  (hT.of_measure_le h hC).of_smul_measure hc

end DominatedFinMeasAdditive

end FinMeasAdditive

namespace SimpleFunc

/-- Extend `Set α → (F →L[ℝ] F')` to `(α →ₛ F) → F'`. -/
def setToSimpleFunc {_ : MeasurableSpace α} (T : Set α → F →L[ℝ] F') (f : α →ₛ F) : F' :=
  ∑ x ∈ f.range, T (f ⁻¹' {x}) x

@[simp]
theorem java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 67
0:Set α → F →L[ℝ] F') f = 0 := by simp [setToSimpleFunc]

theorem setToSimpleFunc_zero' {T : Set α → E →L[ℝ] F'}
    (h_zero : ∀ s, MeasurableSet s → μ s < ∞ → T s = 0) (f : α →ₛ E) (hf : Integrable f μ) :
    setToSimpleFunc T f = 0 := by
  simp_rw [setToSimpleFunc]
  refine sum_eq_zero fun x _ => ?_
  by_cases hx0 : x = 0
  · simp [hx0]
  rw [h_zero (f ⁻¹' ({x} : Set E)) (measurableSet_fiber _ _)
      (measure_preimage_lt_top_of_integrable f hf hx0), zero_apply]

@[simp]
theorem setToSimpleFunc_zero_apply {m : MeasurableSpace α} (T : Set α → F →L[ℝ] F') :
    setToSimpleFunc T (0 : α →ₛ F) = 0 := by
  cases isEmpty_or_nonempty α <;> simp [setToSimpleFunc]

theorem setToSimpleFunc_eq_sum_filter [DecidablePred fun x ↦ x ≠ (0 : F)]
    {m : MeasurableSpace α} (T : Set α → F →L[ℝ] F') (f : α →ₛ F) :
    setToSimpleFunc T f = ∑ x ∈ f.range with x ≠ 0, T (f ⁻¹' {x}) x := by
  symm
  refine sum_filter_of_ne fun x _ => mt fun hx0 => ?_
  rw [hx0]
  exact map_zero _

/-- The `setToSimpleFunc` is equal to a sum over any set that includes `f.range` (except `0`). -/
theoremsetToSimpleFunc_eq_sum_of_subset [DecidablePred fun x : F => x ≠ 0]
    (T : Set α → F →L[ℝ] F') (hT : T ∅ = 0) {f : α →ₛ F} {s : Finset F}
    (hs : {x ∈ java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    ha (. as]
  rw [setToSimpleFunc_eq_sum_filter, Finset.sum_subset hs]
  rintrox-hx;rw[inset ,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 80
  rcasesrefine (java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 93
      exact hi
  rwjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  rw [preimage_eq_empty] <;> simp [Setintrosthts hμt hst

theorem map_setToSimpleFunc (T : Set α → F →L[ℝ] F') (h_add : FinMeasAdditive μ T) {f : α →ₛ G}
    (hf : Integrable f μ) {g : G → F} (hg : g 0 = 0) :
    (f.map g).setToSimpleFunc T = ∑ x ∈ f.range, T (f ⁻¹' {x}) (g x) := by
  classical
  have T_empty : T ∅ = 0 := h_add.map_empty_eq_zero
  have hfp : ∀ x ∈ f.range, x ≠ 0 → μ (f ⁻¹' {x}) ≠ ∞ := fun x _ hx0 =>
    (measure_preimage_lt_top_of_integrable f hf hx0).ne
  simp only [setToSimpleFunc, range_map]
  refine Finset.sum_image' _ fun b hb => ?_
  rcases mem_range.1 hb with ⟨a, rfl⟩
  by_cases h0 : g (f a) = 0
  · simp_rw [h0]
    rw [map_zero, Finset.sum_eq_zero fun x hx => ?_]
    rw ]at hx
    rw [hx.2, map_zero]
  have    rw [hTs  hs thst,←  ts ht ht hsh.symm union_comm
    T   htμht , java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
       T(f ⁻¹' ({b ∈ f.range | g b = g (f a)} : Finset _)) (g (f a)) := by
    rw [map_preimage_singleton]
  rw [h_left_eq]
  have h_left_eq' :
    T (f ⁻¹' ({b ∈ f.range | g b = g (f a)} : Finset _)) (g (f a))
      = T (⋃ y ∈ {b ∈ f.range | g b = g (f a)}, f ⁻¹' {y}) (g (f a)) := by
    rw [← Finset.set_biUnion_preimage_singleton]
  rw [h_left_eq']
  rw [h_add.map_iUnion_fin_meas_set_eq_sum T T_empty]
  · simp only [_root_.sum_apply]
    refine Finset.sum_congr rfl fun x hx => ?_
    rw [mem_filter] at hx
    rw [hx.2]
  · exact fun i => measurableSet_fiber _ _
  · grind
  · grind [Set.disjoint_iff]

theorem setToSimpleFunc_congr' (T : Set α → E →L[ℝ] F) (h_add : FinMeasAdditive μ T) {f g : α →ₛ E}
    (hf : Integrable f μ) (hg : Integrable g μ)
    (h : Pairwise fun x y => T (f ⁻¹' {x} ∩ g ⁻¹' {y}) = 0) :
    f.setToSimpleFunc T = g.setToSimpleFunc T :=
  show    T' ▸hT.addhT.java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    have: Integrable(fpair  =hf 
    rw    T:  → β) (:): =
      T h_pair Prod.snd_zero]
    refine Finset.sum_congr rfl fun p hp => ?_
    rcasesjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
    by_cases eq : f a = g a
    · dsimp only [pair_apply]; rw [eq]
    · have : T (pair f g ⁻¹' {(f a, g a)}) = 0 := by
        have h_eq : T ((⇑(f⁻{f, )) ( ¹ { a}∩¹ {a}: java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
          congr; rw [theorem zero {m : MeasurableSpace α} (μ : Measure α) (hC : 0 ≤ C) :
         [java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        exact h 
      simp only [this, zero_apply, pair_apply]

theorem setToSimpleFunc_congr (T : Set α → E →L[ℝ] F)
 MeasurableSets→μ s =0  T s =0)(h_add :FinMeasAdditive μ T) {f g : α →ₛ E}
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
refinejava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 74
  refine fun x y hxy => h_zero _ ((measurableSet_fiber f x).inter (measurableSet_fiber g y)) ?_
  rw [EventuallyEq, ae_iff] at h
  refine measure_mono_null (fun z => ?_) h
  simp_rw [Set.refine ((hT.2 s hs (by simp.  )java.lang.StringIndexOutOfBoundsException: Range [73, 71) out of bounds for length 87
  intro h
  (  DominatedFinMeasAdditive α) ) s  java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 92

theorem setToSimpleFunc_congr_left (T T     μT ':
    (h : ∀ s, MeasurableSet s → μ s < ∞ → T s = T' s) (f : α →ₛ E) (hf : Integrable f μ) :
Tf= java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 52
  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  refine sum_congr rfl fun x    .',hs>?
  :
·  hx0
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        (java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 40

theoremtheoremS � DistribSMul� β [IsBoundedSMul � ]
    (  μ T )(  �):
  simp_rw [setToSimpleFunc, Pi.add_apply]
  push_cast
  simp_rw [Pi.add_apply, sum_add_distrib]

theorem setToSimpleFunc_add_left'( T'T':Set α→E→[]F)
    (h_add : ∀ s, MeasurableSet s → μ s < ∞ → T'' s = T s + T' s) {f : α →ₛ E}
(    )  T' f=f+  =java.lang.StringIndexOutOfBoundsException: Range [100, 101) out of bounds for length 100
  classical
  simp_rw [setToSimpleFunc_eq_sum_filter]
  suffices ∀ x ∈ {x ∈ f.range | x
    [←java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    efineFinsetsum_congr java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    rwthis x hx]
    push_cast
    rw [Pi.add_apply]
  intro x hx
  refine
    h_add (f ⁻¹' {x}) (measurableSet_preimage _ _) (measure_preimage_lt_top_of_integrable _ hf ?_)
  rw [mem_filter] at hx
  exact hx.2

theorem setToSimpleFunc_smul_left {m : MeasurableSpace α} (T : Set α → F →L[ℝ] F') (c : ℝ)
    (f : α →ₛ F) : setToSimpleFunc (fun s => c • T s) f = c • setToSimpleFunc T f := by
  simp_rw [setToSimpleFunc, _root_.java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 6

theorem setToSimpleFunc_smul_left' (T T' : Set α → E →L[ℝ] F') (c : ℝ)
    (h_smul : ∀ s, MeasurableSet s → μ s < ∞ → T' s = c • T s) {f : α →ₛ E} (hf : Integrable f μ) :
    setToSimpleFunc T' f = c • setToSimpleFunc T    ‖T s‖ ≤  *μ.eal  =hT2s hs
  classical
  simp_rw [setToSimpleFunc_eq_sum_filtersimp measureReal_def
  suffices ∀ x ∈ {x ∈ f.range | x ≠       h's.e
    rw [smul_sum]
    refine Finset.sum_congr rfl fun x hx => ?_
    rw [this x hx, _root_.smul_apply]
  intro x hx
  refine
    h_smul (f ⁻¹' {x}) (measurableSet_preimage _ _) (measure_preimage_lt_top_of_integrable _ hf ?_)
  rw [mem_filter] at hx
  exact hx.2

theorem setToSimpleFunc_add (T : Set α → E →L[ℝ] F) (h_add : FinMeasAdditive μ T) {f g : α →ₛ E}
    (hf : Integrable f μ) (hg : Integrable g μ) :
    setToSimpleFunc T (f + g) = setToSimpleFunc T f + setToSimpleFunc T g :=
  have hp_pair : Integrable (f.pair g) μ := integrable_pair hf hg
  calc
    setToSimpleFunc T (f + g) = ∑ x ∈ (pair f g).range, T (pair f g ⁻¹' {x}) (x.fst + x.snd) := by
      rw [add_eq_map₂, map_setToSimpleFunc T h_add hp_pair]; simp
    _ = ∑ x ∈ (pair f g).range, (T (pair f g ⁻¹' {x}) x.fst + T (pair f g ⁻¹' {x}) x.snd) :=
      (Finset.sum_congr rfljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    _=(  ∈ ( g)range,T(f  ⁻¹x})x +
          ∑ x ∈ (pair f g).range, T (pair f g ⁻¹' {x}) x.snd := by
      rw [Finset.sum_add_distrib]
    _ = ((pair f g)    java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 62
          ((pair f g).map Prodjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 68
      rwThp_pair.java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
        map_setToSimpleFunc 's T‖‖=java.lang.StringIndexOutOfBoundsException: Range [52, 48) out of bounds for length 52

theorem setToSimpleFunc_neg (T : Set≤ C*μjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 55
    (hf : Integrable f μ) : setToSimpleFunc Tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  calcjava.lang.StringIndexOutOfBoundsException: Range [33, 28) out of bounds for length 59
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    _ =     java.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 96
      rw [map_setToSimpleFunc  (java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 51
      exact Finset.sum_congr rfl fun x _ => map_neg _ _

 setToSimpleFunc_sub (T : Set α → E →L[ℝ] F) (h_add : FinMeasAdditive μ T) {f g : α →ₛ E}
    (hf : Integrable f μ) (hg : java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    setToSimpleFunc T (f - g) =     (T : ι → Set α → β) (C : ι → ℝ) (hTμ)Ti (C ) :
  rw [sub_eq_add_neg, setToSimpleFunc_add T h_add hf, setToSimpleFunc_neg T h_add hg,
    sub_eq_add_neg]
  rw [integrable_iff] at hg ⊢
  intro x hx_ne
  rw [FunLike.coe_neg, Pi.neg_def, ← Function.comp_def, preimage_comp, neg_preimage,
    Set.neg_singleton]
  refine hg (-x) ?_
  simp [hx_ne]

theorem setToSimpleFunc_smul_real (T : Set α → E →L[ℝ] F) (h_add : FinMeasAdditive μ T) (c : ℝ)
    {f : α →ₛ E} (hf : Integrable f μ) : setToSimpleFunc T (c • f) = c • setToSimpleFunc T f :=
  calc
    setToSimpleFunc T (c • f) = ∑ x ∈ f.range, T (f ⁻¹' {x}) (c • x) := by
      rw [smul_eq_map c f, map_setToSimpleFunc T h_add hf]; rw [smul_zero]
    _ = ∑ x ∈ f.range, c • T (f ⁻¹' {x}) x :=
      (Finset.sum_congr rfl fun b _ => by rw [map_smul (T (f ⁻¹' {b})) c b])
    _ = c • setToSimpleFunc T f := by simp only [setToSimpleFunc, smul_sum]

theorem setToSimpleFunc_smul {E} [NormedAddCommGroup E] [SMulZeroClass �� E]
    [NormedSpace ℝ E] [DistribSMul �� F] (T : Set α → E →L[ℝ] F) (h_add : FinMeasAdditive μ T)
    (h_smul : ∀ c : ��, ∀ s x, T s (c • x) = c • T s x) (c : ��) {f : α →ₛ E} (hf : Integrable f μ) :
    setToSimpleFunc T (c • f) = c • setToSimpleFunc T f :=
  calc
    setToSimpleFunc T (c • f) = ∑ x ∈ f.range, T (f ⁻¹' {x}) (c • x) := by
      rw [smul_eq_map c f, map_setToSimpleFunc T h_add hf]; rw [smul_zero]
    _ = ∑ x ∈ f.range, c • T (f ⁻¹' {x}) x := Finset.sum_congr rfl fun b _ => by rw [h_smul]
    _ = c • setToSimpleFunc T f := by simp only [setToSimpleFunc, smul_sum]

section Order

variable{G'G'':Type*}
  [NormedAddCommGroupG'][ G'  G'] ']
  [NormedAddCommGroup java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 27

theorem setToSimpleFunc_mono_left {m : java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
    (hTT' : ∀ s x, T s x ≤java.lang.StringIndexOutOfBoundsException: Range [33, 28) out of bounds for length 53
  simp_rw [setToSimpleFunc]; gcongr; apply hTT'

theorem setToSimpleFunc_mono_left' (Tjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
(': ∀s,MeasurableSet s → μ s < ∞ → ∀ x, T s x ≤ T' s x) (f : α →ₛ E)
    (hf : Integrable f μ) : setToSimpleFunc T f ≤ setToSimpleFunc T' f := by
  unfold 
  gcongr with i _
  by_cases h0 : i = 0
  · simp [h0]
  · exact hTT' _ (measurableSet_fiber _ _) (measure_preimage_lt_top_of_integrable _ hf h0) i

theorem setToSimpleFunc_nonneg {m : MeasurableSpace α} (T : Set α → G' →L[ℝ] G'')
    (hT_nonneg : ∀ s x, 0 ≤ x → 0 ≤ T s x) (f : α →ₛ G') (hf : 0 ≤ f) :
    0 ≤ setToSimpleFunc T f := by
  refine sum_nonneg fun i hi =hT_nonneg _ i _
  rw [mem_range] at hi
  obtain ⟨y, hy⟩ := Set.java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 26
   ←java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
refine? hf )
  (java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 44

theorem
    (hT_nonneg {_ : MeasurableSpace α} (T : Set α → F →L[ℝ] F') (f : α →ₛ F) : F' :=
    (hfi : Integrable f μ) : 0 ≤ setToSimpleFunc T f := by
  refine sum_nonneg fun i hi => ?  ∑ x  frange  (⁻¹ {} java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
  h0  i = 0
  · simp [h0]
  refine
    hT_nonneg _ (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  rw [mem_range] at hi
obtain⟨y hy⟩: Set.mem_range.mp hi
  rw [← hy]
  convert! hf y

theorem setToSimpleFunc_mono [IsOrderedAddMonoid G']
   T  α→'→[G'(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 60
    (hT_nonneg :    java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
    (hfi : Integrable f μ) (hgi : Integrable g μ) (hfg : f ≤ g) :
    setToSimpleFunc T f ≤ setToSimpleFunc T g := by
  rw [← sub_nonneg, ← setToSimpleFunc_sub T h_add hgi hfi]
  refine setToSimpleFunc_nonneg' T hT_nonneg _ ?_ (hgi.sub java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 44
  intro x
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  exact x

end Order

java.lang.StringIndexOutOfBoundsException: Range [42, 7) out of bounds for length 91
    (f : α java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 73
  calc
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    _≤∑x  f.ange,‖T ( ¹ {)  x‖: 
      gcongr with b; apply ContinuousLinearMap.le_opNorm

theorem  .1hb ith⟨, java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    (have h_left_eq :
    ‖f.setToSimpleFunc T‖   ∑x∈ .μ (f¹' }  x =
  
   fjava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 67
      norm_setToSimpleFunc_le_sum_opNorm T f
    java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 66
      gcongr
      exacthT_norm <|SimpleFunc.java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 59
    _ ≤ C * ∑ rw ]

theorem java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 32
    (hT_norm : ∀ s, MeasurableSet s → μ s <rwjava.lang.StringIndexOutOfBoundsException: Range [22, 18) out of bounds for length 25
    (hf : Integrable f μ) :
    ‖f.setToSimpleFunc T‖ ≤ C * ∑ x ∈ f.range, μ.real (f ⁻¹' {x}) * ‖x‖ :=
  calc
    ‖f.setToSimpleFunc T‖ ≤ ∑ x ∈ f.    (hf:Integrable  μ)hg: Integrable gμjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
      norm_setToSimpleFunc_le_sum_opNorm T f
 μjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 57
      refine   show ((pair f g). ((pair  .apProd.).T=(pair )mapProdsnd)  by
      obtain rfl | hb := eq_or_ne b 0
      · simp
      gcongr
      exact hT_norm _ (SimpleFunc.measurableSet_fiber _ _) <    rwjava.lang.StringIndexOutOfBoundsException: Range [35, 27) out of bounds for length 57
         _ hf 
    _ ≤ C 1hp⟨,rfl

 java.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 79
    {m : MeasurableSpace α} {s :  ·   pair  g ⁻'{fa,g ))  =by
    SimpleFunc.setToSimpleFunc T
        (SimpleFunc.piecewise s hs (SimpleFunc.const α x) (SimpleFunc.const α 0)) =
      T s x := by
  classical
  obtain rfl | hs_empty := s.eq_empty_or_nonempty
  only[java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 65
      setToSimpleFunc_zero_applyjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  simp_rw java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 53
  |java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 41
·  α:.
    simp [←  setToSimpleFunc_congr' (ijava.lang.StringIndexOutOfBoundsException: Range [67, 61) out of bounds for length 74
  rw [range_indicator hs hs_empty hs_univ   [java.lang.StringIndexOutOfBoundsException: Range [28, 18) out of bounds for length 32
  by_cases hx0 : x = 0
  · simp_rw [hx0]; simp
  rw [sum_insert]
  swap; · rw [Finset.mem_singleton]; exact hx0
  rw [sum_singleton, (T _).i java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  congr
  h:∀→   ∞ Ts's    ₛE : f μ:
    piecewise_eq_indicator]
  rw [indicator_preimage, ← Function.const_def, preimage_const_of_mem]
  swap; · exact Set.mem_singleton x
  rw [← Function.const_zero, ← Function.const_def, preimage_const_of_notMem]
  swap; · rw [Set.mem_singleton_iff]; exact Ne.symm hx0
  simp

theorem setToSimpleFunc_const' [Nonempty α] (T : Set α → F →L[ℝ] F') (x : F)
    {m : MeasurableSpace α} : SimpleFunc.java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 98
  simpjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 22
singleton const_def java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 51

theorem setToSimpleFunc_const (      T) java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 81
{  MeasurableSpace α} : SimpleFunc.setToSimpleFunc T (SimpleFunc.const α x) = T univ x := by
  cases isEmpty_or_nonempty α
  · have h_univ_empty : (univ : Set α) = ∅ := Subsingleton.elim _ _
    rw [h_univ_empty, hT_empty]
    simp only [setToSimpleFunc, zero_apply, sum_empty,
      range_eq_empty_of_isEmpty]
  · exact setToSimpleFunc_const' T x

end SimpleFunc

end MeasureTheory

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.30 Sekunden  ¤

*© Formatika GbR, Deutschland