cfahlgren1/math / lean /OAI /Probability /FreeIsing /Trees /SelectedPathSegmentAttenuation.lean
cfahlgren1's picture
download
raw
5.65 kB
import OAI.Probability.FreeIsing.Trees.SelectedPathAttenuation
namespace OAI
noncomputable section
open MeasureTheory ProbabilityTheory
open scoped NNReal
namespace Problem367.PathSideBranches
theorem integral_forwardGaussianField_subset_attenuation_le_exp_of_condExp
{d : ℕ} {theta : ℝ} {μ : Measure (TreeVertex d → IsingSpin)}
[IsProbabilityMeasure μ] (hθ : theta ^ 2 ≤ 1)
(hd : 3 ≤ d) (t : ℝ≥0) (v : TreeVertex d)
(s : Finset ℕ) (hs : ∀ i ∈ s, i < v.1.length) {delta : ℝ} (hδ : delta ≤ 1)
(hCE : ∀ i : Fin v.1.length,
∀ᵐ p ∂μ.prod (PlantedSymmetry.gaussianNoiseLaw (TreeVertex d) t),
((μ.prod (PlantedSymmetry.gaussianNoiseLaw (TreeVertex d) t))[
fun p => responseAttenuation theta (forwardGaussianField μ t v i p) ^ 2 |
noisyRegionSigma (A := ℝ) (cone (sideVertex hd v i))ᶜ]) p ≤ 1 - delta) :
(∫ p, ∏ k ∈ s,
responseAttenuation theta (forwardGaussianField μ t v k p) ^ 2
∂μ.prod (PlantedSymmetry.gaussianNoiseLaw (TreeVertex d) t)) ≤
Real.exp (-delta * (s.card : ℝ)) := by
classical
let A : ℕ → ((TreeVertex d → IsingSpin) × (TreeVertex d → ℝ)) → ℝ :=
fun k p => responseAttenuation theta (forwardGaussianField μ t v k p) ^ 2
let m : ℕ → MeasurableSpace ((TreeVertex d → IsingSpin) × (TreeVertex d → ℝ)) :=
fun k => if hk : k < v.1.length then
noisyRegionSigma (A := ℝ) (cone (sideVertex hd v ⟨k, hk⟩))ᶜ else ⊥
have hresp : Measurable (fun z : ℝ => responseAttenuation theta z ^ 2) :=
(continuous_responseAttenuation hθ).measurable.pow_const 2
have hMeas (k : ℕ) : Measurable (A k) :=
hresp.comp (measurable_forwardGaussianField μ t v k)
have hBound (k : ℕ) (p) : 0 ≤ A k p ∧ A k p ≤ 1 := by
have hp := responseAttenuation_pos hθ (forwardGaussianField μ t v k p)
have hl := responseAttenuation_le_one hθ (forwardGaussianField μ t v k p)
exact ⟨sq_nonneg _, by dsimp [A]; nlinarith⟩
have hm (k : ℕ) (hk : k ∈ s) : m k ≤
(inferInstance : MeasurableSpace ((TreeVertex d → IsingSpin) × (TreeVertex d → ℝ))) := by
have hk := hs k hk
simpa only [m, dite_eq_left hk] using
noisyRegionSigma_le (A := ℝ) (cone (sideVertex hd v ⟨k, hk⟩))ᶜ
have hcond (k : ℕ) (hk : k ∈ s) :
∀ᵐ p ∂μ.prod (PlantedSymmetry.gaussianNoiseLaw (TreeVertex d) t),
((μ.prod (PlantedSymmetry.gaussianNoiseLaw (TreeVertex d) t))[A k | m k]) p ≤
1 - delta := by
have hk := hs k hk
simpa only [m, dite_eq_left hk, A] using hCE ⟨k, hk⟩
have hLater (i : ℕ) (hi : i ∈ s)
(j : ℕ) (hj : j ∈ s) (hij : i < j) :
Measurable[m i] (A j) := by
have hi := hs i hi
have hj := hs j hj
have hmi : m i = noisyRegionSigma (A := ℝ)
(cone (sideVertex hd v ⟨i, hi⟩))ᶜ := by simp only [m, dite_eq_left hi]
have ht : Measurable[noisyRegionSigma (A := ℝ)
(cone (sideVertex hd v ⟨i, hi⟩))ᶜ] (A j) := by
exact hresp.comp (measurable_later_forwardGaussianField μ t hd v
(i := ⟨i, hi⟩) (j := ⟨j, hj⟩) hij)
exact hmi.symm ▸ ht
simpa only [A] using
integral_prod_le_exp_of_condExp_le hδ A m s
(fun k _ => hMeas k) (fun k _ => hBound k) hm hcond hLater
theorem integral_forwardGaussianField_subset_attenuation_le_exp_critical
{d : ℕ} {beta : ℝ} {μ : Measure (TreeVertex d → IsingSpin)}
(hμ : HasFreeIsingLaw (Real.tanh beta) μ) (hbeta : 0 ≤ beta) (hd : 3 ≤ d)
(hcritical : ((d - 1 : ℕ) : ℝ) * Real.tanh beta ^ 2 = 1)
{t : ℝ≥0} (ht : 0 < t) (v : TreeVertex d)
(s : Finset ℕ) (hs : ∀ i ∈ s, i < v.1.length) :
(∫ p, ∏ k ∈ s,
responseAttenuation (Real.tanh beta) (forwardGaussianField μ t v k p) ^ 2
∂μ.prod (PlantedSymmetry.gaussianNoiseLaw (TreeVertex d) t)) ≤
Real.exp (-(ComponentSignalAttenuation.lossCoefficient (Real.tanh beta) *
min (Real.sqrt (t : ℝ)) 1) * (s.card : ℝ)) := by
let := hμ.isProbabilityMeasure
have hθ0 : 0 < Real.tanh beta := by
have hn := tanh_nonneg_of_beta_nonneg hbeta
by_contra h
have hz : Real.tanh beta = 0 := le_antisymm (not_lt.mp h) hn
simp [hz] at hcritical
have hθ1 := Real.tanh_lt_one beta
have hc := ComponentSignalAttenuation.lossCoefficient_pos hθ0 hθ1
have hc1 := ComponentSignalAttenuation.lossCoefficient_le_half (Real.tanh beta)
have hδ : ComponentSignalAttenuation.lossCoefficient (Real.tanh beta) *
min (Real.sqrt (t : ℝ)) 1 ≤ 1 := by
have hm := mul_le_mul_of_nonneg_left
(min_le_right (Real.sqrt (t : ℝ)) (1 : ℝ)) hc.le
nlinarith
apply integral_forwardGaussianField_subset_attenuation_le_exp_of_condExp
(by nlinarith : Real.tanh beta ^ 2 ≤ 1) hd t v s hs hδ
intro i
have hr : (sideVertex hd v i).1 ≠ [] := by
intro he
have hl := sideVertex_length hd v i
rw [he] at hl
simp at hl
have hp : parentVertex (sideVertex hd v i) ∈ reducedForward hd v i := by
rw [parent_sideVertex]
exact target_mem_reducedForward hd v i
have h := hμ.condExp_selected_cone_field_attenuation_le_critical
hbeta hθ0 hcritical ht (sideVertex hd v i) hr (reducedForward hd v i)
(reducedForward_subset_complement hd v i) hp
have hfield := forwardObservationField_eq_reduced_sup_side
(fun s z => (t : ℝ) * spinSign s + z) hd v i
rw [← selectedObservationField_region_union] at hfield
simpa only [parent_sideVertex, selectedPosterior, ← hfield,
forwardGaussianField] using h
end Problem367.PathSideBranches
end
end OAI

Xet Storage Details

Size:
5.65 kB
·
Xet hash:
001145cc060defac91b48fb4b5ed84952e62c6eab84d27684533179bb665a5c6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.