Certification Problem

Input (TPDB TRS_Standard/SK90/2.29)

The rewrite relation of the following TRS is considered.

prime(0) false (1)
prime(s(0)) false (2)
prime(s(s(x))) prime1(s(s(x)),s(x)) (3)
prime1(x,0) false (4)
prime1(x,s(0)) true (5)
prime1(x,s(s(y))) and(not(divp(s(s(y)),x)),prime1(x,s(y))) (6)
divp(x,y) =(rem(x,y),0) (7)

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.
prime1#(x,s(s(y))) prime1#(x,s(y)) (8)
prime#(s(s(x))) prime1#(s(s(x)),s(x)) (9)
prime1#(x,s(s(y))) divp#(s(s(y)),x) (10)

1.1 Dependency Graph Processor

The dependency pairs are split into 1 component.