lemmagibbs_selected_direction_control (d : ℕ) (hρ : 0<ρ)
(hR : 0≤R) (hB : 0≤B) (hW : 0≤W) (hC : 0≤C)
(hn : ∀a,0<N a) (hJ : ∀a,(J a).IsSymm) (hdiag : ∀a i,J a i i=0)
(hevent : ∀a,RecipeMatrixEvent j R (residualCoefficientBudget j 2 d 0) BWC (d+1) (2*d) (J a))
(he : ∀a,vectorNorm (e a)≤1) :
∃A:ℝ,0≤A∧∀a (f:Observables (N a)),
|∑x,fieldGibbs (J a) (h a) x*(f x)^2*
(∑k∈Finset.range (d-1),cutoffWeight (fun l=>residualCutoff ρ j (J a) (h a) l x) k*
(∑i,(spin x i-mag j (J a) (h a) (k+2) x i)*e a i))|≤A*starSquared (fieldGibbs (J a) (h a)) f :=by
proof · 14
lines
havehh : UniformSquare (fun a=>fieldGibbs (J a) (h a))
(fun a x=>∑k∈Finset.range (d-1),cutoffWeight (fun l=>residualCutoff ρ j (J a) (h a) l x) k*
(∑i,(spin x i-mag j (J a) (h a) (k+2) x i)*e a i)) :=by
apply UniformSquare.finset_sum
intro k hk
havehk':k<d-1:=Finset.mem_range.mp hk
exact (gibbs_constant_residuals d hR hB hW hC hn hJ hdiag hevent he (k+2) (by omega)).2.mul
(fun a x=>(fieldGibbs_pos _ _ _).le)
(residualWeight_uniform hρ hR hB hn (fun a=>(hevent a).1)
(fun a x l hl=>(hevent a).2.1 (h a) x l hl) k (by omega))
obtain ⟨A,hA,hh⟩:=hh 10 zero_le_one le_rfl
refine ⟨A,hA,fun a f=>?_⟩
simpa only [mul_one] using hh a f (fun _=>1) (by simp)
(by intro x;simp [halfDiff])
theoremgibbs_square_mean (m : ℕ) {c r₀ ε : ℝ}
(hj : 0≤j) (hR : 0≤R) (hc : 0<c) (hr₀ : 0<r₀) (hρ : 0<ρ) (hε : 0<ε)
(hbuffer : (R+4*j)*ρ<r₀) (hm : 2<(m:ℝ)*ρ^2/4) (he : 2*(2*m:ℕ)*ε≤1)
(hB : 0≤B) (hW : 0≤W) (hC : 0≤C)
(hn : ∀a,0<N a) (hJ : ∀a,(J a).IsSymm) (hdiag : ∀a i,J a i i=0)
(hevent : ∀a,RecipeMatrixEvent j R (residualCoefficientBudget j 2 (2*m) 0) BWC (2*m+1) (2*(2*m)) (J a))
(hH : ∀a y,vectorNorm (SKGap.tapField j (J a) (h a) y)≤r₀*Real.sqrt (Na:ℝ)→∀v,
c*SKGap.vectorSqNorm v≤SKGap.quadraticForm (SKGap.fieldHessian j (J a) y (SKGap.spinVariance y)) v) :
∃r : ∀a,Fin (N a)→ℝ,
(∀a,SKGap.tapField j (J a) (h a) (r a)=0∧∀y,SKGap.tapField j (J a) (h a) y=0→y=r a) ∧∃A:ℝ,0≤A∧∀a (f:Observables (N a)),
vectorNorm (fun i=>∑x,fieldGibbs (J a) (h a) x*(f x)^2*(spin x i-SKGap.magnetization (r a) i))≤
((1+(R+3*j)/c)*(R+4*j))*ρ*Real.sqrt (Na:ℝ)*(∑x,fieldGibbs (J a) (h a) x*(f x)^2)+
A*starSquared (fieldGibbs (J a) (h a)) f :=by
proof · 66
lines
classical
have hs (a : Ω) : 0<Real.sqrt (Na:ℝ):=Real.sqrt_pos.mpr (Nat.cast_pos.mpr (hn a))
have hroots (a : Ω) := selected_tap_root (hn a) hj hR hc hr₀ hρ hbuffer
(J a) (hJ a) (h a) (fun v=>(vectorNorm_matrix_mul (J a) v).trans
(mul_le_mul_of_nonneg_right (hevent a).1 (vectorNorm_nonneg _))) (hH a)
choose r hr hu hd using hroots
obtain ⟨A,hA,ha⟩:=gibbs_selected_all_directions (h:=h) (2*m) hρ hR hB hW hC hn hJ hdiag hevent
obtain ⟨C₁,C₂,hC₁,hC₂,ht⟩:=gibbs_residual_selection_tail (h:=h) m hρ hε hm he hR hB hW hC hn hJ hdiag hevent
refine ⟨r,fun a=>⟨hr a,hu a⟩,A+2*C₂,by positivity,fun a f=>?_⟩
let μ:=fun x=>fieldGibbs (J a) (h a) x*(f x)^2letL:=((1+(R+3*j)/c)*(R+4*j))*ρ*Real.sqrt (Na:ℝ)
havehL:0≤L:=by dsimp [L];positivity
have hμ (x : Spin (N a)) : 0≤μ x:=mul_nonneg (fieldGibbs_pos _ _ _).le (sq_nonneg _)
apply vectorNorm_le_of_unit_dot
· exact add_nonneg (mul_nonneg hL (Finset.sum_nonneg (fun x _=>hμ x)))
(mul_nonneg (by positivity) (starSquared_nonneg _ (fun x=>(fieldGibbs_pos _ _ x).le) f))
intro e he
have hpair (x : Spin (N a)) (z : Fin (N a)→ℝ) :
(∑i,spin x i*e i)-(∑i,z i*e i)=∑i,(spin x i-z i)*e i :=by
rw [←Finset.sum_sub_distrib];apply Finset.sum_congr rfl;intros;ring
have hrootpair (k : ℕ) (x : Spin (N a))
(hh:residualCutoff ρ j (J a) (h a) k x≠0) :
|(∑i,mag j (J a) (h a) (k+2) x i*e i)-(∑i,SKGap.magnetization (r a) i*e i)|≤L:=by
rw [←Finset.sum_sub_distrib]
havehdot:|∑i,(mag j (J a) (h a) (k+2) x i-SKGap.magnetization (r a) i)*e i|≤L:=
(SKGap.vector_dot_abs_le _ e).trans
((mul_le_mul_of_nonneg_left he (vectorNorm_nonneg _)).trans
(by convert! hd a k x hh using1; simp only [mul_one]; rfl))
convert hdot using2
apply Finset.sum_congr rfl;intro i _;ring
have hdiam (x : Spin (N a)) :
|(∑i,spin x i*e i)-(∑i,SKGap.magnetization (r a) i*e i)|≤2*Real.sqrt (Na:ℝ) :=by
rw [hpair]
havehv : vectorNorm (spin x-SKGap.magnetization (r a))≤2*Real.sqrt (Na:ℝ) :=by
exact (SKGap.vectorNorm_sub_le _ _).trans
((add_le_add (by convert! mag_vectorNorm j (J a) (h a) 0 x using1)
(magnetization_norm (r a))).trans_eq (by ring))
exact (SKGap.vector_dot_abs_le _ e).trans
((mul_le_mul_of_nonneg_left he (vectorNorm_nonneg _)).trans (by convert! hv using1; simp only [mul_one]; rfl))
havehres : |∑x,μ x*(∑k∈Finset.range (2*m-1),
cutoffWeight (fun l=>residualCutoff ρ j (J a) (h a) l x) k*
((∑i,spin x i*e i)-(∑i,mag j (J a) (h a) (k+2) x i*e i)))|≤A*starSquared (fieldGibbs (J a) (h a)) f :=by
simpa only [hpair] using ha a e he f
have hb:=cutoff_scalar_mean_bound μ (fun x=>∑i,spin x i*e i) (∑i,SKGap.magnetization (r a) i*e i)
(fun k x=>∑i,mag j (J a) (h a) (k+2) x i*e i)
(fun k x=>residualCutoff ρ j (J a) (h a) k x) (2*m-1) hμ
(fun k x=>residualCutoff_bounds ρ j (J a) (h a) k x) hL (by positivity) hres hrootpair hdiam
have htail:=mul_le_mul_of_nonneg_left ((ht a).2 f) (show0≤2*Real.sqrt (Na:ℝ) by positivity)
havehcancel : 2*Real.sqrt (Na:ℝ)*(C₂/Real.sqrt (Na:ℝ)*starSquared (fieldGibbs (J a) (h a)) f)=
2*C₂*starSquared (fieldGibbs (J a) (h a)) f :=by field_simp [ne_of_gt (hs a)]
rw [hcancel] at htail
haveheq : (∑i,(∑x,μ x*(spin x i-SKGap.magnetization (r a) i))*e i)=
∑x,μ x*((∑i,spin x i*e i)-(∑i,SKGap.magnetization (r a) i*e i)) :=by
simp only [Finset.sum_mul,Finset.mul_sum,hpair]
rw [Finset.sum_comm]
apply Finset.sum_congr rfl;intro x _
apply Finset.sum_congr rfl;intros;ring
change |∑i,(∑x,μ x*(spin x i-SKGap.magnetization (r a) i))*e i|≤_
rw [heq]
calc
_ ≤A*starSquared (fieldGibbs (J a) (h a)) f+L*(∑x,μ x)+
2*Real.sqrt (Na:ℝ)*(∑x,if0<cutoffDeficit (fun l=>residualCutoff ρ j (J a) (h a) l x) (2*m-1) then μ x else0) := hb
_ ≤A*starSquared (fieldGibbs (J a) (h a)) f+L*(∑x,μ x)+
2*C₂*starSquared (fieldGibbs (J a) (h a)) f := add_le_add_right htail _
_ = _ :=by dsimp only [L,μ]; ring