Based on this Formal Languages Theory course materials.
Informally, a term rewriting system (TRS) is a set of rules that show how terms from the left-hand side can be rewritten in terms from the right-hand side.
Let
A rewriting rule
A relation
A TRS
In this case, only the method with lexicographic ordering over the
-
$\exists i \space (1 \le i \le n \space \And \space t_i = g(u_1, ..., u_m))$ ; -
$\exists i \space (1 \le i \le n \space \And \space t_i >_{lo} g(u_1, ..., u_m))$ ; -
$(f > g) \space \And \space \forall i \space (1 \le i \le m \Rightarrow f(t_1, ..., t_n) >_{lo} u_i)$ ; -
$(f = g) \space \And \space \forall i \space (1 \le i \le m \Rightarrow f(t_1, ..., t_n) >_{lo} u_i)$ and$(t_1, ..., t_n)$ is lexicographic greater than$(u_1, ..., u_m)$ .
If all the rewriting rules of the TRS satisfy the lexicographic order with some constructors precedence, TRS is terminating.
The lexicographic ordering method can only determine whether the TRS is terminating. If this method gives a negative result, further research using other methods is required.
See the implementation of this approach in TRS_termination folder.
Information: coming soon