theoremphysical_adaptive_prefix (b : HilbertBasis ι ℂH) (c : HilbertBasis κ ℂK)
(d : HilbertBasis υ ℂL) (J : S→TraceInstrument b c X)
(G : S→TraceInstrument (tensorHilbertBasis b d) (tensorHilbertBasis c d) X)
(hG : ∀ h s, MeasurableSet s →IsLeftTraceAction b c d ((J h).event s) ((G h).event s))
(ρ : S→DensityOperator b) (σ : S→DensityOperator d)
(R : S→DensityOperator (tensorHilbertBasis b d))
(μ : MeasureS) [IsProbabilityMeasure μ]
(hR : R=ᵐ[μ](fun h => densityTensor b d (ρ h) (σ h)))
(hm : ∀V, MeasurableSetV→Measurable (fun h => (J h).outcome (ρ h) V))
(hmg : ∀V, MeasurableSetV→Measurable (fun h => (G h).outcome (R h) V))
(U : ∀ h, (G h).ConditionalUpdate (R h))
(V : ∀ h, (J h).ConditionalUpdate (ρ h))
(hf : ∀ x y, Measurable (funp : S×X=> inner ℂ x (((U p.1).state p.2).val.val y)))
(hp : ∀ x y, Measurable (funp : S×X=> inner ℂ x
((densityTensor c d ((V p.1).state p.2) (σ p.1)).val.val y)))
(T : DensityOperator (tensorHilbertBasis c d))
(hmean : ∀ x y, inner ℂ x (T.val.val y)=∫ p, inner ℂ x (((U p.1).state p.2).val.val y)
∂(μ ⊗ₘ TraceInstrument.historyKernel GR hmg)) :
(μ ⊗ₘ TraceInstrument.historyKernel GR hmg)=
(μ ⊗ₘ TraceInstrument.historyKernel J ρ hm) ∧
(funp : S×X=> (U p.1).state p.2)=ᵐ[μ ⊗ₘ TraceInstrument.historyKernel GR hmg]
(fun p => densityTensor c d ((V p.1).state p.2) (σ p.1)) :=by
proof · 30
lines
have hk := physical_history_kernel_eq b c d JG hG ρ σ R μ hR hm hmg
have hμ :=Measure.compProd_congr hk
refine ⟨hμ,?_⟩
rw [hμ] at hmean ⊢let ν := μ ⊗ₘ TraceInstrument.historyKernel J ρ hm
let f :=funp : S×X=> (U p.1).state p.2let q :=funp : S×X=> densityTensor c d ((V p.1).state p.2) (σ p.1)
apply weak_density_ae_unique (tensorHilbertBasis c d) ν f q T hf hp hmean
intro Z hZ x y
have hfi := density_coefficient_integrable (tensorHilbertBasis c d) ν f hf x y
have hqi := density_coefficient_integrable (tensorHilbertBasis c d) ν q hp x y
havehe : ν.withDensityᵥ (fun p => inner ℂ x ((f p).val.val y))=
ν.withDensityᵥ (fun p => inner ℂ x ((q p).val.val y)) :=by
apply complexMeasure_ext_rectangles
intro AB hA hB
rw [withDensityᵥ_apply hfi (hA.prod hB),withDensityᵥ_apply hqi (hA.prod hB)]
change (∫ p inA×ˢ B, inner ℂ x ((f p).val.val y) ∂(μ ⊗ₘ TraceInstrument.historyKernel J ρ hm))=_
rw [Measure.setIntegral_compProd hA hB hfi.integrableOn,
Measure.setIntegral_compProd hA hB hqi.integrableOn]
apply setIntegral_congr_ae hA
filter_upwards [hR] with h hh
intro _
change (∫ z inB, inner ℂ x (((U h).state z).val.val y) ∂(J h).outcome (ρ h))=_
havehlaw : (G h).outcome (R h)=(J h).outcome (ρ h) :=by
rw [hh]
exact physical_product_outcome b c d (J h) (G h) (hG h) (ρ h) (σ h)
rw [← hlaw,← (U h).disintegration B hB x y,hh]
exact physical_disintegration_all b c d (J h) (ρ h) (σ h) (V h) hB ((G h).event B) (hG h B hB) x y
have hh := congrArg (funM : ComplexMeasure (S×X) =>MZ) he
simpa only [withDensityᵥ_apply hfi hZ,withDensityᵥ_apply hqi hZ] using hh