Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex5_Zan97_Z)

The rewrite relation of the following TRS is considered.

f(X) if(X,c,n__f(true)) (1)
if(true,X,Y) X (2)
if(false,X,Y) activate(Y) (3)
f(X) n__f(X) (4)
activate(n__f(X)) f(X) (5)
activate(X) X (6)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by ttt2 @ termCOMP 2023)

1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(activate) = 0 weight(activate) = 6
prec(false) = 5 weight(false) = 2
prec(if) = 2 weight(if) = 3
prec(n__f) = 7 weight(n__f) = 0
prec(true) = 1 weight(true) = 1
prec(c) = 4 weight(c) = 1
prec(f) = 3 weight(f) = 5
all of the following rules can be deleted.
f(X) if(X,c,n__f(true)) (1)
if(true,X,Y) X (2)
if(false,X,Y) activate(Y) (3)
f(X) n__f(X) (4)
activate(n__f(X)) f(X) (5)
activate(X) X (6)

1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.