theoremcomap_path_eq_terminal_sup_residual
(XR : Ω → ι →ℝ) (Y : Ω →ℝ) (a : ι →ℝ) (i₀ : ι)
(hX : ∀ ω i, X ω i = a i * Y ω + R ω i)
(hY : ∀ ω, X ω i₀ = Y ω) :
MeasurableSpace.comap X inferInstance =
MeasurableSpace.comap Y inferInstance ⊔ MeasurableSpace.comap R inferInstance :=by
proof · 31
lines
let mX :=MeasurableSpace.comap X inferInstance
let mY :=MeasurableSpace.comap Y inferInstance
let mR :=MeasurableSpace.comap R inferInstance
havehXm : Measurable[mX] X:= measurable_iff_comap_le.mpr le_rfl
havehYm : Measurable[mX] Y:=byhave h := (measurable_pi_apply i₀).comp hXm
haveheq : (fun ω =>X ω i₀) = Y:= funext hY
simpa only [Function.comp_def, heq] using h
apply le_antisymm
· havehY' : Measurable[mY ⊔ mR] Y:= measurable_iff_comap_le.mpr le_sup_left
havehR' : Measurable[mY ⊔ mR] R:= measurable_iff_comap_le.mpr le_sup_right
haveh : Measurable[mY ⊔ mR] (fun ω i => a i * Y ω + R ω i) :=bylet : MeasurableSpace Ω := mY ⊔ mR
apply Measurable.of_eval
intro i
exact (hY'.const_mul (a i)).add ((measurable_pi_apply i).comp hR')
haveheq : X = (fun ω i => a i * Y ω + R ω i) := funext (fun ω => funext (hX ω))
rw [heq]
exact h.comap_le
· apply sup_le hYm.comap_le
haveh : Measurable[mX] (fun ω i =>X ω i - a i * Y ω) :=bylet : MeasurableSpace Ω := mX
apply Measurable.of_eval
intro i
exact ((measurable_pi_apply i).comp hXm).sub (hYm.const_mul (a i))
haveheq : R = (fun ω i =>X ω i - a i * Y ω) :=by
funext ω i
rw [hX]
ring
rw [heq]
exact h.comap_le
theoremcomap_array_eq_terminal_sup_residual {J : Type*}
(XR : Ω → ι →J→ℝ) (Y : Ω →J→ℝ) (a : ι →ℝ) (i₀ : ι)
(hX : ∀ ω i j, X ω i j = a i * Y ω j + R ω i j)
(hY : ∀ ω j, X ω i₀ j = Y ω j) :
MeasurableSpace.comap X inferInstance =
MeasurableSpace.comap Y inferInstance ⊔ MeasurableSpace.comap R inferInstance :=by
proof · 38
lines
let mX :=MeasurableSpace.comap X inferInstance
let mY :=MeasurableSpace.comap Y inferInstance
let mR :=MeasurableSpace.comap R inferInstance
havehXm : Measurable[mX] X:= measurable_iff_comap_le.mpr le_rfl
havehYm : Measurable[mX] Y:=byhave h := (measurable_pi_apply i₀).comp hXm
haveheq : (fun ω =>X ω i₀) = Y:= funext (fun ω => funext (hY ω))
simpa only [Function.comp_def, heq] using h
apply le_antisymm
· havehY' : Measurable[mY ⊔ mR] Y:= measurable_iff_comap_le.mpr le_sup_left
havehR' : Measurable[mY ⊔ mR] R:= measurable_iff_comap_le.mpr le_sup_right
haveh : Measurable[mY ⊔ mR] (fun ω i j => a i * Y ω j + R ω i j) :=bylet : MeasurableSpace Ω := mY ⊔ mR
apply Measurable.of_eval
intro i
apply Measurable.of_eval
intro j
exact (((measurable_pi_apply j).comp hY').const_mul (a i)).add
((measurable_pi_apply j).comp ((measurable_pi_apply i).comp hR'))
haveheq : X = (fun ω i j => a i * Y ω j + R ω i j) :=
funext (fun ω => funext (fun i => funext (hX ω i)))
rw [heq]
exact h.comap_le
· apply sup_le hYm.comap_le
haveh : Measurable[mX] (fun ω i j =>X ω i j - a i * Y ω j) :=bylet : MeasurableSpace Ω := mX
apply Measurable.of_eval
intro i
apply Measurable.of_eval
intro j
exact ((measurable_pi_apply j).comp ((measurable_pi_apply i).comp hXm)).sub
(((measurable_pi_apply j).comp hYm).const_mul (a i))
haveheq : R = (fun ω i j =>X ω i j - a i * Y ω j) :=by
funext ω i j
rw [hX]
ring
rw [heq]
exact h.comap_le