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)
l{M}(S)
S
M,N\inl{M}(S)
M<DMN
M<DMN
X,Y\inl{M}(S)
X ≠ \varnothing
X\subseteqN
M=(N-X)+Y
X
Y
y\inY
x\inX
y<Sx
An equivalent definition was given by Huet and Oppen as follows:
M<DMN
M ≠ N
y
S
M(y)>N(y)
x
S
y<Sx
M(x)<N(x)