lemmavariance_pos_iff_nonconstant (f : Spin n →ℝ) :
0 < variance W f ↔∃ x y, f x ≠ f y :=by
proof · 19
lines
constructor
· intro hf
by_contra! hconst
havehe : f = fun _ => f (fun _ =>false) := funext (fun x => hconst x _)
rw [he] at hf
simp [variance] at hf
· rintro ⟨x, y, hxy⟩
by_contra h
havehv : variance W f = 0:= le_antisymm (le_of_not_gt h) (variance_nonneg_full W f)
have he (z : Spin n) : f z = mean W f :=byhavehh : gibbs W z * (f z - mean W f) ^ 2≤ variance W f :=Finset.single_le_sum
(fun y _ => mul_nonneg (gibbs_nonneg W y) (sq_nonneg (f y - mean W f)))
(Finset.mem_univ z)
rw [hv] at hh
have heq := le_antisymm hh (mul_nonneg (gibbs_nonneg W z) (sq_nonneg (f z - mean W f)))
have hs := (mul_eq_zero.mp heq).resolve_left (gibbs_pos W z).ne'
exact sub_eq_zero.mp (sq_eq_zero_iff.mp hs)
exact hxy ((he x).trans (he y).symm)
lemmadirichlet_pos_of_nonconstant (hn : 0 < n) (f : Spin n →ℝ)
(hf : ∃ x y, f x ≠ f y) : 0 < dirichlet W f :=by
proof · 6
lines
have hv := (variance_pos_iff_nonconstant W f).mpr hf
obtain ⟨C, hC, hgap⟩ := exists_finite_poincare W hn
by_contra h
have ht := mul_nonpos_of_nonneg_of_nonpos hC.le (le_of_not_gt h)
have hh := hgap f
linarith
lemmaentropy_square_pos_iff_nonconstant (f : Spin n →ℝ) :
0 < entropy W (fun x => f x ^ 2) ↔∃ x y, f x ^ 2≠ f y ^ 2:=by
proof · 17
lines
constructor
· intro hf
by_contra! hconst
havehe : (fun x => f x ^ 2) = fun _ => f (fun _ =>false) ^ 2:=
funext (fun x => hconst x _)
rw [he] at hf
simp [entropy, mean_const] at hf
· rintro ⟨x, y, hxy⟩
havehxyabs : |f x| ≠ |f y| :=by
intro he
apply hxy
havehh : |f x| ^ 2 = |f y| ^ 2:= congrArg (funa : ℝ=> a ^ 2) he
simpa only [sq_abs] using hh
have hv := (variance_pos_iff_nonconstant W (fun x => |f x|)).mpr ⟨x, y, hxyabs⟩
have hh := variance_le_entropy_square W (fun x => |f x|) (fun x => abs_nonneg _)
simp only [sq_abs] at hh
exact hv.trans_le hh
lemmalogSobolevConstant_eq_iSup : logSobolevConstant W =
⨆ f : {f : Spin n →ℝ // ∃ x y, f x ^ 2≠ f y ^ 2},
entropy W (fun x => f.val x ^ 2) / dirichlet W f.val :=by
apply LowerSemicontinuous.measurable
change LowerSemicontinuous (funW : Disorder n => logSobolevConstant W)
simp_rw [logSobolevConstant_eq_iSup]
apply lowerSemicontinuous_ciSup
· intro W
apply (entropy_ratios_bdd W hn).mono
rintro r ⟨f, rfl⟩
exact ⟨f.val, (entropy_square_pos_iff_nonconstant W f.val).mpr f.property, rfl⟩
· intro f
havehf : ∃ x y, f.val x ≠ f.val y :=by
obtain ⟨x, y, hxy⟩ := f.property
exact ⟨x, y, fun he => hxy (congrArg (funa : ℝ=> a ^ 2) he)⟩
exact ((entropy_continuous (fun x => f.val x ^ 2)).div (dirichlet_continuous f.val)
(funW=> (dirichlet_pos_of_nonconstant W hn f.val hf).ne')).lowerSemicontinuous