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 PisEmptyProof (⇔)
↳24 TRUE
↳25 QDP
↳26 QDPOrderProof (⇔)
↳27 QDP
↳28 PisEmptyProof (⇔)
↳29 TRUE
↳30 QDP
↳31 QDPOrderProof (⇔)
↳32 QDP
↳33 PisEmptyProof (⇔)
↳34 TRUE
↳35 QDP
↳36 QDPOrderProof (⇔)
↳37 QDP
↳38 QDPOrderProof (⇔)
↳39 QDP
↳40 PisEmptyProof (⇔)
↳41 TRUE
↳42 QDP
↳43 QDPOrderProof (⇔)
↳44 QDP
↳45 QDPOrderProof (⇔)
↳46 QDP
↳47 PisEmptyProof (⇔)
↳48 TRUE
↳49 QDP
↳50 QDPOrderProof (⇔)
↳51 QDP
↳52 QDPOrderProof (⇔)
↳53 QDP
↳54 PisEmptyProof (⇔)
↳55 TRUE
↳56 QDP
↳57 QDPOrderProof (⇔)
↳58 QDP
↳59 QDPOrderProof (⇔)
↳60 QDP
↳61 PisEmptyProof (⇔)
↳62 TRUE
↳63 QDP
↳64 QDPOrderProof (⇔)
↳65 QDP
↳66 QDPOrderProof (⇔)
↳67 QDP
↳68 PisEmptyProof (⇔)
↳69 TRUE
↳70 QDP
↳71 QDPOrderProof (⇔)
↳72 QDP
↳73 QDPOrderProof (⇔)
↳74 QDP
↳75 PisEmptyProof (⇔)
↳76 TRUE
↳77 QDP
↳78 QDPOrderProof (⇔)
↳79 QDP
↳80 QDPOrderProof (⇔)
↳81 QDP
↳82 PisEmptyProof (⇔)
↳83 TRUE
↳84 QDP
↳85 QDPOrderProof (⇔)
↳86 QDP
↳87 QDPOrderProof (⇔)
↳88 QDP
↳89 PisEmptyProof (⇔)
↳90 TRUE
↳91 QDP
↳92 QDPOrderProof (⇔)
↳93 QDP
↳94 QDPOrderProof (⇔)
↳95 QDP
↳96 PisEmptyProof (⇔)
↳97 TRUE
↳98 QDP
↳99 QDPOrderProof (⇔)
↳100 QDP
↳101 QDPOrderProof (⇔)
↳102 QDP
↳103 PisEmptyProof (⇔)
↳104 TRUE
↳105 QDP
↳106 QDPOrderProof (⇔)
↳107 QDP
↳108 QDPOrderProof (⇔)
↳109 QDP
↳110 PisEmptyProof (⇔)
↳111 TRUE
↳112 QDP
↳113 QDPOrderProof (⇔)
↳114 QDP
↳115 QDPOrderProof (⇔)
↳116 QDP
↳117 PisEmptyProof (⇔)
↳118 TRUE
↳119 QDP
↳120 QDPOrderProof (⇔)
↳121 QDP
↳122 QDPOrderProof (⇔)
↳123 QDP
↳124 PisEmptyProof (⇔)
↳125 TRUE
↳126 QDP
↳127 QDPOrderProof (⇔)
↳128 QDP
↳129 QDPOrderProof (⇔)
↳130 QDP
↳131 PisEmptyProof (⇔)
↳132 TRUE
↳133 QDP
↳134 QDPOrderProof (⇔)
↳135 QDP
↳136 QDPOrderProof (⇔)
↳137 QDP
↳138 PisEmptyProof (⇔)
↳139 TRUE
↳140 QDP
↳141 QDPOrderProof (⇔)
↳142 QDP
↳143 QDPOrderProof (⇔)
↳144 QDP
↳145 PisEmptyProof (⇔)
↳146 TRUE
↳147 QDP
↳148 QDPOrderProof (⇔)
↳149 QDP
↳150 QDPOrderProof (⇔)
↳151 QDP
↳152 PisEmptyProof (⇔)
↳153 TRUE
↳154 QDP
↳155 QDPOrderProof (⇔)
↳156 QDP
↳157 QDPOrderProof (⇔)
↳158 QDP
↳159 PisEmptyProof (⇔)
↳160 TRUE
↳161 QDP
↳162 QDPOrderProof (⇔)
↳163 QDP
↳164 QDPOrderProof (⇔)
↳165 QDP
↳166 PisEmptyProof (⇔)
↳167 TRUE
↳168 QDP
↳169 QDPOrderProof (⇔)
↳170 QDP
↳171 QDPOrderProof (⇔)
↳172 QDP
↳173 PisEmptyProof (⇔)
↳174 TRUE
↳175 QDP
↳176 QDPOrderProof (⇔)
↳177 QDP
↳178 QDPOrderProof (⇔)
↳179 QDP
↳180 PisEmptyProof (⇔)
↳181 TRUE
↳182 QDP
↳183 QDPOrderProof (⇔)
↳184 QDP
↳185 QDPOrderProof (⇔)
↳186 QDP
↳187 PisEmptyProof (⇔)
↳188 TRUE
↳189 QDP
↳190 QDPOrderProof (⇔)
↳191 QDP
↳192 QDPOrderProof (⇔)
↳193 QDP
↳194 PisEmptyProof (⇔)
↳195 TRUE
↳196 QDP
↳197 QDPOrderProof (⇔)
↳198 QDP
↳199 QDPOrderProof (⇔)
↳200 QDP
↳201 PisEmptyProof (⇔)
↳202 TRUE
↳203 QDP
↳204 QDPOrderProof (⇔)
↳205 QDP
↳206 QDPOrderProof (⇔)
↳207 QDP
↳208 PisEmptyProof (⇔)
↳209 TRUE
↳210 QDP
↳211 QDPOrderProof (⇔)
↳212 QDP
↳213 QDPOrderProof (⇔)
↳214 QDP
↳215 PisEmptyProof (⇔)
↳216 TRUE
↳217 QDP
↳218 QDPOrderProof (⇔)
↳219 QDP
↳220 QDPOrderProof (⇔)
↳221 QDP
↳222 PisEmptyProof (⇔)
↳223 TRUE
↳224 QDP
↳225 QDPOrderProof (⇔)
↳226 QDP
↳227 QDPOrderProof (⇔)
↳228 QDP
↳229 PisEmptyProof (⇔)
↳230 TRUE
↳231 QDP
↳232 QDPOrderProof (⇔)
↳233 QDP
↳234 QDPOrderProof (⇔)
↳235 QDP
↳236 PisEmptyProof (⇔)
↳237 TRUE
↳238 QDP
↳239 QDPOrderProof (⇔)
↳240 QDP
↳241 QDPOrderProof (⇔)
↳242 QDP
↳243 PisEmptyProof (⇔)
↳244 TRUE
↳245 QDP
↳246 QDPOrderProof (⇔)
↳247 QDP
↳248 QDPOrderProof (⇔)
↳249 QDP
↳250 PisEmptyProof (⇔)
↳251 TRUE
↳252 QDP
↳253 QDPOrderProof (⇔)
↳254 QDP
↳255 QDPOrderProof (⇔)
↳256 QDP
↳257 PisEmptyProof (⇔)
↳258 TRUE
↳259 QDP
↳260 QDPOrderProof (⇔)
↳261 QDP
↳262 QDPOrderProof (⇔)
↳263 QDP
↳264 PisEmptyProof (⇔)
↳265 TRUE
↳266 QDP
↳267 QDPOrderProof (⇔)
↳268 QDP
↳269 QDPOrderProof (⇔)
↳270 QDP
↳271 PisEmptyProof (⇔)
↳272 TRUE
↳273 QDP
↳274 QDPOrderProof (⇔)
↳275 QDP
↳276 QDPOrderProof (⇔)
↳277 QDP
↳278 PisEmptyProof (⇔)
↳279 TRUE
↳280 QDP
↳281 QDPOrderProof (⇔)
↳282 QDP
↳283 QDPOrderProof (⇔)
↳284 QDP
↳285 PisEmptyProof (⇔)
↳286 TRUE
↳287 QDP
↳288 QDPOrderProof (⇔)
↳289 QDP
↳290 QDPOrderProof (⇔)
↳291 QDP
↳292 PisEmptyProof (⇔)
↳293 TRUE
↳294 QDP
↳295 QDPOrderProof (⇔)
↳296 QDP
↳297 QDPOrderProof (⇔)
↳298 QDP
↳299 PisEmptyProof (⇔)
↳300 TRUE
↳301 QDP
↳302 QDPOrderProof (⇔)
↳303 QDP
↳304 QDPOrderProof (⇔)
↳305 QDP
↳306 PisEmptyProof (⇔)
↳307 TRUE
↳308 QDP
↳309 QDPOrderProof (⇔)
↳310 QDP
↳311 QDPOrderProof (⇔)
↳312 QDP
↳313 PisEmptyProof (⇔)
↳314 TRUE
↳315 QDP
↳316 QDPOrderProof (⇔)
↳317 QDP
↳318 QDPOrderProof (⇔)
↳319 QDP
↳320 PisEmptyProof (⇔)
↳321 TRUE
↳322 QDP
↳323 QDPOrderProof (⇔)
↳324 QDP
↳325 QDPOrderProof (⇔)
↳326 QDP
↳327 PisEmptyProof (⇔)
↳328 TRUE
↳329 QDP
↳330 QDPOrderProof (⇔)
↳331 QDP
↳332 QDPOrderProof (⇔)
↳333 QDP
↳334 PisEmptyProof (⇔)
↳335 TRUE
↳336 QDP
↳337 QDPOrderProof (⇔)
↳338 QDP
↳339 QDPOrderProof (⇔)
↳340 QDP
↳341 PisEmptyProof (⇔)
↳342 TRUE
↳343 QDP
↳344 QDPOrderProof (⇔)
↳345 QDP
↳346 QDPOrderProof (⇔)
↳347 QDP
↳348 PisEmptyProof (⇔)
↳349 TRUE
↳350 QDP
↳351 QDPOrderProof (⇔)
↳352 QDP
↳353 QDPOrderProof (⇔)
↳354 QDP
↳355 PisEmptyProof (⇔)
↳356 TRUE
↳357 QDP
↳358 QDPOrderProof (⇔)
↳359 QDP
↳360 QDPOrderProof (⇔)
↳361 QDP
↳362 PisEmptyProof (⇔)
↳363 TRUE
↳364 QDP
↳365 QDPOrderProof (⇔)
↳366 QDP
↳367 QDPOrderProof (⇔)
↳368 QDP
↳369 PisEmptyProof (⇔)
↳370 TRUE
↳371 QDP
↳372 QDPOrderProof (⇔)
↳373 QDP
↳374 QDPOrderProof (⇔)
↳375 QDP
↳376 PisEmptyProof (⇔)
↳377 TRUE
↳378 QDP
↳379 QDPOrderProof (⇔)
↳380 QDP
↳381 QDPOrderProof (⇔)
↳382 QDP
↳383 PisEmptyProof (⇔)
↳384 TRUE
↳385 QDP
↳386 QDPOrderProof (⇔)
↳387 QDP
↳388 QDPOrderProof (⇔)
↳389 QDP
↳390 PisEmptyProof (⇔)
↳391 TRUE
↳392 QDP
↳393 QDPOrderProof (⇔)
↳394 QDP
↳395 QDPOrderProof (⇔)
↳396 QDP
↳397 PisEmptyProof (⇔)
↳398 TRUE
↳399 QDP
↳400 QDPOrderProof (⇔)
↳401 QDP
↳402 QDPOrderProof (⇔)
↳403 QDP
↳404 PisEmptyProof (⇔)
↳405 TRUE
↳406 QDP
↳407 QDPOrderProof (⇔)
↳408 QDP
↳409 QDPOrderProof (⇔)
↳410 QDP
↳411 PisEmptyProof (⇔)
↳412 TRUE
↳413 QDP
↳414 QDPOrderProof (⇔)
↳415 QDP
↳416 PisEmptyProof (⇔)
↳417 TRUE
↳418 QDP
↳419 QDPOrderProof (⇔)
↳420 QDP
↳421 PisEmptyProof (⇔)
↳422 TRUE
↳423 QDP
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → U1021(isNatural(V1), V2)
ACTIVE(U101(tt, V1, V2)) → ISNATURAL(V1)
ACTIVE(U102(tt, V2)) → U1031(isLNat(V2))
ACTIVE(U102(tt, V2)) → ISLNAT(V2)
ACTIVE(U11(tt, N, XS)) → SND(splitAt(N, XS))
ACTIVE(U11(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U111(tt, V1)) → U1121(isLNat(V1))
ACTIVE(U111(tt, V1)) → ISLNAT(V1)
ACTIVE(U121(tt, V1)) → U1221(isNatural(V1))
ACTIVE(U121(tt, V1)) → ISNATURAL(V1)
ACTIVE(U131(tt, V1, V2)) → U1321(isNatural(V1), V2)
ACTIVE(U131(tt, V1, V2)) → ISNATURAL(V1)
ACTIVE(U132(tt, V2)) → U1331(isLNat(V2))
ACTIVE(U132(tt, V2)) → ISLNAT(V2)
ACTIVE(U141(tt, V1, V2)) → U1421(isLNat(V1), V2)
ACTIVE(U141(tt, V1, V2)) → ISLNAT(V1)
ACTIVE(U142(tt, V2)) → U1431(isLNat(V2))
ACTIVE(U142(tt, V2)) → ISLNAT(V2)
ACTIVE(U151(tt, V1, V2)) → U1521(isNatural(V1), V2)
ACTIVE(U151(tt, V1, V2)) → ISNATURAL(V1)
ACTIVE(U152(tt, V2)) → U1531(isLNat(V2))
ACTIVE(U152(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)) → HEAD(afterNth(N, XS))
ACTIVE(U171(tt, N, XS)) → AFTERNTH(N, XS)
ACTIVE(U191(tt, XS)) → PAIR(nil, XS)
ACTIVE(U201(tt, N, X, XS)) → U2021(splitAt(N, XS), X)
ACTIVE(U201(tt, N, X, XS)) → SPLITAT(N, XS)
ACTIVE(U202(pair(YS, ZS), X)) → PAIR(cons(X, YS), ZS)
ACTIVE(U202(pair(YS, ZS), X)) → CONS(X, YS)
ACTIVE(U221(tt, N, XS)) → FST(splitAt(N, XS))
ACTIVE(U221(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U41(tt, V1, V2)) → U421(isNatural(V1), V2)
ACTIVE(U41(tt, V1, V2)) → ISNATURAL(V1)
ACTIVE(U42(tt, V2)) → U431(isLNat(V2))
ACTIVE(U42(tt, V2)) → ISLNAT(V2)
ACTIVE(U51(tt, V1, V2)) → U521(isNatural(V1), V2)
ACTIVE(U51(tt, V1, V2)) → ISNATURAL(V1)
ACTIVE(U52(tt, V2)) → U531(isLNat(V2))
ACTIVE(U52(tt, V2)) → ISLNAT(V2)
ACTIVE(U61(tt, V1)) → U621(isPLNat(V1))
ACTIVE(U61(tt, V1)) → ISPLNAT(V1)
ACTIVE(U71(tt, V1)) → U721(isNatural(V1))
ACTIVE(U71(tt, V1)) → ISNATURAL(V1)
ACTIVE(U81(tt, V1)) → U821(isPLNat(V1))
ACTIVE(U81(tt, V1)) → ISPLNAT(V1)
ACTIVE(U91(tt, V1)) → U921(isLNat(V1))
ACTIVE(U91(tt, V1)) → ISLNAT(V1)
ACTIVE(afterNth(N, XS)) → U111(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS)
ACTIVE(afterNth(N, XS)) → AND(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS)))
ACTIVE(afterNth(N, XS)) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(afterNth(N, XS)) → ISNATURAL(N)
ACTIVE(afterNth(N, XS)) → ISNATURALKIND(N)
ACTIVE(afterNth(N, XS)) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(afterNth(N, XS)) → ISLNAT(XS)
ACTIVE(afterNth(N, XS)) → ISLNATKIND(XS)
ACTIVE(fst(pair(X, Y))) → U211(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X)
ACTIVE(fst(pair(X, Y))) → AND(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y)))
ACTIVE(fst(pair(X, Y))) → AND(isLNat(X), isLNatKind(X))
ACTIVE(fst(pair(X, Y))) → ISLNAT(X)
ACTIVE(fst(pair(X, Y))) → ISLNATKIND(X)
ACTIVE(fst(pair(X, Y))) → AND(isLNat(Y), isLNatKind(Y))
ACTIVE(fst(pair(X, Y))) → ISLNAT(Y)
ACTIVE(fst(pair(X, Y))) → ISLNATKIND(Y)
ACTIVE(head(cons(N, XS))) → U311(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N)
ACTIVE(head(cons(N, XS))) → AND(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS)))
ACTIVE(head(cons(N, XS))) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(head(cons(N, XS))) → ISNATURAL(N)
ACTIVE(head(cons(N, XS))) → ISNATURALKIND(N)
ACTIVE(head(cons(N, XS))) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(head(cons(N, XS))) → ISLNAT(XS)
ACTIVE(head(cons(N, XS))) → ISLNATKIND(XS)
ACTIVE(isLNat(afterNth(V1, V2))) → U411(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2)
ACTIVE(isLNat(afterNth(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isLNat(afterNth(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isLNat(afterNth(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isLNat(cons(V1, V2))) → U511(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2)
ACTIVE(isLNat(cons(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isLNat(cons(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isLNat(cons(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isLNat(fst(V1))) → U611(isPLNatKind(V1), V1)
ACTIVE(isLNat(fst(V1))) → ISPLNATKIND(V1)
ACTIVE(isLNat(natsFrom(V1))) → U711(isNaturalKind(V1), V1)
ACTIVE(isLNat(natsFrom(V1))) → ISNATURALKIND(V1)
ACTIVE(isLNat(snd(V1))) → U811(isPLNatKind(V1), V1)
ACTIVE(isLNat(snd(V1))) → ISPLNATKIND(V1)
ACTIVE(isLNat(tail(V1))) → U911(isLNatKind(V1), V1)
ACTIVE(isLNat(tail(V1))) → ISLNATKIND(V1)
ACTIVE(isLNat(take(V1, V2))) → U1011(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2)
ACTIVE(isLNat(take(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isLNat(take(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isLNat(take(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isLNatKind(afterNth(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isLNatKind(afterNth(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isLNatKind(afterNth(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isLNatKind(cons(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isLNatKind(cons(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isLNatKind(cons(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isLNatKind(fst(V1))) → ISPLNATKIND(V1)
ACTIVE(isLNatKind(natsFrom(V1))) → ISNATURALKIND(V1)
ACTIVE(isLNatKind(snd(V1))) → ISPLNATKIND(V1)
ACTIVE(isLNatKind(tail(V1))) → ISLNATKIND(V1)
ACTIVE(isLNatKind(take(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isLNatKind(take(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isLNatKind(take(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isNatural(head(V1))) → U1111(isLNatKind(V1), V1)
ACTIVE(isNatural(head(V1))) → ISLNATKIND(V1)
ACTIVE(isNatural(s(V1))) → U1211(isNaturalKind(V1), V1)
ACTIVE(isNatural(s(V1))) → ISNATURALKIND(V1)
ACTIVE(isNatural(sel(V1, V2))) → U1311(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2)
ACTIVE(isNatural(sel(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isNatural(sel(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isNatural(sel(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isNaturalKind(head(V1))) → ISLNATKIND(V1)
ACTIVE(isNaturalKind(s(V1))) → ISNATURALKIND(V1)
ACTIVE(isNaturalKind(sel(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isNaturalKind(sel(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isNaturalKind(sel(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isPLNat(pair(V1, V2))) → U1411(and(isLNatKind(V1), isLNatKind(V2)), V1, V2)
ACTIVE(isPLNat(pair(V1, V2))) → AND(isLNatKind(V1), isLNatKind(V2))
ACTIVE(isPLNat(pair(V1, V2))) → ISLNATKIND(V1)
ACTIVE(isPLNat(pair(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isPLNat(splitAt(V1, V2))) → U1511(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2)
ACTIVE(isPLNat(splitAt(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isPLNat(splitAt(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isPLNatKind(pair(V1, V2))) → AND(isLNatKind(V1), isLNatKind(V2))
ACTIVE(isPLNatKind(pair(V1, V2))) → ISLNATKIND(V1)
ACTIVE(isPLNatKind(pair(V1, V2))) → ISLNATKIND(V2)
ACTIVE(isPLNatKind(splitAt(V1, V2))) → AND(isNaturalKind(V1), isLNatKind(V2))
ACTIVE(isPLNatKind(splitAt(V1, V2))) → ISNATURALKIND(V1)
ACTIVE(isPLNatKind(splitAt(V1, V2))) → ISLNATKIND(V2)
ACTIVE(natsFrom(N)) → U1611(and(isNatural(N), isNaturalKind(N)), N)
ACTIVE(natsFrom(N)) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(natsFrom(N)) → ISNATURAL(N)
ACTIVE(natsFrom(N)) → ISNATURALKIND(N)
ACTIVE(sel(N, XS)) → U1711(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS)
ACTIVE(sel(N, XS)) → AND(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS)))
ACTIVE(sel(N, XS)) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(sel(N, XS)) → ISNATURAL(N)
ACTIVE(sel(N, XS)) → ISNATURALKIND(N)
ACTIVE(sel(N, XS)) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(sel(N, XS)) → ISLNAT(XS)
ACTIVE(sel(N, XS)) → ISLNATKIND(XS)
ACTIVE(snd(pair(X, Y))) → U1811(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y)
ACTIVE(snd(pair(X, Y))) → AND(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y)))
ACTIVE(snd(pair(X, Y))) → AND(isLNat(X), isLNatKind(X))
ACTIVE(snd(pair(X, Y))) → ISLNAT(X)
ACTIVE(snd(pair(X, Y))) → ISLNATKIND(X)
ACTIVE(snd(pair(X, Y))) → AND(isLNat(Y), isLNatKind(Y))
ACTIVE(snd(pair(X, Y))) → ISLNAT(Y)
ACTIVE(snd(pair(X, Y))) → ISLNATKIND(Y)
ACTIVE(splitAt(0, XS)) → U1911(and(isLNat(XS), isLNatKind(XS)), XS)
ACTIVE(splitAt(0, XS)) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(splitAt(0, XS)) → ISLNAT(XS)
ACTIVE(splitAt(0, XS)) → ISLNATKIND(XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → U2011(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS))))
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(N)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURALKIND(N)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(X), isNaturalKind(X))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(X)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURALKIND(X)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISLNAT(XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISLNATKIND(XS)
ACTIVE(tail(cons(N, XS))) → U2111(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS)
ACTIVE(tail(cons(N, XS))) → AND(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS)))
ACTIVE(tail(cons(N, XS))) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(tail(cons(N, XS))) → ISNATURAL(N)
ACTIVE(tail(cons(N, XS))) → ISNATURALKIND(N)
ACTIVE(tail(cons(N, XS))) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(tail(cons(N, XS))) → ISLNAT(XS)
ACTIVE(tail(cons(N, XS))) → ISLNATKIND(XS)
ACTIVE(take(N, XS)) → U2211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS)
ACTIVE(take(N, XS)) → AND(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS)))
ACTIVE(take(N, XS)) → AND(isNatural(N), isNaturalKind(N))
ACTIVE(take(N, XS)) → ISNATURAL(N)
ACTIVE(take(N, XS)) → ISNATURALKIND(N)
ACTIVE(take(N, XS)) → AND(isLNat(XS), isLNatKind(XS))
ACTIVE(take(N, XS)) → ISLNAT(XS)
ACTIVE(take(N, XS)) → ISLNATKIND(XS)
ACTIVE(U101(X1, X2, X3)) → U1011(active(X1), X2, X3)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U102(X1, X2)) → U1021(active(X1), X2)
ACTIVE(U102(X1, X2)) → ACTIVE(X1)
ACTIVE(U103(X)) → U1031(active(X))
ACTIVE(U103(X)) → ACTIVE(X)
ACTIVE(U11(X1, X2, X3)) → U111(active(X1), X2, X3)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
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(U111(X1, X2)) → U1111(active(X1), X2)
ACTIVE(U111(X1, X2)) → ACTIVE(X1)
ACTIVE(U112(X)) → U1121(active(X))
ACTIVE(U112(X)) → ACTIVE(X)
ACTIVE(U121(X1, X2)) → U1211(active(X1), X2)
ACTIVE(U121(X1, X2)) → ACTIVE(X1)
ACTIVE(U122(X)) → U1221(active(X))
ACTIVE(U122(X)) → ACTIVE(X)
ACTIVE(U131(X1, X2, X3)) → U1311(active(X1), X2, X3)
ACTIVE(U131(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U132(X1, X2)) → U1321(active(X1), X2)
ACTIVE(U132(X1, X2)) → ACTIVE(X1)
ACTIVE(U133(X)) → U1331(active(X))
ACTIVE(U133(X)) → ACTIVE(X)
ACTIVE(U141(X1, X2, X3)) → U1411(active(X1), X2, X3)
ACTIVE(U141(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U142(X1, X2)) → U1421(active(X1), X2)
ACTIVE(U142(X1, X2)) → ACTIVE(X1)
ACTIVE(U143(X)) → U1431(active(X))
ACTIVE(U143(X)) → ACTIVE(X)
ACTIVE(U151(X1, X2, X3)) → U1511(active(X1), X2, X3)
ACTIVE(U151(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U152(X1, X2)) → U1521(active(X1), X2)
ACTIVE(U152(X1, X2)) → ACTIVE(X1)
ACTIVE(U153(X)) → U1531(active(X))
ACTIVE(U153(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(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(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)) → U2021(active(X1), X2)
ACTIVE(U202(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → U211(active(X1), X2)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(U211(X1, X2)) → U2111(active(X1), X2)
ACTIVE(U211(X1, X2)) → ACTIVE(X1)
ACTIVE(U221(X1, X2, X3)) → U2211(active(X1), X2, X3)
ACTIVE(U221(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → FST(active(X))
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U31(X1, X2)) → U311(active(X1), X2)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2, X3)) → U411(active(X1), X2, X3)
ACTIVE(U41(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U42(X1, X2)) → U421(active(X1), X2)
ACTIVE(U42(X1, X2)) → ACTIVE(X1)
ACTIVE(U43(X)) → U431(active(X))
ACTIVE(U43(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2, X3)) → U511(active(X1), X2, X3)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U52(X1, X2)) → U521(active(X1), X2)
ACTIVE(U52(X1, X2)) → ACTIVE(X1)
ACTIVE(U53(X)) → U531(active(X))
ACTIVE(U53(X)) → ACTIVE(X)
ACTIVE(U61(X1, X2)) → U611(active(X1), X2)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U62(X)) → U621(active(X))
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(U71(X1, X2)) → U711(active(X1), X2)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(U72(X)) → U721(active(X))
ACTIVE(U72(X)) → ACTIVE(X)
ACTIVE(U81(X1, X2)) → U811(active(X1), X2)
ACTIVE(U81(X1, X2)) → ACTIVE(X1)
ACTIVE(U82(X)) → U821(active(X))
ACTIVE(U82(X)) → ACTIVE(X)
ACTIVE(U91(X1, X2)) → U911(active(X1), X2)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(U92(X)) → U921(active(X))
ACTIVE(U92(X)) → ACTIVE(X)
ACTIVE(and(X1, X2)) → AND(active(X1), X2)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
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, X3) → U1011(X1, X2, X3)
U1021(mark(X1), X2) → U1021(X1, X2)
U1031(mark(X)) → U1031(X)
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
SND(mark(X)) → SND(X)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
U1111(mark(X1), X2) → U1111(X1, X2)
U1121(mark(X)) → U1121(X)
U1211(mark(X1), X2) → U1211(X1, X2)
U1221(mark(X)) → U1221(X)
U1311(mark(X1), X2, X3) → U1311(X1, X2, X3)
U1321(mark(X1), X2) → U1321(X1, X2)
U1331(mark(X)) → U1331(X)
U1411(mark(X1), X2, X3) → U1411(X1, X2, X3)
U1421(mark(X1), X2) → U1421(X1, X2)
U1431(mark(X)) → U1431(X)
U1511(mark(X1), X2, X3) → U1511(X1, X2, X3)
U1521(mark(X1), X2) → U1521(X1, X2)
U1531(mark(X)) → U1531(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)
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)
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) → U2021(X1, X2)
U211(mark(X1), X2) → U211(X1, X2)
U2111(mark(X1), X2) → U2111(X1, X2)
U2211(mark(X1), X2, X3) → U2211(X1, X2, X3)
FST(mark(X)) → FST(X)
U311(mark(X1), X2) → U311(X1, X2)
U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U421(mark(X1), X2) → U421(X1, X2)
U431(mark(X)) → U431(X)
U511(mark(X1), X2, X3) → U511(X1, X2, X3)
U521(mark(X1), X2) → U521(X1, X2)
U531(mark(X)) → U531(X)
U611(mark(X1), X2) → U611(X1, X2)
U621(mark(X)) → U621(X)
U711(mark(X1), X2) → U711(X1, X2)
U721(mark(X)) → U721(X)
U811(mark(X1), X2) → U811(X1, X2)
U821(mark(X)) → U821(X)
U911(mark(X1), X2) → U911(X1, X2)
U921(mark(X)) → U921(X)
AND(mark(X1), X2) → AND(X1, X2)
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, X3)) → U1011(proper(X1), proper(X2), proper(X3))
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X2)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(U102(X1, X2)) → U1021(proper(X1), proper(X2))
PROPER(U102(X1, X2)) → PROPER(X1)
PROPER(U102(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → ISNATURAL(proper(X))
PROPER(isNatural(X)) → PROPER(X)
PROPER(U103(X)) → U1031(proper(X))
PROPER(U103(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(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(U111(X1, X2)) → U1111(proper(X1), proper(X2))
PROPER(U111(X1, X2)) → PROPER(X1)
PROPER(U111(X1, X2)) → PROPER(X2)
PROPER(U112(X)) → U1121(proper(X))
PROPER(U112(X)) → PROPER(X)
PROPER(U121(X1, X2)) → U1211(proper(X1), proper(X2))
PROPER(U121(X1, X2)) → PROPER(X1)
PROPER(U121(X1, X2)) → PROPER(X2)
PROPER(U122(X)) → U1221(proper(X))
PROPER(U122(X)) → PROPER(X)
PROPER(U131(X1, X2, X3)) → U1311(proper(X1), proper(X2), proper(X3))
PROPER(U131(X1, X2, X3)) → PROPER(X1)
PROPER(U131(X1, X2, X3)) → PROPER(X2)
PROPER(U131(X1, X2, X3)) → PROPER(X3)
PROPER(U132(X1, X2)) → U1321(proper(X1), proper(X2))
PROPER(U132(X1, X2)) → PROPER(X1)
PROPER(U132(X1, X2)) → PROPER(X2)
PROPER(U133(X)) → U1331(proper(X))
PROPER(U133(X)) → PROPER(X)
PROPER(U141(X1, X2, X3)) → U1411(proper(X1), proper(X2), proper(X3))
PROPER(U141(X1, X2, X3)) → PROPER(X1)
PROPER(U141(X1, X2, X3)) → PROPER(X2)
PROPER(U141(X1, X2, X3)) → PROPER(X3)
PROPER(U142(X1, X2)) → U1421(proper(X1), proper(X2))
PROPER(U142(X1, X2)) → PROPER(X1)
PROPER(U142(X1, X2)) → PROPER(X2)
PROPER(U143(X)) → U1431(proper(X))
PROPER(U143(X)) → PROPER(X)
PROPER(U151(X1, X2, X3)) → U1511(proper(X1), proper(X2), proper(X3))
PROPER(U151(X1, X2, X3)) → PROPER(X1)
PROPER(U151(X1, X2, X3)) → PROPER(X2)
PROPER(U151(X1, X2, X3)) → PROPER(X3)
PROPER(U152(X1, X2)) → U1521(proper(X1), proper(X2))
PROPER(U152(X1, X2)) → PROPER(X1)
PROPER(U152(X1, X2)) → PROPER(X2)
PROPER(U153(X)) → U1531(proper(X))
PROPER(U153(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(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(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)) → U2021(proper(X1), proper(X2))
PROPER(U202(X1, X2)) → PROPER(X1)
PROPER(U202(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2)) → U211(proper(X1), proper(X2))
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(U21(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(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(fst(X)) → FST(proper(X))
PROPER(fst(X)) → PROPER(X)
PROPER(U31(X1, X2)) → U311(proper(X1), proper(X2))
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2, X3)) → U411(proper(X1), proper(X2), proper(X3))
PROPER(U41(X1, X2, X3)) → PROPER(X1)
PROPER(U41(X1, X2, X3)) → PROPER(X2)
PROPER(U41(X1, X2, X3)) → PROPER(X3)
PROPER(U42(X1, X2)) → U421(proper(X1), proper(X2))
PROPER(U42(X1, X2)) → PROPER(X1)
PROPER(U42(X1, X2)) → PROPER(X2)
PROPER(U43(X)) → U431(proper(X))
PROPER(U43(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → U511(proper(X1), proper(X2), proper(X3))
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(U52(X1, X2)) → U521(proper(X1), proper(X2))
PROPER(U52(X1, X2)) → PROPER(X1)
PROPER(U52(X1, X2)) → PROPER(X2)
PROPER(U53(X)) → U531(proper(X))
PROPER(U53(X)) → PROPER(X)
PROPER(U61(X1, X2)) → U611(proper(X1), proper(X2))
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(U62(X)) → U621(proper(X))
PROPER(U62(X)) → PROPER(X)
PROPER(isPLNat(X)) → ISPLNAT(proper(X))
PROPER(isPLNat(X)) → PROPER(X)
PROPER(U71(X1, X2)) → U711(proper(X1), proper(X2))
PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(U72(X)) → U721(proper(X))
PROPER(U72(X)) → PROPER(X)
PROPER(U81(X1, X2)) → U811(proper(X1), proper(X2))
PROPER(U81(X1, X2)) → PROPER(X1)
PROPER(U81(X1, X2)) → PROPER(X2)
PROPER(U82(X)) → U821(proper(X))
PROPER(U82(X)) → PROPER(X)
PROPER(U91(X1, X2)) → U911(proper(X1), proper(X2))
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U92(X)) → U921(proper(X))
PROPER(U92(X)) → PROPER(X)
PROPER(and(X1, X2)) → AND(proper(X1), proper(X2))
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(isNaturalKind(X)) → ISNATURALKIND(proper(X))
PROPER(isNaturalKind(X)) → PROPER(X)
PROPER(isLNatKind(X)) → ISLNATKIND(proper(X))
PROPER(isLNatKind(X)) → PROPER(X)
PROPER(isPLNatKind(X)) → ISPLNATKIND(proper(X))
PROPER(isPLNatKind(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), ok(X3)) → U1011(X1, X2, X3)
U1021(ok(X1), ok(X2)) → U1021(X1, X2)
ISNATURAL(ok(X)) → ISNATURAL(X)
U1031(ok(X)) → U1031(X)
ISLNAT(ok(X)) → ISLNAT(X)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
SND(ok(X)) → SND(X)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
U1111(ok(X1), ok(X2)) → U1111(X1, X2)
U1121(ok(X)) → U1121(X)
U1211(ok(X1), ok(X2)) → U1211(X1, X2)
U1221(ok(X)) → U1221(X)
U1311(ok(X1), ok(X2), ok(X3)) → U1311(X1, X2, X3)
U1321(ok(X1), ok(X2)) → U1321(X1, X2)
U1331(ok(X)) → U1331(X)
U1411(ok(X1), ok(X2), ok(X3)) → U1411(X1, X2, X3)
U1421(ok(X1), ok(X2)) → U1421(X1, X2)
U1431(ok(X)) → U1431(X)
U1511(ok(X1), ok(X2), ok(X3)) → U1511(X1, X2, X3)
U1521(ok(X1), ok(X2)) → U1521(X1, X2)
U1531(ok(X)) → U1531(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)
HEAD(ok(X)) → HEAD(X)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
U1811(ok(X1), ok(X2)) → U1811(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)) → U2021(X1, X2)
U211(ok(X1), ok(X2)) → U211(X1, X2)
U2111(ok(X1), ok(X2)) → U2111(X1, X2)
U2211(ok(X1), ok(X2), ok(X3)) → U2211(X1, X2, X3)
FST(ok(X)) → FST(X)
U311(ok(X1), ok(X2)) → U311(X1, X2)
U411(ok(X1), ok(X2), ok(X3)) → U411(X1, X2, X3)
U421(ok(X1), ok(X2)) → U421(X1, X2)
U431(ok(X)) → U431(X)
U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)
U521(ok(X1), ok(X2)) → U521(X1, X2)
U531(ok(X)) → U531(X)
U611(ok(X1), ok(X2)) → U611(X1, X2)
U621(ok(X)) → U621(X)
ISPLNAT(ok(X)) → ISPLNAT(X)
U711(ok(X1), ok(X2)) → U711(X1, X2)
U721(ok(X)) → U721(X)
U811(ok(X1), ok(X2)) → U811(X1, X2)
U821(ok(X)) → U821(X)
U911(ok(X1), ok(X2)) → U911(X1, X2)
U921(ok(X)) → U921(X)
AND(ok(X1), ok(X2)) → AND(X1, X2)
ISNATURALKIND(ok(X)) → ISNATURALKIND(X)
ISLNATKIND(ok(X)) → ISLNATKIND(X)
ISPLNATKIND(ok(X)) → ISPLNATKIND(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
ISPLNATKIND(ok(X)) → ISPLNATKIND(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
ISPLNATKIND(ok(X)) → ISPLNATKIND(X)
ok1 > ISPLNATKIND1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
ISLNATKIND(ok(X)) → ISLNATKIND(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
ISLNATKIND(ok(X)) → ISLNATKIND(X)
ok1 > ISLNATKIND1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
ISNATURALKIND(ok(X)) → ISNATURALKIND(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
ISNATURALKIND(ok(X)) → ISNATURALKIND(X)
ok1 > ISNATURALKIND1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > ISPLNAT1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > ISLNAT1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > ISNATURAL1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > SEL1
SEL(mark(X1), X2) → SEL(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > SEL1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > TAKE1
TAKE(mark(X1), X2) → TAKE(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > TAKE1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
TAIL(mark(X)) → TAIL(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > TAIL1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
AND(ok(X1), ok(X2)) → AND(X1, X2)
AND(mark(X1), X2) → AND(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
AND(mark(X1), X2) → AND(X1, X2)
trivial
AND(ok(X1), ok(X2)) → AND(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
AND(ok(X1), ok(X2)) → AND(X1, X2)
ok1 > AND1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U921(ok(X)) → U921(X)
U921(mark(X)) → U921(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U921(ok(X)) → U921(X)
trivial
U921(mark(X)) → U921(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U921(mark(X)) → U921(X)
mark1 > U92^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U911(X1, X2)
U911(mark(X1), X2) → U911(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U911(X1, X2)
trivial
U911(ok(X1), ok(X2)) → U911(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U911(X1, X2)
ok1 > U91^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U821(ok(X)) → U821(X)
U821(mark(X)) → U821(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U821(ok(X)) → U821(X)
trivial
U821(mark(X)) → U821(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U821(mark(X)) → U821(X)
mark1 > U82^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U811(X1, X2)
U811(mark(X1), X2) → U811(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U811(X1, X2)
trivial
U811(ok(X1), ok(X2)) → U811(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U811(X1, X2)
ok1 > U81^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U721(ok(X)) → U721(X)
U721(mark(X)) → U721(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U721(ok(X)) → U721(X)
trivial
U721(mark(X)) → U721(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U721(mark(X)) → U721(X)
mark1 > U72^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U711(X1, X2)
U711(mark(X1), X2) → U711(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U711(X1, X2)
trivial
U711(ok(X1), ok(X2)) → U711(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U711(X1, X2)
ok1 > U71^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U621(ok(X)) → U621(X)
U621(mark(X)) → U621(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U621(ok(X)) → U621(X)
trivial
U621(mark(X)) → U621(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U621(mark(X)) → U621(X)
mark1 > U62^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U611(X1, X2)
U611(mark(X1), X2) → U611(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U611(X1, X2)
trivial
U611(ok(X1), ok(X2)) → U611(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U611(X1, X2)
ok1 > U61^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U531(ok(X)) → U531(X)
U531(mark(X)) → U531(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U531(ok(X)) → U531(X)
trivial
U531(mark(X)) → U531(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U531(mark(X)) → U531(X)
mark1 > U53^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U521(X1, X2)
U521(mark(X1), X2) → U521(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U521(X1, X2)
trivial
U521(ok(X1), ok(X2)) → U521(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U521(X1, X2)
ok1 > U52^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U511(X1, X2, X3)
U511(mark(X1), X2, X3) → U511(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U511(X1, X2, X3)
mark1 > U51^11
U511(mark(X1), X2, X3) → U511(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3) → U511(X1, X2, X3)
mark1 > U51^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U431(ok(X)) → U431(X)
U431(mark(X)) → U431(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U431(ok(X)) → U431(X)
trivial
U431(mark(X)) → U431(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U431(mark(X)) → U431(X)
mark1 > U43^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U421(X1, X2)
U421(mark(X1), X2) → U421(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U421(X1, X2)
trivial
U421(ok(X1), ok(X2)) → U421(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U421(X1, X2)
ok1 > U42^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U411(X1, X2, X3)
U411(mark(X1), X2, X3) → U411(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U411(X1, X2, X3)
mark1 > U41^11
U411(mark(X1), X2, X3) → U411(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3) → U411(X1, X2, X3)
mark1 > U41^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)) → U311(X1, X2)
U311(mark(X1), X2) → U311(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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) → U311(X1, X2)
trivial
U311(ok(X1), ok(X2)) → U311(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)) → U311(X1, X2)
ok1 > U31^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
FST(mark(X)) → FST(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > FST1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > U221^11
U2211(mark(X1), X2, X3) → U2211(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > U221^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
U2111(ok(X1), ok(X2)) → U2111(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)) → U211(X1, X2)
U211(mark(X1), X2) → U211(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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) → U211(X1, X2)
trivial
U211(ok(X1), ok(X2)) → U211(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)) → U211(X1, X2)
ok1 > U21^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)) → U2021(X1, X2)
U2021(mark(X1), X2) → U2021(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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) → U2021(X1, X2)
trivial
U2021(ok(X1), ok(X2)) → U2021(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)) → U2021(X1, X2)
ok1 > U202^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
mark1 > U201^11
U2011(mark(X1), X2, X3, X4) → U2011(X1, X2, X3, X4)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
trivial
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > PAIR1
PAIR(mark(X1), X2) → PAIR(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > PAIR1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
U1911(ok(X1), ok(X2)) → U1911(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
U1811(ok(X1), ok(X2)) → U1811(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > AFTERNTH1
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > AFTERNTH1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
HEAD(mark(X)) → HEAD(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > HEAD1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > U171^11
U1711(mark(X1), X2, X3) → U1711(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > U171^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
S(mark(X)) → S(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > S1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
NATSFROM(mark(X)) → NATSFROM(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > NATSFROM1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
U1611(ok(X1), ok(X2)) → U1611(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U1531(ok(X)) → U1531(X)
U1531(mark(X)) → U1531(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1531(ok(X)) → U1531(X)
trivial
U1531(mark(X)) → U1531(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1531(mark(X)) → U1531(X)
mark1 > U153^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1521(X1, X2)
U1521(mark(X1), X2) → U1521(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U1521(X1, X2)
trivial
U1521(ok(X1), ok(X2)) → U1521(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1521(X1, X2)
ok1 > U152^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1511(X1, X2, X3)
U1511(mark(X1), X2, X3) → U1511(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1511(X1, X2, X3)
mark1 > U151^11
U1511(mark(X1), X2, X3) → U1511(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3) → U1511(X1, X2, X3)
mark1 > U151^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U1431(ok(X)) → U1431(X)
U1431(mark(X)) → U1431(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1431(ok(X)) → U1431(X)
trivial
U1431(mark(X)) → U1431(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1431(mark(X)) → U1431(X)
mark1 > U143^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1421(X1, X2)
U1421(mark(X1), X2) → U1421(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U1421(X1, X2)
trivial
U1421(ok(X1), ok(X2)) → U1421(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1421(X1, X2)
ok1 > U142^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1411(X1, X2, X3)
U1411(mark(X1), X2, X3) → U1411(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1411(X1, X2, X3)
mark1 > U141^11
U1411(mark(X1), X2, X3) → U1411(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3) → U1411(X1, X2, X3)
mark1 > U141^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U1331(ok(X)) → U1331(X)
U1331(mark(X)) → U1331(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1331(ok(X)) → U1331(X)
trivial
U1331(mark(X)) → U1331(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1331(mark(X)) → U1331(X)
mark1 > U133^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1321(X1, X2)
U1321(mark(X1), X2) → U1321(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U1321(X1, X2)
trivial
U1321(ok(X1), ok(X2)) → U1321(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1321(X1, X2)
ok1 > U132^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1311(X1, X2, X3)
U1311(mark(X1), X2, X3) → U1311(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1311(X1, X2, X3)
mark1 > U131^11
U1311(mark(X1), X2, X3) → U1311(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3) → U1311(X1, X2, X3)
mark1 > U131^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U1221(ok(X)) → U1221(X)
U1221(mark(X)) → U1221(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1221(ok(X)) → U1221(X)
trivial
U1221(mark(X)) → U1221(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1221(mark(X)) → U1221(X)
mark1 > U122^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1211(X1, X2)
U1211(mark(X1), X2) → U1211(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U1211(X1, X2)
trivial
U1211(ok(X1), ok(X2)) → U1211(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1211(X1, X2)
ok1 > U121^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U1121(ok(X)) → U1121(X)
U1121(mark(X)) → U1121(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1121(ok(X)) → U1121(X)
trivial
U1121(mark(X)) → U1121(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1121(mark(X)) → U1121(X)
mark1 > U112^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1111(X1, X2)
U1111(mark(X1), X2) → U1111(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U1111(X1, X2)
trivial
U1111(ok(X1), ok(X2)) → U1111(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1111(X1, X2)
ok1 > U111^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
ok1 > SPLITAT1
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > SPLITAT1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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
SND(mark(X)) → SND(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > SND1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > U11^11
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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)
mark1 > U11^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))
U1031(ok(X)) → U1031(X)
U1031(mark(X)) → U1031(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1031(ok(X)) → U1031(X)
trivial
U1031(mark(X)) → U1031(X)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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.
U1031(mark(X)) → U1031(X)
mark1 > U103^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1021(X1, X2)
U1021(mark(X1), X2) → U1021(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), X2) → U1021(X1, X2)
trivial
U1021(ok(X1), ok(X2)) → U1021(X1, X2)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1), ok(X2)) → U1021(X1, X2)
ok1 > U102^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1011(X1, X2, X3)
U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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), ok(X3)) → U1011(X1, X2, X3)
mark1 > U101^11
U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3) → U1011(X1, X2, X3)
mark1 > U101^11
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3)) → PROPER(X2)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(U102(X1, X2)) → PROPER(X1)
PROPER(U102(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
PROPER(U103(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(snd(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U111(X1, X2)) → PROPER(X1)
PROPER(U111(X1, X2)) → PROPER(X2)
PROPER(U112(X)) → PROPER(X)
PROPER(U121(X1, X2)) → PROPER(X1)
PROPER(U121(X1, X2)) → PROPER(X2)
PROPER(U122(X)) → PROPER(X)
PROPER(U131(X1, X2, X3)) → PROPER(X1)
PROPER(U131(X1, X2, X3)) → PROPER(X2)
PROPER(U131(X1, X2, X3)) → PROPER(X3)
PROPER(U132(X1, X2)) → PROPER(X1)
PROPER(U132(X1, X2)) → PROPER(X2)
PROPER(U133(X)) → PROPER(X)
PROPER(U141(X1, X2, X3)) → PROPER(X1)
PROPER(U141(X1, X2, X3)) → PROPER(X2)
PROPER(U141(X1, X2, X3)) → PROPER(X3)
PROPER(U142(X1, X2)) → PROPER(X1)
PROPER(U142(X1, X2)) → PROPER(X2)
PROPER(U143(X)) → PROPER(X)
PROPER(U151(X1, X2, X3)) → PROPER(X1)
PROPER(U151(X1, X2, X3)) → PROPER(X2)
PROPER(U151(X1, X2, X3)) → PROPER(X3)
PROPER(U152(X1, X2)) → PROPER(X1)
PROPER(U152(X1, X2)) → PROPER(X2)
PROPER(U153(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(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(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)) → PROPER(X1)
PROPER(U202(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(U211(X1, X2)) → PROPER(X1)
PROPER(U211(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(fst(X)) → PROPER(X)
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2, X3)) → PROPER(X1)
PROPER(U41(X1, X2, X3)) → PROPER(X2)
PROPER(U41(X1, X2, X3)) → PROPER(X3)
PROPER(U42(X1, X2)) → PROPER(X1)
PROPER(U42(X1, X2)) → PROPER(X2)
PROPER(U43(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(U52(X1, X2)) → PROPER(X1)
PROPER(U52(X1, X2)) → PROPER(X2)
PROPER(U53(X)) → PROPER(X)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(U62(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(U72(X)) → PROPER(X)
PROPER(U81(X1, X2)) → PROPER(X1)
PROPER(U81(X1, X2)) → PROPER(X2)
PROPER(U82(X)) → PROPER(X)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U92(X)) → PROPER(X)
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(isNaturalKind(X)) → PROPER(X)
PROPER(isLNatKind(X)) → PROPER(X)
PROPER(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, X3)) → PROPER(X2)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(U102(X1, X2)) → PROPER(X1)
PROPER(U102(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
PROPER(U103(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(snd(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U111(X1, X2)) → PROPER(X1)
PROPER(U111(X1, X2)) → PROPER(X2)
PROPER(U112(X)) → PROPER(X)
PROPER(U121(X1, X2)) → PROPER(X1)
PROPER(U121(X1, X2)) → PROPER(X2)
PROPER(U122(X)) → PROPER(X)
PROPER(U131(X1, X2, X3)) → PROPER(X1)
PROPER(U131(X1, X2, X3)) → PROPER(X2)
PROPER(U131(X1, X2, X3)) → PROPER(X3)
PROPER(U132(X1, X2)) → PROPER(X1)
PROPER(U132(X1, X2)) → PROPER(X2)
PROPER(U133(X)) → PROPER(X)
PROPER(U141(X1, X2, X3)) → PROPER(X1)
PROPER(U141(X1, X2, X3)) → PROPER(X2)
PROPER(U141(X1, X2, X3)) → PROPER(X3)
PROPER(U142(X1, X2)) → PROPER(X1)
PROPER(U142(X1, X2)) → PROPER(X2)
PROPER(U143(X)) → PROPER(X)
PROPER(U151(X1, X2, X3)) → PROPER(X1)
PROPER(U151(X1, X2, X3)) → PROPER(X2)
PROPER(U151(X1, X2, X3)) → PROPER(X3)
PROPER(U152(X1, X2)) → PROPER(X1)
PROPER(U152(X1, X2)) → PROPER(X2)
PROPER(U153(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(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(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)) → PROPER(X1)
PROPER(U202(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(U211(X1, X2)) → PROPER(X1)
PROPER(U211(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(fst(X)) → PROPER(X)
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2, X3)) → PROPER(X1)
PROPER(U41(X1, X2, X3)) → PROPER(X2)
PROPER(U41(X1, X2, X3)) → PROPER(X3)
PROPER(U42(X1, X2)) → PROPER(X1)
PROPER(U42(X1, X2)) → PROPER(X2)
PROPER(U43(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(U52(X1, X2)) → PROPER(X1)
PROPER(U52(X1, X2)) → PROPER(X2)
PROPER(U53(X)) → PROPER(X)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(U62(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(U72(X)) → PROPER(X)
PROPER(U81(X1, X2)) → PROPER(X1)
PROPER(U81(X1, X2)) → PROPER(X2)
PROPER(U82(X)) → PROPER(X)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U92(X)) → PROPER(X)
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(isNaturalKind(X)) → PROPER(X)
PROPER(isLNatKind(X)) → PROPER(X)
PROPER(isPLNatKind(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)
isNatural1 > PROPER1
U1031 > PROPER1
isLNat1 > PROPER1
U113 > PROPER1
snd1 > PROPER1
splitAt2 > PROPER1
U1112 > PROPER1
U1121 > PROPER1
U1212 > PROPER1
U1221 > PROPER1
U1313 > PROPER1
U1322 > PROPER1
U1331 > PROPER1
U1413 > PROPER1
U1422 > PROPER1
U1431 > PROPER1
U1513 > PROPER1
U1522 > PROPER1
U1531 > PROPER1
U1612 > PROPER1
cons2 > PROPER1
natsFrom1 > PROPER1
s1 > PROPER1
U1713 > PROPER1
head1 > PROPER1
fst1 > PROPER1
U431 > PROPER1
U531 > PROPER1
U621 > PROPER1
isPLNat1 > PROPER1
U721 > PROPER1
U821 > PROPER1
U921 > PROPER1
isNaturalKind1 > PROPER1
isLNatKind1 > PROPER1
isPLNatKind1 > PROPER1
tail1 > PROPER1
sel2 > PROPER1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1, X2)) → ACTIVE(X1)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U103(X)) → ACTIVE(X)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U111(X1, X2)) → ACTIVE(X1)
ACTIVE(U112(X)) → ACTIVE(X)
ACTIVE(U121(X1, X2)) → ACTIVE(X1)
ACTIVE(U122(X)) → ACTIVE(X)
ACTIVE(U131(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U132(X1, X2)) → ACTIVE(X1)
ACTIVE(U133(X)) → ACTIVE(X)
ACTIVE(U141(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U142(X1, X2)) → ACTIVE(X1)
ACTIVE(U143(X)) → ACTIVE(X)
ACTIVE(U151(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U152(X1, X2)) → ACTIVE(X1)
ACTIVE(U153(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(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U181(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)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(U211(X1, X2)) → ACTIVE(X1)
ACTIVE(U221(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U42(X1, X2)) → ACTIVE(X1)
ACTIVE(U43(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U52(X1, X2)) → ACTIVE(X1)
ACTIVE(U53(X)) → ACTIVE(X)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(U72(X)) → ACTIVE(X)
ACTIVE(U81(X1, X2)) → ACTIVE(X1)
ACTIVE(U82(X)) → ACTIVE(X)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(U92(X)) → ACTIVE(X)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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(X1, X2)) → ACTIVE(X1)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U103(X)) → ACTIVE(X)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U111(X1, X2)) → ACTIVE(X1)
ACTIVE(U112(X)) → ACTIVE(X)
ACTIVE(U121(X1, X2)) → ACTIVE(X1)
ACTIVE(U122(X)) → ACTIVE(X)
ACTIVE(U131(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U132(X1, X2)) → ACTIVE(X1)
ACTIVE(U133(X)) → ACTIVE(X)
ACTIVE(U141(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U142(X1, X2)) → ACTIVE(X1)
ACTIVE(U143(X)) → ACTIVE(X)
ACTIVE(U151(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U152(X1, X2)) → ACTIVE(X1)
ACTIVE(U153(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(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U181(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)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(U211(X1, X2)) → ACTIVE(X1)
ACTIVE(U221(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U42(X1, X2)) → ACTIVE(X1)
ACTIVE(U43(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U52(X1, X2)) → ACTIVE(X1)
ACTIVE(U53(X)) → ACTIVE(X)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U62(X)) → ACTIVE(X)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(U72(X)) → ACTIVE(X)
ACTIVE(U81(X1, X2)) → ACTIVE(X1)
ACTIVE(U82(X)) → ACTIVE(X)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(U92(X)) → ACTIVE(X)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
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)
splitAt2 > ACTIVE1
afterNth2 > ACTIVE1
pair2 > ACTIVE1
active(U101(tt, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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, V1, V2)) → mark(U102(isNatural(V1), V2))
active(U102(tt, V2)) → mark(U103(isLNat(V2)))
active(U103(tt)) → mark(tt)
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U111(tt, V1)) → mark(U112(isLNat(V1)))
active(U112(tt)) → mark(tt)
active(U121(tt, V1)) → mark(U122(isNatural(V1)))
active(U122(tt)) → mark(tt)
active(U131(tt, V1, V2)) → mark(U132(isNatural(V1), V2))
active(U132(tt, V2)) → mark(U133(isLNat(V2)))
active(U133(tt)) → mark(tt)
active(U141(tt, V1, V2)) → mark(U142(isLNat(V1), V2))
active(U142(tt, V2)) → mark(U143(isLNat(V2)))
active(U143(tt)) → mark(tt)
active(U151(tt, V1, V2)) → mark(U152(isNatural(V1), V2))
active(U152(tt, V2)) → mark(U153(isLNat(V2)))
active(U153(tt)) → mark(tt)
active(U161(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U171(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U181(tt, Y)) → mark(Y)
active(U191(tt, XS)) → mark(pair(nil, XS))
active(U201(tt, N, X, XS)) → mark(U202(splitAt(N, XS), X))
active(U202(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U21(tt, X)) → mark(X)
active(U211(tt, XS)) → mark(XS)
active(U221(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U31(tt, N)) → mark(N)
active(U41(tt, V1, V2)) → mark(U42(isNatural(V1), V2))
active(U42(tt, V2)) → mark(U43(isLNat(V2)))
active(U43(tt)) → mark(tt)
active(U51(tt, V1, V2)) → mark(U52(isNatural(V1), V2))
active(U52(tt, V2)) → mark(U53(isLNat(V2)))
active(U53(tt)) → mark(tt)
active(U61(tt, V1)) → mark(U62(isPLNat(V1)))
active(U62(tt)) → mark(tt)
active(U71(tt, V1)) → mark(U72(isNatural(V1)))
active(U72(tt)) → mark(tt)
active(U81(tt, V1)) → mark(U82(isPLNat(V1)))
active(U82(tt)) → mark(tt)
active(U91(tt, V1)) → mark(U92(isLNat(V1)))
active(U92(tt)) → mark(tt)
active(afterNth(N, XS)) → mark(U11(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), X))
active(head(cons(N, XS))) → mark(U31(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(U41(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(cons(V1, V2))) → mark(U51(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNat(fst(V1))) → mark(U61(isPLNatKind(V1), V1))
active(isLNat(natsFrom(V1))) → mark(U71(isNaturalKind(V1), V1))
active(isLNat(snd(V1))) → mark(U81(isPLNatKind(V1), V1))
active(isLNat(tail(V1))) → mark(U91(isLNatKind(V1), V1))
active(isLNat(take(V1, V2))) → mark(U101(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isLNatKind(nil)) → mark(tt)
active(isLNatKind(afterNth(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(cons(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isLNatKind(fst(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(natsFrom(V1))) → mark(isNaturalKind(V1))
active(isLNatKind(snd(V1))) → mark(isPLNatKind(V1))
active(isLNatKind(tail(V1))) → mark(isLNatKind(V1))
active(isLNatKind(take(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(U111(isLNatKind(V1), V1))
active(isNatural(s(V1))) → mark(U121(isNaturalKind(V1), V1))
active(isNatural(sel(V1, V2))) → mark(U131(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isNaturalKind(0)) → mark(tt)
active(isNaturalKind(head(V1))) → mark(isLNatKind(V1))
active(isNaturalKind(s(V1))) → mark(isNaturalKind(V1))
active(isNaturalKind(sel(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(isPLNat(pair(V1, V2))) → mark(U141(and(isLNatKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNat(splitAt(V1, V2))) → mark(U151(and(isNaturalKind(V1), isLNatKind(V2)), V1, V2))
active(isPLNatKind(pair(V1, V2))) → mark(and(isLNatKind(V1), isLNatKind(V2)))
active(isPLNatKind(splitAt(V1, V2))) → mark(and(isNaturalKind(V1), isLNatKind(V2)))
active(natsFrom(N)) → mark(U161(and(isNatural(N), isNaturalKind(N)), N))
active(sel(N, XS)) → mark(U171(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(snd(pair(X, Y))) → mark(U181(and(and(isLNat(X), isLNatKind(X)), and(isLNat(Y), isLNatKind(Y))), Y))
active(splitAt(0, XS)) → mark(U191(and(isLNat(XS), isLNatKind(XS)), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U201(and(and(isNatural(N), isNaturalKind(N)), and(and(isNatural(X), isNaturalKind(X)), and(isLNat(XS), isLNatKind(XS)))), N, X, XS))
active(tail(cons(N, XS))) → mark(U211(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), XS))
active(take(N, XS)) → mark(U221(and(and(isNatural(N), isNaturalKind(N)), and(isLNat(XS), isLNatKind(XS))), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(U102(X1, X2)) → U102(active(X1), X2)
active(U103(X)) → U103(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U111(X1, X2)) → U111(active(X1), X2)
active(U112(X)) → U112(active(X))
active(U121(X1, X2)) → U121(active(X1), X2)
active(U122(X)) → U122(active(X))
active(U131(X1, X2, X3)) → U131(active(X1), X2, X3)
active(U132(X1, X2)) → U132(active(X1), X2)
active(U133(X)) → U133(active(X))
active(U141(X1, X2, X3)) → U141(active(X1), X2, X3)
active(U142(X1, X2)) → U142(active(X1), X2)
active(U143(X)) → U143(active(X))
active(U151(X1, X2, X3)) → U151(active(X1), X2, X3)
active(U152(X1, X2)) → U152(active(X1), X2)
active(U153(X)) → U153(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(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(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)) → U202(active(X1), X2)
active(U21(X1, X2)) → U21(active(X1), X2)
active(U211(X1, X2)) → U211(active(X1), X2)
active(U221(X1, X2, X3)) → U221(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2, X3)) → U41(active(X1), X2, X3)
active(U42(X1, X2)) → U42(active(X1), X2)
active(U43(X)) → U43(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(U52(X1, X2)) → U52(active(X1), X2)
active(U53(X)) → U53(active(X))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U62(X)) → U62(active(X))
active(U71(X1, X2)) → U71(active(X1), X2)
active(U72(X)) → U72(active(X))
active(U81(X1, X2)) → U81(active(X1), X2)
active(U82(X)) → U82(active(X))
active(U91(X1, X2)) → U91(active(X1), X2)
active(U92(X)) → U92(active(X))
active(and(X1, X2)) → and(active(X1), X2)
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, X3) → mark(U101(X1, X2, X3))
U102(mark(X1), X2) → mark(U102(X1, X2))
U103(mark(X)) → mark(U103(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U111(mark(X1), X2) → mark(U111(X1, X2))
U112(mark(X)) → mark(U112(X))
U121(mark(X1), X2) → mark(U121(X1, X2))
U122(mark(X)) → mark(U122(X))
U131(mark(X1), X2, X3) → mark(U131(X1, X2, X3))
U132(mark(X1), X2) → mark(U132(X1, X2))
U133(mark(X)) → mark(U133(X))
U141(mark(X1), X2, X3) → mark(U141(X1, X2, X3))
U142(mark(X1), X2) → mark(U142(X1, X2))
U143(mark(X)) → mark(U143(X))
U151(mark(X1), X2, X3) → mark(U151(X1, X2, X3))
U152(mark(X1), X2) → mark(U152(X1, X2))
U153(mark(X)) → mark(U153(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))
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))
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) → mark(U202(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U211(mark(X1), X2) → mark(U211(X1, X2))
U221(mark(X1), X2, X3) → mark(U221(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2, X3) → mark(U41(X1, X2, X3))
U42(mark(X1), X2) → mark(U42(X1, X2))
U43(mark(X)) → mark(U43(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U52(mark(X1), X2) → mark(U52(X1, X2))
U53(mark(X)) → mark(U53(X))
U61(mark(X1), X2) → mark(U61(X1, X2))
U62(mark(X)) → mark(U62(X))
U71(mark(X1), X2) → mark(U71(X1, X2))
U72(mark(X)) → mark(U72(X))
U81(mark(X1), X2) → mark(U81(X1, X2))
U82(mark(X)) → mark(U82(X))
U91(mark(X1), X2) → mark(U91(X1, X2))
U92(mark(X)) → mark(U92(X))
and(mark(X1), X2) → mark(and(X1, X2))
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, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(U102(X1, X2)) → U102(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(U103(X)) → U103(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U111(X1, X2)) → U111(proper(X1), proper(X2))
proper(U112(X)) → U112(proper(X))
proper(U121(X1, X2)) → U121(proper(X1), proper(X2))
proper(U122(X)) → U122(proper(X))
proper(U131(X1, X2, X3)) → U131(proper(X1), proper(X2), proper(X3))
proper(U132(X1, X2)) → U132(proper(X1), proper(X2))
proper(U133(X)) → U133(proper(X))
proper(U141(X1, X2, X3)) → U141(proper(X1), proper(X2), proper(X3))
proper(U142(X1, X2)) → U142(proper(X1), proper(X2))
proper(U143(X)) → U143(proper(X))
proper(U151(X1, X2, X3)) → U151(proper(X1), proper(X2), proper(X3))
proper(U152(X1, X2)) → U152(proper(X1), proper(X2))
proper(U153(X)) → U153(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(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U181(X1, X2)) → U181(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)) → U202(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U211(X1, X2)) → U211(proper(X1), proper(X2))
proper(U221(X1, X2, X3)) → U221(proper(X1), proper(X2), proper(X3))
proper(fst(X)) → fst(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2, X3)) → U41(proper(X1), proper(X2), proper(X3))
proper(U42(X1, X2)) → U42(proper(X1), proper(X2))
proper(U43(X)) → U43(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(U52(X1, X2)) → U52(proper(X1), proper(X2))
proper(U53(X)) → U53(proper(X))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U62(X)) → U62(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(U72(X)) → U72(proper(X))
proper(U81(X1, X2)) → U81(proper(X1), proper(X2))
proper(U82(X)) → U82(proper(X))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(U92(X)) → U92(proper(X))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNaturalKind(X)) → isNaturalKind(proper(X))
proper(isLNatKind(X)) → isLNatKind(proper(X))
proper(isPLNatKind(X)) → isPLNatKind(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(X3)) → ok(U101(X1, X2, X3))
U102(ok(X1), ok(X2)) → ok(U102(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
U103(ok(X)) → ok(U103(X))
isLNat(ok(X)) → ok(isLNat(X))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U111(ok(X1), ok(X2)) → ok(U111(X1, X2))
U112(ok(X)) → ok(U112(X))
U121(ok(X1), ok(X2)) → ok(U121(X1, X2))
U122(ok(X)) → ok(U122(X))
U131(ok(X1), ok(X2), ok(X3)) → ok(U131(X1, X2, X3))
U132(ok(X1), ok(X2)) → ok(U132(X1, X2))
U133(ok(X)) → ok(U133(X))
U141(ok(X1), ok(X2), ok(X3)) → ok(U141(X1, X2, X3))
U142(ok(X1), ok(X2)) → ok(U142(X1, X2))
U143(ok(X)) → ok(U143(X))
U151(ok(X1), ok(X2), ok(X3)) → ok(U151(X1, X2, X3))
U152(ok(X1), ok(X2)) → ok(U152(X1, X2))
U153(ok(X)) → ok(U153(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))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U181(ok(X1), ok(X2)) → ok(U181(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(U202(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U211(ok(X1), ok(X2)) → ok(U211(X1, X2))
U221(ok(X1), ok(X2), ok(X3)) → ok(U221(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2), ok(X3)) → ok(U41(X1, X2, X3))
U42(ok(X1), ok(X2)) → ok(U42(X1, X2))
U43(ok(X)) → ok(U43(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U52(ok(X1), ok(X2)) → ok(U52(X1, X2))
U53(ok(X)) → ok(U53(X))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U62(ok(X)) → ok(U62(X))
isPLNat(ok(X)) → ok(isPLNat(X))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U72(ok(X)) → ok(U72(X))
U81(ok(X1), ok(X2)) → ok(U81(X1, X2))
U82(ok(X)) → ok(U82(X))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U92(ok(X)) → ok(U92(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNaturalKind(ok(X)) → ok(isNaturalKind(X))
isLNatKind(ok(X)) → ok(isLNatKind(X))
isPLNatKind(ok(X)) → ok(isPLNatKind(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))