Buckets:
| import OAI.Probability.ContinuumTransition.LaplacePrinciple | |
| namespace OAI | |
| section | |
| open scoped Topology BigOperators ENNReal | |
| open Filter MeasureTheory Set | |
| namespace ContinuumTemperature | |
| theorem log_grand_weight_div {φ : ℝ → ℝ} | |
| (hφ : Measurable (radialPotential φ)) {β B L μ : ℝ} (hβ : 0 ≤ β) (hL : 0 < L) | |
| (hstable : ∀ (N : ℕ) (x : Fin N → Space), | |
| ((-B * (N : ℝ) : ℝ) : EReal) ≤ energy φ x) (N : ℕ) : | |
| Real.log (Real.exp (μ*N)*partition φ β L N)/L^3 = | |
| μ*((N : ℝ)/L^3)-finiteCanonical φ β L N := by | |
| rw [Real.log_mul (Real.exp_pos _).ne' (partition_pos hφ hβ hL hstable N).ne', | |
| Real.log_exp] | |
| unfold finiteCanonical | |
| ring | |
| theorem grand_weight_high_density {φ : ℝ → ℝ} | |
| (hφ : Measurable (radialPotential φ)) {β B L μ : ℝ} (hβ : 0 ≤ β) (hL : 0 < L) | |
| (hstable : ∀ (N : ℕ) (x : Fin N → Space), | |
| ((-B * (N : ℝ) : ℝ) : EReal) ≤ energy φ x) {N : ℕ} | |
| (hN : Real.exp (μ+β*B+2) ≤ (N : ℝ)/L^3) : | |
| Real.exp (μ*N)*partition φ β L N ≤ (Real.exp (-1))^N := by | |
| have hden : 0 ≤ (N : ℝ)/L^3 := div_nonneg (Nat.cast_nonneg _) (pow_pos hL 3).le | |
| have hlog := Real.log_le_log (Real.exp_pos (μ+β*B+2)) hN | |
| rw [Real.log_exp] at hlog | |
| have he := finiteCanonical_lower_entropy hφ hβ hL hstable N | |
| have hm := mul_le_mul_of_nonneg_right hlog hden | |
| have hbound : μ*((N : ℝ)/L^3)-finiteCanonical φ β L N ≤ -((N : ℝ)/L^3) := by | |
| nlinarith only [he, hm] | |
| rw [← log_grand_weight_div hφ hβ hL hstable N, ← neg_div] at hbound | |
| have hh := (div_le_div_iff_of_pos_right (pow_pos hL 3)).1 hbound | |
| have hw : 0 < Real.exp (μ*N)*partition φ β L N := | |
| mul_pos (Real.exp_pos _) (partition_pos hφ hβ hL hstable N) | |
| rw [← Real.exp_nat_mul] | |
| apply (Real.log_le_iff_le_exp hw).1 | |
| simpa using hh | |
| theorem grandPartition_pressure_tendsto {φ : ℝ → ℝ} | |
| (hφ : Measurable (radialPotential φ)) {t β B μ : ℝ} (ht : 1 < t) (hβ : 0 ≤ β) | |
| (hstable : ∀ (N : ℕ) (x : Fin N → Space), | |
| ((-B * (N : ℝ) : ℝ) : EReal) ≤ energy φ x) | |
| (hcore : ∀ r, 0 < r → φ r ≤ coreProfile t r) : | |
| Tendsto (fun L => Real.log (grandPartition φ 1 β μ L)/L^3) atTop | |
| (𝓝 (canonicalPressure φ β μ)) := by | |
| have hw : ∀ L > 0, ∀ N : ℕ, 0 < Real.exp (μ*N)*partition φ β L N := | |
| fun L hL N => mul_pos (Real.exp_pos _) (partition_pos hφ hβ hL hstable N) | |
| have hs : ∀ L > 0, Summable (fun N : ℕ => Real.exp (μ*N)*partition φ β L N) := by | |
| intro L hL | |
| simpa only [one_mul] using summable_grandPartition hφ hβ hL.le hstable 1 μ | |
| have hb : Summable (fun n : ℕ => (Real.exp (-1))^n) := | |
| summable_geometric_of_lt_one (Real.exp_pos _).le (by simp) | |
| have hz : μ*0-canonicalDensity φ β 0 = 0 := by | |
| rw [canonicalDensity_zero hφ ht hβ hstable hcore]; ring | |
| have hlim : ∀ d, 0 ≤ d → | |
| Tendsto (fun p : ℝ × ℕ => Real.log (Real.exp (μ*p.2)*partition φ β p.1 p.2)/p.1^3) | |
| (densityFilter d) (𝓝 (μ*d-canonicalDensity φ β d)) := by | |
| intro d hd | |
| have hh := ((densityFilter_density d).const_mul μ).sub | |
| (finiteCanonical_tendsto hφ ht hβ hstable hcore hd) | |
| apply hh.congr' | |
| filter_upwards [(densityFilter_length d).eventually (eventually_gt_atTop 0)] with p hp | |
| exact (log_grand_weight_div hφ hβ hp hstable p.2).symm | |
| have ht' : ∀ᶠ L in atTop, ∀ N : ℕ, Real.exp (μ+β*B+2) ≤ (N : ℝ)/L^3 → | |
| Real.exp (μ*N)*partition φ β L N ≤ (Real.exp (-1))^N := by | |
| filter_upwards [eventually_gt_atTop 0] with L hL | |
| exact fun _ hN => grand_weight_high_density hφ hβ hL hstable hN | |
| have hh := laplace_principle hw hs hb (fun n => (pow_pos (Real.exp_pos _) n).le) | |
| (Real.exp_pos (μ+β*B+2)) hz (canonicalPressure_bddAbove hφ ht hβ hstable hcore) hlim ht' | |
| simpa only [grandPartition, one_mul, canonicalPressure] using hh | |
| noncomputable def physicalPressure (φ : ℝ → ℝ) (t : ℝ) (x : ℝ × ℝ) : ℝ := | |
| canonicalPressure φ x.1 (t*x.2)/t | |
| noncomputable def physicalCanonical (φ : ℝ → ℝ) (t β d : ℝ) : ℝ := | |
| canonicalDensity φ β d/t | |
| theorem physicalPressure_tendsto {φ : ℝ → ℝ} | |
| (hφ : Measurable (radialPotential φ)) {t β B h : ℝ} (ht : 1 < t) (hβ : 0 ≤ β) | |
| (hstable : ∀ (N : ℕ) (x : Fin N → Space), | |
| ((-B * (N : ℝ) : ℝ) : EReal) ≤ energy φ x) | |
| (hcore : ∀ r, 0 < r → φ r ≤ coreProfile t r) : | |
| Tendsto (fun L => Real.log (grandPartition φ t β h L)/(t*L^3)) atTop | |
| (𝓝 (physicalPressure φ t (β,h))) := by | |
| change Tendsto _ atTop (𝓝 (canonicalPressure φ β (t*h)/t)) | |
| have hh := (grandPartition_pressure_tendsto hφ ht hβ hstable hcore (μ := t*h)).div_const t | |
| convert hh using 1 | |
| ext L | |
| simp only [grandPartition, one_mul] | |
| ring | |
| end ContinuumTemperature | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 4.83 kB
- Xet hash:
- db210eeda42513262e0113d756b69ed38004f6c0b3a32328b041f82252d7405d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.