lemmamap_congr_trace_ae (W : PositiveMatrixMeasure Ω n) (f g : Ω →T)
(hf : Measurable f) (hg : Measurable g) (hfg : f=ᵐ[W.traceMeasure]g) :
W.map f hf=W.map g hg :=by
proof · 10
lines
apply ext_entry_default
ext i j s hs
change ((W.entry i j).map f) s=((W.entry i j).map g) s
rw [VectorMeasure.map_apply _ hf hs,VectorMeasure.map_apply _ hg hs]
change W.value (f⁻¹' s) i j=W.value (g⁻¹' s) i j
rw [ ←W.positiveDensity_setIntegral Measure.AbsolutelyContinuous.rfl (hf hs) i j,
←W.positiveDensity_setIntegral Measure.AbsolutelyContinuous.rfl (hg hs) i j]
apply setIntegral_congr_set
filter_upwards [hfg] with x hx
exact congrArg (fun y => y ∈ s) hx
theoremdefault_output_unchanged (W : PositiveMatrixMeasure Ω n)
(N : Set Ω) (hN : MeasurableSetN) (h0 : (Matrix.trace (W.value N)).re=0)
(f g : Ω →T) (hf : Measurable f) (hg : Measurable g)
(heq : ∀ x, x∉N→ f x=g x) : W.map f hf=W.map g hg :=by
proof · 3
lines
apply W.map_congr_trace_ae f g hf hg
filter_upwards [measure_eq_zero_iff_ae_notMem.mp ((W.traceMeasure_eq_zero_iff hN).mpr h0)] with x hx
exact heq x hx