File size: 2,679 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 | import OAI.Probability.ContinuumTransition.MaskedComparison
namespace OAI
section
open scoped BigOperators
open MeasureTheory Set
namespace ContinuumTemperature
def prepend (a : β) (Ο : β β β) : β β β
| 0 => a
| n+1 => Ο n
@[simp] theorem prepend_zero (a : β) (Ο : β β β) : prepend a Ο 0 = a := rfl
@[simp] theorem prepend_succ (a : β) (Ο : β β β) (n : β) : prepend a Ο (n+1) = Ο n := rfl
theorem summable_prepend (a : β) {Ο : β β β} (hs : Summable Ο) : Summable (prepend a Ο) := by
exact (summable_nat_add_iff 1).mp hs
theorem tsum_prepend (a : β) {Ο : β β β} (hs : Summable Ο) :
β' n, prepend a Ο n = a+β' n, Ο n := by
exact (summable_prepend a hs).tsum_eq_zero_add
theorem prepend_nonneg {a : β} {Ο : β β β} (ha : 0 β€ a) (hΟ : β n, 0 β€ Ο n) :
β n, 0 β€ prepend a Ο n
| 0 => ha
| n+1 => hΟ n
theorem prepend_ge_one {a : β} {Ο : β β β} (ha : 1 β€ a) (hΟ : β n, 1 β€ Ο n) :
β n, 1 β€ prepend a Ο n
| 0 => ha
| n+1 => hΟ n
theorem attraction_prepend (t : β) {a S : β} {Ο R : β β β}
(hΟ : β n, 0 β€ Ο n) (hR : β n, 1 β€ R n) (hs : Summable Ο) (r : β) :
attraction t (prepend a Ο) (prepend S R) r = t*a*scaledKernelProfile S r+attraction t Ο R r := by
unfold attraction
have he : (fun n => prepend a Ο n*scaledKernelProfile (prepend S R n) r) =
prepend (a*scaledKernelProfile S r) (fun n => Ο n*scaledKernelProfile (R n) r) := by
funext n; cases n <;> rfl
rw [he, tsum_prepend _ (summable_attraction_terms hΟ hR hs r)]
ring
theorem physicalProfile_prepend (t : β) {a S : β} {Ο R : β β β}
(hΟ : β n, 0 β€ Ο n) (hR : β n, 1 β€ R n) (hs : Summable Ο) (r : β) :
physicalProfile t (prepend a Ο) (prepend S R) r = physicalProfile t Ο R r-t*a*scaledKernelProfile S r := by
unfold physicalProfile
rw [attraction_prepend t hΟ hR hs]
ring
theorem attraction_zero (t : β) (R : β β β) (r : β) : attraction t (fun _ => 0) R r = 0 := by
simp [attraction]
theorem cutReference_prepend (t a S : β) {Ο R : β β β}
(hΟ : β n, 0 β€ Ο n) (hR : β n, 1 β€ R n) (hs : Summable Ο) (q : β) (x y : Space) :
cutReference t (prepend 0 Ο) (prepend a (fun _ => 0)) (prepend S R) q x y =
blockCut q (fun x y => physicalProfile t Ο R βx-yβ) x y-t*a*scaledKernelProfile S βx-yβ := by
unfold cutReference
simp only [physicalProfile_prepend t hΟ hR hs, mul_zero, zero_mul, sub_zero]
rw [attraction_prepend t (fun _ => le_refl 0) hR (summable_zero), attraction_zero, add_zero]
end ContinuumTemperature
end
end OAI
|