Download data/lean/OAI/Probability/InvariantIsing/Fields/FieldDepthPair.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.23 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Fields/FieldDepthPair.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Fields/FieldDepthPair.lean
-
curl -L -o FieldDepthPair.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Fields/FieldDepthPair.lean
5.23 kB
| import OAI.Probability.InvariantIsing.Fields.FieldSpinMeasurability | |
| namespace OAI | |
| /-! Preservation of the common-level law by the published finite-field | |
| terminal tilt, including the independent scalar-field spins. -/ | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory IsingPerceptron | |
| open scoped BigOperators NNReal | |
| namespace InvariantIsing | |
| lemma field_leaf_depth_pair_conditioning {N n : β} | |
| (Ξ½ : Measure (LabeledLeaf n)) [IsProbabilityMeasure Ξ½] | |
| (Y : LabeledLeaf n β Fin N β β) | |
| (he : Integrable (fun p : Spin N Γ LabeledLeaf n => Real.exp (fieldEnergy (Y p.2) p.1)) | |
| ((uniformSpinPrior N : Measure (Spin N)).prod Ξ½)) | |
| (Ο : β β β) {C : β} (hΟ : β d, |Ο d| β€ C) : | |
| referenceReplicaMean ((uniformSpinPrior N : Measure (Spin N)).prod Ξ½) | |
| (fun p => fieldEnergy (Y p.2) p.1) | |
| (fun Ο : Fin 2 β Spin N Γ LabeledLeaf n => Ο (labeledCommonDepth n (Ο 0).2 (Ο 1).2)) = | |
| referenceReplicaMean Ξ½ (fun Ξ± => β i, Real.log (Real.cosh (Y Ξ± i))) | |
| (fun Ξ± : Fin 2 β LabeledLeaf n => Ο (labeledCommonDepth n (Ξ± 0) (Ξ± 1))) := by | |
| let H := fun p : Spin N Γ LabeledLeaf n => fieldEnergy (Y p.2) p.1 | |
| have ht : spinLeafTerminal H = (fun Ξ± => β i, Real.log (Real.cosh (Y Ξ± i))) := by | |
| funext Ξ± | |
| change finiteLogIntegral (uniformSpinPrior N : Measure (Spin N)) (fieldEnergy (Y Ξ±)) = _ | |
| rw [finiteLogIntegral_uniformSpinPrior, logPartition_fieldEnergy] | |
| rw [spinLeafPair_conditioning Ξ½ H he _ β¨C, fun Ο => hΟ _β©, ht] | |
| congr 1 | |
| funext Ξ± | |
| change (β« _ : Fin 2 β Spin N, Ο (labeledCommonDepth n (Ξ± 0) (Ξ± 1)) β_) = _ | |
| simp only [integral_const, probReal_univ, smul_eq_mul, one_mul] | |
| lemma field_published_depth_test (hpub : PanchenkoTalagrandFieldPairInput) | |
| (N : β) (hN : 0 < N) (h : FieldStep) (Ο : β β β) | |
| {C : β} (hΟ : β d, |Ο d| β€ C) (z : Fin N β β) : | |
| fieldVectorTiltedPairMean N h z (fun p => Ο p.1) = | |
| β« s, Ο (fieldLevelIndex h s).val βpathMeasure := by | |
| have hm : Measurable (fun p : β Γ ((Fin N β β) Γ (Fin N β β)) => Ο p.1) := | |
| (measurable_of_countable Ο).comp measurable_fst | |
| rw [hpub N hN h z (fun p => Ο p.1) hm β¨C, fun p => hΟ p.1β©] | |
| simp only [integral_const, probReal_univ, smul_eq_mul, one_mul] | |
| exact fieldCommonLevel_integral h (fun i => Ο i.val) | |
| def fieldDepthPairIntegrand (N : β) (h : FieldStep) (z : Fin N β β) | |
| (p : LabeledTree h.depth Γ (ForestVertex h.depth β Fin N β β)) (Ο : β β β) : β := | |
| referenceReplicaMean | |
| ((uniformSpinPrior N : Measure (Spin N)).prod (labeledLeafLaw h.depth p.1)) | |
| (fun s : Spin N Γ LabeledLeaf h.depth => fieldEnergy (fieldVectorEndpoint N h p z s.2) s.1) | |
| (fun Ο : Fin 2 β Spin N Γ LabeledLeaf h.depth => | |
| Ο (labeledCommonDepth h.depth (Ο 0).2 (Ο 1).2)) | |
| def fieldVectorDepthPairMean (N : β) (h : FieldStep) (z : Fin N β β) (Ο : β β β) : β := | |
| β« p, fieldDepthPairIntegrand N h z p Ο βfieldVectorCoordinateLaw N h | |
| lemma measurable_fieldDepthPairIntegrand (N : β) (h : FieldStep) (Ο : β β β) : | |
| Measurable (fun p : (Fin N β β) Γ | |
| (LabeledTree h.depth Γ (ForestVertex h.depth β Fin N β β)) => | |
| fieldDepthPairIntegrand N h p.1 p.2 Ο) := by | |
| let D : (Fin 2 β Spin N Γ LabeledLeaf h.depth) β β := fun Ο => | |
| Ο (labeledCommonDepth h.depth (Ο 0).2 (Ο 1).2) | |
| have hm := measurable_cascadeCoordinateReplicaMean h.depth | |
| (uniformSpinPrior N : Measure (Spin N)) (measurable_fieldEnergy_map N) D | |
| have hc : Measurable (fun p : (Fin N β β) Γ | |
| (LabeledTree h.depth Γ (ForestVertex h.depth β Fin N β β)) => | |
| (p.1, fieldEnergyCoordinates N h p.2)) := | |
| measurable_fst.prodMk ((measurable_fieldEnergyCoordinates N h).comp measurable_snd) | |
| have he (z : Fin N β β) | |
| (p : LabeledTree h.depth Γ (ForestVertex h.depth β Fin N β β)) : | |
| cascadeCoordinateEnergy h.depth (fieldEnergy z) (fieldEnergyCoordinates N h p) = | |
| fun s => fieldEnergy (fieldVectorEndpoint N h p z s.2) s.1 := | |
| funext (fieldEnergyCoordinates_energy N h p z) | |
| have hh := hm.comp hc | |
| simp only [Function.comp_def] at hh | |
| simp_rw [he] at hh | |
| simpa only [labeledSpinReference, fieldEnergyCoordinates, fieldDepthPairIntegrand, D] using hh | |
| lemma measurable_fieldVectorDepthPairMean (N : β) (h : FieldStep) (Ο : β β β) : | |
| Measurable (fun z => fieldVectorDepthPairMean N h z Ο) := | |
| (measurable_fieldDepthPairIntegrand N h Ο).stronglyMeasurable.integral_prod_right'.measurable | |
| theorem field_vector_depth_pair_evaluation (hpub : PanchenkoTalagrandFieldPairInput) | |
| (N : β) (hN : 0 < N) (h : FieldStep) (Ο : β β β) | |
| {C : β} (hΟ : β d, |Ο d| β€ C) (z : Fin N β β) : | |
| fieldVectorDepthPairMean N h z Ο = β« s, Ο (fieldLevelIndex h s).val βpathMeasure := by | |
| rw [β field_published_depth_test hpub N hN h Ο hΟ z] | |
| unfold fieldVectorDepthPairMean fieldVectorTiltedPairMean | |
| apply integral_congr_ae | |
| filter_upwards [field_vector_spin_exp_integrable N hN h z] with p hp | |
| exact field_leaf_depth_pair_conditioning (labeledLeafLaw h.depth p.1) | |
| (fieldVectorEndpoint N h p z) hp Ο hΟ | |
| end InvariantIsing | |
| end | |
| end OAI | |