Download data/lean/OAI/Probability/FreeIsing/Conditioning/ObservationCopyStationarity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.63 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Conditioning/ObservationCopyStationarity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Conditioning/ObservationCopyStationarity.lean
-
curl -L -o ObservationCopyStationarity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Conditioning/ObservationCopyStationarity.lean
5.63 kB
| 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 | |