Certification Problem

Input (TPDB TRS_Standard/CiME_04/filliatre2)

The rewrite relation of the following TRS is considered.

g(A) A (1)
g(B) A (2)
g(B) B (3)
g(C) A (4)
g(C) B (5)
g(C) C (6)
foldB(t,0) t (7)
foldB(t,s(n)) f(foldB(t,n),B) (8)
foldC(t,0) t (9)
foldC(t,s(n)) f(foldC(t,n),C) (10)
f(t,x) f'(t,g(x)) (11)
f'(triple(a,b,c),C) triple(a,b,s(c)) (12)
f'(triple(a,b,c),B) f(triple(a,b,c),A) (13)
f'(triple(a,b,c),A) f''(foldB(triple(s(a),0,c),b)) (14)
f''(triple(a,b,c)) foldC(triple(a,b,0),c) (15)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by NaTT @ termCOMP 2023)

1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
f#(t,x) f'#(t,g(x)) (16)
foldC#(t,s(n)) f#(foldC(t,n),C) (17)
foldB#(t,s(n)) foldB#(t,n) (18)
foldC#(t,s(n)) foldC#(t,n) (19)
f''#(triple(a,b,c)) foldC#(triple(a,b,0),c) (20)
f'#(triple(a,b,c),A) foldB#(triple(s(a),0,c),b) (21)
f#(t,x) g#(x) (22)
f'#(triple(a,b,c),B) f#(triple(a,b,c),A) (23)
foldB#(t,s(n)) f#(foldB(t,n),B) (24)
f'#(triple(a,b,c),A) f''#(foldB(triple(s(a),0,c),b)) (25)

1.1 Dependency Graph Processor

The dependency pairs are split into 1 component.