File size: 3,416 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
import Mathlib

namespace OAI

open MeasureTheory ProbabilityTheory Metric Set
open scoped ENNReal
namespace KernelPotential
local instance namedAtLeastTwoTwo : Nat.AtLeastTwo 2 := ⟨Nat.le_refl 2⟩

abbrev Ambient (d : β„•) := EuclideanSpace ℝ (Fin d)
abbrev Rows (d : β„•) := Fin (d/16) β†’ Fin d β†’ ℝ
noncomputable def radial {d : β„•} (x : Ambient d) : Ambient d := β€–x‖⁻¹ β€’ x
noncomputable def sphereProbability (d : β„•) : Measure (Ambient d) :=
  ((volume (ball (0 : Ambient d) 1))⁻¹ β€’ volume.restrict (ball (0 : Ambient d) 1)).map radial
noncomputable def J {d : β„•} (Ξ½ : Measure (Ambient d)) (s : Ambient d) : ℝβ‰₯0∞ :=
  ∫⁻ u,((ENNReal.ofReal β€–u-sβ€–)⁻¹)^(2*(d/16)) βˆ‚Ξ½
noncomputable def B {d : β„•} (Ξ½ : Measure (Ambient d)) : ℝ :=
  ∫ s, Real.log ((J Ξ½ s).toReal) βˆ‚Ξ½
noncomputable def Phi {d : β„•} (Ξ½ : Measure (Ambient d)) : ℝ :=
  (InformationTheory.klDiv Ξ½ (sphereProbability d)).toReal - B Ξ½

def BoundedDensity {d : β„•} (Ξ½ : Measure (Ambient d)) : Prop :=
  βˆƒ H : ℝ, 0 < H ∧ Ξ½ ≀ ENNReal.ofReal H β€’ sphereProbability d

noncomputable def rowLaw (d : β„•) : Measure (Rows d) :=
  Measure.pi (fun _ : Fin (d/16) => Measure.pi (fun _ : Fin d => gaussianReal 0 1))
noncomputable def labels {d : β„•} (a : Rows d) (s : Ambient d) : Fin (d/16) β†’ ℝ :=
  fun i => βˆ‘ j,a i j*s j
structure BlockRule (d N : β„•) where
  prob : (Fin N Γ— (Rows d Γ— (Fin (d/16) β†’ ℝ))) β†’ Fin N β†’ ℝ
  measurable_prob : βˆ€ w, Measurable (fun x => prob x w)
  nonneg_prob : βˆ€ x w, 0 ≀ prob x w
  sum_prob : βˆ€ x, βˆ‘ w,prob x w=1

noncomputable def outgoingLaw {d N : β„•} (ΞΌ : Measure (Ambient d Γ— Fin N))
    (rule : BlockRule d N) : Measure (Ambient d Γ— Fin N) :=
  βˆ‘ w : Fin N, ((ΞΌ.prod (rowLaw d)).withDensity (fun x =>
    ENNReal.ofReal (rule.prob (x.1.2,x.2,labels x.2 x.1.1) w))).map (fun x => (x.1.1,w))
noncomputable def component {d N : β„•} (ΞΌ : Measure (Ambient d Γ— Fin N)) (v : Fin N) :
    Measure (Ambient d) := (ΞΌ.restrict {x|x.2=v}).map Prod.fst
noncomputable def posterior {d N : β„•} (ΞΌ : Measure (Ambient d Γ— Fin N)) (v : Fin N) :
    Measure (Ambient d) := (component ΞΌ v univ)⁻¹ β€’ component ΞΌ v
noncomputable def averagePhi {d N : β„•} (ΞΌ : Measure (Ambient d Γ— Fin N)) : ℝ :=
  βˆ‘ v : Fin N, (component ΞΌ v univ).toReal * Phi (posterior ΞΌ v)

def CoercivityStatement : Prop :=
  βˆƒ C : ℝ, 0 < C ∧ βˆƒ dβ‚€ : β„•, βˆ€ d : β„•, dβ‚€ ≀ d β†’
    (βˆ€ Ξ½ : Measure (Ambient d), IsProbabilityMeasure Ξ½ β†’ BoundedDensity Ξ½ β†’
      (1/2:ℝ)*(InformationTheory.klDiv Ξ½ (sphereProbability d)).toReal-C*d ≀ Phi Ξ½) ∧
    Phi (sphereProbability d) ≀ (2*(d/16):β„•)*Real.log 2 ∧
    (βˆ€ (q : β„•) (w : Fin q β†’ ℝ), (βˆ€ i,0 ≀ w i) β†’ (βˆ‘ i,w i)=1 β†’
      βˆ€ Ξ½ : Fin q β†’ Measure (Ambient d), (βˆ€ i,IsProbabilityMeasure (Ξ½ i)) β†’
      (βˆ€ i,BoundedDensity (Ξ½ i)) β†’
      Phi (βˆ‘ i,ENNReal.ofReal (w i) β€’ Ξ½ i) ≀ βˆ‘ i,w i*Phi (Ξ½ i))

def DriftStatement : Prop :=
  βˆƒ C : ℝ, 0 < C ∧ βˆƒ dβ‚€ : β„•, βˆ€ d : β„•, dβ‚€ ≀ d β†’ βˆ€ N : β„•, 1 ≀ N β†’
    Real.log N ≀ (d:ℝ)^2 β†’ βˆ€ ΞΌ : Measure (Ambient d Γ— Fin N), IsProbabilityMeasure ΞΌ β†’
    ΞΌ.map Prod.fst=sphereProbability d β†’ βˆ€ rule : BlockRule d N,
      averagePhi (outgoingLaw ΞΌ rule) ≀ averagePhi ΞΌ+C*d

open Filter
open scoped Topology NNReal

end KernelPotential

end OAI