Term Rewriting System R:
[x, y]
minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))

Termination of R to be shown.

`   R`
`     ↳Dependency Pair Analysis`

R contains the following Dependency Pairs:

MINUS(s(x), s(y)) -> MINUS(x, y)
F(s(x)) -> MINUS(s(x), g(f(x)))
F(s(x)) -> G(f(x))
F(s(x)) -> F(x)
G(s(x)) -> MINUS(s(x), f(g(x)))
G(s(x)) -> F(g(x))
G(s(x)) -> G(x)

Furthermore, R contains two SCCs.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Remaining Obligation(s)`
`       →DP Problem 2`
`         ↳Remaining Obligation(s)`

The following remains to be proven:
• Dependency Pair:

MINUS(s(x), s(y)) -> MINUS(x, y)

Rules:

minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))

• Dependency Pairs:

G(s(x)) -> G(x)
F(s(x)) -> F(x)
G(s(x)) -> F(g(x))
F(s(x)) -> G(f(x))

Rules:

minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Remaining Obligation(s)`
`       →DP Problem 2`
`         ↳Remaining Obligation(s)`

The following remains to be proven:
• Dependency Pair:

MINUS(s(x), s(y)) -> MINUS(x, y)

Rules:

minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))

• Dependency Pairs:

G(s(x)) -> G(x)
F(s(x)) -> F(x)
G(s(x)) -> F(g(x))
F(s(x)) -> G(f(x))

Rules:

minus(x, 0) -> x
minus(s(x), s(y)) -> minus(x, y)
f(0) -> s(0)
f(s(x)) -> minus(s(x), g(f(x)))
g(0) -> 0
g(s(x)) -> minus(s(x), f(g(x)))

Termination of R could not be shown.
Duration:
0:00 minutes