Documentation

Linglib.Theories.Pragmatics.RSA.Core.Priors

RSA Prior Combinators #

Reusable combinators for constructing priors over product spaces and uniform distributions. These are common building blocks for RSA models where the world space is a product (e.g., State × Goal in @cite{kao-etal-2014-hyperbole}).

def RSA.Priors.jointPrior {A : Type u_1} {B : Type u_2} (marginal : A) (conditional : AB) :
A × B

Joint prior: P(a,b) = marginal(a) * conditional(a, b).

Equations
Instances For
    theorem RSA.Priors.jointPrior_nonneg {A : Type u_1} {B : Type u_2} {marginal : A} {conditional : AB} (hm : ∀ (a : A), 0 marginal a) (hc : ∀ (a : A) (b : B), 0 conditional a b) (p : A × B) :
    0 jointPrior marginal conditional p
    def RSA.Priors.uniformPrior {A : Type u_1} :
    A

    Uniform prior: weight 1 everywhere.

    Equations
    Instances For