YES
0 QTRS
↳1 Overlay + Local Confluence (⇔, 6 ms)
↳2 QTRS
↳3 DependencyPairsProof (⇔, 0 ms)
↳4 QDP
↳5 DependencyGraphProof (⇔, 0 ms)
↳6 AND
↳7 QDP
↳8 UsableRulesProof (⇔, 0 ms)
↳9 QDP
↳10 QReductionProof (⇔, 0 ms)
↳11 QDP
↳12 QDPSizeChangeProof (⇔, 0 ms)
↳13 YES
↳14 QDP
↳15 UsableRulesProof (⇔, 0 ms)
↳16 QDP
↳17 QReductionProof (⇔, 0 ms)
↳18 QDP
↳19 QDPSizeChangeProof (⇔, 0 ms)
↳20 YES
↳21 QDP
↳22 UsableRulesProof (⇔, 0 ms)
↳23 QDP
↳24 QReductionProof (⇔, 0 ms)
↳25 QDP
↳26 QDPQMonotonicMRRProof (⇔, 25 ms)
↳27 QDP
↳28 TransformationProof (⇔, 0 ms)
↳29 QDP
↳30 DependencyGraphProof (⇔, 0 ms)
↳31 QDP
↳32 UsableRulesProof (⇔, 0 ms)
↳33 QDP
↳34 TransformationProof (⇔, 0 ms)
↳35 QDP
↳36 DependencyGraphProof (⇔, 0 ms)
↳37 QDP
↳38 UsableRulesProof (⇔, 0 ms)
↳39 QDP
↳40 TransformationProof (⇒, 0 ms)
↳41 QDP
↳42 UsableRulesProof (⇔, 0 ms)
↳43 QDP
↳44 QReductionProof (⇔, 0 ms)
↳45 QDP
↳46 TransformationProof (⇔, 0 ms)
↳47 QDP
↳48 DependencyGraphProof (⇔, 0 ms)
↳49 TRUE
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
quot(x, y) → if_quot(minus(x, y), y, le(y, 0), le(y, x))
if_quot(x, y, true, z) → divByZeroError
if_quot(x, y, false, true) → s(quot(x, y))
if_quot(x, y, false, false) → 0
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
quot(x, y) → if_quot(minus(x, y), y, le(y, 0), le(y, x))
if_quot(x, y, true, z) → divByZeroError
if_quot(x, y, false, true) → s(quot(x, y))
if_quot(x, y, false, false) → 0
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
MINUS(s(x), s(y)) → MINUS(x, y)
LE(s(x), s(y)) → LE(x, y)
QUOT(x, y) → IF_QUOT(minus(x, y), y, le(y, 0), le(y, x))
QUOT(x, y) → MINUS(x, y)
QUOT(x, y) → LE(y, 0)
QUOT(x, y) → LE(y, x)
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
quot(x, y) → if_quot(minus(x, y), y, le(y, 0), le(y, x))
if_quot(x, y, true, z) → divByZeroError
if_quot(x, y, false, true) → s(quot(x, y))
if_quot(x, y, false, false) → 0
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
LE(s(x), s(y)) → LE(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
quot(x, y) → if_quot(minus(x, y), y, le(y, 0), le(y, x))
if_quot(x, y, true, z) → divByZeroError
if_quot(x, y, false, true) → s(quot(x, y))
if_quot(x, y, false, false) → 0
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
LE(s(x), s(y)) → LE(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
LE(s(x), s(y)) → LE(x, y)
From the DPs we obtained the following set of size-change graphs:
MINUS(s(x), s(y)) → MINUS(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
quot(x, y) → if_quot(minus(x, y), y, le(y, 0), le(y, x))
if_quot(x, y, true, z) → divByZeroError
if_quot(x, y, false, true) → s(quot(x, y))
if_quot(x, y, false, false) → 0
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
MINUS(s(x), s(y)) → MINUS(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
MINUS(s(x), s(y)) → MINUS(x, y)
From the DPs we obtained the following set of size-change graphs:
QUOT(x, y) → IF_QUOT(minus(x, y), y, le(y, 0), le(y, x))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
quot(x, y) → if_quot(minus(x, y), y, le(y, 0), le(y, x))
if_quot(x, y, true, z) → divByZeroError
if_quot(x, y, false, true) → s(quot(x, y))
if_quot(x, y, false, false) → 0
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
QUOT(x, y) → IF_QUOT(minus(x, y), y, le(y, 0), le(y, x))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
quot(x0, x1)
if_quot(x0, x1, true, x2)
if_quot(x0, x1, false, true)
if_quot(x0, x1, false, false)
QUOT(x, y) → IF_QUOT(minus(x, y), y, le(y, 0), le(y, x))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(s(x), s(y)) → minus(x, y)
POL(0) = 0
POL(IF_QUOT(x1, x2, x3, x4)) = 2 + x1 + x2
POL(QUOT(x1, x2)) = 2 + x1 + x2
POL(false) = 0
POL(le(x1, x2)) = 1
POL(minus(x1, x2)) = x1
POL(s(x1)) = 1 + x1
POL(true) = 0
QUOT(x, y) → IF_QUOT(minus(x, y), y, le(y, 0), le(y, x))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(y0, 0) → IF_QUOT(minus(y0, 0), 0, true, le(0, y0)) → QUOT(y0, 0) → IF_QUOT(minus(y0, 0), 0, true, le(0, y0))
QUOT(y0, s(x0)) → IF_QUOT(minus(y0, s(x0)), s(x0), false, le(s(x0), y0)) → QUOT(y0, s(x0)) → IF_QUOT(minus(y0, s(x0)), s(x0), false, le(s(x0), y0))
IF_QUOT(x, y, false, true) → QUOT(x, y)
QUOT(y0, 0) → IF_QUOT(minus(y0, 0), 0, true, le(0, y0))
QUOT(y0, s(x0)) → IF_QUOT(minus(y0, s(x0)), s(x0), false, le(s(x0), y0))
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(y0, s(x0)) → IF_QUOT(minus(y0, s(x0)), s(x0), false, le(s(x0), y0))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
minus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(y0, s(x0)) → IF_QUOT(minus(y0, s(x0)), s(x0), false, le(s(x0), y0))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, y) → true
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(0, s(x0)) → IF_QUOT(minus(0, s(x0)), s(x0), false, false) → QUOT(0, s(x0)) → IF_QUOT(minus(0, s(x0)), s(x0), false, false)
QUOT(s(x1), s(x0)) → IF_QUOT(minus(s(x1), s(x0)), s(x0), false, le(x0, x1)) → QUOT(s(x1), s(x0)) → IF_QUOT(minus(s(x1), s(x0)), s(x0), false, le(x0, x1))
IF_QUOT(x, y, false, true) → QUOT(x, y)
QUOT(0, s(x0)) → IF_QUOT(minus(0, s(x0)), s(x0), false, false)
QUOT(s(x1), s(x0)) → IF_QUOT(minus(s(x1), s(x0)), s(x0), false, le(x0, x1))
minus(x, x) → 0
minus(0, x) → 0
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, y) → true
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(s(x1), s(x0)) → IF_QUOT(minus(s(x1), s(x0)), s(x0), false, le(x0, x1))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
minus(0, x) → 0
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, y) → true
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(s(x1), s(x0)) → IF_QUOT(minus(s(x1), s(x0)), s(x0), false, le(x0, x1))
IF_QUOT(x, y, false, true) → QUOT(x, y)
minus(x, x) → 0
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
QUOT(s(y0), s(y0)) → IF_QUOT(0, s(y0), false, le(y0, y0)) → QUOT(s(y0), s(y0)) → IF_QUOT(0, s(y0), false, le(y0, y0))
IF_QUOT(x, y, false, true) → QUOT(x, y)
QUOT(s(y0), s(y0)) → IF_QUOT(0, s(y0), false, le(y0, y0))
minus(x, x) → 0
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
IF_QUOT(x, y, false, true) → QUOT(x, y)
QUOT(s(y0), s(y0)) → IF_QUOT(0, s(y0), false, le(y0, y0))
le(0, y) → true
le(s(x), s(y)) → le(x, y)
le(s(x), 0) → false
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, x0)
minus(0, x0)
minus(x0, 0)
minus(s(x0), s(x1))
IF_QUOT(x, y, false, true) → QUOT(x, y)
QUOT(s(y0), s(y0)) → IF_QUOT(0, s(y0), false, le(y0, y0))
le(0, y) → true
le(s(x), s(y)) → le(x, y)
le(s(x), 0) → false
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
IF_QUOT(0, s(z0), false, true) → QUOT(0, s(z0)) → IF_QUOT(0, s(z0), false, true) → QUOT(0, s(z0))
QUOT(s(y0), s(y0)) → IF_QUOT(0, s(y0), false, le(y0, y0))
IF_QUOT(0, s(z0), false, true) → QUOT(0, s(z0))
le(0, y) → true
le(s(x), s(y)) → le(x, y)
le(s(x), 0) → false
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))