rcases eq_or_lt_of_le hd with rfl | hd
· norm_num
have hh :=Real.log_le_sub_one_of_pos (inv_pos.mpr hd)
rw [Real.log_inv] at hh
have hm := mul_le_mul_of_nonneg_left hh hd.le
rw [mul_sub, mul_inv_cancel₀ hd.ne', mul_one] at hm
nlinarith
havehconv : ConvexOnℝ univ (grandPressure φ t β) :=by
refine ⟨convex_univ, ?_⟩
intro x _ y _ a b ha hbb hab
have hh := grandPressure_convex_mix hφ hb hst ht hc hβ hβ x y ha hbb hab
havehe : a*β+b*β = β :=by nlinarith
simpa only [he, smul_eq_mul] using hh
exact continuousOn_univ.mp (hconv.continuousOn isOpen_univ)
lemmabranch_le_density_branch {Q : Pressure} {H : ℝ→ℝ} {β a h u d : ℝ}
(hk : 0≤ β*a) (hd : Q β (h+β*a*u) = (h+β*a*u)*d-H d)
(hdual : (h+β*a*d)*d-H d ≤Q β (h+β*a*d)) :
attractionBranch Q a u β h ≤ attractionBranch Q a d β h :=by
proof · 3
lines
have hh := branch_le_density_value hk hd
unfold attractionBranch at hh ⊢
nlinarith [hdual]
havehd1 : 1 < d := hU.trans_lt hd
havehkd : h+B+E+1 < (c-k/2)*d := hcut.trans_lt (mul_lt_mul_of_pos_left hd hκ)
have hm := mul_lt_mul_of_pos_right hkd (show0 < d by linarith)
have he := mul_le_mul_of_nonneg_left (show1≤ d by linarith) hE
nlinarith
lemmaideal_density_cofinal {Q : Pressure} {H : ℝ→ℝ} {β a h c BEU : ℝ}
(hk : 0≤ β*a) (hQ0 : 0≤Q β h)
(hmax : ∀ j, ∃ d ≥0, Q β j = j*d-H d)
(hdual : ∀ j d, 0≤ d → j*d-H d ≤Q β j)
(hH : ∀ d, 0≤ d → c*d^2-B*d-E≤H d)
(hκ : 0 < c-β*a/2) (hE : 0≤E) (hU : 1≤U)
(hcut : h+B+E+1≤ (c-β*a/2)*U) (u : ℝ) :
∃ v ∈Icc (0:ℝ) U, attractionBranch Q a u β h ≤ attractionBranch Q a v β h :=by
proof · 9
lines
obtain ⟨d, hd, he⟩ := hmax (h+β*a*u)
by_cases hdU : d ≤U
· exact ⟨d, ⟨hd, hdU⟩, branch_le_density_branch hk he (hdual _ d hd)⟩
· refine ⟨0, ⟨le_rfl, by linarith⟩, ?_⟩
have hneg := density_value_neg hκ hE hU hcut (lt_of_not_ge hdU) (hH d hd)
have hh := branch_le_density_value hk he
simp only [attractionBranch, mul_zero, add_zero, zero_pow (bydecide : 2≠0), sub_zero]
dsimp only [attractionBranch] at hh
linarith
lemmaactive_density_bound {Q : Pressure} {H : ℝ→ℝ} {β a h c BEUu : ℝ}
(hk : 0 < β*a) (hQ0 : 0≤Q β h)
(hmax : ∀ j, ∃ d ≥0, Q β j = j*d-H d)
(hdual : ∀ j d, 0≤ d → j*d-H d ≤Q β j)
(hH : ∀ d, 0≤ d → c*d^2-B*d-E≤H d)
(hκ : 0 < c-β*a/2) (hE : 0≤E) (hU : 1≤U)
(hcut : h+B+E+1≤ (c-β*a/2)*U) (hu : ActiveShiftQ a β h u) : u ∈Icc (0:ℝ) U:=by
proof · 18
lines
obtain ⟨d, hd, he⟩ := hmax (h+β*a*u)
have hh := hdual (h+β*a*d) d hd
have hm := hu d
dsimp only [attractionBranch] at hm
rw [he] at hm
havehsq : β*a*(u-d)^2≤0:=by nlinarith
havehud : u = d :=byhavehs : (u-d)^2≤0:= le_of_mul_le_mul_left (by simpa only [mul_zero] using hsq) hk
nlinarith [sq_nonneg (u-d)]
subst u
refine ⟨hd, ?_⟩
by_contra! hdU
have hneg := density_value_neg hκ hE hU hcut hdU (hH d hd)
have hz := hu 0
dsimp only [attractionBranch] at hz
simp only [mul_zero, add_zero, zero_pow (bydecide : 2≠0), sub_zero] at hz
rw [he] at hz
nlinarith