Certification Problem

Input (TPDB TRS_Standard/Beerendonk_07/19)

The rewrite relation of the following TRS is considered.

cond1(true,x,y,z) cond2(gr(x,0),x,y,z) (1)
cond2(true,x,y,z) cond1(or(gr(x,z),gr(y,z)),p(x),y,z) (2)
cond2(false,x,y,z) cond3(gr(y,0),x,y,z) (3)
cond3(true,x,y,z) cond1(or(gr(x,z),gr(y,z)),x,p(y),z) (4)
cond3(false,x,y,z) cond1(or(gr(x,z),gr(y,z)),x,y,z) (5)
gr(0,x) false (6)
gr(s(x),0) true (7)
gr(s(x),s(y)) gr(x,y) (8)
or(false,false) false (9)
or(true,x) true (10)
or(x,true) true (11)
p(0) 0 (12)
p(s(x)) x (13)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

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 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
cond1#(true,x,y,z) cond2#(gr(x,0),x,y,z) (14)
cond1#(true,x,y,z) gr#(x,0) (15)
cond2#(true,x,y,z) cond1#(or(gr(x,z),gr(y,z)),p(x),y,z) (16)
cond2#(true,x,y,z) or#(gr(x,z),gr(y,z)) (17)
cond2#(true,x,y,z) gr#(x,z) (18)
cond2#(true,x,y,z) gr#(y,z) (19)
cond2#(true,x,y,z) p#(x) (20)
cond2#(false,x,y,z) cond3#(gr(y,0),x,y,z) (21)
cond2#(false,x,y,z) gr#(y,0) (22)
cond3#(true,x,y,z) cond1#(or(gr(x,z),gr(y,z)),x,p(y),z) (23)
cond3#(true,x,y,z) or#(gr(x,z),gr(y,z)) (24)
cond3#(true,x,y,z) gr#(x,z) (25)
cond3#(true,x,y,z) gr#(y,z) (26)
cond3#(true,x,y,z) p#(y) (27)
cond3#(false,x,y,z) cond1#(or(gr(x,z),gr(y,z)),x,y,z) (28)
cond3#(false,x,y,z) or#(gr(x,z),gr(y,z)) (29)
cond3#(false,x,y,z) gr#(x,z) (30)
cond3#(false,x,y,z) gr#(y,z) (31)
gr#(s(x),s(y)) gr#(x,y) (32)

1.1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.