File size: 5,629 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | import OAI.Probability.FreeIsing.Conditioning.CopyInvariance
import OAI.Probability.FreeIsing.Posterior.ObservationFactorRecovery
import OAI.Probability.FreeIsing.Trees.Transitivity
namespace OAI
noncomputable section
open MeasureTheory ProbabilityTheory
namespace Problem367.ObservationCopyStationarity
def arrayRelabelEquiv {d : β} {A : Type*} [MeasurableSpace A]
(g : TreeAut d) : (TreeVertex d β A) βα΅ (TreeVertex d β A) where
toFun := relabel g
invFun := fun x v => x (g.toEquiv v)
left_inv := by intro x; funext v; simp [relabel]
right_inv := by intro x; funext v; simp [relabel]
measurable_toFun := measurable_relabel g
measurable_invFun := Measurable.of_eval (fun _ => measurable_pi_apply _)
theorem canonical_conditionalCopies_invariant
{d : β} {A : Type*} [MeasurableSpace A]
(nu : Measure A) [IsProbabilityMeasure nu]
(rho : Measure ((TreeVertex d β A) Γ (TreeVertex d β β β β)))
[IsProbabilityMeasure rho]
(hfirst : rho.fst = Measure.infinitePi (fun _ : TreeVertex d => nu))
(g : TreeAut d)
(hjoint : rho.map (Prod.map (relabel g) (relabel g)) = rho) :
(rho.fst ββ (rho.condKernel Γβ rho.condKernel)).map
(Prod.map (relabel g) (Prod.map (relabel g) (relabel g))) =
rho.fst ββ (rho.condKernel Γβ rho.condKernel) := by
have hT : MeasurePreserving (arrayRelabelEquiv (A := A) g) rho.fst rho.fst := by
refine β¨measurable_relabel g, ?_β©
rw [hfirst]
exact Measure.map_infinitePi_infinitePi_of_inj g.toEquiv.symm.injective
have hdis : rho.fst ββ rho.condKernel = rho :=
Measure.disintegrate rho rho.condKernel
apply conditionalCopies_invariant rho.fst rho.condKernel (arrayRelabelEquiv g)
(measurable_relabel g) hT
simpa [hdis, arrayRelabelEquiv] using hjoint
theorem ae_eq_arrays_of_reference_vertex
{d : β} {A : Type*} [MeasurableSpace A]
(mu : Measure ((TreeVertex d β A) Γ
((TreeVertex d β β β β) Γ (TreeVertex d β β β β))))
(o : TreeVertex d)
(hinvariant : β g : TreeAut d,
mu.map (Prod.map (relabel g) (Prod.map (relabel g) (relabel g))) = mu)
(hroot : β n, βα΅ p βmu, p.2.1 o n = p.2.2 o n) :
βα΅ p βmu, p.2.1 = p.2.2 := by
have hcoord : β v n, βα΅ p βmu, p.2.1 v n = p.2.2 v n := by
intro v n
obtain β¨g, hgβ© := exists_treeAut_map v o
have hgo : g.toEquiv.symm o = v := by
rw [β hg, Equiv.symm_apply_apply]
have hpres : MeasurePreserving
(Prod.map (relabel g) (Prod.map (relabel g) (relabel g))) mu mu :=
β¨(measurable_relabel g).prodMap
((measurable_relabel g).prodMap (measurable_relabel g)), hinvariant gβ©
filter_upwards [hpres.quasiMeasurePreserving.ae (hroot n)] with p hp
change p.2.1 (g.toEquiv.symm o) n = p.2.2 (g.toEquiv.symm o) n at hp
simpa only [hgo] using hp
have hall : βα΅ p βmu, β v n, p.2.1 v n = p.2.2 v n :=
ae_all_iff.2 (fun v => ae_all_iff.2 (hcoord v))
filter_upwards [hall] with p hp
exact funext (fun v => funext (hp v))
theorem isFactorOfIID_of_joint_observation_reference_collapse
{d : β} {theta : β} {A : Type*} [MeasurableSpace A]
[StandardBorelSpace A] [Nonempty A]
(nu : Measure A) [IsProbabilityMeasure nu]
(rho : Measure ((TreeVertex d β A) Γ (TreeVertex d β β β β)))
[IsProbabilityMeasure rho] (o : TreeVertex d)
(hfirst : rho.fst = Measure.infinitePi (fun _ : TreeVertex d => nu))
(hLaw : HasFreeIsingLaw theta
(Measure.map (fun p => SpinRecovery.decodeArray p.2) rho))
(hjoint : β g : TreeAut d, rho.map (Prod.map (relabel g) (relabel g)) = rho)
(hroot : β n, βα΅ p βrho.fst ββ (rho.condKernel Γβ rho.condKernel),
p.2.1 o n = p.2.2 o n) :
IsFactorOfIID d theta := by
have hcopies := ae_eq_arrays_of_reference_vertex
(rho.fst ββ (rho.condKernel Γβ rho.condKernel)) o
(fun g => canonical_conditionalCopies_invariant nu rho hfirst g (hjoint g)) hroot
have hdis : (Measure.infinitePi (fun _ : TreeVertex d => nu)) ββ
rho.condKernel = rho := by
rw [β hfirst]
exact Measure.disintegrate rho rho.condKernel
apply isFactorOfIID_of_equal_observation_conditionalCopies nu rho.condKernel
Β· simpa only [hdis] using hLaw
Β· intro g
rw [hdis]
exact (show MeasurePreserving (Prod.map (relabel g) (relabel g)) rho rho from
β¨(measurable_relabel g).prodMap (measurable_relabel g), hjoint gβ©).quasiMeasurePreserving
Β· simpa only [hfirst] using hcopies
theorem isFactorOfIID_of_joint_observation_reference_zero
{d : β} {theta : β} {A : Type*} [MeasurableSpace A]
[StandardBorelSpace A] [Nonempty A]
(nu : Measure A) [IsProbabilityMeasure nu]
(rho : Measure ((TreeVertex d β A) Γ (TreeVertex d β β β β)))
[IsProbabilityMeasure rho] (o : TreeVertex d)
(hfirst : rho.fst = Measure.infinitePi (fun _ : TreeVertex d => nu))
(hLaw : HasFreeIsingLaw theta
(Measure.map (fun p => SpinRecovery.decodeArray p.2) rho))
(hjoint : β g : TreeAut d, rho.map (Prod.map (relabel g) (relabel g)) = rho)
(hInt : β n, Integrable (fun p => (p.2.1 o n - p.2.2 o n) ^ 2)
(rho.fst ββ (rho.condKernel Γβ rho.condKernel)))
(hzero : β n, (β« p, (p.2.1 o n - p.2.2 o n) ^ 2
βrho.fst ββ (rho.condKernel Γβ rho.condKernel)) = 0) :
IsFactorOfIID d theta := by
apply isFactorOfIID_of_joint_observation_reference_collapse nu rho o hfirst hLaw hjoint
exact fun n => ae_eq_of_integral_sq_sub_eq_zero (hInt n) (hzero n)
end Problem367.ObservationCopyStationarity
end
end OAI
|