cfahlgren1's picture
download
raw
4.54 kB
import Mathlib
import OAI.Analysis.HardSphere.Bridges.PartialIndex
namespace OAI
noncomputable section
open MeasureTheory Filter Set
open scoped ENNReal Topology BigOperators
open scoped BigOperators ComplexConjugate
open MeasureTheory ProbabilityTheory Filter Set
open scoped ENNReal NNReal Topology BigOperators
open MeasureTheory ProbabilityTheory Real Complex
open scoped ENNReal ComplexConjugate
namespace HardSphere.Wiener
def reverseTime : C(Time,Time) where
toFun t := ⟨1-(t:ℝ), sub_nonneg.mpr t.property.2, by linarith [t.property.1]⟩
continuous_toFun := (continuous_const.sub continuous_subtype_val).subtype_mk _
@[simp] lemma reverseTime_reverse (t : Time) : reverseTime (reverseTime t) = t := by
apply Subtype.ext
change 1-(1-(t:ℝ)) = (t:ℝ)
ring
@[simp] lemma reverseTime_zero : reverseTime 0 = 1 := by apply Subtype.ext; norm_num [reverseTime]
@[simp] lemma reverseTime_one : reverseTime 1 = 0 := by apply Subtype.ext; norm_num [reverseTime]
def reverseIncrements : C(Time,ℝ) →L[ℝ] C(Time,ℝ) :=
ContinuousMap.compCLM ℝ ℝ reverseTime -
(ContinuousLinearMap.const ℝ Time).comp (ContinuousMap.evalCLM ℝ 1)
@[simp] lemma reverseIncrements_apply (f : C(Time,ℝ)) (t : Time) :
reverseIncrements f t = f (reverseTime t) - f 1 := rfl
lemma endpoint_shift_projection_algebra {ι : Type*} [Fintype ι] (c : ι → ℝ) (t : ι → Time) :
let a : Option ι → ℝ := fun i ↦ i.elim (-∑ i,c i) c
let v : Option ι → Time := fun i ↦ i.elim 1 t
(∑ i,∑ j,a i*a j*min (v i:ℝ) (v j:ℝ)) =
∑ i,∑ j,c i*c j*(min (t i:ℝ) (t j:ℝ)-(t i:ℝ)-(t j:ℝ)+1) := by
let A : ℝ := ∑ i,c i
let B : ℝ := ∑ i,c i*(t i:ℝ)
have h1 : (∑ i, (-A)*c i*(t i:ℝ)) = -A*B := by
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro i _
ring
have h2 : (∑ i, c i*(-A)*(t i:ℝ)) = -A*B := by
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro i _
ring
have h3 : (∑ i, ∑ j, c i*c j*(t i:ℝ)) = A*B := by
dsimp only [A,B]
rw [Finset.sum_mul_sum,Finset.sum_comm]
apply Finset.sum_congr rfl
intro i _
apply Finset.sum_congr rfl
intro j _
ring
have h4 : (∑ i, ∑ j, c i*c j*(t j:ℝ)) = A*B := by
dsimp only [A,B]
rw [Finset.sum_mul_sum]
apply Finset.sum_congr rfl
intro i _
apply Finset.sum_congr rfl
intro j _
ring
have h5 : (∑ i, ∑ j, c i*c j) = A*A := (Finset.sum_mul_sum _ _ _ _).symm
dsimp only
simp only [Fintype.sum_option,Option.elim_none,Option.elim_some,
show ((1:Time):ℝ) = 1 from rfl, min_self,min_eq_right (t _).property.2,
min_eq_left (t _).property.2,mul_one,mul_add,mul_sub,Finset.sum_add_distrib,
Finset.sum_sub_distrib]
change (-A)*(-A)+(∑ i,c i*(-A)*(t i:ℝ))+
((∑ i,(-A)*c i*(t i:ℝ))+_) = _
rw [h1,h2,h3,h4,h5]
ring
lemma reverseIncrements_law :
law.map (fun ω ↦ reverseIncrements (path ω)) = wiener := by
apply continuous_path_law_ext (reverseIncrements.continuous.measurable.comp measurable_path)
measurable_path
intro ι _ c t
have h := path_projection_law (fun i : Option ι ↦ i.elim (-∑ i,c i) c)
(fun i ↦ i.elim 1 (fun j ↦ reverseTime (t j)))
rw [endpoint_shift_projection_algebra] at h
have hv i j : min (reverseTime (t i):ℝ) (reverseTime (t j):ℝ) -
(reverseTime (t i):ℝ) - (reverseTime (t j):ℝ) +1 = min (t i:ℝ) (t j:ℝ) := by
change min (1-(t i:ℝ)) (1-(t j:ℝ)) - (1-(t i:ℝ)) - (1-(t j:ℝ))+1 = _
rcases le_total (t i:ℝ) (t j:ℝ) with hij|hji
· rw [min_eq_right (by linarith), min_eq_left hij]; ring
· rw [min_eq_left (by linarith), min_eq_right hji]; ring
simp_rw [hv] at h
have heq : (fun ω ↦ ∑ i,c i*reverseIncrements (path ω) (t i)) =
(fun ω ↦ ∑ i : Option ι,i.elim (-∑ i,c i) c *
path ω (i.elim 1 (fun j ↦ reverseTime (t j)))) := by
funext ω
simp only [Fintype.sum_option,Option.elim_none,Option.elim_some,reverseIncrements_apply,
mul_sub,Finset.sum_sub_distrib,neg_mul,Finset.sum_mul]
ring
change Measure.map (fun ω ↦ ∑ i,c i*reverseIncrements (path ω) (t i)) law = _
rw [heq,h.map_eq,(path_projection_law c t).map_eq]
lemma reverseIncrements_preserving : MeasurePreserving reverseIncrements wiener wiener := by
refine ⟨reverseIncrements.continuous.measurable, ?_⟩
unfold wiener
rw [Measure.map_map reverseIncrements.continuous.measurable measurable_path]
exact reverseIncrements_law
end HardSphere.Wiener
end
end OAI

Xet Storage Details

Size:
4.54 kB
·
Xet hash:
455b35164eb6bd316385f1c928dde369f76b30109599f1a964b59ffa6a271a41

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.