Documentation

Determinize.Proof.Primitives.Laws

Analytic laws of the paper primitives #

The proof indexes the primitives uniformly by Op and parameter tables; the reviewer-facing per-primitive fibers of Spec/Primitives.lean are recovered from these tables. The second part records the analytic facts required of the canonical primitive measures.

The proof indexes the primitives uniformly by Op: an affine parameter position is one in which the primitive's mean is affine (and which may therefore be typed at affinity E), a general position must be typed at affinity G. The reviewer-facing fibers in Spec/Primitives.lean are recovered from these tables below.

@[reducible, inline]

Evaluated parameters, indexed by the primitive's two arities.

Equations
Instances For
    def Determinize.Spec.Paper.parseParams (op : Op) (affine general : List ℝ) :

    Parse evaluated operand lists into the primitive's arity-indexed parameters.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Canonical primitive measure; an off-domain call has zero measure.

      Equations
      Instances For
        noncomputable def Determinize.Spec.Paper.primitiveFiber (kind : DistributionAction) (op : Op) (affine general : List ℝ) :

        The stochastic or mean fiber of a primitive at evaluated operand lists.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The reviewer-facing fibers are the generic one at the primitive's operand lists.

          theorem Determinize.Spec.Paper.uniformFiber_eq (kind : DistributionAction) (lower upper : ℝ) :
          uniformFiber kind lower upper = primitiveFiber kind Op.uniform [lower, upper] []
          theorem Determinize.Spec.Paper.gaussianFiber_eq (kind : DistributionAction) (mean variance : ℝ) :
          gaussianFiber kind mean variance = primitiveFiber kind Op.gaussian [mean] [variance]
          theorem Determinize.Spec.Paper.betaFiber_eq (kind : DistributionAction) (alpha beta : ℝ) :
          betaFiber kind alpha beta = primitiveFiber kind Op.beta [] [alpha, beta]
          theorem Determinize.Spec.Paper.gammaFiber_eq (kind : DistributionAction) (shape rate : ℝ) :
          gammaFiber kind shape rate = primitiveFiber kind Op.gamma [shape] [rate]
          theorem Determinize.Spec.Paper.discreteFiber_eq (kind : DistributionAction) (probabilities : List ℝ) :
          discreteFiber kind probabilities = primitiveFiber kind (Op.discrete probabilities.length) probabilities []
          theorem Determinize.Proof.Paper.meanValue_eq_affine (op : Spec.Paper.Op) (params : Spec.Paper.Params op) :
          Spec.Paper.meanValue op params = meanConstant op params.2 + ∑ i : Fin (Spec.Paper.affineArity op), meanCoeff op params.2 i * params.1 i

          Analytic facts about the canonical primitive measures used by the soundness proof.

          Instances For