File size: 3,863 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
94
95
96
97
98
import Mathlib

namespace OAI

open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal BigOperators Topology

namespace DirectionalTransience

abbrev Lattice (d : β„•) := Fin d β†’ β„€
abbrev Direction (d : β„•) := Fin d Γ— Bool
abbrev Vector (d : β„•) := Fin d β†’ ℝ
abbrev Row (d : β„•) := {p : Direction d β†’ ℝβ‰₯0 // βˆ‘ e, p e = 1}
abbrev Environment (d : β„•) := Lattice d β†’ Row d
abbrev State (d : β„•) := Environment d Γ— Lattice d
abbrev Path (d : β„•) := β„• β†’ Lattice d

def step {d : β„•} (e : Direction d) : Lattice d :=
  fun i => if i = e.1 then (if e.2 then 1 else -1) else 0

noncomputable def environmentLaw {d : β„•} (Ξ½ : Measure (Row d)) :
    Measure (Environment d) := Measure.infinitePi (fun _ => Ξ½)

def UniformElliptic {d : β„•} (Ξ½ : Measure (Row d)) : Prop :=
  βˆƒ ΞΊ : ℝβ‰₯0, 0 < ΞΊ ∧ βˆ€α΅ p βˆ‚Ξ½, βˆ€ e, ΞΊ ≀ p.1 e

lemma measurable_current_row {d : β„•} :
    Measurable (fun z : State d => z.1 z.2) := by
  apply measurable_from_prod_countable_left
  intro x
  exact measurable_pi_apply x

noncomputable def transition {d : β„•} : Kernel (State d) (State d) where
  toFun z := βˆ‘ e : Direction d,
    ((z.1 z.2).1 e : ℝβ‰₯0∞) β€’ Measure.dirac (z.1, z.2 + step e)
  measurable' := by
    apply Measure.measurable_of_measurable_coe
    intro s hs
    simp only [Measure.finsetSum_apply, Measure.smul_apply, smul_eq_mul]
    apply Finset.measurable_fun_sum
    intro e _
    apply Measurable.mul
    Β· exact (measurable_pi_apply e |>.comp
        (measurable_subtype_coe.comp measurable_current_row)).coe_nnreal_ennreal
    Β· exact (Measure.measurable_coe hs).comp
        (Measure.measurable_dirac.comp (measurable_fst.prodMk
          (measurable_snd.add_const (step e))))

instance transition_markov {d : β„•} : IsMarkovKernel (transition (d := d)) where
  isProbabilityMeasure z := by
    constructor
    change (βˆ‘ e : Direction d,
      ((z.1 z.2).1 e : ℝβ‰₯0∞) β€’ Measure.dirac (z.1, z.2 + step e)) Set.univ = 1
    simp only [Measure.finsetSum_apply, Measure.smul_apply, Measure.dirac_apply_of_mem
      (Set.mem_univ _), smul_eq_mul, mul_one]
    rw [← ENNReal.ofNNReal_finsetSum, (z.1 z.2).2]
    rfl

noncomputable def historyTransition {d : β„•} (n : β„•) :
    Kernel ((i : Finset.Iic n) β†’ State d) (State d) where
  toFun z := transition (z ⟨n, Finset.mem_Iic.mpr le_rfl⟩)
  measurable' := transition.measurable.comp (measurable_pi_apply _)

instance historyTransition_markov {d : β„•} (n : β„•) :
    IsMarkovKernel (historyTransition (d := d) n) where
  isProbabilityMeasure _ := transition_markov.isProbabilityMeasure _

noncomputable def initialLaw {d : β„•} (Ξ½ : Measure (Row d)) : Measure (State d) :=
  (environmentLaw Ξ½).map (fun Ο‰ => (Ο‰, (0 : Lattice d)))

noncomputable def annealedLaw {d : β„•} (Ξ½ : Measure (Row d)) : Measure (Path d) :=
  (@Kernel.trajMeasure (fun _ => State d) _ (initialLaw Ξ½) (historyTransition (d := d)) _).map
    (fun z n => (z n).2)

def dot {d : β„•} (v β„“ : Vector d) : ℝ := βˆ‘ i, v i * β„“ i

def realPosition {d : β„•} (x : Lattice d) : Vector d := fun i => (x i : ℝ)

def DirectionallyTransient {d : β„•} (Ξ½ : Measure (Row d)) (β„“ : Vector d) : Prop :=
  βˆ€α΅ X βˆ‚annealedLaw Ξ½,
    Tendsto (fun n => dot (realPosition (X n)) β„“) atTop atTop

def HasVelocity {d : β„•} (Ξ½ : Measure (Row d)) (v : Vector d) : Prop :=
  βˆ€α΅ X βˆ‚annealedLaw Ξ½,
    Tendsto (fun n : β„• => (fun i => (X n i : ℝ) / (n : ℝ))) atTop (𝓝 v)

open scoped ENNReal NNReal Classical Topology BigOperators

def MainStatement : Prop :=
  βˆ€ (d : β„•), 2 ≀ d β†’ βˆ€ (Ξ½ : Measure (Row d)), IsProbabilityMeasure Ξ½ β†’
    UniformElliptic Ξ½ β†’ βˆ€ (β„“ : Vector d), dot β„“ β„“ = 1 β†’
    DirectionallyTransient Ξ½ β„“ β†’
    βˆƒ v : Vector d, 0 < dot v β„“ ∧ HasVelocity Ξ½ v

end DirectionalTransience

end OAI