Buckets:
| import OAI.Probability.FreeIsing.Spins.Kernel | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory | |
| open scoped MeasureTheory | |
| namespace Problem367 | |
| theorem setIntegral_spin_posterior_tilt | |
| {Ω : Type*} {mSmall m : MeasurableSpace Ω} {mu : Measure Ω} [IsFiniteMeasure mu] | |
| (hm : mSmall ≤ m) {S : Ω → IsingSpin} (hS : Measurable S) | |
| {F : Ω → ℝ} (hF : StronglyMeasurable[mSmall] F) (hFi : Integrable F mu) | |
| (a : IsingSpin) : | |
| ∫ x in {x | S x = a}, F x ∂mu = (1 / 2 : ℝ) * | |
| ∫ x, F x * (1 + spinSign a * mu[fun y => spinSign (S y) | mSmall] x) ∂mu := by | |
| have hsign : Measurable spinSign := by intro s hs; trivial | |
| have hSm : AEStronglyMeasurable (fun x => spinSign (S x)) mu := | |
| (hsign.comp hS).aestronglyMeasurable | |
| have hSb : ∀ᵐ x ∂mu, ‖spinSign (S x)‖ ≤ (1 : ℝ) := by | |
| apply Filter.Eventually.of_forall | |
| intro x | |
| cases hs : S x <;> norm_num [spinSign, hs] | |
| have hSi : Integrable (fun x => spinSign (S x)) mu := Integrable.of_bound hSm 1 hSb | |
| have hFSi : Integrable (fun x => F x * spinSign (S x)) mu := hFi.mul_bdd hSm hSb | |
| have hpull := condExp_mul_of_stronglyMeasurable_left hF hFSi hSi | |
| have hFMi : Integrable | |
| (fun x => F x * mu[fun y => spinSign (S y) | mSmall] x) mu := | |
| integrable_condExp.congr hpull | |
| have hint : (∫ x, F x * spinSign (S x) ∂mu) = | |
| ∫ x, F x * mu[fun y => spinSign (S y) | mSmall] x ∂mu := by | |
| rw [← integral_condExp (m := mSmall) hm] | |
| exact integral_congr_ae hpull | |
| have hA : MeasurableSet {x | S x = a} := | |
| (show MeasurableSet ({a} : Set IsingSpin) from trivial).preimage hS | |
| have hindicator : ({x | S x = a} : Set Ω).indicator F = | |
| fun x => (1 / 2 : ℝ) * (F x + spinSign a * (F x * spinSign (S x))) := by | |
| funext x | |
| cases hs : S x <;> cases a <;> simp [Set.indicator, hs, spinSign] <;> ring | |
| rw [← integral_indicator hA, hindicator, integral_const_mul, | |
| integral_add hFi (hFSi.const_mul (spinSign a)), integral_const_mul, hint] | |
| congr 1 | |
| rw [← integral_const_mul, ← integral_add hFi (hFMi.const_mul (spinSign a))] | |
| apply integral_congr_ae | |
| exact Filter.Eventually.of_forall (fun x => by ring) | |
| theorem integral_cond_spin_posterior_tilt | |
| {Ω : Type*} {mSmall m : MeasurableSpace Ω} {mu : Measure Ω} [IsFiniteMeasure mu] | |
| (hm : mSmall ≤ m) {S : Ω → IsingSpin} (hS : Measurable S) | |
| {F : Ω → ℝ} (hF : StronglyMeasurable[mSmall] F) (hFi : Integrable F mu) | |
| (a : IsingSpin) (hfair : mu {x | S x = a} = (1 / 2 : ENNReal)) : | |
| ∫ x, F x ∂ProbabilityTheory.cond mu {x | S x = a} = | |
| ∫ x, F x * (1 + spinSign a * mu[fun y => spinSign (S y) | mSmall] x) ∂mu := by | |
| rw [ProbabilityTheory.cond, integral_smul_measure, hfair] | |
| rw [setIntegral_spin_posterior_tilt hm hS hF hFi a] | |
| norm_num | |
| ring | |
| theorem integral_cond_spin_posterior_function | |
| {Ω : Type*} {mSmall m : MeasurableSpace Ω} {mu : Measure Ω} [IsFiniteMeasure mu] | |
| (hm : mSmall ≤ m) {S : Ω → IsingSpin} (hS : Measurable S) | |
| (g : ℝ → ℝ) (hg : Measurable g) | |
| (hgi : Integrable (fun x => g (mu[fun y => spinSign (S y) | mSmall] x)) mu) | |
| (a : IsingSpin) (hfair : mu {x | S x = a} = (1 / 2 : ENNReal)) : | |
| ∫ x, g (mu[fun y => spinSign (S y) | mSmall] x) | |
| ∂ProbabilityTheory.cond mu {x | S x = a} = | |
| ∫ x, g (mu[fun y => spinSign (S y) | mSmall] x) * | |
| (1 + spinSign a * mu[fun y => spinSign (S y) | mSmall] x) ∂mu := by | |
| exact integral_cond_spin_posterior_tilt hm hS | |
| (hg.comp stronglyMeasurable_condExp.measurable).stronglyMeasurable hgi a hfair | |
| end Problem367 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.59 kB
- Xet hash:
- 9a0d3162674d217bdc3908b0c0148c76e3843c7af676f28bab0d0bb37f5d7954
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.