Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex1_GM03_Z)

The rewrite relation of the following TRS is considered.

p(0) 0 (1)
p(s(X)) X (2)
leq(0,Y) true (3)
leq(s(X),0) false (4)
leq(s(X),s(Y)) leq(X,Y) (5)
if(true,X,Y) activate(X) (6)
if(false,X,Y) activate(Y) (7)
diff(X,Y) if(leq(X,Y),n__0,n__s(diff(p(X),Y))) (8)
0 n__0 (9)
s(X) n__s(X) (10)
activate(n__0) 0 (11)
activate(n__s(X)) s(X) (12)
activate(X) X (13)

Property / Task

Prove or disprove termination.

Answer / Result

No.

Proof (by AProVE @ termCOMP 2023)

1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
leq#(s(X),s(Y)) leq#(X,Y) (14)
if#(true,X,Y) activate#(X) (15)
if#(false,X,Y) activate#(Y) (16)
diff#(X,Y) if#(leq(X,Y),n__0,n__s(diff(p(X),Y))) (17)
diff#(X,Y) leq#(X,Y) (18)
diff#(X,Y) diff#(p(X),Y) (19)
diff#(X,Y) p#(X) (20)
activate#(n__0) 0# (21)
activate#(n__s(X)) s#(X) (22)
It remains to prove infiniteness of the resulting DP problem.

1.1 Pair and Rule Removal

Some pairs and rules have been removed and it remains to prove infiniteness of the remaing problem. The following pairs have been deleted.
leq#(s(X),s(Y)) leq#(X,Y) (14)
if#(true,X,Y) activate#(X) (15)
if#(false,X,Y) activate#(Y) (16)
diff#(X,Y) if#(leq(X,Y),n__0,n__s(diff(p(X),Y))) (17)
diff#(X,Y) leq#(X,Y) (18)
diff#(X,Y) p#(X) (20)
activate#(n__0) 0# (21)
activate#(n__s(X)) s#(X) (22)
and the following rules have been deleted.

1.1.1 Pair and Rule Removal

Some pairs and rules have been removed and it remains to prove infiniteness of the remaing problem. The following pairs have been deleted. and the following rules have been deleted.
leq(0,Y) true (3)
leq(s(X),0) false (4)
leq(s(X),s(Y)) leq(X,Y) (5)
if(true,X,Y) activate(X) (6)
if(false,X,Y) activate(Y) (7)
diff(X,Y) if(leq(X,Y),n__0,n__s(diff(p(X),Y))) (8)
s(X) n__s(X) (10)
activate(n__0) 0 (11)
activate(n__s(X)) s(X) (12)
activate(X) X (13)

1.1.1.1 Pair and Rule Removal

Some pairs and rules have been removed and it remains to prove infiniteness of the remaing problem. The following pairs have been deleted. and the following rules have been deleted.
p(s(X)) X (2)

1.1.1.1.1 Pair and Rule Removal

Some pairs and rules have been removed and it remains to prove infiniteness of the remaing problem. The following pairs have been deleted. and the following rules have been deleted.
0 n__0 (9)

1.1.1.1.1.1 Innermost Lhss Increase Processor

We add the following left hand sides to the innermost strategy.
p(0)

1.1.1.1.1.1.1 Full Strategy Switch Processor

We have a locally confluent overlay TRS, no overlaps between P and R, and the strategy is less than innermost. Hence, it suffices to prove non-termination for the full rewrite relation.

Local Confluence Proof

All critical pairs are joinable within 0 step(s). 0

1.1.1.1.1.1.1.1 Loop

The following loop proves infiniteness of the DP problem.

t0 = diff#(X,Y)
P diff#(p(X),Y)
= t1
where t1 = t0σ and σ = {X/p(X), Y/Y}