Download data/lean/OAI/Probability/ContinuumTransition/GibbsBridge.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.12 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/ContinuumTransition/GibbsBridge.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/ContinuumTransition/GibbsBridge.lean
-
curl -L -o GibbsBridge.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/ContinuumTransition/GibbsBridge.lean
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 | |