Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- app
- app2
- app3
- arrow
- azuma_
hoeffding_ ty AzumaHoeffding : Prop— P(M_n - M_0 ≥ t) ≤ exp(-t²/(2Σc_i²)) for a bounded-difference martingale.- azuma_
inequality_ ty AzumaInequality : Prop— Azuma’s inequality for martingale difference sequences with bounded differences.- bayes_
theorem_ ty BayesTheorem : Prop— P(A|B) = P(B|A) * P(A) / P(B).- bayes_
update - Computes the posterior distribution via Bayes’ theorem.
- bernstein_
inequality_ ty BernsteinInequality : Prop— a refined concentration bound exploiting variance information.- berry_
esseen_ ty BerryEsseenBound : Prop— |F_n(x) - Φ(x)| ≤ C ρ / (σ³ √n) uniformly in x.- beta_
pdf - Approximates the beta PDF: f(x; α, β) for x ∈ (0, 1).
- binomial_
coeff - binomial_
pmf - Computes the binomial PMF: P(X = k) for X ~ Bin(n, p).
- branching_
process_ ty BranchingProcess : (Nat → Distribution) → (Nat → Nat) → Prop— a Galton–Watson branching process with offspring distribution Z_n.- brownian_
motion_ ty BrownianMotion : (Real → Ω → Real) → Prop— a stochastic process W satisfying: W(0)=0, independent increments, Gaussian increments W(t)-W(s) ~ N(0, t-s), and continuous paths.- build_
advanced_ probability_ env - Extends the environment built by
build_probability_envwith the advanced axioms from Section 9. - build_
probability_ env - Register all probability theory axioms and type declarations into
env. - bvar
- central_
limit_ theorem_ ty CentralLimitTheorem : Prop— normalized sums converge in distribution to the standard normal.- characteristic_
fn_ ty CharacteristicFn : (Ω → Real) → Real → Complex— the characteristic function φ_X(t) = E[exp(itX)] of a random variable.- chebyshev_
inequality_ ty ChebyshevInequality : Prop— P(|X - μ| ≥ k·σ) ≤ 1/k² for k > 0.- chernoff_
bound_ ty ChernoffBound : Prop— tail bound via the moment generating function: P(X ≥ t) ≤ e^{-st} M_X(s).- conditional_
expectation_ ty ConditionalExpectation : (Ω → Real) → SigmaAlgebra Ω → (Ω → Real)— the conditional expectation E[X | F] as a measurable function.- continuum_
random_ tree_ ty ContinuumRandomTree : Type— the Brownian continuum random tree (CRT) as the scaling limit.- coupling_
lemma_ ty CouplingLemma : Prop— d_TV(P, Q) = inf_{coupling} P(X ≠ Y) over all couplings of P and Q.- coupling_
ty Coupling : Distribution α → Distribution α → Type— a coupling of two distributions (a joint distribution with given marginals).- covariance
- Computes the sample covariance of paired slices
xandy. - covariance_
ty Covariance : (Ω → Real) → (Ω → Real) → Real— the covariance E[(X - EX)(Y - EY)] of two random variables.- cramer_
ldp_ ty CramerLDP : Prop— the Cramér large deviation principle for i.i.d. sums.- crp_ty
CRP : Real → Nat → Distribution— the Chinese Restaurant Process: CRP(α, n) gives distribution over partitions of [n].- cst
- d_
separation_ ty DSeparation : (Nat → Nat → Prop) → Nat → Nat → (Nat → Prop) → Prop— d-separation in a DAG: u ⊥ v | Z given separating set Z.- dirichlet_
process_ ty DirichletProcess : Real → Distribution → Distribution— the Dirichlet process DP(α, G₀) with concentration α and base measure G₀.- discrete_
uniform - Returns the uniform distribution over
noutcomes: each probability is1/n. - distribution_
ty Distribution : Type → Type— a probability measure (distribution) on a type.- donsker_
thm_ ty DonskerThm : Prop— Donsker’s functional CLT: the empirical process converges to Brownian bridge.- doob_
optional_ sampling_ ty DoobOptionalSampling : Prop— E[M_τ] = E[M_0] for a uniformly integrable martingale stopped at τ.- empirical_
measure_ ty EmpiricalMeasure : Nat → (Nat → α) → Distribution α— the empirical measure L_n = (1/n) Σ δ_{X_i}.- empirical_
moments - Computes empirical moments up to order
max_orderfrom data. - entropy_
ty Entropy : Distribution α → Real— the Shannon entropy H(X) = -∑ p(x) log p(x).- event_
ty Event : Type → Prop— an event as a measurable subset of the sample space.- exponential_
cdf - Computes the exponential CDF: F(x; λ) = 1 - exp(-λx) for x ≥ 0.
- exponential_
pdf - Computes the exponential PDF: f(x; λ) = λ exp(-λx) for x ≥ 0.
- extinction_
prob_ ty ExtinctionProbability : BranchingProcess → Real— the probability q = P(eventual extinction) for a branching process.- factorial
- faithfulness_
ty Faithfulness : (Nat → Nat → Prop) → Distribution → Prop— the faithfulness condition: every conditional independence in P is entailed by the graph.- fenchel_
legendre_ ty FenchelLegendre : (Real → Real) → (Real → Real)— the Fenchel–Legendre transform I(x) = sup_λ (λx - Λ(λ)).- fisher_
tippett_ gnedenko_ ty FisherTippettGnedenko : Prop— the Fisher–Tippett–Gnedenko theorem: block maxima converge to a GEV distribution.- free_
convolution_ ty FreeConvolution : Distribution → Distribution → Distribution— the free additive convolution ⊞ of two spectral distributions.- free_
independence_ ty FreeIndependence : FreeProbabilitySpace → FreeProbabilitySpace → Prop— freeness (free independence) in the sense of Voiculescu.- free_
probability_ space_ ty FreeProbabilitySpace : Type— a non-commutative probability space (A, φ) for free probability theory.- gamma_
pdf - Approximates the gamma PDF: f(x; α, β) using the log-gamma function.
- gartner_
ellis_ ty GartnerEllis : Prop— the Gärtner–Ellis theorem: LDP from the limit of (1/n) log E[e^{nλX_n}].- gaussian_
process_ ty GaussianProcess : ((Ω → Real) → (Ω → Real) → Real) → Prop— a stochastic process GP(m, k) fully specified by mean m and covariance kernel k.- geometric_
pmf - Computes the geometric PMF: P(X = k) = (1-p)^(k-1) p for k ≥ 1.
- gev_
distribution_ ty GEVDistribution : Real → Real → Real → Type— the generalised extreme value distribution GEV(μ, σ, ξ).- girsanov_
thm_ ty GirsanovThm : Prop— Girsanov’s theorem: change of measure via Novikov’s condition, W̃_t = W_t - ∫θ_s ds is Brownian under ℚ.- gpd_
distribution_ ty GPDDistribution : Real → Real → Type— the generalised Pareto distribution GPD(σ, ξ) for peaks over threshold.- green_
function_ ty GreenFunction : MarkovChain → Nat → Nat → Real— the expected number of visits to state j starting from i: G(i,j) = Σ_{t≥0} P^t(i,j).- hitting_
time_ ty HittingTime : MarkovChain → Nat → (Ω → Nat)— the first passage time τ_j = min{t ≥ 1 : X_t = j}.- hoeffding_
inequality_ ty HoeffdingInequality : Prop— P(S_n - E[S_n] ≥ t) ≤ exp(-2t²/Σ(b_i-a_i)²) for bounded summands.- ito_
formula_ ty ItoFormula : Prop— Itô’s lemma: df(t, X_t) = ∂_t f dt + ∂_x f dX + ½ ∂_xx f d⟨X⟩.- ito_
integral_ ty ItoIntegral : (Real → Ω → Real) → (Real → Ω → Real) → (Ω → Real)— the Itô stochastic integral ∫H dW for an adapted integrand H and Brownian W.- kl_
divergence - Computes the KL divergence D_KL(p ‖ q) = Σ p_i log(p_i / q_i).
- kl_
divergence_ ty KLDivergence : Distribution α → Distribution α → Real— the Kullback–Leibler divergence D_KL(P ‖ Q).- kolmogorov_
axioms_ ty KolmogorovAxioms : Prop— the three Kolmogorov axioms for a probability measure.- law_
of_ large_ numbers_ ty OriginalLawOfLargeNumbers : Prop— the sample mean converges to the population mean.- ldp_ty
LDP : Distribution → (Real → Real) → Prop— the large deviation principle: lim(1/n) log P(S_n/n ∈ A) = -inf_{x∈A} I(x).- levy_
process_ ty LevyProcess : (Real → Ω → Real) → Prop— a process with stationary independent increments, càdlàg paths, X(0)=0.- lindeberg_
clt_ ty LindebergCLT : Prop— the CLT under the Lindeberg condition (triangular arrays).- log_
gamma - Stirling approximation of log Γ(x) for x > 0.
- log_
mgf_ ty LogMGF : (Ω → Real) → Real → Real— the log moment generating function Λ(λ) = log E[e^{λX}].- lyapunov_
clt_ ty LyapunovCLT : Prop— the CLT under the Lyapunov condition (finite 2+δ moments).- markov_
blanket_ ty MarkovBlanket : (Nat → Prop) → Nat → Nat → Prop— node v is in the Markov blanket of u in graph G: conditional independence given blanket.- markov_
chain_ ty MarkovChain : Type → Type— a discrete-time Markov chain on a state space.- markov_
inequality_ ty MarkovInequality : Prop— P(X ≥ a) ≤ E[X] / a for non-negative X and a > 0.- martingale_
ty Martingale : StochasticProcess → Prop— a stochastic process M is a martingale: E[M_{n+1} | F_n] = M_n.- mcdiarmid_
inequality_ ty McDiarmidInequality : Prop— if f(x_1,…,x_n) changes by at most c_i when x_i is replaced, then P(f - Ef ≥ t) ≤ exp(-2t²/Σc_i²).- measurable_
ty Measurable : (α → β) → SigmaAlgebra α → SigmaAlgebra β → Prop— a function is measurable with respect to given sigma-algebras.- mixing_
time_ ty MixingTime : MarkovChain α → Real → Nat— the ε-mixing time of a Markov chain.- mutual_
independence_ ty MutualIndependence : List Event → Prop— a family of events is mutually independent.- nat_ty
- negative_
binomial_ pmf - Computes the negative binomial PMF: P(X = k) for X ~ NB(r, p).
- normal_
pdf - Computes the Gaussian (normal) PDF: f(x; μ, σ).
- pairwise_
independence_ ty PairwiseIndependence : List Event → Prop— every pair of events in a family is independent.- pearson_
correlation - Computes the Pearson correlation coefficient between
xandy. - pi
- pickands_
balkema_ de_ haan_ ty PickandsBalkemaDeHaan : Prop— the Pickands–Balkema–de Haan theorem: exceedances over high threshold converge to a GPD.- poisson_
pmf - Computes the Poisson PMF: P(X = k) for X ~ Pois(λ).
- prob_
measure_ ty ProbMeasure : SigmaAlgebra α → Type— a probability measure on a measurable space.- prob_
space_ ty ProbSpace : Type— a probability space Ω equipped with a sigma-algebra and measure.- prop
- quadratic_
variation_ ty QuadraticVariation : (Real → Ω → Real) → (Ω → Real) → Prop— the quadratic variation ⟨X⟩_T of a semimartingale X.- quantile_
ty Quantile : Distribution α → Real → α— the quantile function (inverse CDF) of a distribution.- quantum_
prob_ space_ ty QuantumProbSpace : Type— a quantum probability space given by a C*-algebra A with state φ.- rademacher_
complexity_ ty RademacherComplexity : ((Ω → Real) → Prop) → Real → Real— the Rademacher complexity of a function class F over n samples.- random_
tree_ ty RandomTree : Nat → Type— a random recursive tree (or Galton–Watson tree) with n nodes.- random_
var_ ty RandomVar : Type → Type → Type— a measurable function from sample space to value space.- random_
walk_ ty RandomWalk : (Nat → Ω → Real) → Prop— a random walk S_n = X_1 + ⋯ + X_n with i.i.d. steps X_i.- rate_
function_ ty RateFunction : Distribution α → (α → Real) → Prop— the large-deviation rate function I satisfying the LDP.- real_ty
- renewal_
process_ ty RenewalProcess : (Nat → Real) → Prop— the inter-arrival times form a renewal process.- renewal_
reward_ ty RenewalReward : Prop— the renewal reward theorem: long-run average reward = E[reward]/E[inter-arrival].- reversible_
chain_ ty ReversibleChain : MarkovChain → Distribution → Prop— detailed balance: π(i) P(i,j) = π(j) P(j,i) for all states i, j.- sample_
mean - Computes the sample mean of
data. - sample_
variance - Computes the sample variance of
data(unbiased, divides by n-1). - sanov_
ldp_ ty SanovLDP : Prop— the Sanov large deviation principle for empirical measures.- sde_ty
SDE : (Real → Ω → Real) → (Real → Real → Real) → (Real → Real → Real) → Prop— the stochastic differential equation dX = μ(t,X)dt + σ(t,X)dW.- sigma_
algebra_ ty SigmaAlgebra : Type → Type— a sigma-algebra F on a sample space Ω. Satisfies closure under complement and countable union.- spectral_
gap_ ty SpectralGap : MarkovChain → Real— the spectral gap 1 - λ_2 of the transition matrix (λ_2 = second largest eigenvalue).- standard_
normal_ cdf - Approximates the standard normal CDF Φ(z) for z ∈ ℝ.
- stochastic_
process_ ty StochasticProcess : Nat → Type → Type— a time-indexed family of random variables.- stopping_
time_ ty StoppingTime : (Nat → Event) → Prop— a random time τ adapted to a filtration is a stopping time.- strong_
lln_ ty StrongLawOfLargeNumbers : Prop— the sample mean converges almost surely to the population mean.- strong_
solution_ ty StrongSolution : SDE → Prop— the SDE has a strong solution (pathwise unique, adapted to W’s filtration).- sub_
exponential_ ty SubExponential : (Ω → Real) → Real → Real → Prop— X is (σ², b)-sub-exponential.- sub_
gaussian_ ty SubGaussian : (Ω → Real) → Real → Prop— X is σ-sub-Gaussian: E[exp(λX)] ≤ exp(λ²σ²/2) for all λ.- total_
variation_ dist_ ty TotalVariationDist : Distribution α → Distribution α → Real— the total variation distance between two probability measures.- total_
variation_ distance - Computes the total variation distance between two discrete distributions.
- type0
- vc_
dimension_ ty VCDimension : ((Ω → Prop) → Prop) → Nat— the Vapnik–Chervonenkis dimension of a hypothesis class H.- weak_
lln_ ty WeakLawOfLargeNumbers : Prop— the sample mean converges in probability to the population mean.- weak_
solution_ ty WeakSolution : SDE → Prop— the SDE has a weak solution (exists on some probability space).