Documentation

Determinize.Spec.Types

Paper affinities and types #

The paper's modes of a real: a G sample must remain stochastic, an E sample is eligible for determinization, and the type system restricts how reals of affinity E are used.

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

      Sampling retains its E/G annotation; computing a mean needs none.

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

          The paper's types. float affinity is the type of reals of that affinity.

          • unit : Ty
          • bool : Ty
          • float (affinity : Affinity) : Ty
          • prod (left right : Ty) : Ty
          • sum (left right : Ty) : Ty
          • list (element : Ty) : Ty
          • arr (argument result : Ty) : Ty
          Instances For
            Equations
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Structural subtyping: G may be used as E; function arguments are contravariant.

                Instances For