minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
↳ QTRS
↳ Overlay + Local Confluence
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
IF(true, s(X), s(Y)) → MINUS(X, Y)
IF(true, s(X), s(Y)) → GCD(minus(X, Y), s(Y))
IF(false, s(X), s(Y)) → GCD(minus(Y, X), s(X))
MINUS(X, s(Y)) → MINUS(X, Y)
IF(false, s(X), s(Y)) → MINUS(Y, X)
LE(s(X), s(Y)) → LE(X, Y)
GCD(s(X), s(Y)) → LE(Y, X)
MINUS(X, s(Y)) → PRED(minus(X, Y))
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
IF(true, s(X), s(Y)) → MINUS(X, Y)
IF(true, s(X), s(Y)) → GCD(minus(X, Y), s(Y))
IF(false, s(X), s(Y)) → GCD(minus(Y, X), s(X))
MINUS(X, s(Y)) → MINUS(X, Y)
IF(false, s(X), s(Y)) → MINUS(Y, X)
LE(s(X), s(Y)) → LE(X, Y)
GCD(s(X), s(Y)) → LE(Y, X)
MINUS(X, s(Y)) → PRED(minus(X, Y))
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
LE(s(X), s(Y)) → LE(X, Y)
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
LE(s(X), s(Y)) → LE(X, Y)
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
LE(s(X), s(Y)) → LE(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
MINUS(X, s(Y)) → MINUS(X, Y)
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
MINUS(X, s(Y)) → MINUS(X, Y)
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
MINUS(X, s(Y)) → MINUS(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
IF(true, s(X), s(Y)) → GCD(minus(X, Y), s(Y))
IF(false, s(X), s(Y)) → GCD(minus(Y, X), s(X))
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
gcd(0, Y) → 0
gcd(s(X), 0) → s(X)
gcd(s(X), s(Y)) → if(le(Y, X), s(X), s(Y))
if(true, s(X), s(Y)) → gcd(minus(X, Y), s(Y))
if(false, s(X), s(Y)) → gcd(minus(Y, X), s(X))
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
IF(true, s(X), s(Y)) → GCD(minus(X, Y), s(Y))
IF(false, s(X), s(Y)) → GCD(minus(Y, X), s(X))
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
gcd(0, x0)
gcd(s(x0), 0)
gcd(s(x0), s(x1))
if(true, s(x0), s(x1))
if(false, s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPOrderProof
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
IF(true, s(X), s(Y)) → GCD(minus(X, Y), s(Y))
IF(false, s(X), s(Y)) → GCD(minus(Y, X), s(X))
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
IF(true, s(X), s(Y)) → GCD(minus(X, Y), s(Y))
IF(false, s(X), s(Y)) → GCD(minus(Y, X), s(X))
Used ordering: Polynomial interpretation [25]:
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
POL(0) = 0
POL(GCD(x1, x2)) = 1 + x1 + x2
POL(IF(x1, x2, x3)) = 1 + x2 + x3
POL(false) = 0
POL(le(x1, x2)) = 0
POL(minus(x1, x2)) = x1
POL(pred(x1)) = x1
POL(s(x1)) = 1 + x1
POL(true) = 0
minus(X, 0) → X
pred(s(X)) → X
minus(X, s(Y)) → pred(minus(X, Y))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
GCD(s(X), s(Y)) → IF(le(Y, X), s(X), s(Y))
le(s(X), s(Y)) → le(X, Y)
le(s(X), 0) → false
le(0, Y) → true
minus(X, s(Y)) → pred(minus(X, Y))
minus(X, 0) → X
pred(s(X)) → X
minus(x0, s(x1))
minus(x0, 0)
pred(s(x0))
le(s(x0), s(x1))
le(s(x0), 0)
le(0, x0)