0 QTRS
↳1 DependencyPairsProof (⇔)
↳2 QDP
↳3 DependencyGraphProof (⇔)
↳4 AND
↳5 QDP
↳6 QDPOrderProof (⇔)
↳7 QDP
↳8 PisEmptyProof (⇔)
↳9 TRUE
↳10 QDP
↳11 QDPOrderProof (⇔)
↳12 QDP
↳13 PisEmptyProof (⇔)
↳14 TRUE
↳15 QDP
↳16 QDPOrderProof (⇔)
↳17 QDP
↳18 PisEmptyProof (⇔)
↳19 TRUE
↳20 QDP
↳21 QDPOrderProof (⇔)
↳22 QDP
↳23 QDPOrderProof (⇔)
↳24 QDP
↳25 PisEmptyProof (⇔)
↳26 TRUE
↳27 QDP
↳28 QDPOrderProof (⇔)
↳29 QDP
↳30 QDPOrderProof (⇔)
↳31 QDP
↳32 PisEmptyProof (⇔)
↳33 TRUE
↳34 QDP
↳35 QDPOrderProof (⇔)
↳36 QDP
↳37 QDPOrderProof (⇔)
↳38 QDP
↳39 PisEmptyProof (⇔)
↳40 TRUE
↳41 QDP
↳42 QDPOrderProof (⇔)
↳43 QDP
↳44 QDPOrderProof (⇔)
↳45 QDP
↳46 PisEmptyProof (⇔)
↳47 TRUE
↳48 QDP
↳49 QDPOrderProof (⇔)
↳50 QDP
↳51 QDPOrderProof (⇔)
↳52 QDP
↳53 PisEmptyProof (⇔)
↳54 TRUE
↳55 QDP
↳56 QDPOrderProof (⇔)
↳57 QDP
↳58 QDPOrderProof (⇔)
↳59 QDP
↳60 PisEmptyProof (⇔)
↳61 TRUE
↳62 QDP
↳63 QDPOrderProof (⇔)
↳64 QDP
↳65 QDPOrderProof (⇔)
↳66 QDP
↳67 PisEmptyProof (⇔)
↳68 TRUE
↳69 QDP
↳70 QDPOrderProof (⇔)
↳71 QDP
↳72 QDPOrderProof (⇔)
↳73 QDP
↳74 PisEmptyProof (⇔)
↳75 TRUE
↳76 QDP
↳77 QDPOrderProof (⇔)
↳78 QDP
↳79 QDPOrderProof (⇔)
↳80 QDP
↳81 PisEmptyProof (⇔)
↳82 TRUE
↳83 QDP
↳84 QDPOrderProof (⇔)
↳85 QDP
↳86 QDPOrderProof (⇔)
↳87 QDP
↳88 PisEmptyProof (⇔)
↳89 TRUE
↳90 QDP
↳91 QDPOrderProof (⇔)
↳92 QDP
↳93 QDPOrderProof (⇔)
↳94 QDP
↳95 PisEmptyProof (⇔)
↳96 TRUE
↳97 QDP
↳98 QDPOrderProof (⇔)
↳99 QDP
↳100 QDPOrderProof (⇔)
↳101 QDP
↳102 PisEmptyProof (⇔)
↳103 TRUE
↳104 QDP
↳105 QDPOrderProof (⇔)
↳106 QDP
↳107 QDPOrderProof (⇔)
↳108 QDP
↳109 PisEmptyProof (⇔)
↳110 TRUE
↳111 QDP
↳112 QDPOrderProof (⇔)
↳113 QDP
↳114 QDPOrderProof (⇔)
↳115 QDP
↳116 PisEmptyProof (⇔)
↳117 TRUE
↳118 QDP
↳119 QDPOrderProof (⇔)
↳120 QDP
↳121 QDPOrderProof (⇔)
↳122 QDP
↳123 PisEmptyProof (⇔)
↳124 TRUE
↳125 QDP
↳126 QDPOrderProof (⇔)
↳127 QDP
↳128 QDPOrderProof (⇔)
↳129 QDP
↳130 PisEmptyProof (⇔)
↳131 TRUE
↳132 QDP
↳133 QDPOrderProof (⇔)
↳134 QDP
↳135 QDPOrderProof (⇔)
↳136 QDP
↳137 PisEmptyProof (⇔)
↳138 TRUE
↳139 QDP
↳140 QDPOrderProof (⇔)
↳141 QDP
↳142 QDPOrderProof (⇔)
↳143 QDP
↳144 PisEmptyProof (⇔)
↳145 TRUE
↳146 QDP
↳147 QDPOrderProof (⇔)
↳148 QDP
↳149 QDPOrderProof (⇔)
↳150 QDP
↳151 PisEmptyProof (⇔)
↳152 TRUE
↳153 QDP
↳154 QDPOrderProof (⇔)
↳155 QDP
↳156 QDPOrderProof (⇔)
↳157 QDP
↳158 PisEmptyProof (⇔)
↳159 TRUE
↳160 QDP
↳161 QDPOrderProof (⇔)
↳162 QDP
↳163 QDPOrderProof (⇔)
↳164 QDP
↳165 PisEmptyProof (⇔)
↳166 TRUE
↳167 QDP
↳168 QDPOrderProof (⇔)
↳169 QDP
↳170 QDPOrderProof (⇔)
↳171 QDP
↳172 PisEmptyProof (⇔)
↳173 TRUE
↳174 QDP
↳175 QDPOrderProof (⇔)
↳176 QDP
↳177 QDPOrderProof (⇔)
↳178 QDP
↳179 PisEmptyProof (⇔)
↳180 TRUE
↳181 QDP
↳182 QDPOrderProof (⇔)
↳183 QDP
↳184 QDPOrderProof (⇔)
↳185 QDP
↳186 PisEmptyProof (⇔)
↳187 TRUE
↳188 QDP
↳189 QDPOrderProof (⇔)
↳190 QDP
↳191 QDPOrderProof (⇔)
↳192 QDP
↳193 PisEmptyProof (⇔)
↳194 TRUE
↳195 QDP
↳196 QDPOrderProof (⇔)
↳197 QDP
↳198 QDPOrderProof (⇔)
↳199 QDP
↳200 PisEmptyProof (⇔)
↳201 TRUE
↳202 QDP
↳203 QDPOrderProof (⇔)
↳204 QDP
↳205 QDPOrderProof (⇔)
↳206 QDP
↳207 PisEmptyProof (⇔)
↳208 TRUE
↳209 QDP
↳210 QDPOrderProof (⇔)
↳211 QDP
↳212 QDPOrderProof (⇔)
↳213 QDP
↳214 PisEmptyProof (⇔)
↳215 TRUE
↳216 QDP
↳217 QDPOrderProof (⇔)
↳218 QDP
↳219 QDPOrderProof (⇔)
↳220 QDP
↳221 PisEmptyProof (⇔)
↳222 TRUE
↳223 QDP
↳224 QDPOrderProof (⇔)
↳225 QDP
↳226 QDPOrderProof (⇔)
↳227 QDP
↳228 PisEmptyProof (⇔)
↳229 TRUE
↳230 QDP
↳231 QDPOrderProof (⇔)
↳232 QDP
↳233 QDPOrderProof (⇔)
↳234 QDP
↳235 PisEmptyProof (⇔)
↳236 TRUE
↳237 QDP
↳238 QDPOrderProof (⇔)
↳239 QDP
↳240 QDPOrderProof (⇔)
↳241 QDP
↳242 PisEmptyProof (⇔)
↳243 TRUE
↳244 QDP
↳245 QDPOrderProof (⇔)
↳246 QDP
↳247 QDPOrderProof (⇔)
↳248 QDP
↳249 PisEmptyProof (⇔)
↳250 TRUE
↳251 QDP
↳252 QDPOrderProof (⇔)
↳253 QDP
↳254 QDPOrderProof (⇔)
↳255 QDP
↳256 PisEmptyProof (⇔)
↳257 TRUE
↳258 QDP
↳259 QDPOrderProof (⇔)
↳260 QDP
↳261 QDPOrderProof (⇔)
↳262 QDP
↳263 PisEmptyProof (⇔)
↳264 TRUE
↳265 QDP
↳266 QDPOrderProof (⇔)
↳267 QDP
↳268 QDPOrderProof (⇔)
↳269 QDP
↳270 PisEmptyProof (⇔)
↳271 TRUE
↳272 QDP
↳273 QDPOrderProof (⇔)
↳274 QDP
↳275 QDPOrderProof (⇔)
↳276 QDP
↳277 PisEmptyProof (⇔)
↳278 TRUE
↳279 QDP
↳280 QDPOrderProof (⇔)
↳281 QDP
↳282 QDPOrderProof (⇔)
↳283 QDP
↳284 PisEmptyProof (⇔)
↳285 TRUE
↳286 QDP
↳287 QDPOrderProof (⇔)
↳288 QDP
↳289 QDPOrderProof (⇔)
↳290 QDP
↳291 PisEmptyProof (⇔)
↳292 TRUE
↳293 QDP
↳294 QDPOrderProof (⇔)
↳295 QDP
↳296 QDPOrderProof (⇔)
↳297 QDP
↳298 PisEmptyProof (⇔)
↳299 TRUE
↳300 QDP
↳301 QDPOrderProof (⇔)
↳302 QDP
↳303 QDPOrderProof (⇔)
↳304 QDP
↳305 PisEmptyProof (⇔)
↳306 TRUE
↳307 QDP
↳308 QDPOrderProof (⇔)
↳309 QDP
↳310 QDPOrderProof (⇔)
↳311 QDP
↳312 PisEmptyProof (⇔)
↳313 TRUE
↳314 QDP
↳315 QDPOrderProof (⇔)
↳316 QDP
↳317 QDPOrderProof (⇔)
↳318 QDP
↳319 PisEmptyProof (⇔)
↳320 TRUE
↳321 QDP
↳322 QDPOrderProof (⇔)
↳323 QDP
↳324 QDPOrderProof (⇔)
↳325 QDP
↳326 PisEmptyProof (⇔)
↳327 TRUE
↳328 QDP
↳329 QDPOrderProof (⇔)
↳330 QDP
↳331 QDPOrderProof (⇔)
↳332 QDP
↳333 PisEmptyProof (⇔)
↳334 TRUE
↳335 QDP
↳336 QDPOrderProof (⇔)
↳337 QDP
↳338 QDPOrderProof (⇔)
↳339 QDP
↳340 PisEmptyProof (⇔)
↳341 TRUE
↳342 QDP
↳343 QDPOrderProof (⇔)
↳344 QDP
↳345 QDPOrderProof (⇔)
↳346 QDP
↳347 PisEmptyProof (⇔)
↳348 TRUE
↳349 QDP
↳350 QDPOrderProof (⇔)
↳351 QDP
↳352 QDPOrderProof (⇔)
↳353 QDP
↳354 PisEmptyProof (⇔)
↳355 TRUE
↳356 QDP
↳357 QDPOrderProof (⇔)
↳358 QDP
↳359 QDPOrderProof (⇔)
↳360 QDP
↳361 PisEmptyProof (⇔)
↳362 TRUE
↳363 QDP
↳364 QDPOrderProof (⇔)
↳365 QDP
↳366 QDPOrderProof (⇔)
↳367 QDP
↳368 PisEmptyProof (⇔)
↳369 TRUE
↳370 QDP
↳371 QDPOrderProof (⇔)
↳372 QDP
↳373 QDPOrderProof (⇔)
↳374 QDP
↳375 QDPOrderProof (⇔)
↳376 QDP
↳377 PisEmptyProof (⇔)
↳378 TRUE
↳379 QDP
↳380 QDPOrderProof (⇔)
↳381 QDP
↳382 QDPOrderProof (⇔)
↳383 QDP
↳384 QDPOrderProof (⇔)
↳385 QDP
↳386 PisEmptyProof (⇔)
↳387 TRUE
↳388 QDP
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
ACTIVE(U101(tt, V2)) → U1021(isLNat(V2))
ACTIVE(U101(tt, V2)) → ISLNAT(V2)
ACTIVE(U11(tt, N, XS)) → U121(isLNat(XS), N, XS)
ACTIVE(U11(tt, N, XS)) → ISLNAT(XS)
ACTIVE(U12(tt, N, XS)) → SND(splitAt(N, XS))
ACTIVE(U12(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U131(tt, V2)) → U1321(isLNat(V2))
ACTIVE(U131(tt, V2)) → ISLNAT(V2)
ACTIVE(U141(tt, V2)) → U1421(isLNat(V2))
ACTIVE(U141(tt, V2)) → ISLNAT(V2)
ACTIVE(U151(tt, V2)) → U1521(isLNat(V2))
ACTIVE(U151(tt, V2)) → ISLNAT(V2)
ACTIVE(U161(tt, N)) → CONS(N, natsFrom(s(N)))
ACTIVE(U161(tt, N)) → NATSFROM(s(N))
ACTIVE(U161(tt, N)) → S(N)
ACTIVE(U171(tt, N, XS)) → U1721(isLNat(XS), N, XS)
ACTIVE(U171(tt, N, XS)) → ISLNAT(XS)
ACTIVE(U172(tt, N, XS)) → HEAD(afterNth(N, XS))
ACTIVE(U172(tt, N, XS)) → AFTERNTH(N, XS)
ACTIVE(U181(tt, Y)) → U1821(isLNat(Y), Y)
ACTIVE(U181(tt, Y)) → ISLNAT(Y)
ACTIVE(U191(tt, XS)) → PAIR(nil, XS)
ACTIVE(U201(tt, N, X, XS)) → U2021(isNatural(X), N, X, XS)
ACTIVE(U201(tt, N, X, XS)) → ISNATURAL(X)
ACTIVE(U202(tt, N, X, XS)) → U2031(isLNat(XS), N, X, XS)
ACTIVE(U202(tt, N, X, XS)) → ISLNAT(XS)
ACTIVE(U203(tt, N, X, XS)) → U2041(splitAt(N, XS), X)
ACTIVE(U203(tt, N, X, XS)) → SPLITAT(N, XS)
ACTIVE(U204(pair(YS, ZS), X)) → PAIR(cons(X, YS), ZS)
ACTIVE(U204(pair(YS, ZS), X)) → CONS(X, YS)
ACTIVE(U21(tt, X, Y)) → U221(isLNat(Y), X)
ACTIVE(U21(tt, X, Y)) → ISLNAT(Y)
ACTIVE(U211(tt, XS)) → U2121(isLNat(XS), XS)
ACTIVE(U211(tt, XS)) → ISLNAT(XS)
ACTIVE(U221(tt, N, XS)) → U2221(isLNat(XS), N, XS)
ACTIVE(U221(tt, N, XS)) → ISLNAT(XS)
ACTIVE(U222(tt, N, XS)) → FST(splitAt(N, XS))
ACTIVE(U222(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U31(tt, N, XS)) → U321(isLNat(XS), N)
ACTIVE(U31(tt, N, XS)) → ISLNAT(XS)
ACTIVE(U41(tt, V2)) → U421(isLNat(V2))
ACTIVE(U41(tt, V2)) → ISLNAT(V2)
ACTIVE(U51(tt, V2)) → U521(isLNat(V2))
ACTIVE(U51(tt, V2)) → ISLNAT(V2)
ACTIVE(afterNth(N, XS)) → U111(isNatural(N), N, XS)
ACTIVE(afterNth(N, XS)) → ISNATURAL(N)
ACTIVE(fst(pair(X, Y))) → U211(isLNat(X), X, Y)
ACTIVE(fst(pair(X, Y))) → ISLNAT(X)
ACTIVE(head(cons(N, XS))) → U311(isNatural(N), N, XS)
ACTIVE(head(cons(N, XS))) → ISNATURAL(N)
ACTIVE(isLNat(afterNth(V1, V2))) → U411(isNatural(V1), V2)
ACTIVE(isLNat(afterNth(V1, V2))) → ISNATURAL(V1)
ACTIVE(isLNat(cons(V1, V2))) → U511(isNatural(V1), V2)
ACTIVE(isLNat(cons(V1, V2))) → ISNATURAL(V1)
ACTIVE(isLNat(fst(V1))) → U611(isPLNat(V1))
ACTIVE(isLNat(fst(V1))) → ISPLNAT(V1)
ACTIVE(isLNat(natsFrom(V1))) → U711(isNatural(V1))
ACTIVE(isLNat(natsFrom(V1))) → ISNATURAL(V1)
ACTIVE(isLNat(snd(V1))) → U811(isPLNat(V1))
ACTIVE(isLNat(snd(V1))) → ISPLNAT(V1)
ACTIVE(isLNat(tail(V1))) → U911(isLNat(V1))
ACTIVE(isLNat(tail(V1))) → ISLNAT(V1)
ACTIVE(isLNat(take(V1, V2))) → U1011(isNatural(V1), V2)
ACTIVE(isLNat(take(V1, V2))) → ISNATURAL(V1)
ACTIVE(isNatural(head(V1))) → U1111(isLNat(V1))
ACTIVE(isNatural(head(V1))) → ISLNAT(V1)
ACTIVE(isNatural(s(V1))) → U1211(isNatural(V1))
ACTIVE(isNatural(s(V1))) → ISNATURAL(V1)
ACTIVE(isNatural(sel(V1, V2))) → U1311(isNatural(V1), V2)
ACTIVE(isNatural(sel(V1, V2))) → ISNATURAL(V1)
ACTIVE(isPLNat(pair(V1, V2))) → U1411(isLNat(V1), V2)
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V1)
ACTIVE(isPLNat(splitAt(V1, V2))) → U1511(isNatural(V1), V2)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISNATURAL(V1)
ACTIVE(natsFrom(N)) → U1611(isNatural(N), N)
ACTIVE(natsFrom(N)) → ISNATURAL(N)
ACTIVE(sel(N, XS)) → U1711(isNatural(N), N, XS)
ACTIVE(sel(N, XS)) → ISNATURAL(N)
ACTIVE(snd(pair(X, Y))) → U1811(isLNat(X), Y)
ACTIVE(snd(pair(X, Y))) → ISLNAT(X)
ACTIVE(splitAt(0, XS)) → U1911(isLNat(XS), XS)
ACTIVE(splitAt(0, XS)) → ISLNAT(XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → U2011(isNatural(N), N, X, XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(N)
ACTIVE(tail(cons(N, XS))) → U2111(isNatural(N), XS)
ACTIVE(tail(cons(N, XS))) → ISNATURAL(N)
ACTIVE(take(N, XS)) → U2211(isNatural(N), N, XS)
ACTIVE(take(N, XS)) → ISNATURAL(N)
ACTIVE(U101(X1, X2)) → U1011(active(X1), X2)
ACTIVE(U101(X1, X2)) → ACTIVE(X1)
ACTIVE(U102(X)) → U1021(active(X))
ACTIVE(U102(X)) → ACTIVE(X)
ACTIVE(U11(X1, X2, X3)) → U111(active(X1), X2, X3)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U12(X1, X2, X3)) → U121(active(X1), X2, X3)
ACTIVE(U12(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U111(X)) → U1111(active(X))
ACTIVE(U111(X)) → ACTIVE(X)
ACTIVE(snd(X)) → SND(active(X))
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → SPLITAT(active(X1), X2)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → SPLITAT(X1, active(X2))
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U121(X)) → U1211(active(X))
ACTIVE(U121(X)) → ACTIVE(X)
ACTIVE(U131(X1, X2)) → U1311(active(X1), X2)
ACTIVE(U131(X1, X2)) → ACTIVE(X1)
ACTIVE(U132(X)) → U1321(active(X))
ACTIVE(U132(X)) → ACTIVE(X)
ACTIVE(U141(X1, X2)) → U1411(active(X1), X2)
ACTIVE(U141(X1, X2)) → ACTIVE(X1)
ACTIVE(U142(X)) → U1421(active(X))
ACTIVE(U142(X)) → ACTIVE(X)
ACTIVE(U151(X1, X2)) → U1511(active(X1), X2)
ACTIVE(U151(X1, X2)) → ACTIVE(X1)
ACTIVE(U152(X)) → U1521(active(X))
ACTIVE(U152(X)) → ACTIVE(X)
ACTIVE(U161(X1, X2)) → U1611(active(X1), X2)
ACTIVE(U161(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → CONS(active(X1), X2)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(natsFrom(X)) → NATSFROM(active(X))
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(s(X)) → S(active(X))
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U171(X1, X2, X3)) → U1711(active(X1), X2, X3)
ACTIVE(U171(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U172(X1, X2, X3)) → U1721(active(X1), X2, X3)
ACTIVE(U172(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(head(X)) → HEAD(active(X))
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(active(X1), X2)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(X1, active(X2))
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U181(X1, X2)) → U1811(active(X1), X2)
ACTIVE(U181(X1, X2)) → ACTIVE(X1)
ACTIVE(U182(X1, X2)) → U1821(active(X1), X2)
ACTIVE(U182(X1, X2)) → ACTIVE(X1)
ACTIVE(U191(X1, X2)) → U1911(active(X1), X2)
ACTIVE(U191(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → PAIR(active(X1), X2)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → PAIR(X1, active(X2))
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(U201(X1, X2, X3, X4)) → U2011(active(X1), X2, X3, X4)
ACTIVE(U201(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U202(X1, X2, X3, X4)) → U2021(active(X1), X2, X3, X4)
ACTIVE(U202(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U203(X1, X2, X3, X4)) → U2031(active(X1), X2, X3, X4)
ACTIVE(U203(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U204(X1, X2)) → U2041(active(X1), X2)
ACTIVE(U204(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2, X3)) → U211(active(X1), X2, X3)
ACTIVE(U21(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U22(X1, X2)) → U221(active(X1), X2)
ACTIVE(U22(X1, X2)) → ACTIVE(X1)
ACTIVE(U211(X1, X2)) → U2111(active(X1), X2)
ACTIVE(U211(X1, X2)) → ACTIVE(X1)
ACTIVE(U212(X1, X2)) → U2121(active(X1), X2)
ACTIVE(U212(X1, X2)) → ACTIVE(X1)
ACTIVE(U221(X1, X2, X3)) → U2211(active(X1), X2, X3)
ACTIVE(U221(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U222(X1, X2, X3)) → U2221(active(X1), X2, X3)
ACTIVE(U222(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → FST(active(X))
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U31(X1, X2, X3)) → U311(active(X1), X2, X3)
ACTIVE(U31(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U32(X1, X2)) → U321(active(X1), X2)
ACTIVE(U32(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → U411(active(X1), X2)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U42(X)) → U421(active(X))
ACTIVE(U42(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2)) → U511(active(X1), X2)
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U52(X)) → U521(active(X))
ACTIVE(U52(X)) → ACTIVE(X)
ACTIVE(U61(X)) → U611(active(X))
ACTIVE(U61(X)) → ACTIVE(X)
ACTIVE(U71(X)) → U711(active(X))
ACTIVE(U71(X)) → ACTIVE(X)
ACTIVE(U81(X)) → U811(active(X))
ACTIVE(U81(X)) → ACTIVE(X)
ACTIVE(U91(X)) → U911(active(X))
ACTIVE(U91(X)) → ACTIVE(X)
ACTIVE(tail(X)) → TAIL(active(X))
ACTIVE(tail(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → TAKE(active(X1), X2)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → TAKE(X1, active(X2))
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → SEL(active(X1), X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → SEL(X1, active(X2))
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
U1011(mark(X1), X2) → U1011(X1, X2)
U1021(mark(X)) → U1021(X)
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U1111(mark(X)) → U1111(X)
SND(mark(X)) → SND(X)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
U1211(mark(X)) → U1211(X)
U1311(mark(X1), X2) → U1311(X1, X2)
U1321(mark(X)) → U1321(X)
U1411(mark(X1), X2) → U1411(X1, X2)
U1421(mark(X)) → U1421(X)
U1511(mark(X1), X2) → U1511(X1, X2)
U1521(mark(X)) → U1521(X)
U1611(mark(X1), X2) → U1611(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
NATSFROM(mark(X)) → NATSFROM(X)
S(mark(X)) → S(X)
U1711(mark(X1), X2, X3) → U1711(X1, X2, X3)
U1721(mark(X1), X2, X3) → U1721(X1, X2, X3)
HEAD(mark(X)) → HEAD(X)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
U1811(mark(X1), X2) → U1811(X1, X2)
U1821(mark(X1), X2) → U1821(X1, X2)
U1911(mark(X1), X2) → U1911(X1, X2)
PAIR(mark(X1), X2) → PAIR(X1, X2)
PAIR(X1, mark(X2)) → PAIR(X1, X2)
U2011(mark(X1), X2, X3, X4) → U2011(X1, X2, X3, X4)
U2021(mark(X1), X2, X3, X4) → U2021(X1, X2, X3, X4)
U2031(mark(X1), X2, X3, X4) → U2031(X1, X2, X3, X4)
U2041(mark(X1), X2) → U2041(X1, X2)
U211(mark(X1), X2, X3) → U211(X1, X2, X3)
U221(mark(X1), X2) → U221(X1, X2)
U2111(mark(X1), X2) → U2111(X1, X2)
U2121(mark(X1), X2) → U2121(X1, X2)
U2211(mark(X1), X2, X3) → U2211(X1, X2, X3)
U2221(mark(X1), X2, X3) → U2221(X1, X2, X3)
FST(mark(X)) → FST(X)
U311(mark(X1), X2, X3) → U311(X1, X2, X3)
U321(mark(X1), X2) → U321(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)
U421(mark(X)) → U421(X)
U511(mark(X1), X2) → U511(X1, X2)
U521(mark(X)) → U521(X)
U611(mark(X)) → U611(X)
U711(mark(X)) → U711(X)
U811(mark(X)) → U811(X)
U911(mark(X)) → U911(X)
TAIL(mark(X)) → TAIL(X)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
SEL(mark(X1), X2) → SEL(X1, X2)
SEL(X1, mark(X2)) → SEL(X1, X2)
PROPER(U101(X1, X2)) → U1011(proper(X1), proper(X2))
PROPER(U101(X1, X2)) → PROPER(X1)
PROPER(U101(X1, X2)) → PROPER(X2)
PROPER(U102(X)) → U1021(proper(X))
PROPER(U102(X)) → PROPER(X)
PROPER(isLNat(X)) → ISLNAT(proper(X))
PROPER(isLNat(X)) → PROPER(X)
PROPER(U11(X1, X2, X3)) → U111(proper(X1), proper(X2), proper(X3))
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(U12(X1, X2, X3)) → U121(proper(X1), proper(X2), proper(X3))
PROPER(U12(X1, X2, X3)) → PROPER(X1)
PROPER(U12(X1, X2, X3)) → PROPER(X2)
PROPER(U12(X1, X2, X3)) → PROPER(X3)
PROPER(U111(X)) → U1111(proper(X))
PROPER(U111(X)) → PROPER(X)
PROPER(snd(X)) → SND(proper(X))
PROPER(snd(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → SPLITAT(proper(X1), proper(X2))
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U121(X)) → U1211(proper(X))
PROPER(U121(X)) → PROPER(X)
PROPER(U131(X1, X2)) → U1311(proper(X1), proper(X2))
PROPER(U131(X1, X2)) → PROPER(X1)
PROPER(U131(X1, X2)) → PROPER(X2)
PROPER(U132(X)) → U1321(proper(X))
PROPER(U132(X)) → PROPER(X)
PROPER(U141(X1, X2)) → U1411(proper(X1), proper(X2))
PROPER(U141(X1, X2)) → PROPER(X1)
PROPER(U141(X1, X2)) → PROPER(X2)
PROPER(U142(X)) → U1421(proper(X))
PROPER(U142(X)) → PROPER(X)
PROPER(U151(X1, X2)) → U1511(proper(X1), proper(X2))
PROPER(U151(X1, X2)) → PROPER(X1)
PROPER(U151(X1, X2)) → PROPER(X2)
PROPER(U152(X)) → U1521(proper(X))
PROPER(U152(X)) → PROPER(X)
PROPER(U161(X1, X2)) → U1611(proper(X1), proper(X2))
PROPER(U161(X1, X2)) → PROPER(X1)
PROPER(U161(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → CONS(proper(X1), proper(X2))
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → NATSFROM(proper(X))
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → S(proper(X))
PROPER(s(X)) → PROPER(X)
PROPER(U171(X1, X2, X3)) → U1711(proper(X1), proper(X2), proper(X3))
PROPER(U171(X1, X2, X3)) → PROPER(X1)
PROPER(U171(X1, X2, X3)) → PROPER(X2)
PROPER(U171(X1, X2, X3)) → PROPER(X3)
PROPER(U172(X1, X2, X3)) → U1721(proper(X1), proper(X2), proper(X3))
PROPER(U172(X1, X2, X3)) → PROPER(X1)
PROPER(U172(X1, X2, X3)) → PROPER(X2)
PROPER(U172(X1, X2, X3)) → PROPER(X3)
PROPER(head(X)) → HEAD(proper(X))
PROPER(head(X)) → PROPER(X)
PROPER(afterNth(X1, X2)) → AFTERNTH(proper(X1), proper(X2))
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U181(X1, X2)) → U1811(proper(X1), proper(X2))
PROPER(U181(X1, X2)) → PROPER(X1)
PROPER(U181(X1, X2)) → PROPER(X2)
PROPER(U182(X1, X2)) → U1821(proper(X1), proper(X2))
PROPER(U182(X1, X2)) → PROPER(X1)
PROPER(U182(X1, X2)) → PROPER(X2)
PROPER(U191(X1, X2)) → U1911(proper(X1), proper(X2))
PROPER(U191(X1, X2)) → PROPER(X1)
PROPER(U191(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PAIR(proper(X1), proper(X2))
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U201(X1, X2, X3, X4)) → U2011(proper(X1), proper(X2), proper(X3), proper(X4))
PROPER(U201(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U202(X1, X2, X3, X4)) → U2021(proper(X1), proper(X2), proper(X3), proper(X4))
PROPER(U202(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X4)
PROPER(isNatural(X)) → ISNATURAL(proper(X))
PROPER(isNatural(X)) → PROPER(X)
PROPER(U203(X1, X2, X3, X4)) → U2031(proper(X1), proper(X2), proper(X3), proper(X4))
PROPER(U203(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U204(X1, X2)) → U2041(proper(X1), proper(X2))
PROPER(U204(X1, X2)) → PROPER(X1)
PROPER(U204(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2, X3)) → U211(proper(X1), proper(X2), proper(X3))
PROPER(U21(X1, X2, X3)) → PROPER(X1)
PROPER(U21(X1, X2, X3)) → PROPER(X2)
PROPER(U21(X1, X2, X3)) → PROPER(X3)
PROPER(U22(X1, X2)) → U221(proper(X1), proper(X2))
PROPER(U22(X1, X2)) → PROPER(X1)
PROPER(U22(X1, X2)) → PROPER(X2)
PROPER(U211(X1, X2)) → U2111(proper(X1), proper(X2))
PROPER(U211(X1, X2)) → PROPER(X1)
PROPER(U211(X1, X2)) → PROPER(X2)
PROPER(U212(X1, X2)) → U2121(proper(X1), proper(X2))
PROPER(U212(X1, X2)) → PROPER(X1)
PROPER(U212(X1, X2)) → PROPER(X2)
PROPER(U221(X1, X2, X3)) → U2211(proper(X1), proper(X2), proper(X3))
PROPER(U221(X1, X2, X3)) → PROPER(X1)
PROPER(U221(X1, X2, X3)) → PROPER(X2)
PROPER(U221(X1, X2, X3)) → PROPER(X3)
PROPER(U222(X1, X2, X3)) → U2221(proper(X1), proper(X2), proper(X3))
PROPER(U222(X1, X2, X3)) → PROPER(X1)
PROPER(U222(X1, X2, X3)) → PROPER(X2)
PROPER(U222(X1, X2, X3)) → PROPER(X3)
PROPER(fst(X)) → FST(proper(X))
PROPER(fst(X)) → PROPER(X)
PROPER(U31(X1, X2, X3)) → U311(proper(X1), proper(X2), proper(X3))
PROPER(U31(X1, X2, X3)) → PROPER(X1)
PROPER(U31(X1, X2, X3)) → PROPER(X2)
PROPER(U31(X1, X2, X3)) → PROPER(X3)
PROPER(U32(X1, X2)) → U321(proper(X1), proper(X2))
PROPER(U32(X1, X2)) → PROPER(X1)
PROPER(U32(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2)) → U411(proper(X1), proper(X2))
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(U42(X)) → U421(proper(X))
PROPER(U42(X)) → PROPER(X)
PROPER(U51(X1, X2)) → U511(proper(X1), proper(X2))
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U51(X1, X2)) → PROPER(X2)
PROPER(U52(X)) → U521(proper(X))
PROPER(U52(X)) → PROPER(X)
PROPER(U61(X)) → U611(proper(X))
PROPER(U61(X)) → PROPER(X)
PROPER(U71(X)) → U711(proper(X))
PROPER(U71(X)) → PROPER(X)
PROPER(U81(X)) → U811(proper(X))
PROPER(U81(X)) → PROPER(X)
PROPER(U91(X)) → U911(proper(X))
PROPER(U91(X)) → PROPER(X)
PROPER(isPLNat(X)) → ISPLNAT(proper(X))
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → TAIL(proper(X))
PROPER(tail(X)) → PROPER(X)
PROPER(take(X1, X2)) → TAKE(proper(X1), proper(X2))
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(sel(X1, X2)) → SEL(proper(X1), proper(X2))
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
U1011(ok(X1), ok(X2)) → U1011(X1, X2)
U1021(ok(X)) → U1021(X)
ISLNAT(ok(X)) → ISLNAT(X)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
U121(ok(X1), ok(X2), ok(X3)) → U121(X1, X2, X3)
U1111(ok(X)) → U1111(X)
SND(ok(X)) → SND(X)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
U1211(ok(X)) → U1211(X)
U1311(ok(X1), ok(X2)) → U1311(X1, X2)
U1321(ok(X)) → U1321(X)
U1411(ok(X1), ok(X2)) → U1411(X1, X2)
U1421(ok(X)) → U1421(X)
U1511(ok(X1), ok(X2)) → U1511(X1, X2)
U1521(ok(X)) → U1521(X)
U1611(ok(X1), ok(X2)) → U1611(X1, X2)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
NATSFROM(ok(X)) → NATSFROM(X)
S(ok(X)) → S(X)
U1711(ok(X1), ok(X2), ok(X3)) → U1711(X1, X2, X3)
U1721(ok(X1), ok(X2), ok(X3)) → U1721(X1, X2, X3)
HEAD(ok(X)) → HEAD(X)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
U1811(ok(X1), ok(X2)) → U1811(X1, X2)
U1821(ok(X1), ok(X2)) → U1821(X1, X2)
U1911(ok(X1), ok(X2)) → U1911(X1, X2)
PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
U2011(ok(X1), ok(X2), ok(X3), ok(X4)) → U2011(X1, X2, X3, X4)
U2021(ok(X1), ok(X2), ok(X3), ok(X4)) → U2021(X1, X2, X3, X4)
ISNATURAL(ok(X)) → ISNATURAL(X)
U2031(ok(X1), ok(X2), ok(X3), ok(X4)) → U2031(X1, X2, X3, X4)
U2041(ok(X1), ok(X2)) → U2041(X1, X2)
U211(ok(X1), ok(X2), ok(X3)) → U211(X1, X2, X3)
U221(ok(X1), ok(X2)) → U221(X1, X2)
U2111(ok(X1), ok(X2)) → U2111(X1, X2)
U2121(ok(X1), ok(X2)) → U2121(X1, X2)
U2211(ok(X1), ok(X2), ok(X3)) → U2211(X1, X2, X3)
U2221(ok(X1), ok(X2), ok(X3)) → U2221(X1, X2, X3)
FST(ok(X)) → FST(X)
U311(ok(X1), ok(X2), ok(X3)) → U311(X1, X2, X3)
U321(ok(X1), ok(X2)) → U321(X1, X2)
U411(ok(X1), ok(X2)) → U411(X1, X2)
U421(ok(X)) → U421(X)
U511(ok(X1), ok(X2)) → U511(X1, X2)
U521(ok(X)) → U521(X)
U611(ok(X)) → U611(X)
U711(ok(X)) → U711(X)
U811(ok(X)) → U811(X)
U911(ok(X)) → U911(X)
ISPLNAT(ok(X)) → ISPLNAT(X)
TAIL(ok(X)) → TAIL(X)
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
TOP(mark(X)) → TOP(proper(X))
TOP(mark(X)) → PROPER(X)
TOP(ok(X)) → TOP(active(X))
TOP(ok(X)) → ACTIVE(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
ISPLNAT(ok(X)) → ISPLNAT(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ISPLNAT(ok(X)) → ISPLNAT(X)
trivial
ok1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
ISNATURAL(ok(X)) → ISNATURAL(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ISNATURAL(ok(X)) → ISNATURAL(X)
trivial
ok1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
ISLNAT(ok(X)) → ISLNAT(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ISLNAT(ok(X)) → ISLNAT(X)
trivial
ok1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
SEL(X1, mark(X2)) → SEL(X1, X2)
SEL(mark(X1), X2) → SEL(X1, X2)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SEL(X1, mark(X2)) → SEL(X1, X2)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
[SEL1, ok1]
SEL1: [1]
mark1: [1]
ok1: [1]
SEL(mark(X1), X2) → SEL(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SEL(mark(X1), X2) → SEL(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
TAKE(X1, mark(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
TAKE(X1, mark(X2)) → TAKE(X1, X2)
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
[TAKE1, ok1]
TAKE1: [1]
mark1: [1]
ok1: [1]
TAKE(mark(X1), X2) → TAKE(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
TAKE(mark(X1), X2) → TAKE(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
TAIL(ok(X)) → TAIL(X)
TAIL(mark(X)) → TAIL(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
TAIL(ok(X)) → TAIL(X)
trivial
ok1: [1]
TAIL(mark(X)) → TAIL(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
TAIL(mark(X)) → TAIL(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U911(ok(X)) → U911(X)
U911(mark(X)) → U911(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U911(ok(X)) → U911(X)
trivial
ok1: [1]
U911(mark(X)) → U911(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U911(mark(X)) → U911(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U811(ok(X)) → U811(X)
U811(mark(X)) → U811(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U811(ok(X)) → U811(X)
trivial
ok1: [1]
U811(mark(X)) → U811(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U811(mark(X)) → U811(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U711(ok(X)) → U711(X)
U711(mark(X)) → U711(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U711(ok(X)) → U711(X)
trivial
ok1: [1]
U711(mark(X)) → U711(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U711(mark(X)) → U711(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U611(ok(X)) → U611(X)
U611(mark(X)) → U611(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U611(ok(X)) → U611(X)
trivial
ok1: [1]
U611(mark(X)) → U611(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U611(mark(X)) → U611(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U521(ok(X)) → U521(X)
U521(mark(X)) → U521(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U521(ok(X)) → U521(X)
trivial
ok1: [1]
U521(mark(X)) → U521(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U521(mark(X)) → U521(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U511(ok(X1), ok(X2)) → U511(X1, X2)
U511(mark(X1), X2) → U511(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U511(ok(X1), ok(X2)) → U511(X1, X2)
ok1 > U51^11
mark1 > U51^11
U51^11: [1]
ok1: [1]
mark1: [1]
U511(mark(X1), X2) → U511(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U511(mark(X1), X2) → U511(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U421(ok(X)) → U421(X)
U421(mark(X)) → U421(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U421(ok(X)) → U421(X)
trivial
ok1: [1]
U421(mark(X)) → U421(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U421(mark(X)) → U421(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U411(ok(X1), ok(X2)) → U411(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U411(ok(X1), ok(X2)) → U411(X1, X2)
ok1 > U41^11
mark1 > U41^11
U41^11: [1]
ok1: [1]
mark1: [1]
U411(mark(X1), X2) → U411(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U411(mark(X1), X2) → U411(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U321(ok(X1), ok(X2)) → U321(X1, X2)
U321(mark(X1), X2) → U321(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U321(ok(X1), ok(X2)) → U321(X1, X2)
ok1 > U32^11
mark1 > U32^11
U32^11: [1]
ok1: [1]
mark1: [1]
U321(mark(X1), X2) → U321(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U321(mark(X1), X2) → U321(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U311(ok(X1), ok(X2), ok(X3)) → U311(X1, X2, X3)
U311(mark(X1), X2, X3) → U311(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U311(ok(X1), ok(X2), ok(X3)) → U311(X1, X2, X3)
trivial
U31^11: [1]
ok1: [1]
mark: []
U311(mark(X1), X2, X3) → U311(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U311(mark(X1), X2, X3) → U311(X1, X2, X3)
[U31^13, mark1]
U31^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
FST(ok(X)) → FST(X)
FST(mark(X)) → FST(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FST(ok(X)) → FST(X)
trivial
ok1: [1]
FST(mark(X)) → FST(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FST(mark(X)) → FST(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2221(ok(X1), ok(X2), ok(X3)) → U2221(X1, X2, X3)
U2221(mark(X1), X2, X3) → U2221(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2221(ok(X1), ok(X2), ok(X3)) → U2221(X1, X2, X3)
trivial
U222^11: [1]
ok1: [1]
mark: []
U2221(mark(X1), X2, X3) → U2221(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2221(mark(X1), X2, X3) → U2221(X1, X2, X3)
[U222^13, mark1]
U222^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2211(ok(X1), ok(X2), ok(X3)) → U2211(X1, X2, X3)
U2211(mark(X1), X2, X3) → U2211(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2211(ok(X1), ok(X2), ok(X3)) → U2211(X1, X2, X3)
trivial
U221^11: [1]
ok1: [1]
mark: []
U2211(mark(X1), X2, X3) → U2211(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2211(mark(X1), X2, X3) → U2211(X1, X2, X3)
[U221^13, mark1]
U221^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2121(ok(X1), ok(X2)) → U2121(X1, X2)
U2121(mark(X1), X2) → U2121(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2121(ok(X1), ok(X2)) → U2121(X1, X2)
ok1 > U212^11
mark1 > U212^11
U212^11: [1]
ok1: [1]
mark1: [1]
U2121(mark(X1), X2) → U2121(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2121(mark(X1), X2) → U2121(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2111(ok(X1), ok(X2)) → U2111(X1, X2)
U2111(mark(X1), X2) → U2111(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2111(ok(X1), ok(X2)) → U2111(X1, X2)
ok1 > U211^11
mark1 > U211^11
U211^11: [1]
ok1: [1]
mark1: [1]
U2111(mark(X1), X2) → U2111(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2111(mark(X1), X2) → U2111(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U221(ok(X1), ok(X2)) → U221(X1, X2)
U221(mark(X1), X2) → U221(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U221(ok(X1), ok(X2)) → U221(X1, X2)
ok1 > U22^11
mark1 > U22^11
U22^11: [1]
ok1: [1]
mark1: [1]
U221(mark(X1), X2) → U221(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U221(mark(X1), X2) → U221(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U211(ok(X1), ok(X2), ok(X3)) → U211(X1, X2, X3)
U211(mark(X1), X2, X3) → U211(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U211(ok(X1), ok(X2), ok(X3)) → U211(X1, X2, X3)
trivial
U21^11: [1]
ok1: [1]
mark: []
U211(mark(X1), X2, X3) → U211(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U211(mark(X1), X2, X3) → U211(X1, X2, X3)
[U21^13, mark1]
U21^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2041(ok(X1), ok(X2)) → U2041(X1, X2)
U2041(mark(X1), X2) → U2041(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2041(ok(X1), ok(X2)) → U2041(X1, X2)
ok1 > U204^11
mark1 > U204^11
U204^11: [1]
ok1: [1]
mark1: [1]
U2041(mark(X1), X2) → U2041(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2041(mark(X1), X2) → U2041(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2031(ok(X1), ok(X2), ok(X3), ok(X4)) → U2031(X1, X2, X3, X4)
U2031(mark(X1), X2, X3, X4) → U2031(X1, X2, X3, X4)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2031(ok(X1), ok(X2), ok(X3), ok(X4)) → U2031(X1, X2, X3, X4)
ok1 > U203^11
U203^11: [1]
ok1: [1]
mark1: [1]
U2031(mark(X1), X2, X3, X4) → U2031(X1, X2, X3, X4)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2031(mark(X1), X2, X3, X4) → U2031(X1, X2, X3, X4)
[U203^14, mark1]
U203^14: [2,3,4,1]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2021(ok(X1), ok(X2), ok(X3), ok(X4)) → U2021(X1, X2, X3, X4)
U2021(mark(X1), X2, X3, X4) → U2021(X1, X2, X3, X4)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2021(ok(X1), ok(X2), ok(X3), ok(X4)) → U2021(X1, X2, X3, X4)
ok1 > U202^11
U202^11: [1]
ok1: [1]
mark1: [1]
U2021(mark(X1), X2, X3, X4) → U2021(X1, X2, X3, X4)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2021(mark(X1), X2, X3, X4) → U2021(X1, X2, X3, X4)
[U202^14, mark1]
U202^14: [2,3,4,1]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U2011(ok(X1), ok(X2), ok(X3), ok(X4)) → U2011(X1, X2, X3, X4)
U2011(mark(X1), X2, X3, X4) → U2011(X1, X2, X3, X4)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2011(ok(X1), ok(X2), ok(X3), ok(X4)) → U2011(X1, X2, X3, X4)
ok1 > U201^11
U201^11: [1]
ok1: [1]
mark1: [1]
U2011(mark(X1), X2, X3, X4) → U2011(X1, X2, X3, X4)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U2011(mark(X1), X2, X3, X4) → U2011(X1, X2, X3, X4)
[U201^14, mark1]
U201^14: [2,3,4,1]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
PAIR(X1, mark(X2)) → PAIR(X1, X2)
PAIR(mark(X1), X2) → PAIR(X1, X2)
PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PAIR(X1, mark(X2)) → PAIR(X1, X2)
PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
[PAIR1, ok1]
PAIR1: [1]
mark1: [1]
ok1: [1]
PAIR(mark(X1), X2) → PAIR(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PAIR(mark(X1), X2) → PAIR(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1911(ok(X1), ok(X2)) → U1911(X1, X2)
U1911(mark(X1), X2) → U1911(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1911(ok(X1), ok(X2)) → U1911(X1, X2)
ok1 > U191^11
mark1 > U191^11
U191^11: [1]
ok1: [1]
mark1: [1]
U1911(mark(X1), X2) → U1911(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1911(mark(X1), X2) → U1911(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1821(ok(X1), ok(X2)) → U1821(X1, X2)
U1821(mark(X1), X2) → U1821(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1821(ok(X1), ok(X2)) → U1821(X1, X2)
ok1 > U182^11
mark1 > U182^11
U182^11: [1]
ok1: [1]
mark1: [1]
U1821(mark(X1), X2) → U1821(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1821(mark(X1), X2) → U1821(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1811(ok(X1), ok(X2)) → U1811(X1, X2)
U1811(mark(X1), X2) → U1811(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1811(ok(X1), ok(X2)) → U1811(X1, X2)
ok1 > U181^11
mark1 > U181^11
U181^11: [1]
ok1: [1]
mark1: [1]
U1811(mark(X1), X2) → U1811(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1811(mark(X1), X2) → U1811(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
[AFTERNTH1, ok1]
AFTERNTH1: [1]
mark1: [1]
ok1: [1]
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
HEAD(ok(X)) → HEAD(X)
HEAD(mark(X)) → HEAD(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
HEAD(ok(X)) → HEAD(X)
trivial
ok1: [1]
HEAD(mark(X)) → HEAD(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
HEAD(mark(X)) → HEAD(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1721(ok(X1), ok(X2), ok(X3)) → U1721(X1, X2, X3)
U1721(mark(X1), X2, X3) → U1721(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1721(ok(X1), ok(X2), ok(X3)) → U1721(X1, X2, X3)
trivial
U172^11: [1]
ok1: [1]
mark: []
U1721(mark(X1), X2, X3) → U1721(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1721(mark(X1), X2, X3) → U1721(X1, X2, X3)
[U172^13, mark1]
U172^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1711(ok(X1), ok(X2), ok(X3)) → U1711(X1, X2, X3)
U1711(mark(X1), X2, X3) → U1711(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1711(ok(X1), ok(X2), ok(X3)) → U1711(X1, X2, X3)
trivial
U171^11: [1]
ok1: [1]
mark: []
U1711(mark(X1), X2, X3) → U1711(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1711(mark(X1), X2, X3) → U1711(X1, X2, X3)
[U171^13, mark1]
U171^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
S(ok(X)) → S(X)
S(mark(X)) → S(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
S(ok(X)) → S(X)
trivial
ok1: [1]
S(mark(X)) → S(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
S(mark(X)) → S(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
NATSFROM(ok(X)) → NATSFROM(X)
NATSFROM(mark(X)) → NATSFROM(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
NATSFROM(ok(X)) → NATSFROM(X)
trivial
ok1: [1]
NATSFROM(mark(X)) → NATSFROM(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
NATSFROM(mark(X)) → NATSFROM(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
ok1 > CONS1
mark1 > CONS1
CONS1: [1]
ok1: [1]
mark1: [1]
CONS(mark(X1), X2) → CONS(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
CONS(mark(X1), X2) → CONS(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1611(ok(X1), ok(X2)) → U1611(X1, X2)
U1611(mark(X1), X2) → U1611(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1611(ok(X1), ok(X2)) → U1611(X1, X2)
ok1 > U161^11
mark1 > U161^11
U161^11: [1]
ok1: [1]
mark1: [1]
U1611(mark(X1), X2) → U1611(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1611(mark(X1), X2) → U1611(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1521(ok(X)) → U1521(X)
U1521(mark(X)) → U1521(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1521(ok(X)) → U1521(X)
trivial
ok1: [1]
U1521(mark(X)) → U1521(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1521(mark(X)) → U1521(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1511(ok(X1), ok(X2)) → U1511(X1, X2)
U1511(mark(X1), X2) → U1511(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1511(ok(X1), ok(X2)) → U1511(X1, X2)
ok1 > U151^11
mark1 > U151^11
U151^11: [1]
ok1: [1]
mark1: [1]
U1511(mark(X1), X2) → U1511(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1511(mark(X1), X2) → U1511(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1421(ok(X)) → U1421(X)
U1421(mark(X)) → U1421(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1421(ok(X)) → U1421(X)
trivial
ok1: [1]
U1421(mark(X)) → U1421(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1421(mark(X)) → U1421(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1411(ok(X1), ok(X2)) → U1411(X1, X2)
U1411(mark(X1), X2) → U1411(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1411(ok(X1), ok(X2)) → U1411(X1, X2)
ok1 > U141^11
mark1 > U141^11
U141^11: [1]
ok1: [1]
mark1: [1]
U1411(mark(X1), X2) → U1411(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1411(mark(X1), X2) → U1411(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1321(ok(X)) → U1321(X)
U1321(mark(X)) → U1321(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1321(ok(X)) → U1321(X)
trivial
ok1: [1]
U1321(mark(X)) → U1321(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1321(mark(X)) → U1321(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1311(ok(X1), ok(X2)) → U1311(X1, X2)
U1311(mark(X1), X2) → U1311(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1311(ok(X1), ok(X2)) → U1311(X1, X2)
ok1 > U131^11
mark1 > U131^11
U131^11: [1]
ok1: [1]
mark1: [1]
U1311(mark(X1), X2) → U1311(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1311(mark(X1), X2) → U1311(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1211(ok(X)) → U1211(X)
U1211(mark(X)) → U1211(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1211(ok(X)) → U1211(X)
trivial
ok1: [1]
U1211(mark(X)) → U1211(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1211(mark(X)) → U1211(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
[SPLITAT1, ok1]
SPLITAT1: [1]
mark1: [1]
ok1: [1]
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
SND(ok(X)) → SND(X)
SND(mark(X)) → SND(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SND(ok(X)) → SND(X)
trivial
ok1: [1]
SND(mark(X)) → SND(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SND(mark(X)) → SND(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1111(ok(X)) → U1111(X)
U1111(mark(X)) → U1111(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1111(ok(X)) → U1111(X)
trivial
ok1: [1]
U1111(mark(X)) → U1111(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1111(mark(X)) → U1111(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U121(ok(X1), ok(X2), ok(X3)) → U121(X1, X2, X3)
U121(mark(X1), X2, X3) → U121(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U121(ok(X1), ok(X2), ok(X3)) → U121(X1, X2, X3)
trivial
U12^11: [1]
ok1: [1]
mark: []
U121(mark(X1), X2, X3) → U121(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U121(mark(X1), X2, X3) → U121(X1, X2, X3)
[U12^13, mark1]
U12^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
trivial
U11^11: [1]
ok1: [1]
mark: []
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
[U11^13, mark1]
U11^13: [2,1,3]
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1021(ok(X)) → U1021(X)
U1021(mark(X)) → U1021(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1021(ok(X)) → U1021(X)
trivial
ok1: [1]
U1021(mark(X)) → U1021(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1021(mark(X)) → U1021(X)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
U1011(ok(X1), ok(X2)) → U1011(X1, X2)
U1011(mark(X1), X2) → U1011(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1011(ok(X1), ok(X2)) → U1011(X1, X2)
ok1 > U101^11
mark1 > U101^11
U101^11: [1]
ok1: [1]
mark1: [1]
U1011(mark(X1), X2) → U1011(X1, X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U1011(mark(X1), X2) → U1011(X1, X2)
trivial
mark1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
PROPER(U101(X1, X2)) → PROPER(X2)
PROPER(U101(X1, X2)) → PROPER(X1)
PROPER(U102(X)) → PROPER(X)
PROPER(isLNat(X)) → PROPER(X)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(U12(X1, X2, X3)) → PROPER(X1)
PROPER(U12(X1, X2, X3)) → PROPER(X2)
PROPER(U12(X1, X2, X3)) → PROPER(X3)
PROPER(U111(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U121(X)) → PROPER(X)
PROPER(U131(X1, X2)) → PROPER(X1)
PROPER(U131(X1, X2)) → PROPER(X2)
PROPER(U132(X)) → PROPER(X)
PROPER(U141(X1, X2)) → PROPER(X1)
PROPER(U141(X1, X2)) → PROPER(X2)
PROPER(U142(X)) → PROPER(X)
PROPER(U151(X1, X2)) → PROPER(X1)
PROPER(U151(X1, X2)) → PROPER(X2)
PROPER(U152(X)) → PROPER(X)
PROPER(U161(X1, X2)) → PROPER(X1)
PROPER(U161(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(U171(X1, X2, X3)) → PROPER(X1)
PROPER(U171(X1, X2, X3)) → PROPER(X2)
PROPER(U171(X1, X2, X3)) → PROPER(X3)
PROPER(U172(X1, X2, X3)) → PROPER(X1)
PROPER(U172(X1, X2, X3)) → PROPER(X2)
PROPER(U172(X1, X2, X3)) → PROPER(X3)
PROPER(head(X)) → PROPER(X)
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U181(X1, X2)) → PROPER(X1)
PROPER(U181(X1, X2)) → PROPER(X2)
PROPER(U182(X1, X2)) → PROPER(X1)
PROPER(U182(X1, X2)) → PROPER(X2)
PROPER(U191(X1, X2)) → PROPER(X1)
PROPER(U191(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X4)
PROPER(isNatural(X)) → PROPER(X)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U204(X1, X2)) → PROPER(X1)
PROPER(U204(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2, X3)) → PROPER(X1)
PROPER(U21(X1, X2, X3)) → PROPER(X2)
PROPER(U21(X1, X2, X3)) → PROPER(X3)
PROPER(U22(X1, X2)) → PROPER(X1)
PROPER(U22(X1, X2)) → PROPER(X2)
PROPER(U211(X1, X2)) → PROPER(X1)
PROPER(U211(X1, X2)) → PROPER(X2)
PROPER(U212(X1, X2)) → PROPER(X1)
PROPER(U212(X1, X2)) → PROPER(X2)
PROPER(U221(X1, X2, X3)) → PROPER(X1)
PROPER(U221(X1, X2, X3)) → PROPER(X2)
PROPER(U221(X1, X2, X3)) → PROPER(X3)
PROPER(U222(X1, X2, X3)) → PROPER(X1)
PROPER(U222(X1, X2, X3)) → PROPER(X2)
PROPER(U222(X1, X2, X3)) → PROPER(X3)
PROPER(fst(X)) → PROPER(X)
PROPER(U31(X1, X2, X3)) → PROPER(X1)
PROPER(U31(X1, X2, X3)) → PROPER(X2)
PROPER(U31(X1, X2, X3)) → PROPER(X3)
PROPER(U32(X1, X2)) → PROPER(X1)
PROPER(U32(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(U42(X)) → PROPER(X)
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U51(X1, X2)) → PROPER(X2)
PROPER(U52(X)) → PROPER(X)
PROPER(U61(X)) → PROPER(X)
PROPER(U71(X)) → PROPER(X)
PROPER(U81(X)) → PROPER(X)
PROPER(U91(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → PROPER(X)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROPER(U101(X1, X2)) → PROPER(X2)
PROPER(U101(X1, X2)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(U12(X1, X2, X3)) → PROPER(X1)
PROPER(U12(X1, X2, X3)) → PROPER(X2)
PROPER(U12(X1, X2, X3)) → PROPER(X3)
PROPER(U111(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U121(X)) → PROPER(X)
PROPER(U131(X1, X2)) → PROPER(X1)
PROPER(U131(X1, X2)) → PROPER(X2)
PROPER(U132(X)) → PROPER(X)
PROPER(U141(X1, X2)) → PROPER(X1)
PROPER(U141(X1, X2)) → PROPER(X2)
PROPER(U142(X)) → PROPER(X)
PROPER(U151(X1, X2)) → PROPER(X1)
PROPER(U151(X1, X2)) → PROPER(X2)
PROPER(U152(X)) → PROPER(X)
PROPER(U161(X1, X2)) → PROPER(X1)
PROPER(U161(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(U171(X1, X2, X3)) → PROPER(X1)
PROPER(U171(X1, X2, X3)) → PROPER(X2)
PROPER(U171(X1, X2, X3)) → PROPER(X3)
PROPER(U172(X1, X2, X3)) → PROPER(X1)
PROPER(U172(X1, X2, X3)) → PROPER(X2)
PROPER(U172(X1, X2, X3)) → PROPER(X3)
PROPER(head(X)) → PROPER(X)
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U181(X1, X2)) → PROPER(X1)
PROPER(U181(X1, X2)) → PROPER(X2)
PROPER(U182(X1, X2)) → PROPER(X1)
PROPER(U182(X1, X2)) → PROPER(X2)
PROPER(U191(X1, X2)) → PROPER(X1)
PROPER(U191(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U201(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U202(X1, X2, X3, X4)) → PROPER(X4)
PROPER(isNatural(X)) → PROPER(X)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U203(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U204(X1, X2)) → PROPER(X1)
PROPER(U204(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2, X3)) → PROPER(X1)
PROPER(U21(X1, X2, X3)) → PROPER(X2)
PROPER(U21(X1, X2, X3)) → PROPER(X3)
PROPER(U22(X1, X2)) → PROPER(X1)
PROPER(U22(X1, X2)) → PROPER(X2)
PROPER(U211(X1, X2)) → PROPER(X1)
PROPER(U211(X1, X2)) → PROPER(X2)
PROPER(U212(X1, X2)) → PROPER(X1)
PROPER(U212(X1, X2)) → PROPER(X2)
PROPER(U221(X1, X2, X3)) → PROPER(X1)
PROPER(U221(X1, X2, X3)) → PROPER(X2)
PROPER(U221(X1, X2, X3)) → PROPER(X3)
PROPER(U222(X1, X2, X3)) → PROPER(X1)
PROPER(U222(X1, X2, X3)) → PROPER(X2)
PROPER(U222(X1, X2, X3)) → PROPER(X3)
PROPER(U31(X1, X2, X3)) → PROPER(X1)
PROPER(U31(X1, X2, X3)) → PROPER(X2)
PROPER(U31(X1, X2, X3)) → PROPER(X3)
PROPER(U32(X1, X2)) → PROPER(X1)
PROPER(U32(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(U51(X1, X2)) → PROPER(X1)
PROPER(U51(X1, X2)) → PROPER(X2)
PROPER(U61(X)) → PROPER(X)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
snd1 > PROPER1
U1211 > PROPER1
U1321 > PROPER1
U1421 > PROPER1
U1521 > PROPER1
natsFrom1 > PROPER1
s1 > PROPER1
PROPER1: [1]
U1012: [1,2]
U113: [3,1,2]
U123: [3,1,2]
U1111: [1]
snd1: [1]
splitAt2: [1,2]
U1211: [1]
U1312: [1,2]
U1321: [1]
U1412: [1,2]
U1421: [1]
U1512: [1,2]
U1521: [1]
U1612: [1,2]
cons2: [1,2]
natsFrom1: [1]
s1: [1]
U1713: [3,1,2]
U1723: [3,1,2]
head1: [1]
afterNth2: [1,2]
U1812: [1,2]
U1822: [1,2]
U1912: [1,2]
pair2: [1,2]
U2014: [1,2,4,3]
U2024: [1,2,4,3]
isNatural1: [1]
U2034: [1,2,4,3]
U2042: [1,2]
U213: [3,1,2]
U222: [1,2]
U2112: [1,2]
U2122: [1,2]
U2213: [3,1,2]
U2223: [3,1,2]
U313: [3,1,2]
U322: [1,2]
U412: [1,2]
U512: [1,2]
U611: [1]
take2: [1,2]
sel2: [1,2]
PROPER(U102(X)) → PROPER(X)
PROPER(isLNat(X)) → PROPER(X)
PROPER(fst(X)) → PROPER(X)
PROPER(U42(X)) → PROPER(X)
PROPER(U52(X)) → PROPER(X)
PROPER(U71(X)) → PROPER(X)
PROPER(U81(X)) → PROPER(X)
PROPER(U91(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → PROPER(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROPER(U102(X)) → PROPER(X)
PROPER(isLNat(X)) → PROPER(X)
PROPER(fst(X)) → PROPER(X)
PROPER(U42(X)) → PROPER(X)
PROPER(U52(X)) → PROPER(X)
PROPER(U71(X)) → PROPER(X)
PROPER(U81(X)) → PROPER(X)
PROPER(U91(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
trivial
U1021: [1]
isLNat1: [1]
fst1: [1]
U421: [1]
U521: [1]
U711: [1]
U811: [1]
U911: [1]
isPLNat1: [1]
PROPER(tail(X)) → PROPER(X)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PROPER(tail(X)) → PROPER(X)
trivial
tail1: [1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
ACTIVE(U102(X)) → ACTIVE(X)
ACTIVE(U101(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U12(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U111(X)) → ACTIVE(X)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U121(X)) → ACTIVE(X)
ACTIVE(U131(X1, X2)) → ACTIVE(X1)
ACTIVE(U132(X)) → ACTIVE(X)
ACTIVE(U141(X1, X2)) → ACTIVE(X1)
ACTIVE(U142(X)) → ACTIVE(X)
ACTIVE(U151(X1, X2)) → ACTIVE(X1)
ACTIVE(U152(X)) → ACTIVE(X)
ACTIVE(U161(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U171(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U172(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U181(X1, X2)) → ACTIVE(X1)
ACTIVE(U182(X1, X2)) → ACTIVE(X1)
ACTIVE(U191(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(U201(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U202(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U203(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U204(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U22(X1, X2)) → ACTIVE(X1)
ACTIVE(U211(X1, X2)) → ACTIVE(X1)
ACTIVE(U212(X1, X2)) → ACTIVE(X1)
ACTIVE(U221(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U222(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U31(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U32(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U42(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U52(X)) → ACTIVE(X)
ACTIVE(U61(X)) → ACTIVE(X)
ACTIVE(U71(X)) → ACTIVE(X)
ACTIVE(U81(X)) → ACTIVE(X)
ACTIVE(U91(X)) → ACTIVE(X)
ACTIVE(tail(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ACTIVE(U102(X)) → ACTIVE(X)
ACTIVE(U101(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U12(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U111(X)) → ACTIVE(X)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U121(X)) → ACTIVE(X)
ACTIVE(U132(X)) → ACTIVE(X)
ACTIVE(U142(X)) → ACTIVE(X)
ACTIVE(U151(X1, X2)) → ACTIVE(X1)
ACTIVE(U152(X)) → ACTIVE(X)
ACTIVE(U161(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U171(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U172(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U181(X1, X2)) → ACTIVE(X1)
ACTIVE(U182(X1, X2)) → ACTIVE(X1)
ACTIVE(U191(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(U201(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U202(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U203(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U204(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U22(X1, X2)) → ACTIVE(X1)
ACTIVE(U211(X1, X2)) → ACTIVE(X1)
ACTIVE(U212(X1, X2)) → ACTIVE(X1)
ACTIVE(U221(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U222(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U31(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U32(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U42(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2)) → ACTIVE(X1)
ACTIVE(U52(X)) → ACTIVE(X)
ACTIVE(U61(X)) → ACTIVE(X)
ACTIVE(U71(X)) → ACTIVE(X)
ACTIVE(U81(X)) → ACTIVE(X)
ACTIVE(U91(X)) → ACTIVE(X)
ACTIVE(tail(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
trivial
U1021: [1]
U1011: [1]
U113: [2,3,1]
U123: [2,3,1]
U1111: [1]
snd1: [1]
splitAt2: [1,2]
U1211: [1]
U1321: [1]
U1421: [1]
U1511: [1]
U1521: [1]
U1611: [1]
cons1: [1]
natsFrom1: [1]
s1: [1]
U1712: [1,2]
U1723: [1,2,3]
head1: [1]
afterNth2: [1,2]
U1811: [1]
U1821: [1]
U1911: [1]
pair2: [1,2]
U2014: [3,4,2,1]
U2024: [3,4,1,2]
U2034: [3,4,2,1]
U2041: [1]
U213: [3,1,2]
U221: [1]
U2111: [1]
U2121: [1]
U2213: [3,1,2]
U2223: [1,2,3]
fst1: [1]
U313: [3,2,1]
U321: [1]
U411: [1]
U421: [1]
U511: [1]
U521: [1]
U611: [1]
U711: [1]
U811: [1]
U911: [1]
tail1: [1]
take2: [1,2]
sel2: [1,2]
ACTIVE(U131(X1, X2)) → ACTIVE(X1)
ACTIVE(U141(X1, X2)) → ACTIVE(X1)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ACTIVE(U131(X1, X2)) → ACTIVE(X1)
trivial
U1311: [1]
ACTIVE(U141(X1, X2)) → ACTIVE(X1)
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ACTIVE(U141(X1, X2)) → ACTIVE(X1)
trivial
U1412: [2,1]
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
TOP(ok(X)) → TOP(active(X))
TOP(mark(X)) → TOP(proper(X))
active(U101(tt, V2)) → mark(U102(isLNat(V2)))
active(U102(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(U12(isLNat(XS), N, XS))
active(U111(tt)) → mark(tt)
active(U12(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U121(tt)) → mark(tt)
active(U131(tt, V2)) → mark(U132(isLNat(V2)))
active(U132(tt)) → mark(tt)
active(U141(tt, V2)) → mark(U142(isLNat(V2)))
active(U142(tt)) → mark(tt)
active(U151(tt, V2)) → mark(U152(isLNat(V2)))
active(U152(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(U172(isLNat(XS), N, XS))
active(U172(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(U182(isLNat(Y), Y))
active(U182(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(isNatural(X), N, X, XS))
active(U202(tt, N, X, XS)) → mark(U203(isLNat(XS), N, X, XS))
active(U203(tt, N, X, XS)) → mark(U204(splitAt(N, XS), X))
active(U204(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X, Y)) → mark(U22(isLNat(Y), X))
active(U211(tt, XS)) → mark(U212(isLNat(XS), XS))
active(U212(tt, XS)) → mark(XS)
active(U22(tt, X)) → mark(X)
active(U221(tt, N, XS)) → mark(U222(isLNat(XS), N, XS))
active(U222(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N, XS)) → mark(U32(isLNat(XS), N))
active(U32(tt, N)) → mark(N)
active(U41(tt, V2)) → mark(U42(isLNat(V2)))
active(U42(tt)) → mark(tt)
active(U51(tt, V2)) → mark(U52(isLNat(V2)))
active(U52(tt)) → mark(tt)
active(U61(tt)) → mark(tt)
active(U71(tt)) → mark(tt)
active(U81(tt)) → mark(tt)
active(U91(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(isNatural(N), N, XS))
active(fst(pair(X, Y))) → mark(U21(isLNat(X), X, Y))
active(head(cons(N, XS))) → mark(U31(isNatural(N), N, XS))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(isNatural(V1), V2))
active(isLNat(cons(V1, V2))) → mark(U51(isNatural(V1), V2))
active(isLNat(fst(V1))) → mark(U61(isPLNat(V1)))
active(isLNat(natsFrom(V1))) → mark(U71(isNatural(V1)))
active(isLNat(snd(V1))) → mark(U81(isPLNat(V1)))
active(isLNat(tail(V1))) → mark(U91(isLNat(V1)))
active(isLNat(take(V1, V2))) → mark(U101(isNatural(V1), V2))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNat(V1)))
active(isNatural(s(V1))) → mark(U121(isNatural(V1)))
active(isNatural(sel(V1, V2))) → mark(U131(isNatural(V1), V2))
active(isPLNat(pair(V1, V2))) → mark(U141(isLNat(V1), V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(isNatural(V1), V2))
active(natsFrom(N)) → mark(U161(isNatural(N), N))
active(sel(N, XS)) → mark(U171(isNatural(N), N, XS))
active(snd(pair(X, Y))) → mark(U181(isLNat(X), Y))
active(splitAt(0, XS)) → mark(U191(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(isNatural(N), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(isNatural(N), XS))
active(take(N, XS)) → mark(U221(isNatural(N), N, XS))
active(U101(X1, X2)) → U101(active(X1), X2)
active(U102(X)) → U102(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(U12(X1, X2, X3)) → U12(active(X1), X2, X3)
active(U111(X)) → U111(active(X))
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U121(X)) → U121(active(X))
active(U131(X1, X2)) → U131(active(X1), X2)
active(U132(X)) → U132(active(X))
active(U141(X1, X2)) → U141(active(X1), X2)
active(U142(X)) → U142(active(X))
active(U151(X1, X2)) → U151(active(X1), X2)
active(U152(X)) → U152(active(X))
active(U161(X1, X2)) → U161(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U171(X1, X2, X3)) → U171(active(X1), X2, X3)
active(U172(X1, X2, X3)) → U172(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U181(X1, X2)) → U181(active(X1), X2)
active(U182(X1, X2)) → U182(active(X1), X2)
active(U191(X1, X2)) → U191(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U201(X1, X2, X3, X4)) → U201(active(X1), X2, X3, X4)
active(U202(X1, X2, X3, X4)) → U202(active(X1), X2, X3, X4)
active(U203(X1, X2, X3, X4)) → U203(active(X1), X2, X3, X4)
active(U204(X1, X2)) → U204(active(X1), X2)
active(U21(X1, X2, X3)) → U21(active(X1), X2, X3)
active(U22(X1, X2)) → U22(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U212(X1, X2)) → U212(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(U222(X1, X2, X3)) → U222(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2, X3)) → U31(active(X1), X2, X3)
active(U32(X1, X2)) → U32(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U42(X)) → U42(active(X))
active(U51(X1, X2)) → U51(active(X1), X2)
active(U52(X)) → U52(active(X))
active(U61(X)) → U61(active(X))
active(U71(X)) → U71(active(X))
active(U81(X)) → U81(active(X))
active(U91(X)) → U91(active(X))
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2) → mark(U101(X1, X2))
U102(mark(X)) → mark(U102(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U12(mark(X1), X2, X3) → mark(U12(X1, X2, X3))
U111(mark(X)) → mark(U111(X))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U121(mark(X)) → mark(U121(X))
U131(mark(X1), X2) → mark(U131(X1, X2))
U132(mark(X)) → mark(U132(X))
U141(mark(X1), X2) → mark(U141(X1, X2))
U142(mark(X)) → mark(U142(X))
U151(mark(X1), X2) → mark(U151(X1, X2))
U152(mark(X)) → mark(U152(X))
U161(mark(X1), X2) → mark(U161(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U171(mark(X1), X2, X3) → mark(U171(X1, X2, X3))
U172(mark(X1), X2, X3) → mark(U172(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U181(mark(X1), X2) → mark(U181(X1, X2))
U182(mark(X1), X2) → mark(U182(X1, X2))
U191(mark(X1), X2) → mark(U191(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U201(mark(X1), X2, X3, X4) → mark(U201(X1, X2, X3, X4))
U202(mark(X1), X2, X3, X4) → mark(U202(X1, X2, X3, X4))
U203(mark(X1), X2, X3, X4) → mark(U203(X1, X2, X3, X4))
U204(mark(X1), X2) → mark(U204(X1, X2))
U21(mark(X1), X2, X3) → mark(U21(X1, X2, X3))
U22(mark(X1), X2) → mark(U22(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U212(mark(X1), X2) → mark(U212(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
U222(mark(X1), X2, X3) → mark(U222(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2, X3) → mark(U31(X1, X2, X3))
U32(mark(X1), X2) → mark(U32(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U42(mark(X)) → mark(U42(X))
U51(mark(X1), X2) → mark(U51(X1, X2))
U52(mark(X)) → mark(U52(X))
U61(mark(X)) → mark(U61(X))
U71(mark(X)) → mark(U71(X))
U81(mark(X)) → mark(U81(X))
U91(mark(X)) → mark(U91(X))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2)) → U101(proper(X1), proper(X2))
proper(tt) → ok(tt)
proper(U102(X)) → U102(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(U12(X1, X2, X3)) → U12(proper(X1), proper(X2), proper(X3))
proper(U111(X)) → U111(proper(X))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U121(X)) → U121(proper(X))
proper(U131(X1, X2)) → U131(proper(X1), proper(X2))
proper(U132(X)) → U132(proper(X))
proper(U141(X1, X2)) → U141(proper(X1), proper(X2))
proper(U142(X)) → U142(proper(X))
proper(U151(X1, X2)) → U151(proper(X1), proper(X2))
proper(U152(X)) → U152(proper(X))
proper(U161(X1, X2)) → U161(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U171(X1, X2, X3)) → U171(proper(X1), proper(X2), proper(X3))
proper(U172(X1, X2, X3)) → U172(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(proper(X1), proper(X2))
proper(U182(X1, X2)) → U182(proper(X1), proper(X2))
proper(U191(X1, X2)) → U191(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U201(X1, X2, X3, X4)) → U201(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U202(X1, X2, X3, X4)) → U202(proper(X1), proper(X2), proper(X3), proper(X4))
proper(isNatural(X)) → isNatural(proper(X))
proper(U203(X1, X2, X3, X4)) → U203(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U204(X1, X2)) → U204(proper(X1), proper(X2))
proper(U21(X1, X2, X3)) → U21(proper(X1), proper(X2), proper(X3))
proper(U22(X1, X2)) → U22(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U212(X1, X2)) → U212(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(U222(X1, X2, X3)) → U222(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2, X3)) → U31(proper(X1), proper(X2), proper(X3))
proper(U32(X1, X2)) → U32(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(U42(X)) → U42(proper(X))
proper(U51(X1, X2)) → U51(proper(X1), proper(X2))
proper(U52(X)) → U52(proper(X))
proper(U61(X)) → U61(proper(X))
proper(U71(X)) → U71(proper(X))
proper(U81(X)) → U81(proper(X))
proper(U91(X)) → U91(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2)) → ok(U101(X1, X2))
U102(ok(X)) → ok(U102(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
U12(ok(X1), ok(X2), ok(X3)) → ok(U12(X1, X2, X3))
U111(ok(X)) → ok(U111(X))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U121(ok(X)) → ok(U121(X))
U131(ok(X1), ok(X2)) → ok(U131(X1, X2))
U132(ok(X)) → ok(U132(X))
U141(ok(X1), ok(X2)) → ok(U141(X1, X2))
U142(ok(X)) → ok(U142(X))
U151(ok(X1), ok(X2)) → ok(U151(X1, X2))
U152(ok(X)) → ok(U152(X))
U161(ok(X1), ok(X2)) → ok(U161(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U171(ok(X1), ok(X2), ok(X3)) → ok(U171(X1, X2, X3))
U172(ok(X1), ok(X2), ok(X3)) → ok(U172(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(X1, X2))
U182(ok(X1), ok(X2)) → ok(U182(X1, X2))
U191(ok(X1), ok(X2)) → ok(U191(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U201(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U201(X1, X2, X3, X4))
U202(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U202(X1, X2, X3, X4))
isNatural(ok(X)) → ok(isNatural(X))
U203(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U203(X1, X2, X3, X4))
U204(ok(X1), ok(X2)) → ok(U204(X1, X2))
U21(ok(X1), ok(X2), ok(X3)) → ok(U21(X1, X2, X3))
U22(ok(X1), ok(X2)) → ok(U22(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U212(ok(X1), ok(X2)) → ok(U212(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
U222(ok(X1), ok(X2), ok(X3)) → ok(U222(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2), ok(X3)) → ok(U31(X1, X2, X3))
U32(ok(X1), ok(X2)) → ok(U32(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U42(ok(X)) → ok(U42(X))
U51(ok(X1), ok(X2)) → ok(U51(X1, X2))
U52(ok(X)) → ok(U52(X))
U61(ok(X)) → ok(U61(X))
U71(ok(X)) → ok(U71(X))
U81(ok(X)) → ok(U81(X))
U91(ok(X)) → ok(U91(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))