lemmavarianceEnergy_eq (p : Prior n) (hp : ∀x,0<p x) (f : Spin n→ℝ) :
varianceEnergy p.mass f=energy p f :=by
proof · 15
lines
simp only [varianceEnergy,Finset.mul_sum,energy]
rw [Finset.sum_comm]
apply Finset.sum_congr rfl
intro i _
change avg p (fun x=>conditionalVariance p.mass x i*(SKGapCutoff.halfDiff i f x)^2)=_
rw [avg_flip p i,avg_flip p i]
congr 1
apply Finset.sum_congr rfl
intro x _
rw [conditionalVariance_eq p x i hp,conditionalVariance_eq p (SKGap.flip i x) i hp,
halfDiff_sq,halfDiff_sq,SKGap.flip_flip,cond_flip]
unfold GaussianStep.cond
rw [add_comm (p (SKGap.flip i x)) (p x)]
field_simp [(add_pos (hp x) (hp (SKGap.flip i x))).ne']
ring
lemmacovariance_square_bound {j Aroot ε c r₀ D : ℝ} {g : Disorder n}
(hD : 0≤D) (H : PosteriorCovarianceProperty j Aroot ε c r₀ D g)
(h : Fin n→ℝ) (hb : ¬rootBad j Aroot ε c r₀ (coupling g) h) (f : Spin n→ℝ) :
(∑i,(∑x,gibbsPrior g h x*(f x-avg (gibbsPrior g h) f)*spinValue (x i))^2)≤D^2*(var (gibbsPrior g h) f+energy (gibbsPrior g h) f) :=by
proof · 9
lines
have hh:=H h hb f
rw [fieldGibbs_prior,varianceEnergy_eq _ (mass_pos g h)] at hh
change SKGapCutoff.Recipe.vectorNorm (centeredSpinCovariance (gibbsPrior g h).mass f) ≤D*sqrt (var (gibbsPrior g h) f+energy (gibbsPrior g h) f) at hh
have hs:=(sq_le_sq₀ (SKGapCutoff.Recipe.vectorNorm_nonneg _)
(mul_nonneg hD (Real.sqrt_nonneg _))).2 hh
rw [mul_pow,Real.sq_sqrt (add_nonneg (GaussianStep.var_nonneg _ _) (energy_nonneg _ _)),
SKGapCutoff.Recipe.vectorNorm_sq] at hs
exact hs
lemmastable_mean_difference {j Aroot ε c r₀ ρ C₀C : ℝ} {g : Disorder n}
(hn : 0<n) (hAroot : 1≤Aroot)
(H : StableSquareMeanProperty j c r₀ ρ C₀C (coupling g))
(h : Fin n→ℝ) (hb : ¬rootBad j Aroot ε c r₀ (coupling g) h)
(f : Spin n→ℝ) (hf : 0<avg (gibbsPrior g h) (fun x=>(f x)^2)) :
SKGapCutoff.Recipe.vectorNorm (mean (squarePrior (gibbsPrior g h) f hf)-mean (gibbsPrior g h))≤2*C₀*ρ*sqrt (n:ℝ)+C*(2+energy (gibbsPrior g h) f/avg (gibbsPrior g h) (fun x=>(f x)^2)) :=by
proof · 18
lines
obtain ⟨r,hr,hu,hall⟩:=stableSquareMeanProperty_rootBad hAroot (coupling g) H h hb
rw [fieldGibbs_prior] at hall
have h1:=hall f hf
have h0:=hall (fun _=>1) (by simp only [one_pow,mul_one,(gibbsPrior g h).sum_one];norm_num)
rw [varianceEnergy_eq _ (mass_pos g h),squareMean_eq _ _ hf] at h1
rw [varianceEnergy_eq _ (mass_pos g h),energy_one _ (mass_pos g h),squareMean_one] at h0
havehs : 0<sqrt (n:ℝ):=sqrt_pos.mpr (Nat.cast_pos.mpr hn)
have h1':= (div_le_iff₀ hs).mp h1
have h0':= (div_le_iff₀ hs).mp h0
have hh:=SKGapCutoff.Recipe.vectorNorm_sub
(mean (squarePrior (gibbsPrior g h) f hf)-magnetization r)
(mean (gibbsPrior g h)-magnetization r)
rw [sub_sub_sub_cancel_right] at hh
apply hh.trans
calc
_≤(C₀*ρ+C/sqrt (n:ℝ)*(1+energy (gibbsPrior g h) f/avg (gibbsPrior g h) (fun x=>(f x)^2)))*sqrt (n:ℝ)+
(C₀*ρ+C/sqrt (n:ℝ)*(1+0/(∑x,gibbsPrior g h x*(1:ℝ)^2)))*sqrt (n:ℝ) := add_le_add h1' h0'
_=_ :=by field_simp;ring
lemmagaussianChannelLaw_step (g : Disorder n) (t : ℝ) :
gaussianChannelLaw g t=(GaussianStep.reference n).withDensity
(fun z=>ENNReal.ofReal (GaussianStep.density (gibbsPrior g 0) t z)) :=by
proof · 10
lines
havehd : gaussianChannelDensity g t=fun z=>GaussianStep.density (gibbsPrior g 0) t z :=by
funext z
apply Finset.sum_congr rfl
intro x _
change mass g 0 x*exp ((∑i,sqrt t*spinValue (x i)*z i)-(n:ℝ)*t/2)=
mass g 0 x*exp (sqrt t*(∑i,spinValue (x i)*z i)-t*(n:ℝ)/2)
congr 2
simp only [Finset.mul_sum,←mul_assoc,mul_comm (n:ℝ) t]
change (GaussianStep.reference n).withDensity (fun z=>ENNReal.ofReal (gaussianChannelDensity g t z))=_
rw [hd]
lemmahistory_field_event (g : Disorder n) {t : ℝ} (ht : 0≤t) (k : ℕ)
(E : Set (Fin n→ℝ)) (hE : MeasurableSetE) :
eventProbability (gibbsPrior g 0) t ((GaussianHistory.field t) ⁻¹' E : Set (History n k))=
(gaussianChannelLaw g ((k:ℝ)*t)).real
((funz : Fin n→ℝ=>fun i=>sqrt ((k:ℝ)*t)*z i) ⁻¹' E) :=by
proof · 8
lines
have hh:=eventProbability_eq (gibbsPrior g 0) t
((GaussianHistory.field t) ⁻¹' E : Set (History n k))
(hE.preimage (continuous_field t k).measurable)
rw [←Measure.map_apply (continuous_field t k).measurable hE,
field_law _ ht k,←gaussianChannelLaw_step,
Measure.map_apply (by fun_prop) hE] at hh
simpa only [ENNReal.toReal_ofReal (eventProbability_nonneg _ _ _),Measure.real] using
congrArg ENNReal.toReal hh
lemmahistory_root_probability (g : Disorder n) {t : ℝ} (ht : 0≤t) (k : ℕ)
(j AKε c ρ : ℝ) (hop : operatorBound K (coupling g)) :
eventProbability (gibbsPrior g 0) t
{h:History n k | rootBad j A ε c ρ (coupling g) (GaussianHistory.field t h)}=
fixedTimeFailure n j AK ε c ρ ((k:ℝ)*t) g :=by
proof · 28
lines
letT:=(k:ℝ)*t
havehT : 0≤T:=mul_nonneg (Nat.cast_nonneg k) ht
letE:Set (Fin n→ℝ):={h | rootBad j A ε c ρ (coupling g) h}
havehE : MeasurableSetE:=measurable_rootFields g j A ε c ρ
change eventProbability (gibbsPrior g 0) t ((GaussianHistory.field t) ⁻¹' E : Set (History n k))=_
rw [history_field_event g ht k E hE,Measure.real,gaussianChannel_event _ hT _
(hE.preimage (by fun_prop))]
change (∑x,ENNReal.ofReal (mass g 0 x)*_).toReal=(fixedTimeFailureENN j AK ε c ρ T g).toReal
congr 1
apply Finset.sum_congr rfl
intro x _
congr 1
unfold conditionalSpinFailure
havehGB : MeasurableSet ((Prod.mk g) ⁻¹' gibbsObservationBad j AK ε c ρ T x) :=
(measurableSet_gibbsObservationBad j AK ε c ρ T x).preimage
(showMeasurable (Prod.mk g : Field n→Disorder n ×Field n) from measurable_const.prodMk measurable_id)
rw [←GaussianHistory.map_scaled_reference hT,Measure.map_apply (by fun_prop) hGB]
congr 1
ext z
change rootBad j A ε c ρ (coupling g) (fun i=>sqrt T*(z i+sqrt T*spinValue (x i))) ↔
operatorBound K (coupling g) ∧ rootBad j A ε c ρ (coupling g) (fun i=>T*spinValue (x i)+sqrt T*z i)
havehe : (fun i=>sqrt T*(z i+sqrt T*spinValue (x i)))=(fun i=>T*spinValue (x i)+sqrt T*z i) :=by
funext i
calc
_=(sqrt T)^2*spinValue (x i)+sqrt T*z i:=by ring
_=_:=by rw [sq_sqrt hT]
rw [he]
simp only [hop,true_and]