Dershowitz–Manna ordering

In mathematics, the Dershowitz–Manna ordering is a well-founded ordering on multisets named after Nachum Dershowitz and Zohar Manna. It is often used in context of termination of programs or term rewriting systems.

Suppose that (S,<_S) is a partial order, and let \mathcal{M}(S) be the set of all finite multisets on S. For multisets M,N \in \mathcal{M}(S) we define the Dershowitz–Manna ordering M <_{DM} N as follows:

M <_{DM} N whenever there exist two multisets X,Y \in \mathcal{M}(S) with the following properties:

An equivalent definition was given by Huet and Oppen as follows:

M <_{DM} N if and only if

References