(VAR X XS N)
(STRATEGY CONTEXTSENSITIVE 
  (from 1)
  (cons 1)
  (s 1)
  (after 1 2)
  (0)
)
(RULES 
from(X) -> cons(X,from(s(X)))
after(0,XS) -> XS
after(s(N),cons(X,XS)) -> after(N,XS)
)

The TRS is orthogonal, thus termination of innermost context-sensitive rewriting is equivalent to termination of context-sensitive rewriting.

Proving termination of context-sensitive rewriting for Ex4_7_56_Bor03:

-> Dependency pairs:
nF_after(s(N),cons(X,XS)) -> nF_after(N,XS)
nF_after(s(N),cons(X,XS)) -> XS

-> Proof of termination for Ex4_7_56_Bor03_1:
-> -> Dependency pairs in cycle:
nF_after(s(N),cons(X,XS)) -> nF_after(N,XS)

Termination proved: Cycles verify subterm criterion.

SETTINGS:
Base ordering: Polynomial ordering
Proof mode: SCCs in CSDG + base ordering
Upper bound for coeffs: 1
Rationals below 1 for all non-replacing args: No
Polynomial interpretation: Linear
Coeffs in polynomials: No rationals
Delta: automatic



Termination was proved succesfully.