Download data/lean/OAI/Probability/FreeIsing/Stochastic/FiniteLawIntegral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.06 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Stochastic/FiniteLawIntegral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Stochastic/FiniteLawIntegral.lean
-
curl -L -o FiniteLawIntegral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Stochastic/FiniteLawIntegral.lean
3.06 kB
| import OAI.Probability.FreeIsing.Spins.Chain | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory | |
| namespace Problem367 | |
| theorem integral_finiteLaw {Ξ© E : Type*} [MeasurableSpace Ξ©] [MeasurableSpace E] | |
| [Fintype E] [MeasurableSingletonClass E] | |
| {mu : Measure Ξ©} [IsFiniteMeasure mu] {X : Ξ© β E} (hX : Measurable X) | |
| (weight : E β β) (hweight : β e, 0 β€ weight e) | |
| (hlaw : β e, mu {Ο | X Ο = e} = ENNReal.ofReal (weight e)) (f : E β β) : | |
| β« Ο, f (X Ο) βmu = β e : E, weight e * f e := by | |
| rw [β integral_map hX.aemeasurable (measurable_of_finite f).aestronglyMeasurable] | |
| rw [integral_fintype (Integrable.of_finite : Integrable f (Measure.map X mu))] | |
| apply Finset.sum_congr rfl | |
| intro e he | |
| rw [Measure.real, Measure.map_apply hX (measurableSet_singleton e)] | |
| change (mu {Ο | X Ο = e}).toReal * f e = weight e * f e | |
| rw [hlaw e, ENNReal.toReal_ofReal (hweight e)] | |
| theorem integrable_finiteLaw {Ξ© E : Type*} [MeasurableSpace Ξ©] [MeasurableSpace E] | |
| [Fintype E] [MeasurableSingletonClass E] | |
| {mu : Measure Ξ©} [IsFiniteMeasure mu] {X : Ξ© β E} (hX : Measurable X) | |
| (f : E β β) : Integrable (fun Ο => f (X Ο)) mu := by | |
| exact (integrable_map_measure (measurable_of_finite f).aestronglyMeasurable | |
| hX.aemeasurable).mp Integrable.of_finite | |
| local instance : MeasurableSingletonClass IsingSpin where | |
| measurableSet_singleton _ := by trivial | |
| theorem integral_finiteSpinCoordinates {d : β} {I : Type*} [Fintype I] [DecidableEq I] | |
| {mu : Measure (TreeVertex d β IsingSpin)} [IsFiniteMeasure mu] | |
| (p : I β TreeVertex d) (weight : (I β IsingSpin) β β) | |
| (hweight : β eta, 0 β€ weight eta) | |
| (hlaw : β eta, mu {x | β i, x (p i) = eta i} = ENNReal.ofReal (weight eta)) | |
| (f : (I β IsingSpin) β β) : | |
| β« x, f (fun i => x (p i)) βmu = β eta : I β IsingSpin, weight eta * f eta := by | |
| refine integral_finiteLaw (X := fun x : TreeVertex d β IsingSpin => fun i => x (p i)) | |
| (Measurable.of_eval (fun index => measurable_pi_apply (p index))) weight hweight ?_ f | |
| intro eta | |
| convert hlaw eta using 2 | |
| ext x | |
| simp only [Set.mem_ofPred_eq, funext_iff] | |
| theorem integral_spinPath_of_cylinderLaw {d n : β} {theta : β} | |
| (hlo : -1 β€ theta) (hhi : theta β€ 1) | |
| {mu : Measure (TreeVertex d β IsingSpin)} [IsFiniteMeasure mu] | |
| (p : Fin (n+1) β TreeVertex d) | |
| (hlaw : β eta : Fin (n+1) β IsingSpin, | |
| mu {x | β i, x (p i) = eta i} = | |
| ENNReal.ofReal ((1/2 : β) * spinPathWeight theta n eta)) : | |
| β« x, spinSign (x (p 0)) * spinSign (x (p (Fin.last n))) βmu = theta ^ n := by | |
| calc | |
| _ = β eta : Fin (n+1) β IsingSpin, | |
| ((1/2 : β) * spinPathWeight theta n eta) * | |
| (spinSign (eta 0) * spinSign (eta (Fin.last n))) := | |
| integral_finiteSpinCoordinates p _ | |
| (fun eta => mul_nonneg (by norm_num) (spinPathWeight_nonneg hlo hhi n eta)) | |
| hlaw _ | |
| _ = theta ^ n := by | |
| simpa only [mul_assoc] using spinPathWeight_correlation theta n | |
| end Problem367 | |
| end | |
| end OAI | |