math / data /lean /OAI /Probability /Renewal /Definitions.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
921 Bytes
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