Documentation

MeTTaIL.Theory.Check

The variables occurring in a term, including the substitution target. Mirrors Scala ASTHelpers.varsInAST, which adds the target dotted-path to the variables of the body and the replacement.

Equations
Instances For

    The variables occurring in a list of terms.

    Equations
    Instances For

      The top-level category of a term given the function symbols: the labelled rule's output sort for an application, the body's category through a substitution, and none (undetermined) for a variable or a head label that names no rule.

      Equations
      Instances For

        Two top-level categories are compatible: an undetermined side (none) matches anything, and two determined sides must be equal. A more permissive version of AddEqRwHelpers.sameCategory (see the note at the top of the file on the two cases Scala additionally rejects).

        Equations
        Instances For

          Check an equation: its two sides have compatible top-level categories (recursing through a freshness guard).

          Equations
          Instances For

            Check a rewrite: its two conclusion sides have compatible categories, and every right-hand-side variable is bound on the left-hand side or by a premise.

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