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