Documentation

Determinize.Spec.Frontend

Programs of the front end #

The front end has rational literals, and uses the constructors of Expr with three kinds of sites:

@[reducible, inline]

A core program: the paper's syntax with rational literals.

Equations
Instances For

    The paper program a core program denotes: every rational literal read as a real.

    Equations
    Instances For
      @[reducible, inline]

      Resolved source syntax. A site carries its requested affinity, or none if the affinity is to be inferred.

      Equations
      Instances For
        @[reducible, inline]

        A program whose sites all sample at an affinity.

        Equations
        Instances For

          An annotated program is a core program without mean sites. Lean inserts this conversion where a core program is expected, as in interpret program.

          Equations
          Instances For
            def Determinize.Spec.Paper.Expr.Sitewise {Literal Site Site' : Type} (R : Site → Site' → Prop) :
            Expr Literal Site → Expr Literal Site' → Prop

            e and e' are the same program, with the same constructors, literals and variable indices, and R relates every site of e to the corresponding site of e'.

            Equations
            Instances For

              program keeps every constructor, literal, variable index and requested affinity of input, and fills its placeholders.

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