Certification Problem

Input (TPDB TRS_Standard/Various_04/24)

The rewrite relation of the following TRS is considered.

max(L(x)) x (1)
max(N(L(0),L(y))) y (2)
max(N(L(s(x)),L(s(y)))) s(max(N(L(x),L(y)))) (3)
max(N(L(x),N(y,z))) max(N(L(x),L(max(N(y,z))))) (4)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Rule Removal

Using the linear polynomial interpretation over the naturals
[max(x1)] = 1 · x1
[L(x1)] = 1 · x1
[N(x1, x2)] = 2 · x1 + 2 · x2
[0] = 2
[s(x1)] = 1 · x1
all of the following rules can be deleted.
max(N(L(0),L(y))) y (2)

1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[max(x1)] = 1 · x1
[L(x1)] = 1 · x1
[N(x1, x2)] = 1 · x1 + 1 · x2
[s(x1)] = 1 + 2 · x1
all of the following rules can be deleted.
max(N(L(s(x)),L(s(y)))) s(max(N(L(x),L(y)))) (3)

1.1.1 Switch to Innermost Termination

The TRS is overlay and locally confluent:

10

Hence, it suffices to show innermost termination in the following.

1.1.1.1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
max#(N(L(x),N(y,z))) max#(N(L(x),L(max(N(y,z))))) (5)
max#(N(L(x),N(y,z))) max#(N(y,z)) (6)

1.1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 1 component.