Definition. Regular expressions (abstract syntax) [0179]

The abstract syntax of regular expressions over an alphabet \Sigma will be represented by trees whose vertices are labelled by the symbols \texttt {Union}, \texttt {Concat}, \texttt {Star}, \texttt {Null}, \texttt {Never}, and \texttt {Sym}_{a} for any a:\Sigma . More specifically, each node of a tree will be of the following form:

  1. A node labelled by either \texttt {Union} or \texttt {Concat} has exactly two children.
  2. A node labelled by \texttt {Star} has exactly one child.
  3. A node labelled by \texttt {Null}, \texttt {Never}, or \texttt {Sym}_{a} has no children.

The plain English description above could be expressed as an inductive definition of a subset of the set of all trees.