(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
times(0, y) → 0
times(x, 0) → 0
times(s(x), y) → plus(times(x, y), y)
p(s(s(x))) → s(p(s(x)))
p(s(0)) → 0
fac(s(x)) → times(fac(p(s(x))), s(x))

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PLUS(x, s(y)) → PLUS(x, y)
TIMES(s(x), y) → PLUS(times(x, y), y)
TIMES(s(x), y) → TIMES(x, y)
P(s(s(x))) → P(s(x))
FAC(s(x)) → TIMES(fac(p(s(x))), s(x))
FAC(s(x)) → FAC(p(s(x)))
FAC(s(x)) → P(s(x))

The TRS R consists of the following rules:

plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
times(0, y) → 0
times(x, 0) → 0
times(s(x), y) → plus(times(x, y), y)
p(s(s(x))) → s(p(s(x)))
p(s(0)) → 0
fac(s(x)) → times(fac(p(s(x))), s(x))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 4 SCCs with 3 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

Q DP problem:
The TRS P consists of the following rules:

P(s(s(x))) → P(s(x))

The TRS R consists of the following rules:

plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
times(0, y) → 0
times(x, 0) → 0
times(s(x), y) → plus(times(x, y), y)
p(s(s(x))) → s(p(s(x)))
p(s(0)) → 0
fac(s(x)) → times(fac(p(s(x))), s(x))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(6) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PLUS(x, s(y)) → PLUS(x, y)

The TRS R consists of the following rules:

plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
times(0, y) → 0
times(x, 0) → 0
times(s(x), y) → plus(times(x, y), y)
p(s(s(x))) → s(p(s(x)))
p(s(0)) → 0
fac(s(x)) → times(fac(p(s(x))), s(x))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(7) Obligation:

Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → TIMES(x, y)

The TRS R consists of the following rules:

plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
times(0, y) → 0
times(x, 0) → 0
times(s(x), y) → plus(times(x, y), y)
p(s(s(x))) → s(p(s(x)))
p(s(0)) → 0
fac(s(x)) → times(fac(p(s(x))), s(x))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(8) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FAC(s(x)) → FAC(p(s(x)))

The TRS R consists of the following rules:

plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
times(0, y) → 0
times(x, 0) → 0
times(s(x), y) → plus(times(x, y), y)
p(s(s(x))) → s(p(s(x)))
p(s(0)) → 0
fac(s(x)) → times(fac(p(s(x))), s(x))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.