File size: 3,121 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | import OAI.Probability.ContinuumTransition.ModifiedEnergy
namespace OAI
section
open scoped BigOperators
open MeasureTheory Set
namespace ContinuumTemperature
open Classical
theorem gibbsEnergy_radial (Ο : β β β) {ΞΉ : Type} [Fintype ΞΉ] (x : ΞΉ β Space) :
gibbsEnergy (fun x y => Ο βx-yβ) x = realPairEnergy Ο x := by
unfold gibbsEnergy realPairEnergy
ring
theorem gibbsFamily_radial (Ο : β β β) (Ξ² h : β) (ΞΉ : Type) [Fintype ΞΉ] (x : ΞΉ β Space) :
gibbsFamily (fun x y => Ο βx-yβ) Ξ² h ΞΉ x =
Real.exp (h*Fintype.card ΞΉ)*symmetricWeight Ο Ξ² x := by
unfold gibbsFamily symmetricWeight
split_ifs
Β· rw [gibbsEnergy_radial, β Real.exp_add]
congr 1
ring
Β· simp
theorem familyTerm_radial (Ο : β β β) (Ξ² h L : β) (n : β) :
familyTerm (gibbsFamily (fun x y => Ο βx-yβ) Ξ² h) (cube L) n =
Real.exp (h*n)*partition Ο Ξ² L n := by
unfold familyTerm familyIntegral
simp_rw [gibbsFamily_radial, Fintype.card_fin]
rw [integral_const_mul, mul_div_assoc]
simpa only [generalPartition, Fintype.card_fin] using
congrArg (fun a : β => Real.exp (h*n)*a) (generalPartition_eq_partition Ο Ξ² L n)
theorem grandIntegral_radial (Ο : β β β) (t Ξ² h L : β) :
grandIntegral (gibbsFamily (fun x y => Ο βx-yβ) Ξ² (t*h)) (cube L) =
grandPartition Ο t Ξ² h L := by
unfold grandIntegral grandPartition
simp_rw [familyTerm_radial]
theorem CellLowerBound.mono {t : β} {Ο R : β β β} {U V : Space β Space β β}
(hU : CellLowerBound t Ο R U) (hUV : β x y, U x y β€ V x y) : CellLowerBound t Ο R V :=
fun x y => (hU x y).trans (hUV x y)
theorem physical_cellLowerBound {t : β} (ht : 0 β€ t) {Ο R : β β β}
(hΟ : β n, 0 β€ Ο n) (hR : β n, 1 β€ R n) (hs : Summable Ο) :
CellLowerBound t Ο R (fun x y => physicalProfile t Ο R βx-yβ) := by
intro x y
have hb := attraction_le_mixedEnvelope ht hΟ hR hs x y
change attraction t Ο R βx-yβ β€ physicalCoupling t Ο R (cellIndex x) (cellIndex y) at hb
dsimp only [physicalProfile]
split_ifs
Β· linarith only [hb]
Β· linarith only [hb, coreProfile_nonneg t βx-yβ]
theorem masked_physical_cellLowerBound {t : β} (ht : 0 β€ t) {Ο R : β β β}
(hΟ : β n, 0 β€ Ο n) (hR : β n, 1 β€ R n) (hs : Summable Ο)
(p q : Space β Space β β) (hp : β x y, 0 β€ p x y)
(hpc : β x y, cellIndex x = cellIndex y β p x y = 1) (hq : β x y, q x y β€ 1) :
CellLowerBound t Ο R (fun x y => p x y*coreProfile t βx-yβ-q x y*attraction t Ο R βx-yβ) := by
intro x y
have hb := attraction_le_mixedEnvelope ht hΟ hR hs x y
have ha := attraction_nonneg ht hΟ hR βx-yβ
have hc := coreProfile_nonneg t βx-yβ
have hq' := mul_le_mul_of_nonneg_right (hq x y) ha
change attraction t Ο R βx-yβ β€ physicalCoupling t Ο R (cellIndex x) (cellIndex y) at hb
dsimp only
split_ifs with hxy
Β· rw [hpc x y hxy]
nlinarith only [hb, hq']
Β· nlinarith only [hb, hq', mul_nonneg (hp x y) hc]
end ContinuumTemperature
end
end OAI
|