Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex1_GL02a_C)

The rewrite relation of the following TRS is considered.

active(eq(0,0)) mark(true) (1)
active(eq(s(X),s(Y))) mark(eq(X,Y)) (2)
active(eq(X,Y)) mark(false) (3)
active(inf(X)) mark(cons(X,inf(s(X)))) (4)
active(take(0,X)) mark(nil) (5)
active(take(s(X),cons(Y,L))) mark(cons(Y,take(X,L))) (6)
active(length(nil)) mark(0) (7)
active(length(cons(X,L))) mark(s(length(L))) (8)
active(inf(X)) inf(active(X)) (9)
active(take(X1,X2)) take(active(X1),X2) (10)
active(take(X1,X2)) take(X1,active(X2)) (11)
active(length(X)) length(active(X)) (12)
inf(mark(X)) mark(inf(X)) (13)
take(mark(X1),X2) mark(take(X1,X2)) (14)
take(X1,mark(X2)) mark(take(X1,X2)) (15)
length(mark(X)) mark(length(X)) (16)
proper(eq(X1,X2)) eq(proper(X1),proper(X2)) (17)
proper(0) ok(0) (18)
proper(true) ok(true) (19)
proper(s(X)) s(proper(X)) (20)
proper(false) ok(false) (21)
proper(inf(X)) inf(proper(X)) (22)
proper(cons(X1,X2)) cons(proper(X1),proper(X2)) (23)
proper(take(X1,X2)) take(proper(X1),proper(X2)) (24)
proper(nil) ok(nil) (25)
proper(length(X)) length(proper(X)) (26)
eq(ok(X1),ok(X2)) ok(eq(X1,X2)) (27)
s(ok(X)) ok(s(X)) (28)
inf(ok(X)) ok(inf(X)) (29)
cons(ok(X1),ok(X2)) ok(cons(X1,X2)) (30)
take(ok(X1),ok(X2)) ok(take(X1,X2)) (31)
length(ok(X)) ok(length(X)) (32)
top(mark(X)) top(proper(X)) (33)
top(ok(X)) top(active(X)) (34)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
active#(eq(s(X),s(Y))) eq#(X,Y) (35)
active#(inf(X)) cons#(X,inf(s(X))) (36)
active#(inf(X)) inf#(s(X)) (37)
active#(inf(X)) s#(X) (38)
active#(take(s(X),cons(Y,L))) cons#(Y,take(X,L)) (39)
active#(take(s(X),cons(Y,L))) take#(X,L) (40)
active#(length(cons(X,L))) s#(length(L)) (41)
active#(length(cons(X,L))) length#(L) (42)
active#(inf(X)) inf#(active(X)) (43)
active#(inf(X)) active#(X) (44)
active#(take(X1,X2)) take#(active(X1),X2) (45)
active#(take(X1,X2)) active#(X1) (46)
active#(take(X1,X2)) take#(X1,active(X2)) (47)
active#(take(X1,X2)) active#(X2) (48)
active#(length(X)) length#(active(X)) (49)
active#(length(X)) active#(X) (50)
inf#(mark(X)) inf#(X) (51)
take#(mark(X1),X2) take#(X1,X2) (52)
take#(X1,mark(X2)) take#(X1,X2) (53)
length#(mark(X)) length#(X) (54)
proper#(eq(X1,X2)) eq#(proper(X1),proper(X2)) (55)
proper#(eq(X1,X2)) proper#(X1) (56)
proper#(eq(X1,X2)) proper#(X2) (57)
proper#(s(X)) s#(proper(X)) (58)
proper#(s(X)) proper#(X) (59)
proper#(inf(X)) inf#(proper(X)) (60)
proper#(inf(X)) proper#(X) (61)
proper#(cons(X1,X2)) cons#(proper(X1),proper(X2)) (62)
proper#(cons(X1,X2)) proper#(X1) (63)
proper#(cons(X1,X2)) proper#(X2) (64)
proper#(take(X1,X2)) take#(proper(X1),proper(X2)) (65)
proper#(take(X1,X2)) proper#(X1) (66)
proper#(take(X1,X2)) proper#(X2) (67)
proper#(length(X)) length#(proper(X)) (68)
proper#(length(X)) proper#(X) (69)
eq#(ok(X1),ok(X2)) eq#(X1,X2) (70)
s#(ok(X)) s#(X) (71)
inf#(ok(X)) inf#(X) (72)
cons#(ok(X1),ok(X2)) cons#(X1,X2) (73)
take#(ok(X1),ok(X2)) take#(X1,X2) (74)
length#(ok(X)) length#(X) (75)
top#(mark(X)) top#(proper(X)) (76)
top#(mark(X)) proper#(X) (77)
top#(ok(X)) top#(active(X)) (78)
top#(ok(X)) active#(X) (79)

1.1 Dependency Graph Processor

The dependency pairs are split into 9 components.