math / data /lean /OAI /Probability /FreeIsing /Factors /ObservableFactorRecovery.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.44 kB
import OAI.Probability.FreeIsing.Estimates.ObservableDisintegration
import OAI.Probability.FreeIsing.Posterior.ProjectedObservationRecovery
namespace OAI
noncomputable section
open MeasureTheory ProbabilityTheory
open scoped NNReal
namespace Problem367
private theorem measurable_time_state
{T W X Y : Type*} [MeasurableSpace T] [MeasurableSpace W]
[MeasurableSpace X] [MeasurableSpace Y] {F : T Γ— X β†’ Y}
(hF : Measurable F) :
Measurable (fun q : T Γ— (W Γ— X) => F (q.1, q.2.2)) :=
hF.comp (by fun_prop)
theorem isFactorOfIID_of_stationary_innovation_observable
{d : β„•} {theta : ℝ} {A X : Type*} [MeasurableSpace A]
[StandardBorelSpace A] [Nonempty A] [MeasurableSpace X]
[StandardBorelSpace X] [Nonempty X]
(nu : Measure A) [IsProbabilityMeasure nu]
(P : Measure X) [IsProbabilityMeasure P]
(Z : X β†’ TreeVertex d β†’ A) (hZ : Measurable Z)
(hinput : P.map Z = Measure.infinitePi (fun _ : TreeVertex d => nu))
(E : X β†’ TreeVertex d β†’ β„• β†’ ℝ) (hE : Measurable E)
(S : TreeAut d β†’ X β†’ X) (hS : βˆ€ g, MeasurePreserving (S g) P P)
(hEeq : βˆ€ g x, E (S g x) = relabel g (E x))
(hZeq : βˆ€ g, βˆ€α΅ x βˆ‚P, Z (S g x) = relabel g (Z x))
(o : TreeVertex d)
(hLaw : HasFreeIsingLaw theta (P.map (fun x => SpinRecovery.decodeArray (E x))))
(H : ℝβ‰₯0 β†’ X β†’ ℝ) (W : β„• β†’ (TreeVertex d β†’ A) β†’ ℝ)
(hm : Measurable (Function.uncurry (fun (t : ℝ) x => Real.tanh (H t.toNNReal x))))
(hInt : βˆ€ t, Integrable (fun p => (H t p.2.1 - H t p.2.2) ^ 2)
((P.map Z) βŠ—β‚˜ ((ObservableDisintegration.kernel P Z) Γ—β‚–
(ObservableDisintegration.kernel P Z))))
(hzero : βˆ€ t, (∫ p, (H t p.2.1 - H t p.2.2) ^ 2
βˆ‚(P.map Z) βŠ—β‚˜ ((ObservableDisintegration.kernel P Z) Γ—β‚–
(ObservableDisintegration.kernel P Z))) = 0)
(hInnovation : βˆ€ n, βˆ€α΅ x βˆ‚P,
E x o n = W n (Z x) + nnrealTimePrimitive (fun t x => Real.tanh (H t x)) n x) :
IsFactorOfIID d theta := by
let kappa := ObservableDisintegration.kernel P Z
have hproj : MeasurePreserving Prod.snd
((Measure.infinitePi (fun _ : TreeVertex d => nu)) βŠ—β‚˜ kappa) P := by
simpa only [hinput] using ObservableDisintegration.measurePreserving_snd_kernel P hZ
refine isFactorOfIID_of_innovation_comparison nu kappa E hE S
(fun g => (hS g).measurable) hEeq o ?_ ?_
(fun t p => H t p.2) W ?_ ?_ ?_ ?_
Β· have hdecode : Measurable (fun x => SpinRecovery.decodeArray (E x)) :=
SpinRecovery.measurable_decodeArray.comp hE
change HasFreeIsingLaw theta
(Measure.map ((fun x => SpinRecovery.decodeArray (E x)) ∘ Prod.snd)
((Measure.infinitePi (fun _ : TreeVertex d => nu)) βŠ—β‚˜ kappa))
rw [← Measure.map_map hdecode measurable_snd, hproj.map_eq]
exact hLaw
Β· intro g
simpa only [hinput] using ObservableDisintegration.joint_kernel_invariant P hZ
(measurable_relabel g) (hS g) (hZeq g)
Β· exact measurable_time_state hm
Β· simpa only [hinput] using hInt
Β· simpa only [hinput] using hzero
Β· intro n
have hsupp : βˆ€α΅ p βˆ‚(Measure.infinitePi (fun _ : TreeVertex d => nu)) βŠ—β‚˜ kappa,
Z p.2 = p.1 := by
simpa only [hinput] using ObservableDisintegration.ae_observable_eq_input P hZ
filter_upwards [hproj.quasiMeasurePreserving.ae (hInnovation n), hsupp] with p hp hs
rw [hs] at hp
exact hp
end Problem367
end
end OAI