File size: 921 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
import Mathlib

namespace OAI

noncomputable section
open MeasureTheory ProbabilityTheory Filter
open scoped Topology ENNReal
namespace HoneycombLocal

def sumLaw (p : PMF β„•) : β„• β†’ PMF β„•
  | 0 => PMF.pure 0
  | k + 1 => p.bind (fun j => (sumLaw p k).map (fun r => j + r))

def renewalMass (p : PMF β„•) (m : β„•) : ℝβ‰₯0∞ :=
  βˆ‘' k : β„•, sumLaw p (k + 1) m

def SpanOne (p : PMF β„•) : Prop :=
  AddSubgroup.closure {z : β„€ | βˆƒ j ∈ p.support, βˆƒ k ∈ p.support, z = (j : β„€) - k} = ⊀

def laplace (p : PMF β„•) (u : ℝ) : ℝ :=
  ∫ j, Real.exp (-u * (j : ℝ)) βˆ‚p.toMeasure

def BoundedPowerInput (p : PMF β„•) (a : ℝ) : Prop :=
  βˆƒ c > 0, βˆƒ C > 0, βˆƒ xβ‚€ > 0,
    (βˆ€ x β‰₯ xβ‚€, p.toMeasure.real {j | x < (j : ℝ)} ≀ C * x ^ (-a)) ∧
    (βˆ€ u > 0, u ≀ x₀⁻¹ β†’
      c * u ^ a ≀ 1 - laplace p u ∧ 1 - laplace p u ≀ C * u ^ a)

end HoneycombLocal

end

end OAI