math / data /lean /OAI /Probability /ContinuumTransition /GibbsBridge.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.12 kB
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