Certification Problem

Input (TPDB TRS_Equational/Mixed_C/AC44)

The rewrite relation of the following equational TRS is considered.

le(0,y) true (1)
le(s(x),0) false (2)
le(s(x),s(y)) le(x,y) (3)
minus(0,y) 0 (4)
minus(s(x),y) if_minus(le(s(x),y),s(x),y) (5)
if_minus(true,s(x),y) 0 (6)
if_minus(false,s(x),y) s(minus(x,y)) (7)
gcd(0,y) y (8)
gcd(s(x),0) s(x) (9)
gcd(s(x),s(y)) if_gcd(le(y,x),s(x),s(y)) (10)
if_gcd(true,s(x),s(y)) gcd(minus(x,y),s(y)) (11)
if_gcd(false,s(x),s(y)) gcd(minus(y,x),s(x)) (12)

Commutative symbols: gcd

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 AC Dependency Pair Transformation

The following set of (strict) dependency pairs is constructed for the TRS.

le#(s(x),s(y)) le#(x,y) (15)
minus#(s(x),y) if_minus#(le(s(x),y),s(x),y) (16)
minus#(s(x),y) le#(s(x),y) (17)
if_minus#(false,s(x),y) minus#(x,y) (18)
gcd#(s(x),s(y)) if_gcd#(le(y,x),s(x),s(y)) (19)
gcd#(s(x),s(y)) le#(y,x) (20)
if_gcd#(true,s(x),s(y)) gcd#(minus(x,y),s(y)) (21)
if_gcd#(true,s(x),s(y)) minus#(x,y) (22)
if_gcd#(false,s(x),s(y)) gcd#(minus(y,x),s(x)) (23)
if_gcd#(false,s(x),s(y)) minus#(y,x) (24)
The extended rules of the TRS

There are no rules.

give rise to even more dependency pairs (by sharping the root symbols of each rule). Finiteness for all DPs in combination with the equational DPs is proven as follows.

1.1 Dependency Graph Processor

The dependency pairs are split into 3 components.