Documentation

MIPRE.TM.Interp.Repr

The tape representation of configurations #

Values as their preorder bits (S), the control (ctrlRepr), the environment (envRepr, innermost value at the right end, #-separated), the frames (frameRepr) and the stack (kontRepr), as lists of symbols; and their lengths in terms of the sizes.

A value: its preorder bits.

Equations
Instances For
    theorem MIPRE.TM.Interp.S_cons (a b : Cost.Data) :
    S (a.cons b) = Sym.one :: (S a ++ S b)
    @[simp]
    theorem MIPRE.TM.Interp.mem_S (v : Cost.Data) (s : Sym) :
    s ∈ S v → s = Sym.zero ∨ s = Sym.one

    The symbols of a value are bits.

    The environment [v₁, …, vₙ] (v₁ innermost): S(vₙ) # … # S(v₁) #.

    Equations
    Instances For
      @[simp]
      theorem MIPRE.TM.Interp.mem_envRepr (env : Cost.Env) (s : Sym) :

      No $ and no in an environment.

      A frame: its tag, its payload, $; a closure carries its environment after .

      Equations
      Instances For

        The body of a frame: the frame without its final $.

        Equations
        Instances For

          No $ in the body of a frame.