File size: 3,650 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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | import OAI.Probability.ContinuumTransition.Stability
namespace OAI
section
open scoped Topology BigOperators ENNReal
open Filter MeasureTheory Set
namespace ContinuumTemperature
noncomputable section
open scoped ContDiff
open scoped InnerProductSpace
noncomputable def cubeCells (L : β) : Finset Lattice :=
Fintype.piFinset (fun _ : Fin 3 => Finset.Icc β-2 * Lβ β2 * Lβ)
theorem cellIndex_mem_cubeCells {L : β} {x : Space} (hx : x β cube L) :
cellIndex x β cubeCells L := by
classical
simp only [cubeCells, Fintype.mem_piFinset, Finset.mem_Icc, cellIndex]
intro k
constructor
Β· apply Int.floor_mono
have h := (hx k).1
linarith
Β· apply Int.floor_mono
have h := (hx k).2
linarith
theorem card_cubeCells_le {L : β} (hL : 0 β€ L) :
((cubeCells L).card : β) β€ (4 * L + 2) ^ 3 := by
classical
let m := (Finset.Icc β-2 * Lβ β2 * Lβ).card
have horder : β-2 * Lβ β€ β2 * Lβ + 1 := by
have hh := Int.floor_mono (show -2 * L β€ 2 * L by linarith)
omega
have hcInt := Int.card_Icc_of_le β-2 * Lβ β2 * Lβ horder
have hcReal : (m : β) = (β2 * Lβ : β) + 1 - (β-2 * Lβ : β) := by
dsimp only [m]
exact_mod_cast hcInt
have hm : (m : β) β€ 4 * L + 2 := by
rw [hcReal]
have hu := Int.floor_le (2 * L)
have hl := Int.lt_floor_add_one (-2 * L)
linarith
have hc : ((cubeCells L).card : β) = (m : β) ^ 3 := by
simp [cubeCells, Fintype.card_piFinset, m]
rw [hc]
exact pow_le_pow_leftβ (Nat.cast_nonneg m) hm 3
theorem physicalProfile_energy_coercive {t L : β} (ht : 0 β€ t) (hL : 0 β€ L)
{Ο R : β β β} (hΟ : β n, 0 β€ Ο n) (hR : β n, 1 β€ R n) (hs : Summable Ο)
(hsmall : 2197 * t * kernelHeight * (β' n, Ο n) / 2 β€ t ^ 2 / 8)
(N : β) (x : Fin N β Space) (hx : β i, x i β cube L) :
(((t ^ 2 / 8 - 2197 * t * kernelHeight * (β' n, Ο n) / 2) *
((N : β) ^ 2 / (4 * L + 2) ^ 3) - t ^ 2 / 2 * N : β) : EReal) β€
energy (physicalProfile t Ο R) x := by
classical
let ΞΊ := (cubeCells L : Type)
let c (i : Fin N) : ΞΊ := β¨cellIndex (x i), cellIndex_mem_cubeCells (hx i)β©
let n (k : ΞΊ) : β := Fintype.card {i // c i = k}
have hsN : (β k : ΞΊ, n k) = N := by
have hh := sum_comp_eq_sum_fibres c (fun _ => (1 : β))
simpa only [n, mul_one, Finset.sum_const, Finset.card_univ, Fintype.card_fin,
nsmul_eq_mul, mul_one] using hh.symm
have hquad : (N : β) ^ 2 β€ (Fintype.card ΞΊ : β) * β k, n k ^ 2 := by
have hh := Finset.sum_mul_sq_le_sq_mul_sq (Finset.univ : Finset ΞΊ) (fun _ => (1 : β)) n
simpa only [one_mul, one_pow, Finset.sum_const, Finset.card_univ, nsmul_eq_mul,
mul_one, hsN] using hh
have hquad' : (N : β) ^ 2 β€ (4 * L + 2) ^ 3 * β k, n k ^ 2 := by
apply hquad.trans
apply mul_le_mul_of_nonneg_right _ (Finset.sum_nonneg (fun _ _ => sq_nonneg _))
simpa only [ΞΊ, Fintype.card_coe] using card_cubeCells_le hL
have hden : 0 < (4 * L + 2) ^ 3 := by positivity
have hquot : (N : β) ^ 2 / (4 * L + 2) ^ 3 β€ β k, n k ^ 2 := by
apply (div_le_iffβ hden).mpr
simpa only [mul_comm] using hquad'
have hsuper := physicalProfile_superstable ht hΟ hR hs x c
(fun k : ΞΊ => (k : Lattice)) Subtype.val_injective (fun _ => rfl)
have he := coe_pairSum_le_energy (physicalProfile t Ο R) x
apply le_trans _ he
apply EReal.coe_le_coe_iff.mpr
have hm := mul_le_mul_of_nonneg_left hquot (sub_nonneg.mpr hsmall)
simp only [Fintype.card_fin] at hsuper
exact (sub_le_sub_right hm _).trans hsuper
end
end ContinuumTemperature
end
end OAI
|