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