0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇔)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PiDP
↳22 UsableRulesProof (⇔)
↳23 PiDP
↳24 PiDPToQDPProof (⇔)
↳25 QDP
↳26 QDPSizeChangeProof (⇔)
↳27 TRUE
↳28 PiDP
↳29 UsableRulesProof (⇔)
↳30 PiDP
↳31 PiDPToQDPProof (⇐)
↳32 QDP
↳33 QDPSizeChangeProof (⇔)
↳34 TRUE
↳35 PiDP
↳36 PiDPToQDPProof (⇐)
↳37 QDP
↳38 QDPOrderProof (⇔)
↳39 QDP
↳40 DependencyGraphProof (⇔)
↳41 TRUE
↳42 PrologToPiTRSProof (⇐)
↳43 PiTRS
↳44 DependencyPairsProof (⇔)
↳45 PiDP
↳46 DependencyGraphProof (⇔)
↳47 AND
↳48 PiDP
↳49 UsableRulesProof (⇔)
↳50 PiDP
↳51 PiDPToQDPProof (⇐)
↳52 QDP
↳53 QDPSizeChangeProof (⇔)
↳54 TRUE
↳55 PiDP
↳56 UsableRulesProof (⇔)
↳57 PiDP
↳58 PiDPToQDPProof (⇔)
↳59 QDP
↳60 QDPSizeChangeProof (⇔)
↳61 TRUE
↳62 PiDP
↳63 UsableRulesProof (⇔)
↳64 PiDP
↳65 PiDPToQDPProof (⇔)
↳66 QDP
↳67 QDPSizeChangeProof (⇔)
↳68 TRUE
↳69 PiDP
↳70 UsableRulesProof (⇔)
↳71 PiDP
↳72 PiDPToQDPProof (⇐)
↳73 QDP
↳74 QDPSizeChangeProof (⇔)
↳75 TRUE
↳76 PiDP
↳77 PiDPToQDPProof (⇐)
↳78 QDP
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
QS_IN_GA(cons(X, L), S) → U1_GA(X, L, S, split_in_ggaa(L, X, L1, L2))
QS_IN_GA(cons(X, L), S) → SPLIT_IN_GGAA(L, X, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → GEQ_IN_GG(X, Y)
GEQ_IN_GG(s(X), s(Y)) → U11_GG(X, Y, geq_in_gg(X, Y))
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, S, L2, qs_in_ga(L1, S1))
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1, S1)
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → U3_GA(X, L, S, S1, qs_in_ga(L2, S2))
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2, S2)
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → U4_GA(X, L, S, append_in_gga(S1, cons(X, S2), S))
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → APPEND_IN_GGA(S1, cons(X, S2), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → U5_GGA(X, L1, L2, L3, append_in_gga(L1, L2, L3))
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
QS_IN_GA(cons(X, L), S) → U1_GA(X, L, S, split_in_ggaa(L, X, L1, L2))
QS_IN_GA(cons(X, L), S) → SPLIT_IN_GGAA(L, X, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → GEQ_IN_GG(X, Y)
GEQ_IN_GG(s(X), s(Y)) → U11_GG(X, Y, geq_in_gg(X, Y))
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, S, L2, qs_in_ga(L1, S1))
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1, S1)
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → U3_GA(X, L, S, S1, qs_in_ga(L2, S2))
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2, S2)
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → U4_GA(X, L, S, append_in_gga(S1, cons(X, S2), S))
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → APPEND_IN_GGA(S1, cons(X, S2), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → U5_GGA(X, L1, L2, L3, append_in_gga(L1, L2, L3))
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
APPEND_IN_GGA(cons(X, L1), L2) → APPEND_IN_GGA(L1, L2)
From the DPs we obtained the following set of size-change graphs:
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U6_GGAA(X, L, Y, less_out_gg) → SPLIT_IN_GGAA(L, Y)
SPLIT_IN_GGAA(cons(X, L), Y) → U6_GGAA(X, L, Y, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y) → U8_GGAA(X, L, Y, geq_in_gg(X, Y))
U8_GGAA(X, L, Y, geq_out_gg) → SPLIT_IN_GGAA(L, Y)
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U10_gg(less_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg
geq_in_gg(s(X), 0) → geq_out_gg
geq_in_gg(s(X), s(Y)) → U11_gg(geq_in_gg(X, Y))
U10_gg(less_out_gg) → less_out_gg
U11_gg(geq_out_gg) → geq_out_gg
less_in_gg(x0, x1)
geq_in_gg(x0, x1)
U10_gg(x0)
U11_gg(x0)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, S, L2, qs_in_ga(L1, S1))
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2, S2)
QS_IN_GA(cons(X, L), S) → U1_GA(X, L, S, split_in_ggaa(L, X, L1, L2))
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1, S1)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
U1_GA(X, split_out_ggaa(L1, L2)) → U2_GA(X, L2, qs_in_ga(L1))
U2_GA(X, L2, qs_out_ga(S1)) → QS_IN_GA(L2)
QS_IN_GA(cons(X, L)) → U1_GA(X, split_in_ggaa(L, X))
U1_GA(X, split_out_ggaa(L1, L2)) → QS_IN_GA(L1)
qs_in_ga([]) → qs_out_ga([])
qs_in_ga(cons(X, L)) → U1_ga(X, split_in_ggaa(L, X))
split_in_ggaa([], X) → split_out_ggaa([], [])
split_in_ggaa(cons(X, L), Y) → U6_ggaa(X, L, Y, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U10_gg(less_in_gg(X, Y))
U10_gg(less_out_gg) → less_out_gg
U6_ggaa(X, L, Y, less_out_gg) → U7_ggaa(X, split_in_ggaa(L, Y))
split_in_ggaa(cons(X, L), Y) → U8_ggaa(X, L, Y, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg
geq_in_gg(s(X), 0) → geq_out_gg
geq_in_gg(s(X), s(Y)) → U11_gg(geq_in_gg(X, Y))
U11_gg(geq_out_gg) → geq_out_gg
U8_ggaa(X, L, Y, geq_out_gg) → U9_ggaa(X, split_in_ggaa(L, Y))
U9_ggaa(X, split_out_ggaa(L1, L2)) → split_out_ggaa(L1, cons(X, L2))
U7_ggaa(X, split_out_ggaa(L1, L2)) → split_out_ggaa(cons(X, L1), L2)
U1_ga(X, split_out_ggaa(L1, L2)) → U2_ga(X, L2, qs_in_ga(L1))
U2_ga(X, L2, qs_out_ga(S1)) → U3_ga(X, S1, qs_in_ga(L2))
U3_ga(X, S1, qs_out_ga(S2)) → U4_ga(append_in_gga(S1, cons(X, S2)))
append_in_gga([], L) → append_out_gga(L)
append_in_gga(cons(X, L1), L2) → U5_gga(X, append_in_gga(L1, L2))
U5_gga(X, append_out_gga(L3)) → append_out_gga(cons(X, L3))
U4_ga(append_out_gga(S)) → qs_out_ga(S)
qs_in_ga(x0)
split_in_ggaa(x0, x1)
less_in_gg(x0, x1)
U10_gg(x0)
U6_ggaa(x0, x1, x2, x3)
geq_in_gg(x0, x1)
U11_gg(x0)
U8_ggaa(x0, x1, x2, x3)
U9_ggaa(x0, x1)
U7_ggaa(x0, x1)
U1_ga(x0, x1)
U2_ga(x0, x1, x2)
U3_ga(x0, x1, x2)
append_in_gga(x0, x1)
U5_gga(x0, x1)
U4_ga(x0)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
QS_IN_GA(cons(X, L)) → U1_GA(X, split_in_ggaa(L, X))
POL(0) = 1
POL(QS_IN_GA(x1)) = x1
POL(U10_gg(x1)) = 0
POL(U11_gg(x1)) = 1 + x1
POL(U1_GA(x1, x2)) = x2
POL(U1_ga(x1, x2)) = 0
POL(U2_GA(x1, x2, x3)) = x2
POL(U2_ga(x1, x2, x3)) = 0
POL(U3_ga(x1, x2, x3)) = 0
POL(U4_ga(x1)) = 0
POL(U5_gga(x1, x2)) = 0
POL(U6_ggaa(x1, x2, x3, x4)) = 1 + x2
POL(U7_ggaa(x1, x2)) = 1 + x2
POL(U8_ggaa(x1, x2, x3, x4)) = 1 + x2
POL(U9_ggaa(x1, x2)) = 1 + x2
POL([]) = 0
POL(append_in_gga(x1, x2)) = 0
POL(append_out_gga(x1)) = 0
POL(cons(x1, x2)) = 1 + x2
POL(geq_in_gg(x1, x2)) = 1 + x2
POL(geq_out_gg) = 1
POL(less_in_gg(x1, x2)) = 0
POL(less_out_gg) = 0
POL(qs_in_ga(x1)) = 0
POL(qs_out_ga(x1)) = 0
POL(s(x1)) = 1 + x1
POL(split_in_ggaa(x1, x2)) = x1
POL(split_out_ggaa(x1, x2)) = x1 + x2
split_in_ggaa([], X) → split_out_ggaa([], [])
split_in_ggaa(cons(X, L), Y) → U6_ggaa(X, L, Y, less_in_gg(X, Y))
split_in_ggaa(cons(X, L), Y) → U8_ggaa(X, L, Y, geq_in_gg(X, Y))
U6_ggaa(X, L, Y, less_out_gg) → U7_ggaa(X, split_in_ggaa(L, Y))
U7_ggaa(X, split_out_ggaa(L1, L2)) → split_out_ggaa(cons(X, L1), L2)
U8_ggaa(X, L, Y, geq_out_gg) → U9_ggaa(X, split_in_ggaa(L, Y))
U9_ggaa(X, split_out_ggaa(L1, L2)) → split_out_ggaa(L1, cons(X, L2))
U1_GA(X, split_out_ggaa(L1, L2)) → U2_GA(X, L2, qs_in_ga(L1))
U2_GA(X, L2, qs_out_ga(S1)) → QS_IN_GA(L2)
U1_GA(X, split_out_ggaa(L1, L2)) → QS_IN_GA(L1)
qs_in_ga([]) → qs_out_ga([])
qs_in_ga(cons(X, L)) → U1_ga(X, split_in_ggaa(L, X))
split_in_ggaa([], X) → split_out_ggaa([], [])
split_in_ggaa(cons(X, L), Y) → U6_ggaa(X, L, Y, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U10_gg(less_in_gg(X, Y))
U10_gg(less_out_gg) → less_out_gg
U6_ggaa(X, L, Y, less_out_gg) → U7_ggaa(X, split_in_ggaa(L, Y))
split_in_ggaa(cons(X, L), Y) → U8_ggaa(X, L, Y, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg
geq_in_gg(s(X), 0) → geq_out_gg
geq_in_gg(s(X), s(Y)) → U11_gg(geq_in_gg(X, Y))
U11_gg(geq_out_gg) → geq_out_gg
U8_ggaa(X, L, Y, geq_out_gg) → U9_ggaa(X, split_in_ggaa(L, Y))
U9_ggaa(X, split_out_ggaa(L1, L2)) → split_out_ggaa(L1, cons(X, L2))
U7_ggaa(X, split_out_ggaa(L1, L2)) → split_out_ggaa(cons(X, L1), L2)
U1_ga(X, split_out_ggaa(L1, L2)) → U2_ga(X, L2, qs_in_ga(L1))
U2_ga(X, L2, qs_out_ga(S1)) → U3_ga(X, S1, qs_in_ga(L2))
U3_ga(X, S1, qs_out_ga(S2)) → U4_ga(append_in_gga(S1, cons(X, S2)))
append_in_gga([], L) → append_out_gga(L)
append_in_gga(cons(X, L1), L2) → U5_gga(X, append_in_gga(L1, L2))
U5_gga(X, append_out_gga(L3)) → append_out_gga(cons(X, L3))
U4_ga(append_out_gga(S)) → qs_out_ga(S)
qs_in_ga(x0)
split_in_ggaa(x0, x1)
less_in_gg(x0, x1)
U10_gg(x0)
U6_ggaa(x0, x1, x2, x3)
geq_in_gg(x0, x1)
U11_gg(x0)
U8_ggaa(x0, x1, x2, x3)
U9_ggaa(x0, x1)
U7_ggaa(x0, x1)
U1_ga(x0, x1)
U2_ga(x0, x1, x2)
U3_ga(x0, x1, x2)
append_in_gga(x0, x1)
U5_gga(x0, x1)
U4_ga(x0)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
QS_IN_GA(cons(X, L), S) → U1_GA(X, L, S, split_in_ggaa(L, X, L1, L2))
QS_IN_GA(cons(X, L), S) → SPLIT_IN_GGAA(L, X, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → GEQ_IN_GG(X, Y)
GEQ_IN_GG(s(X), s(Y)) → U11_GG(X, Y, geq_in_gg(X, Y))
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, S, L2, qs_in_ga(L1, S1))
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1, S1)
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → U3_GA(X, L, S, S1, qs_in_ga(L2, S2))
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2, S2)
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → U4_GA(X, L, S, append_in_gga(S1, cons(X, S2), S))
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → APPEND_IN_GGA(S1, cons(X, S2), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → U5_GGA(X, L1, L2, L3, append_in_gga(L1, L2, L3))
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
QS_IN_GA(cons(X, L), S) → U1_GA(X, L, S, split_in_ggaa(L, X, L1, L2))
QS_IN_GA(cons(X, L), S) → SPLIT_IN_GGAA(L, X, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → GEQ_IN_GG(X, Y)
GEQ_IN_GG(s(X), s(Y)) → U11_GG(X, Y, geq_in_gg(X, Y))
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_GGAA(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, S, L2, qs_in_ga(L1, S1))
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1, S1)
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → U3_GA(X, L, S, S1, qs_in_ga(L2, S2))
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2, S2)
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → U4_GA(X, L, S, append_in_gga(S1, cons(X, S2), S))
U3_GA(X, L, S, S1, qs_out_ga(L2, S2)) → APPEND_IN_GGA(S1, cons(X, S2), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → U5_GGA(X, L1, L2, L3, append_in_gga(L1, L2, L3))
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
APPEND_IN_GGA(cons(X, L1), L2, cons(X, L3)) → APPEND_IN_GGA(L1, L2, L3)
APPEND_IN_GGA(cons(X, L1), L2) → APPEND_IN_GGA(L1, L2)
From the DPs we obtained the following set of size-change graphs:
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
GEQ_IN_GG(s(X), s(Y)) → GEQ_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
U6_GGAA(X, L, Y, L1, L2, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
SPLIT_IN_GGAA(cons(X, L), Y, cons(X, L1), L2) → U6_GGAA(X, L, Y, L1, L2, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y, L1, cons(X, L2)) → U8_GGAA(X, L, Y, L1, L2, geq_in_gg(X, Y))
U8_GGAA(X, L, Y, L1, L2, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y, L1, L2)
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U6_GGAA(X, L, Y, less_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y)
SPLIT_IN_GGAA(cons(X, L), Y) → U6_GGAA(X, L, Y, less_in_gg(X, Y))
SPLIT_IN_GGAA(cons(X, L), Y) → U8_GGAA(X, L, Y, geq_in_gg(X, Y))
U8_GGAA(X, L, Y, geq_out_gg(X, Y)) → SPLIT_IN_GGAA(L, Y)
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
less_in_gg(x0, x1)
geq_in_gg(x0, x1)
U10_gg(x0, x1, x2)
U11_gg(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, S, L2, qs_in_ga(L1, S1))
U2_GA(X, L, S, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2, S2)
QS_IN_GA(cons(X, L), S) → U1_GA(X, L, S, split_in_ggaa(L, X, L1, L2))
U1_GA(X, L, S, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1, S1)
qs_in_ga([], []) → qs_out_ga([], [])
qs_in_ga(cons(X, L), S) → U1_ga(X, L, S, split_in_ggaa(L, X, L1, L2))
split_in_ggaa([], X, [], []) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y, cons(X, L1), L2) → U6_ggaa(X, L, Y, L1, L2, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, L1, L2, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
split_in_ggaa(cons(X, L), Y, L1, cons(X, L2)) → U8_ggaa(X, L, Y, L1, L2, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, L1, L2, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, L1, L2, split_in_ggaa(L, Y, L1, L2))
U9_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, L1, L2, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, S, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, S, L2, qs_in_ga(L1, S1))
U2_ga(X, L, S, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S, S1, qs_in_ga(L2, S2))
U3_ga(X, L, S, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, S, append_in_gga(S1, cons(X, S2), S))
append_in_gga([], L, L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2, cons(X, L3)) → U5_gga(X, L1, L2, L3, append_in_gga(L1, L2, L3))
U5_gga(X, L1, L2, L3, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, S, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
U1_GA(X, L, split_out_ggaa(L, X, L1, L2)) → U2_GA(X, L, L2, qs_in_ga(L1))
U2_GA(X, L, L2, qs_out_ga(L1, S1)) → QS_IN_GA(L2)
QS_IN_GA(cons(X, L)) → U1_GA(X, L, split_in_ggaa(L, X))
U1_GA(X, L, split_out_ggaa(L, X, L1, L2)) → QS_IN_GA(L1)
qs_in_ga([]) → qs_out_ga([], [])
qs_in_ga(cons(X, L)) → U1_ga(X, L, split_in_ggaa(L, X))
split_in_ggaa([], X) → split_out_ggaa([], X, [], [])
split_in_ggaa(cons(X, L), Y) → U6_ggaa(X, L, Y, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U6_ggaa(X, L, Y, less_out_gg(X, Y)) → U7_ggaa(X, L, Y, split_in_ggaa(L, Y))
split_in_ggaa(cons(X, L), Y) → U8_ggaa(X, L, Y, geq_in_gg(X, Y))
geq_in_gg(X, X) → geq_out_gg(X, X)
geq_in_gg(s(X), 0) → geq_out_gg(s(X), 0)
geq_in_gg(s(X), s(Y)) → U11_gg(X, Y, geq_in_gg(X, Y))
U11_gg(X, Y, geq_out_gg(X, Y)) → geq_out_gg(s(X), s(Y))
U8_ggaa(X, L, Y, geq_out_gg(X, Y)) → U9_ggaa(X, L, Y, split_in_ggaa(L, Y))
U9_ggaa(X, L, Y, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, L1, cons(X, L2))
U7_ggaa(X, L, Y, split_out_ggaa(L, Y, L1, L2)) → split_out_ggaa(cons(X, L), Y, cons(X, L1), L2)
U1_ga(X, L, split_out_ggaa(L, X, L1, L2)) → U2_ga(X, L, L2, qs_in_ga(L1))
U2_ga(X, L, L2, qs_out_ga(L1, S1)) → U3_ga(X, L, S1, qs_in_ga(L2))
U3_ga(X, L, S1, qs_out_ga(L2, S2)) → U4_ga(X, L, append_in_gga(S1, cons(X, S2)))
append_in_gga([], L) → append_out_gga([], L, L)
append_in_gga(cons(X, L1), L2) → U5_gga(X, L1, L2, append_in_gga(L1, L2))
U5_gga(X, L1, L2, append_out_gga(L1, L2, L3)) → append_out_gga(cons(X, L1), L2, cons(X, L3))
U4_ga(X, L, append_out_gga(S1, cons(X, S2), S)) → qs_out_ga(cons(X, L), S)
qs_in_ga(x0)
split_in_ggaa(x0, x1)
less_in_gg(x0, x1)
U10_gg(x0, x1, x2)
U6_ggaa(x0, x1, x2, x3)
geq_in_gg(x0, x1)
U11_gg(x0, x1, x2)
U8_ggaa(x0, x1, x2, x3)
U9_ggaa(x0, x1, x2, x3)
U7_ggaa(x0, x1, x2, x3)
U1_ga(x0, x1, x2)
U2_ga(x0, x1, x2, x3)
U3_ga(x0, x1, x2, x3)
append_in_gga(x0, x1)
U5_gga(x0, x1, x2, x3)
U4_ga(x0, x1, x2)