(0) Obligation:

Clauses:

ordered([]).
ordered(.(X1, [])).
ordered(Xs) :- ','(no(max1el_list(Xs)), ','(head(Xs, X), ','(tail(Xs, Ys), ','(head(Ys, Y), ','(tail(Ys, Zs), ','(less(X, s(Y)), ordered(.(Y, Zs)))))))).
head([], X2).
head(.(X, X3), X).
tail([], []).
tail(.(X4, Xs), Xs).
less(0, s(X5)).
less(X, Y) :- ','(no(zero(X)), ','(p(X, Px), ','(p(Y, Py), less(Px, Py)))).
p(0, 0).
p(s(X), X).
max1el_list([]).
max1el_list(.(X6, [])).
zero(0).
no(X) :- ','(X, ','(!, failure(a))).
no(X7).
failure(b).

Queries:

ordered(g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

ordered1([]).
ordered1(.(T2, [])).
ordered1(.(T9, .(T13, T14))) :- less42(T9, T13).
ordered1(.(T9, .(T13, T14))) :- ','(less42(T9, T13), ordered1(.(T13, T14))).
less88(s(T31), X68) :- less88(T31, X81).
less66(0, s(T22)).
less66(s(s(T31)), 0) :- less88(T31, X81).
less66(s(T27), s(T32)) :- less66(T27, T32).
less42(0, T15).
less42(s(0), s(T22)).
less42(s(s(s(T31))), 0) :- less88(T31, X81).
less42(s(s(T27)), s(T32)) :- less66(T27, T32).

Queries:

ordered1(g).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
ordered1_in: (b)
less42_in: (b,b)
less88_in: (b,f)
less66_in: (b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

ORDERED1_IN_G(.(T9, .(T13, T14))) → U1_G(T9, T13, T14, less42_in_gg(T9, T13))
ORDERED1_IN_G(.(T9, .(T13, T14))) → LESS42_IN_GG(T9, T13)
LESS42_IN_GG(s(s(s(T31))), 0) → U6_GG(T31, less88_in_ga(T31, X81))
LESS42_IN_GG(s(s(s(T31))), 0) → LESS88_IN_GA(T31, X81)
LESS88_IN_GA(s(T31), X68) → U3_GA(T31, X68, less88_in_ga(T31, X81))
LESS88_IN_GA(s(T31), X68) → LESS88_IN_GA(T31, X81)
LESS42_IN_GG(s(s(T27)), s(T32)) → U7_GG(T27, T32, less66_in_gg(T27, T32))
LESS42_IN_GG(s(s(T27)), s(T32)) → LESS66_IN_GG(T27, T32)
LESS66_IN_GG(s(s(T31)), 0) → U4_GG(T31, less88_in_ga(T31, X81))
LESS66_IN_GG(s(s(T31)), 0) → LESS88_IN_GA(T31, X81)
LESS66_IN_GG(s(T27), s(T32)) → U5_GG(T27, T32, less66_in_gg(T27, T32))
LESS66_IN_GG(s(T27), s(T32)) → LESS66_IN_GG(T27, T32)
U1_G(T9, T13, T14, less42_out_gg(T9, T13)) → U2_G(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U1_G(T9, T13, T14, less42_out_gg(T9, T13)) → ORDERED1_IN_G(.(T13, T14))

The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
ORDERED1_IN_G(x1)  =  ORDERED1_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x3, x4)
LESS42_IN_GG(x1, x2)  =  LESS42_IN_GG(x1, x2)
U6_GG(x1, x2)  =  U6_GG(x2)
LESS88_IN_GA(x1, x2)  =  LESS88_IN_GA(x1)
U3_GA(x1, x2, x3)  =  U3_GA(x3)
U7_GG(x1, x2, x3)  =  U7_GG(x3)
LESS66_IN_GG(x1, x2)  =  LESS66_IN_GG(x1, x2)
U4_GG(x1, x2)  =  U4_GG(x2)
U5_GG(x1, x2, x3)  =  U5_GG(x3)
U2_G(x1, x2, x3, x4)  =  U2_G(x4)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

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

ORDERED1_IN_G(.(T9, .(T13, T14))) → U1_G(T9, T13, T14, less42_in_gg(T9, T13))
ORDERED1_IN_G(.(T9, .(T13, T14))) → LESS42_IN_GG(T9, T13)
LESS42_IN_GG(s(s(s(T31))), 0) → U6_GG(T31, less88_in_ga(T31, X81))
LESS42_IN_GG(s(s(s(T31))), 0) → LESS88_IN_GA(T31, X81)
LESS88_IN_GA(s(T31), X68) → U3_GA(T31, X68, less88_in_ga(T31, X81))
LESS88_IN_GA(s(T31), X68) → LESS88_IN_GA(T31, X81)
LESS42_IN_GG(s(s(T27)), s(T32)) → U7_GG(T27, T32, less66_in_gg(T27, T32))
LESS42_IN_GG(s(s(T27)), s(T32)) → LESS66_IN_GG(T27, T32)
LESS66_IN_GG(s(s(T31)), 0) → U4_GG(T31, less88_in_ga(T31, X81))
LESS66_IN_GG(s(s(T31)), 0) → LESS88_IN_GA(T31, X81)
LESS66_IN_GG(s(T27), s(T32)) → U5_GG(T27, T32, less66_in_gg(T27, T32))
LESS66_IN_GG(s(T27), s(T32)) → LESS66_IN_GG(T27, T32)
U1_G(T9, T13, T14, less42_out_gg(T9, T13)) → U2_G(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U1_G(T9, T13, T14, less42_out_gg(T9, T13)) → ORDERED1_IN_G(.(T13, T14))

The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
ORDERED1_IN_G(x1)  =  ORDERED1_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x3, x4)
LESS42_IN_GG(x1, x2)  =  LESS42_IN_GG(x1, x2)
U6_GG(x1, x2)  =  U6_GG(x2)
LESS88_IN_GA(x1, x2)  =  LESS88_IN_GA(x1)
U3_GA(x1, x2, x3)  =  U3_GA(x3)
U7_GG(x1, x2, x3)  =  U7_GG(x3)
LESS66_IN_GG(x1, x2)  =  LESS66_IN_GG(x1, x2)
U4_GG(x1, x2)  =  U4_GG(x2)
U5_GG(x1, x2, x3)  =  U5_GG(x3)
U2_G(x1, x2, x3, x4)  =  U2_G(x4)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 10 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

LESS88_IN_GA(s(T31), X68) → LESS88_IN_GA(T31, X81)

The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
LESS88_IN_GA(x1, x2)  =  LESS88_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

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

LESS88_IN_GA(s(T31), X68) → LESS88_IN_GA(T31, X81)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LESS88_IN_GA(x1, x2)  =  LESS88_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

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

LESS88_IN_GA(s(T31)) → LESS88_IN_GA(T31)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESS88_IN_GA(s(T31)) → LESS88_IN_GA(T31)
    The graph contains the following edges 1 > 1

(15) TRUE

(16) Obligation:

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

LESS66_IN_GG(s(T27), s(T32)) → LESS66_IN_GG(T27, T32)

The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
LESS66_IN_GG(x1, x2)  =  LESS66_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

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

LESS66_IN_GG(s(T27), s(T32)) → LESS66_IN_GG(T27, T32)

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

(19) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

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

LESS66_IN_GG(s(T27), s(T32)) → LESS66_IN_GG(T27, T32)

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

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESS66_IN_GG(s(T27), s(T32)) → LESS66_IN_GG(T27, T32)
    The graph contains the following edges 1 > 1, 2 > 2

(22) TRUE

(23) Obligation:

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

U1_G(T9, T13, T14, less42_out_gg(T9, T13)) → ORDERED1_IN_G(.(T13, T14))
ORDERED1_IN_G(.(T9, .(T13, T14))) → U1_G(T9, T13, T14, less42_in_gg(T9, T13))

The TRS R consists of the following rules:

ordered1_in_g([]) → ordered1_out_g([])
ordered1_in_g(.(T2, [])) → ordered1_out_g(.(T2, []))
ordered1_in_g(.(T9, .(T13, T14))) → U1_g(T9, T13, T14, less42_in_gg(T9, T13))
less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → ordered1_out_g(.(T9, .(T13, T14)))
U1_g(T9, T13, T14, less42_out_gg(T9, T13)) → U2_g(T9, T13, T14, ordered1_in_g(.(T13, T14)))
U2_g(T9, T13, T14, ordered1_out_g(.(T13, T14))) → ordered1_out_g(.(T9, .(T13, T14)))

The argument filtering Pi contains the following mapping:
ordered1_in_g(x1)  =  ordered1_in_g(x1)
[]  =  []
ordered1_out_g(x1)  =  ordered1_out_g
.(x1, x2)  =  .(x1, x2)
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x3, x4)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
ORDERED1_IN_G(x1)  =  ORDERED1_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(24) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(25) Obligation:

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

U1_G(T9, T13, T14, less42_out_gg(T9, T13)) → ORDERED1_IN_G(.(T13, T14))
ORDERED1_IN_G(.(T9, .(T13, T14))) → U1_G(T9, T13, T14, less42_in_gg(T9, T13))

The TRS R consists of the following rules:

less42_in_gg(0, T15) → less42_out_gg(0, T15)
less42_in_gg(s(0), s(T22)) → less42_out_gg(s(0), s(T22))
less42_in_gg(s(s(s(T31))), 0) → U6_gg(T31, less88_in_ga(T31, X81))
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(T27, T32, less66_in_gg(T27, T32))
U6_gg(T31, less88_out_ga(T31, X81)) → less42_out_gg(s(s(s(T31))), 0)
U7_gg(T27, T32, less66_out_gg(T27, T32)) → less42_out_gg(s(s(T27)), s(T32))
less88_in_ga(s(T31), X68) → U3_ga(T31, X68, less88_in_ga(T31, X81))
less66_in_gg(0, s(T22)) → less66_out_gg(0, s(T22))
less66_in_gg(s(s(T31)), 0) → U4_gg(T31, less88_in_ga(T31, X81))
less66_in_gg(s(T27), s(T32)) → U5_gg(T27, T32, less66_in_gg(T27, T32))
U3_ga(T31, X68, less88_out_ga(T31, X81)) → less88_out_ga(s(T31), X68)
U4_gg(T31, less88_out_ga(T31, X81)) → less66_out_gg(s(s(T31)), 0)
U5_gg(T27, T32, less66_out_gg(T27, T32)) → less66_out_gg(s(T27), s(T32))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
less42_in_gg(x1, x2)  =  less42_in_gg(x1, x2)
0  =  0
less42_out_gg(x1, x2)  =  less42_out_gg
s(x1)  =  s(x1)
U6_gg(x1, x2)  =  U6_gg(x2)
less88_in_ga(x1, x2)  =  less88_in_ga(x1)
U3_ga(x1, x2, x3)  =  U3_ga(x3)
less88_out_ga(x1, x2)  =  less88_out_ga
U7_gg(x1, x2, x3)  =  U7_gg(x3)
less66_in_gg(x1, x2)  =  less66_in_gg(x1, x2)
less66_out_gg(x1, x2)  =  less66_out_gg
U4_gg(x1, x2)  =  U4_gg(x2)
U5_gg(x1, x2, x3)  =  U5_gg(x3)
ORDERED1_IN_G(x1)  =  ORDERED1_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(26) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(27) Obligation:

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

U1_G(T13, T14, less42_out_gg) → ORDERED1_IN_G(.(T13, T14))
ORDERED1_IN_G(.(T9, .(T13, T14))) → U1_G(T13, T14, less42_in_gg(T9, T13))

The TRS R consists of the following rules:

less42_in_gg(0, T15) → less42_out_gg
less42_in_gg(s(0), s(T22)) → less42_out_gg
less42_in_gg(s(s(s(T31))), 0) → U6_gg(less88_in_ga(T31))
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(less66_in_gg(T27, T32))
U6_gg(less88_out_ga) → less42_out_gg
U7_gg(less66_out_gg) → less42_out_gg
less88_in_ga(s(T31)) → U3_ga(less88_in_ga(T31))
less66_in_gg(0, s(T22)) → less66_out_gg
less66_in_gg(s(s(T31)), 0) → U4_gg(less88_in_ga(T31))
less66_in_gg(s(T27), s(T32)) → U5_gg(less66_in_gg(T27, T32))
U3_ga(less88_out_ga) → less88_out_ga
U4_gg(less88_out_ga) → less66_out_gg
U5_gg(less66_out_gg) → less66_out_gg

The set Q consists of the following terms:

less42_in_gg(x0, x1)
U6_gg(x0)
U7_gg(x0)
less88_in_ga(x0)
less66_in_gg(x0, x1)
U3_ga(x0)
U4_gg(x0)
U5_gg(x0)

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

(28) UsableRulesReductionPairsProof (EQUIVALENT transformation)

By using the usable rules with reduction pair processor [LPAR04] with a polynomial ordering [POLO], all dependency pairs and the corresponding usable rules [FROCOS05] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

The following dependency pairs can be deleted:

ORDERED1_IN_G(.(T9, .(T13, T14))) → U1_G(T13, T14, less42_in_gg(T9, T13))
The following rules are removed from R:

less42_in_gg(0, T15) → less42_out_gg
less42_in_gg(s(0), s(T22)) → less42_out_gg
less42_in_gg(s(s(s(T31))), 0) → U6_gg(less88_in_ga(T31))
less42_in_gg(s(s(T27)), s(T32)) → U7_gg(less66_in_gg(T27, T32))
less66_in_gg(0, s(T22)) → less66_out_gg
less66_in_gg(s(s(T31)), 0) → U4_gg(less88_in_ga(T31))
less66_in_gg(s(T27), s(T32)) → U5_gg(less66_in_gg(T27, T32))
U7_gg(less66_out_gg) → less42_out_gg
U5_gg(less66_out_gg) → less66_out_gg
less88_in_ga(s(T31)) → U3_ga(less88_in_ga(T31))
U4_gg(less88_out_ga) → less66_out_gg
U3_ga(less88_out_ga) → less88_out_ga
U6_gg(less88_out_ga) → less42_out_gg
Used ordering: POLO with Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 2 + 2·x1 + 2·x2   
POL(0) = 0   
POL(ORDERED1_IN_G(x1)) = 2 + x1   
POL(U1_G(x1, x2, x3)) = 2 + 2·x1 + 2·x2 + x3   
POL(U3_ga(x1)) = 1 + 2·x1   
POL(U4_gg(x1)) = 2 + x1   
POL(U5_gg(x1)) = 2 + 2·x1   
POL(U6_gg(x1)) = 1 + 2·x1   
POL(U7_gg(x1)) = 2 + x1   
POL(less42_in_gg(x1, x2)) = 2 + 2·x1 + 2·x2   
POL(less42_out_gg) = 2   
POL(less66_in_gg(x1, x2)) = 1 + x1 + x2   
POL(less66_out_gg) = 1   
POL(less88_in_ga(x1)) = x1   
POL(less88_out_ga) = 2   
POL(s(x1)) = 2 + 2·x1   

(29) Obligation:

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

U1_G(T13, T14, less42_out_gg) → ORDERED1_IN_G(.(T13, T14))

R is empty.
The set Q consists of the following terms:

less42_in_gg(x0, x1)
U6_gg(x0)
U7_gg(x0)
less88_in_ga(x0)
less66_in_gg(x0, x1)
U3_ga(x0)
U4_gg(x0)
U5_gg(x0)

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

(30) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(31) TRUE