/export/starexec/sandbox2/solver/bin/starexec_run_rcdcRelativeAlsoLower /export/starexec/sandbox2/benchmark/theBenchmark.xml /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- KILLED proof of /export/starexec/sandbox2/benchmark/theBenchmark.xml # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(1, INF). (0) DCpxTrs (1) DerivationalComplexityToRuntimeComplexityProof [BOTH BOUNDS(ID, ID), 0 ms] (2) CpxRelTRS (3) SInnermostTerminationProof [BOTH CONCRETE BOUNDS(ID, ID), 202 ms] (4) CpxRelTRS (5) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] (6) CpxRelTRS (7) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (8) typed CpxTrs (9) OrderProof [LOWER BOUND(ID), 0 ms] (10) typed CpxTrs (11) RewriteLemmaProof [LOWER BOUND(ID), 13.7 s] (12) BOUNDS(1, INF) (13) RelTrsToDecreasingLoopProblemProof [LOWER BOUND(ID), 0 ms] (14) TRS for Loop Detection (15) RelTrsToTrsProof [UPPER BOUND(ID), 0 ms] (16) CpxTRS (17) NonCtorToCtorProof [UPPER BOUND(ID), 0 ms] (18) CpxRelTRS (19) RelTrsToWeightedTrsProof [BOTH BOUNDS(ID, ID), 0 ms] (20) CpxWeightedTrs (21) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (22) CpxTypedWeightedTrs (23) CompletionProof [UPPER BOUND(ID), 0 ms] (24) CpxTypedWeightedCompleteTrs (25) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 2 ms] (26) CpxRNTS (27) CompletionProof [UPPER BOUND(ID), 0 ms] (28) CpxTypedWeightedCompleteTrs (29) NarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (30) CpxTypedWeightedCompleteTrs (31) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 0 ms] (32) CpxRNTS (33) SimplificationProof [BOTH BOUNDS(ID, ID), 0 ms] (34) CpxRNTS (35) CpxTrsToCdtProof [UPPER BOUND(ID), 0 ms] (36) CdtProblem (37) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (38) CdtProblem (39) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (40) CdtProblem (41) CdtGraphSplitRhsProof [BOTH BOUNDS(ID, ID), 0 ms] (42) CdtProblem (43) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (44) CdtProblem (45) CdtUsableRulesProof [BOTH BOUNDS(ID, ID), 0 ms] (46) CdtProblem (47) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 16 ms] (48) CdtProblem (49) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 9 ms] (50) CdtProblem (51) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (52) CdtProblem (53) CdtGraphSplitRhsProof [BOTH BOUNDS(ID, ID), 0 ms] (54) CdtProblem (55) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (56) CdtProblem (57) CdtGraphSplitRhsProof [BOTH BOUNDS(ID, ID), 0 ms] (58) CdtProblem (59) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (60) CdtProblem (61) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (62) CdtProblem (63) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 27 ms] (64) CdtProblem (65) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (66) CdtProblem (67) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 23 ms] (68) CdtProblem (69) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 30 ms] (70) CdtProblem (71) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (72) CdtProblem (73) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (74) CdtProblem (75) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (76) CdtProblem (77) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (78) CdtProblem (79) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (80) CdtProblem (81) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (82) CdtProblem (83) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (84) CdtProblem (85) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (86) CdtProblem (87) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (88) CdtProblem (89) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (90) CdtProblem (91) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (92) CdtProblem (93) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (94) CdtProblem (95) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (96) CdtProblem (97) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 4 ms] (98) CdtProblem (99) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (100) CdtProblem (101) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 8 ms] (102) CdtProblem (103) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (104) CdtProblem (105) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (106) CdtProblem (107) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (108) CdtProblem (109) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (110) CdtProblem (111) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (112) CdtProblem (113) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 2 ms] (114) CdtProblem (115) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 3 ms] (116) CdtProblem (117) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (118) CdtProblem (119) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (120) CdtProblem (121) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (122) CdtProblem (123) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (124) CdtProblem (125) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (126) CdtProblem (127) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (128) CdtProblem (129) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (130) CdtProblem (131) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (132) CdtProblem (133) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (134) CdtProblem (135) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (136) CdtProblem (137) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (138) CdtProblem (139) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 2 ms] (140) CdtProblem (141) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (142) CdtProblem (143) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (144) CdtProblem (145) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (146) CdtProblem (147) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (148) CdtProblem (149) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (150) CdtProblem (151) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (152) CdtProblem (153) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (154) CdtProblem (155) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (156) CdtProblem (157) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (158) CdtProblem (159) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (160) CdtProblem (161) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (162) CdtProblem (163) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (164) CdtProblem (165) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (166) CdtProblem (167) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (168) CdtProblem (169) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (170) CdtProblem (171) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (172) CdtProblem (173) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (174) CdtProblem (175) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (176) CdtProblem (177) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (178) CdtProblem (179) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 0 ms] (180) CdtProblem (181) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 0 ms] (182) CdtProblem (183) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 82 ms] (184) CdtProblem (185) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 537 ms] (186) CdtProblem (187) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 1376 ms] (188) CdtProblem ---------------------------------------- (0) Obligation: The Derivational Complexity (innermost) of the given DCpxTrs could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) S is empty. Rewrite Strategy: INNERMOST ---------------------------------------- (1) DerivationalComplexityToRuntimeComplexityProof (BOTH BOUNDS(ID, ID)) The following rules have been added to S to convert the given derivational complexity problem to a runtime complexity problem: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ---------------------------------------- (2) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) The (relative) TRS S consists of the following rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast Rewrite Strategy: INNERMOST ---------------------------------------- (3) SInnermostTerminationProof (BOTH CONCRETE BOUNDS(ID, ID)) proved innermost termination of relative rules ---------------------------------------- (4) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) The (relative) TRS S consists of the following rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast Rewrite Strategy: INNERMOST ---------------------------------------- (5) RenamingProof (BOTH BOUNDS(ID, ID)) Renamed function symbols to avoid clashes with predefined symbol. ---------------------------------------- (6) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) The (relative) TRS S consists of the following rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast Rewrite Strategy: INNERMOST ---------------------------------------- (7) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (8) Obligation: Innermost TRS: Rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast Types: ap :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap map :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap if :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap isEmpty :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap true :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap null :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap cons :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap last :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap if2 :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap dropLast :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encArg :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap cons_ap :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_ap :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_map :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_if :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_isEmpty :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_true :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_null :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_cons :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_last :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_if2 :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_dropLast :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap hole_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap1_0 :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0 :: Nat -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap ---------------------------------------- (9) OrderProof (LOWER BOUND(ID)) Heuristically decided to analyse the following defined symbols: ap, encArg They will be analysed ascendingly in the following order: ap < encArg ---------------------------------------- (10) Obligation: Innermost TRS: Rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast Types: ap :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap map :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap if :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap isEmpty :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap true :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap null :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap cons :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap last :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap if2 :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap dropLast :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encArg :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap cons_ap :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_ap :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_map :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_if :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_isEmpty :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_true :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_null :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_cons :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_last :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_if2 :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap encode_dropLast :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap hole_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap1_0 :: map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0 :: Nat -> map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap Generator Equations: gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(0) <=> map gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(+(x, 1)) <=> cons_ap(map, gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(x)) The following defined symbols remain to be analysed: ap, encArg They will be analysed ascendingly in the following order: ap < encArg ---------------------------------------- (11) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: encArg(gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(n9700_0)) -> *3_0, rt in Omega(0) Induction Base: encArg(gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(0)) Induction Step: encArg(gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(+(n9700_0, 1))) ->_R^Omega(0) ap(encArg(map), encArg(gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(n9700_0))) ->_R^Omega(0) ap(map, encArg(gen_map:if:isEmpty:true:null:cons:last:if2:dropLast:cons_ap2_0(n9700_0))) ->_IH ap(map, *3_0) We have rt in Omega(1) and sz in O(n). Thus, we have irc_R in Omega(n^0). ---------------------------------------- (12) BOUNDS(1, INF) ---------------------------------------- (13) RelTrsToDecreasingLoopProblemProof (LOWER BOUND(ID)) Transformed a relative TRS into a decreasing-loop problem. ---------------------------------------- (14) Obligation: Analyzing the following TRS for decreasing loops: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) The (relative) TRS S consists of the following rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast Rewrite Strategy: INNERMOST ---------------------------------------- (15) RelTrsToTrsProof (UPPER BOUND(ID)) transformed relative TRS to TRS ---------------------------------------- (16) Obligation: The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(ap(ap(if, true), f), xs) -> null ap(ap(ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, x), xs)) -> null ap(last, ap(ap(cons, x), null)) -> x ap(last, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) ap(dropLast, ap(ap(cons, x), null)) -> null ap(dropLast, ap(ap(cons, x), ap(ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast S is empty. Rewrite Strategy: INNERMOST ---------------------------------------- (17) NonCtorToCtorProof (UPPER BOUND(ID)) transformed non-ctor to ctor-system ---------------------------------------- (18) Obligation: The Runtime Complexity (innermost) of the given CpxRelTRS could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(isEmpty, null) -> true ap(c_ap(c_ap(if, true), f), xs) -> null ap(last, c_ap(c_ap(cons, x), null)) -> x ap(c_ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) ap(isEmpty, c_ap(c_ap(cons, x), xs)) -> null ap(dropLast, c_ap(c_ap(cons, x), null)) -> null ap(c_ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) The (relative) TRS S consists of the following rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ap(x0, x1) -> c_ap(x0, x1) Rewrite Strategy: INNERMOST ---------------------------------------- (19) RelTrsToWeightedTrsProof (BOTH BOUNDS(ID, ID)) Transformed relative TRS to weighted TRS ---------------------------------------- (20) Obligation: The Runtime Complexity (innermost) of the given CpxWeightedTrs could be proven to be BOUNDS(1, INF). The TRS R consists of the following rules: ap(isEmpty, null) -> true [1] ap(c_ap(c_ap(if, true), f), xs) -> null [1] ap(last, c_ap(c_ap(cons, x), null)) -> x [1] ap(c_ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) [1] ap(isEmpty, c_ap(c_ap(cons, x), xs)) -> null [1] ap(dropLast, c_ap(c_ap(cons, x), null)) -> null [1] ap(c_ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) [1] ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) [1] encArg(map) -> map [0] encArg(if) -> if [0] encArg(isEmpty) -> isEmpty [0] encArg(true) -> true [0] encArg(null) -> null [0] encArg(cons) -> cons [0] encArg(last) -> last [0] encArg(if2) -> if2 [0] encArg(dropLast) -> dropLast [0] encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) [0] encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) [0] encode_map -> map [0] encode_if -> if [0] encode_isEmpty -> isEmpty [0] encode_true -> true [0] encode_null -> null [0] encode_cons -> cons [0] encode_last -> last [0] encode_if2 -> if2 [0] encode_dropLast -> dropLast [0] ap(x0, x1) -> c_ap(x0, x1) [0] Rewrite Strategy: INNERMOST ---------------------------------------- (21) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (22) Obligation: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: ap(isEmpty, null) -> true [1] ap(c_ap(c_ap(if, true), f), xs) -> null [1] ap(last, c_ap(c_ap(cons, x), null)) -> x [1] ap(c_ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) [1] ap(isEmpty, c_ap(c_ap(cons, x), xs)) -> null [1] ap(dropLast, c_ap(c_ap(cons, x), null)) -> null [1] ap(c_ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) [1] ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) [1] encArg(map) -> map [0] encArg(if) -> if [0] encArg(isEmpty) -> isEmpty [0] encArg(true) -> true [0] encArg(null) -> null [0] encArg(cons) -> cons [0] encArg(last) -> last [0] encArg(if2) -> if2 [0] encArg(dropLast) -> dropLast [0] encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) [0] encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) [0] encode_map -> map [0] encode_if -> if [0] encode_isEmpty -> isEmpty [0] encode_true -> true [0] encode_null -> null [0] encode_cons -> cons [0] encode_last -> last [0] encode_if2 -> if2 [0] encode_dropLast -> dropLast [0] ap(x0, x1) -> c_ap(x0, x1) [0] The TRS has the following type information: ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap c_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap cons_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap Rewrite Strategy: INNERMOST ---------------------------------------- (23) CompletionProof (UPPER BOUND(ID)) The TRS is a completely defined constructor system, as every type has a constant constructor and the following rules were added: encArg(v0) -> null_encArg [0] encode_ap(v0, v1) -> null_encode_ap [0] encode_map -> null_encode_map [0] encode_if -> null_encode_if [0] encode_isEmpty -> null_encode_isEmpty [0] encode_true -> null_encode_true [0] encode_null -> null_encode_null [0] encode_cons -> null_encode_cons [0] encode_last -> null_encode_last [0] encode_if2 -> null_encode_if2 [0] encode_dropLast -> null_encode_dropLast [0] ap(v0, v1) -> null_ap [0] And the following fresh constants: null_encArg, null_encode_ap, null_encode_map, null_encode_if, null_encode_isEmpty, null_encode_true, null_encode_null, null_encode_cons, null_encode_last, null_encode_if2, null_encode_dropLast, null_ap ---------------------------------------- (24) Obligation: Runtime Complexity Weighted TRS where all functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: ap(isEmpty, null) -> true [1] ap(c_ap(c_ap(if, true), f), xs) -> null [1] ap(last, c_ap(c_ap(cons, x), null)) -> x [1] ap(c_ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) [1] ap(isEmpty, c_ap(c_ap(cons, x), xs)) -> null [1] ap(dropLast, c_ap(c_ap(cons, x), null)) -> null [1] ap(c_ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) [1] ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) [1] encArg(map) -> map [0] encArg(if) -> if [0] encArg(isEmpty) -> isEmpty [0] encArg(true) -> true [0] encArg(null) -> null [0] encArg(cons) -> cons [0] encArg(last) -> last [0] encArg(if2) -> if2 [0] encArg(dropLast) -> dropLast [0] encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) [0] encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) [0] encode_map -> map [0] encode_if -> if [0] encode_isEmpty -> isEmpty [0] encode_true -> true [0] encode_null -> null [0] encode_cons -> cons [0] encode_last -> last [0] encode_if2 -> if2 [0] encode_dropLast -> dropLast [0] ap(x0, x1) -> c_ap(x0, x1) [0] encArg(v0) -> null_encArg [0] encode_ap(v0, v1) -> null_encode_ap [0] encode_map -> null_encode_map [0] encode_if -> null_encode_if [0] encode_isEmpty -> null_encode_isEmpty [0] encode_true -> null_encode_true [0] encode_null -> null_encode_null [0] encode_cons -> null_encode_cons [0] encode_last -> null_encode_last [0] encode_if2 -> null_encode_if2 [0] encode_dropLast -> null_encode_dropLast [0] ap(v0, v1) -> null_ap [0] The TRS has the following type information: ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap c_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap cons_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap Rewrite Strategy: INNERMOST ---------------------------------------- (25) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: isEmpty => 4 null => 7 true => 8 if => 2 last => 5 cons => 0 if2 => 3 map => 6 dropLast => 1 null_encArg => 0 null_encode_ap => 0 null_encode_map => 0 null_encode_if => 0 null_encode_isEmpty => 0 null_encode_true => 0 null_encode_null => 0 null_encode_cons => 0 null_encode_last => 0 null_encode_if2 => 0 null_encode_dropLast => 0 null_ap => 0 ---------------------------------------- (26) Obligation: Complexity RNTS consisting of the following rules: ap(z, z') -{ 1 }-> x :|: x >= 0, z' = 1 + (1 + 0 + x) + 7, z = 5 ap(z, z') -{ 1 }-> ap(ap(ap(2, ap(4, xs)), f), xs) :|: f >= 0, xs >= 0, z = 1 + 6 + f, z' = xs ap(z, z') -{ 1 }-> ap(ap(6, f), ap(1, xs)) :|: z = 1 + 3 + f, f >= 0, xs >= 0, z' = xs ap(z, z') -{ 1 }-> ap(ap(0, x), ap(1, ap(ap(0, y), ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(ap(0, ap(f, ap(5, xs))), ap(ap(3, f), xs)) :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 7) + f, z' = xs ap(z, z') -{ 1 }-> ap(5, ap(ap(0, y), ys)) :|: ys >= 0, x >= 0, y >= 0, z = 5, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> 8 :|: z' = 7, z = 4 ap(z, z') -{ 1 }-> 7 :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 8) + f, z' = xs ap(z, z') -{ 1 }-> 7 :|: xs >= 0, x >= 0, z = 4, z' = 1 + (1 + 0 + x) + xs ap(z, z') -{ 1 }-> 7 :|: z = 1, x >= 0, z' = 1 + (1 + 0 + x) + 7 ap(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 ap(z, z') -{ 0 }-> 1 + x0 + x1 :|: z = x0, x0 >= 0, x1 >= 0, z' = x1 encArg(z) -{ 0 }-> ap(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> 8 :|: z = 8 encArg(z) -{ 0 }-> 7 :|: z = 7 encArg(z) -{ 0 }-> 6 :|: z = 6 encArg(z) -{ 0 }-> 5 :|: z = 5 encArg(z) -{ 0 }-> 4 :|: z = 4 encArg(z) -{ 0 }-> 3 :|: z = 3 encArg(z) -{ 0 }-> 2 :|: z = 2 encArg(z) -{ 0 }-> 1 :|: z = 1 encArg(z) -{ 0 }-> 0 :|: z = 0 encArg(z) -{ 0 }-> 0 :|: v0 >= 0, z = v0 encode_ap(z, z') -{ 0 }-> ap(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, x_2 >= 0, z = x_1, z' = x_2 encode_ap(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 encode_cons -{ 0 }-> 0 :|: encode_dropLast -{ 0 }-> 1 :|: encode_dropLast -{ 0 }-> 0 :|: encode_if -{ 0 }-> 2 :|: encode_if -{ 0 }-> 0 :|: encode_if2 -{ 0 }-> 3 :|: encode_if2 -{ 0 }-> 0 :|: encode_isEmpty -{ 0 }-> 4 :|: encode_isEmpty -{ 0 }-> 0 :|: encode_last -{ 0 }-> 5 :|: encode_last -{ 0 }-> 0 :|: encode_map -{ 0 }-> 6 :|: encode_map -{ 0 }-> 0 :|: encode_null -{ 0 }-> 7 :|: encode_null -{ 0 }-> 0 :|: encode_true -{ 0 }-> 8 :|: encode_true -{ 0 }-> 0 :|: Only complete derivations are relevant for the runtime complexity. ---------------------------------------- (27) CompletionProof (UPPER BOUND(ID)) The transformation into a RNTS is sound, since: (a) The obligation is a constructor system where every type has a constant constructor, (b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols: none (c) The following functions are completely defined: encArg_1 encode_ap_2 encode_map encode_if encode_isEmpty encode_true encode_null encode_cons encode_last encode_if2 encode_dropLast ap_2 Due to the following rules being added: encArg(v0) -> null_encArg [0] encode_ap(v0, v1) -> null_encode_ap [0] encode_map -> null_encode_map [0] encode_if -> null_encode_if [0] encode_isEmpty -> null_encode_isEmpty [0] encode_true -> null_encode_true [0] encode_null -> null_encode_null [0] encode_cons -> null_encode_cons [0] encode_last -> null_encode_last [0] encode_if2 -> null_encode_if2 [0] encode_dropLast -> null_encode_dropLast [0] ap(v0, v1) -> null_ap [0] And the following fresh constants: null_encArg, null_encode_ap, null_encode_map, null_encode_if, null_encode_isEmpty, null_encode_true, null_encode_null, null_encode_cons, null_encode_last, null_encode_if2, null_encode_dropLast, null_ap ---------------------------------------- (28) Obligation: Runtime Complexity Weighted TRS where critical functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: ap(isEmpty, null) -> true [1] ap(c_ap(c_ap(if, true), f), xs) -> null [1] ap(last, c_ap(c_ap(cons, x), null)) -> x [1] ap(c_ap(if2, f), xs) -> ap(ap(map, f), ap(dropLast, xs)) [1] ap(isEmpty, c_ap(c_ap(cons, x), xs)) -> null [1] ap(dropLast, c_ap(c_ap(cons, x), null)) -> null [1] ap(c_ap(map, f), xs) -> ap(ap(ap(if, ap(isEmpty, xs)), f), xs) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, ap(last, xs))), ap(ap(if2, f), xs)) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(ap(cons, x), ap(dropLast, ap(ap(cons, y), ys))) [1] ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(ap(cons, y), ys)) [1] encArg(map) -> map [0] encArg(if) -> if [0] encArg(isEmpty) -> isEmpty [0] encArg(true) -> true [0] encArg(null) -> null [0] encArg(cons) -> cons [0] encArg(last) -> last [0] encArg(if2) -> if2 [0] encArg(dropLast) -> dropLast [0] encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) [0] encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) [0] encode_map -> map [0] encode_if -> if [0] encode_isEmpty -> isEmpty [0] encode_true -> true [0] encode_null -> null [0] encode_cons -> cons [0] encode_last -> last [0] encode_if2 -> if2 [0] encode_dropLast -> dropLast [0] ap(x0, x1) -> c_ap(x0, x1) [0] encArg(v0) -> null_encArg [0] encode_ap(v0, v1) -> null_encode_ap [0] encode_map -> null_encode_map [0] encode_if -> null_encode_if [0] encode_isEmpty -> null_encode_isEmpty [0] encode_true -> null_encode_true [0] encode_null -> null_encode_null [0] encode_cons -> null_encode_cons [0] encode_last -> null_encode_last [0] encode_if2 -> null_encode_if2 [0] encode_dropLast -> null_encode_dropLast [0] ap(v0, v1) -> null_ap [0] The TRS has the following type information: ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap c_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap cons_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap Rewrite Strategy: INNERMOST ---------------------------------------- (29) NarrowingProof (BOTH BOUNDS(ID, ID)) Narrowed the inner basic terms of all right-hand sides by a single narrowing step. ---------------------------------------- (30) Obligation: Runtime Complexity Weighted TRS where critical functions are completely defined. The underlying TRS is: Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules: ap(isEmpty, null) -> true [1] ap(c_ap(c_ap(if, true), f), xs) -> null [1] ap(last, c_ap(c_ap(cons, x), null)) -> x [1] ap(c_ap(if2, f), c_ap(c_ap(cons, x'), null)) -> ap(c_ap(map, f), null) [2] ap(c_ap(if2, f), c_ap(c_ap(cons, x''), c_ap(c_ap(cons, y'), ys'))) -> ap(c_ap(map, f), ap(ap(cons, x''), ap(dropLast, ap(ap(cons, y'), ys')))) [2] ap(c_ap(if2, f), xs) -> ap(c_ap(map, f), c_ap(dropLast, xs)) [1] ap(c_ap(if2, f), xs) -> ap(c_ap(map, f), null_ap) [1] ap(c_ap(if2, f), c_ap(c_ap(cons, x2), null)) -> ap(null_ap, null) [2] ap(c_ap(if2, f), c_ap(c_ap(cons, x3), c_ap(c_ap(cons, y''), ys''))) -> ap(null_ap, ap(ap(cons, x3), ap(dropLast, ap(ap(cons, y''), ys'')))) [2] ap(c_ap(if2, f), xs) -> ap(null_ap, c_ap(dropLast, xs)) [1] ap(c_ap(if2, f), xs) -> ap(null_ap, null_ap) [1] ap(isEmpty, c_ap(c_ap(cons, x), xs)) -> null [1] ap(dropLast, c_ap(c_ap(cons, x), null)) -> null [1] ap(c_ap(map, f), null) -> ap(ap(ap(if, true), f), null) [2] ap(c_ap(map, f), c_ap(c_ap(cons, x4), xs')) -> ap(ap(ap(if, null), f), c_ap(c_ap(cons, x4), xs')) [2] ap(c_ap(map, f), xs) -> ap(ap(ap(if, c_ap(isEmpty, xs)), f), xs) [1] ap(c_ap(map, f), xs) -> ap(ap(ap(if, null_ap), f), xs) [1] ap(c_ap(c_ap(if, null), f), c_ap(c_ap(cons, x5), null)) -> ap(ap(cons, ap(f, x5)), ap(c_ap(if2, f), c_ap(c_ap(cons, x5), null))) [2] ap(c_ap(c_ap(if, null), f), c_ap(c_ap(cons, x5), null)) -> ap(ap(cons, ap(f, x5)), ap(null_ap, c_ap(c_ap(cons, x5), null))) [2] ap(c_ap(c_ap(if, null), f), c_ap(c_ap(cons, x6), c_ap(c_ap(cons, y1), ys1))) -> ap(ap(cons, ap(f, ap(last, ap(ap(cons, y1), ys1)))), ap(c_ap(if2, f), c_ap(c_ap(cons, x6), c_ap(c_ap(cons, y1), ys1)))) [2] ap(c_ap(c_ap(if, null), f), c_ap(c_ap(cons, x6), c_ap(c_ap(cons, y1), ys1))) -> ap(ap(cons, ap(f, ap(last, ap(ap(cons, y1), ys1)))), ap(null_ap, c_ap(c_ap(cons, x6), c_ap(c_ap(cons, y1), ys1)))) [2] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, c_ap(last, xs))), ap(c_ap(if2, f), xs)) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, c_ap(last, xs))), ap(null_ap, xs)) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, null_ap)), ap(c_ap(if2, f), xs)) [1] ap(c_ap(c_ap(if, null), f), xs) -> ap(ap(cons, ap(f, null_ap)), ap(null_ap, xs)) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(c_ap(cons, x), ap(dropLast, ap(c_ap(cons, y), ys))) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(c_ap(cons, x), ap(dropLast, ap(null_ap, ys))) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(null_ap, ap(dropLast, ap(c_ap(cons, y), ys))) [1] ap(dropLast, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(null_ap, ap(dropLast, ap(null_ap, ys))) [1] ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(c_ap(cons, y), ys)) [1] ap(last, c_ap(c_ap(cons, x), c_ap(c_ap(cons, y), ys))) -> ap(last, ap(null_ap, ys)) [1] encArg(map) -> map [0] encArg(if) -> if [0] encArg(isEmpty) -> isEmpty [0] encArg(true) -> true [0] encArg(null) -> null [0] encArg(cons) -> cons [0] encArg(last) -> last [0] encArg(if2) -> if2 [0] encArg(dropLast) -> dropLast [0] encArg(cons_ap(x_1, x_2)) -> ap(encArg(x_1), encArg(x_2)) [0] encode_ap(x_1, x_2) -> ap(encArg(x_1), encArg(x_2)) [0] encode_map -> map [0] encode_if -> if [0] encode_isEmpty -> isEmpty [0] encode_true -> true [0] encode_null -> null [0] encode_cons -> cons [0] encode_last -> last [0] encode_if2 -> if2 [0] encode_dropLast -> dropLast [0] ap(x0, x1) -> c_ap(x0, x1) [0] encArg(v0) -> null_encArg [0] encode_ap(v0, v1) -> null_encode_ap [0] encode_map -> null_encode_map [0] encode_if -> null_encode_if [0] encode_isEmpty -> null_encode_isEmpty [0] encode_true -> null_encode_true [0] encode_null -> null_encode_null [0] encode_cons -> null_encode_cons [0] encode_last -> null_encode_last [0] encode_if2 -> null_encode_if2 [0] encode_dropLast -> null_encode_dropLast [0] ap(v0, v1) -> null_ap [0] The TRS has the following type information: ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap c_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap cons_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap -> isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encArg :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_map :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_if :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_isEmpty :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_true :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_null :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_cons :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_last :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_if2 :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_encode_dropLast :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap null_ap :: isEmpty:null:true:if:c_ap:last:cons:if2:map:dropLast:cons_ap:null_encArg:null_encode_ap:null_encode_map:null_encode_if:null_encode_isEmpty:null_encode_true:null_encode_null:null_encode_cons:null_encode_last:null_encode_if2:null_encode_dropLast:null_ap Rewrite Strategy: INNERMOST ---------------------------------------- (31) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: isEmpty => 4 null => 7 true => 8 if => 2 last => 5 cons => 0 if2 => 3 map => 6 dropLast => 1 null_encArg => 0 null_encode_ap => 0 null_encode_map => 0 null_encode_if => 0 null_encode_isEmpty => 0 null_encode_true => 0 null_encode_null => 0 null_encode_cons => 0 null_encode_last => 0 null_encode_if2 => 0 null_encode_dropLast => 0 null_ap => 0 ---------------------------------------- (32) Obligation: Complexity RNTS consisting of the following rules: ap(z, z') -{ 1 }-> x :|: x >= 0, z' = 1 + (1 + 0 + x) + 7, z = 5 ap(z, z') -{ 2 }-> ap(ap(ap(2, 8), f), 7) :|: f >= 0, z = 1 + 6 + f, z' = 7 ap(z, z') -{ 2 }-> ap(ap(ap(2, 7), f), 1 + (1 + 0 + x4) + xs') :|: f >= 0, x4 >= 0, z' = 1 + (1 + 0 + x4) + xs', xs' >= 0, z = 1 + 6 + f ap(z, z') -{ 1 }-> ap(ap(ap(2, 0), f), xs) :|: f >= 0, xs >= 0, z = 1 + 6 + f, z' = xs ap(z, z') -{ 1 }-> ap(ap(ap(2, 1 + 4 + xs), f), xs) :|: f >= 0, xs >= 0, z = 1 + 6 + f, z' = xs ap(z, z') -{ 2 }-> ap(ap(0, ap(f, x5)), ap(0, 1 + (1 + 0 + x5) + 7)) :|: f >= 0, x5 >= 0, z' = 1 + (1 + 0 + x5) + 7, z = 1 + (1 + 2 + 7) + f ap(z, z') -{ 2 }-> ap(ap(0, ap(f, x5)), ap(1 + 3 + f, 1 + (1 + 0 + x5) + 7)) :|: f >= 0, x5 >= 0, z' = 1 + (1 + 0 + x5) + 7, z = 1 + (1 + 2 + 7) + f ap(z, z') -{ 2 }-> ap(ap(0, ap(f, ap(5, ap(ap(0, y1), ys1)))), ap(0, 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1))) :|: f >= 0, y1 >= 0, ys1 >= 0, x6 >= 0, z = 1 + (1 + 2 + 7) + f, z' = 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1) ap(z, z') -{ 2 }-> ap(ap(0, ap(f, ap(5, ap(ap(0, y1), ys1)))), ap(1 + 3 + f, 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1))) :|: f >= 0, y1 >= 0, ys1 >= 0, x6 >= 0, z = 1 + (1 + 2 + 7) + f, z' = 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1) ap(z, z') -{ 1 }-> ap(ap(0, ap(f, 0)), ap(0, xs)) :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 7) + f, z' = xs ap(z, z') -{ 1 }-> ap(ap(0, ap(f, 0)), ap(1 + 3 + f, xs)) :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 7) + f, z' = xs ap(z, z') -{ 1 }-> ap(ap(0, ap(f, 1 + 5 + xs)), ap(0, xs)) :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 7) + f, z' = xs ap(z, z') -{ 1 }-> ap(ap(0, ap(f, 1 + 5 + xs)), ap(1 + 3 + f, xs)) :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 7) + f, z' = xs ap(z, z') -{ 1 }-> ap(5, ap(0, ys)) :|: ys >= 0, x >= 0, y >= 0, z = 5, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(5, ap(1 + 0 + y, ys)) :|: ys >= 0, x >= 0, y >= 0, z = 5, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 2 }-> ap(0, ap(ap(0, x3), ap(1, ap(ap(0, y''), ys'')))) :|: z = 1 + 3 + f, f >= 0, z' = 1 + (1 + 0 + x3) + (1 + (1 + 0 + y'') + ys''), y'' >= 0, ys'' >= 0, x3 >= 0 ap(z, z') -{ 1 }-> ap(0, ap(1, ap(0, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(0, ap(1, ap(1 + 0 + y, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 2 }-> ap(0, 7) :|: z = 1 + 3 + f, f >= 0, z' = 1 + (1 + 0 + x2) + 7, x2 >= 0 ap(z, z') -{ 1 }-> ap(0, 0) :|: z = 1 + 3 + f, f >= 0, xs >= 0, z' = xs ap(z, z') -{ 1 }-> ap(0, 1 + 1 + xs) :|: z = 1 + 3 + f, f >= 0, xs >= 0, z' = xs ap(z, z') -{ 2 }-> ap(1 + 6 + f, ap(ap(0, x''), ap(1, ap(ap(0, y'), ys')))) :|: z = 1 + 3 + f, f >= 0, z' = 1 + (1 + 0 + x'') + (1 + (1 + 0 + y') + ys'), ys' >= 0, y' >= 0, x'' >= 0 ap(z, z') -{ 2 }-> ap(1 + 6 + f, 7) :|: z = 1 + 3 + f, f >= 0, x' >= 0, z' = 1 + (1 + 0 + x') + 7 ap(z, z') -{ 1 }-> ap(1 + 6 + f, 0) :|: z = 1 + 3 + f, f >= 0, xs >= 0, z' = xs ap(z, z') -{ 1 }-> ap(1 + 6 + f, 1 + 1 + xs) :|: z = 1 + 3 + f, f >= 0, xs >= 0, z' = xs ap(z, z') -{ 1 }-> ap(1 + 0 + x, ap(1, ap(0, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(1 + 0 + x, ap(1, ap(1 + 0 + y, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> 8 :|: z' = 7, z = 4 ap(z, z') -{ 1 }-> 7 :|: f >= 0, xs >= 0, z = 1 + (1 + 2 + 8) + f, z' = xs ap(z, z') -{ 1 }-> 7 :|: xs >= 0, x >= 0, z = 4, z' = 1 + (1 + 0 + x) + xs ap(z, z') -{ 1 }-> 7 :|: z = 1, x >= 0, z' = 1 + (1 + 0 + x) + 7 ap(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 ap(z, z') -{ 0 }-> 1 + x0 + x1 :|: z = x0, x0 >= 0, x1 >= 0, z' = x1 encArg(z) -{ 0 }-> ap(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> 8 :|: z = 8 encArg(z) -{ 0 }-> 7 :|: z = 7 encArg(z) -{ 0 }-> 6 :|: z = 6 encArg(z) -{ 0 }-> 5 :|: z = 5 encArg(z) -{ 0 }-> 4 :|: z = 4 encArg(z) -{ 0 }-> 3 :|: z = 3 encArg(z) -{ 0 }-> 2 :|: z = 2 encArg(z) -{ 0 }-> 1 :|: z = 1 encArg(z) -{ 0 }-> 0 :|: z = 0 encArg(z) -{ 0 }-> 0 :|: v0 >= 0, z = v0 encode_ap(z, z') -{ 0 }-> ap(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, x_2 >= 0, z = x_1, z' = x_2 encode_ap(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 encode_cons -{ 0 }-> 0 :|: encode_dropLast -{ 0 }-> 1 :|: encode_dropLast -{ 0 }-> 0 :|: encode_if -{ 0 }-> 2 :|: encode_if -{ 0 }-> 0 :|: encode_if2 -{ 0 }-> 3 :|: encode_if2 -{ 0 }-> 0 :|: encode_isEmpty -{ 0 }-> 4 :|: encode_isEmpty -{ 0 }-> 0 :|: encode_last -{ 0 }-> 5 :|: encode_last -{ 0 }-> 0 :|: encode_map -{ 0 }-> 6 :|: encode_map -{ 0 }-> 0 :|: encode_null -{ 0 }-> 7 :|: encode_null -{ 0 }-> 0 :|: encode_true -{ 0 }-> 8 :|: encode_true -{ 0 }-> 0 :|: ---------------------------------------- (33) SimplificationProof (BOTH BOUNDS(ID, ID)) Simplified the RNTS by moving equalities from the constraints into the right-hand sides. ---------------------------------------- (34) Obligation: Complexity RNTS consisting of the following rules: ap(z, z') -{ 2 }-> ap(ap(ap(2, 8), z - 7), 7) :|: z - 7 >= 0, z' = 7 ap(z, z') -{ 2 }-> ap(ap(ap(2, 7), z - 7), 1 + (1 + 0 + x4) + xs') :|: z - 7 >= 0, x4 >= 0, z' = 1 + (1 + 0 + x4) + xs', xs' >= 0 ap(z, z') -{ 1 }-> ap(ap(ap(2, 0), z - 7), z') :|: z - 7 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(ap(ap(2, 1 + 4 + z'), z - 7), z') :|: z - 7 >= 0, z' >= 0 ap(z, z') -{ 2 }-> ap(ap(0, ap(z - 11, ap(5, ap(ap(0, y1), ys1)))), ap(0, 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1))) :|: z - 11 >= 0, y1 >= 0, ys1 >= 0, x6 >= 0, z' = 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1) ap(z, z') -{ 2 }-> ap(ap(0, ap(z - 11, ap(5, ap(ap(0, y1), ys1)))), ap(1 + 3 + (z - 11), 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1))) :|: z - 11 >= 0, y1 >= 0, ys1 >= 0, x6 >= 0, z' = 1 + (1 + 0 + x6) + (1 + (1 + 0 + y1) + ys1) ap(z, z') -{ 1 }-> ap(ap(0, ap(z - 11, 0)), ap(0, z')) :|: z - 11 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(ap(0, ap(z - 11, 0)), ap(1 + 3 + (z - 11), z')) :|: z - 11 >= 0, z' >= 0 ap(z, z') -{ 2 }-> ap(ap(0, ap(z - 11, z' - 9)), ap(0, 1 + (1 + 0 + (z' - 9)) + 7)) :|: z - 11 >= 0, z' - 9 >= 0 ap(z, z') -{ 2 }-> ap(ap(0, ap(z - 11, z' - 9)), ap(1 + 3 + (z - 11), 1 + (1 + 0 + (z' - 9)) + 7)) :|: z - 11 >= 0, z' - 9 >= 0 ap(z, z') -{ 1 }-> ap(ap(0, ap(z - 11, 1 + 5 + z')), ap(0, z')) :|: z - 11 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(ap(0, ap(z - 11, 1 + 5 + z')), ap(1 + 3 + (z - 11), z')) :|: z - 11 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(5, ap(0, ys)) :|: ys >= 0, x >= 0, y >= 0, z = 5, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(5, ap(1 + 0 + y, ys)) :|: ys >= 0, x >= 0, y >= 0, z = 5, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 2 }-> ap(0, ap(ap(0, x3), ap(1, ap(ap(0, y''), ys'')))) :|: z - 4 >= 0, z' = 1 + (1 + 0 + x3) + (1 + (1 + 0 + y'') + ys''), y'' >= 0, ys'' >= 0, x3 >= 0 ap(z, z') -{ 1 }-> ap(0, ap(1, ap(0, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(0, ap(1, ap(1 + 0 + y, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 2 }-> ap(0, 7) :|: z - 4 >= 0, z' - 9 >= 0 ap(z, z') -{ 1 }-> ap(0, 0) :|: z - 4 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(0, 1 + 1 + z') :|: z - 4 >= 0, z' >= 0 ap(z, z') -{ 2 }-> ap(1 + 6 + (z - 4), ap(ap(0, x''), ap(1, ap(ap(0, y'), ys')))) :|: z - 4 >= 0, z' = 1 + (1 + 0 + x'') + (1 + (1 + 0 + y') + ys'), ys' >= 0, y' >= 0, x'' >= 0 ap(z, z') -{ 2 }-> ap(1 + 6 + (z - 4), 7) :|: z - 4 >= 0, z' - 9 >= 0 ap(z, z') -{ 1 }-> ap(1 + 6 + (z - 4), 0) :|: z - 4 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(1 + 6 + (z - 4), 1 + 1 + z') :|: z - 4 >= 0, z' >= 0 ap(z, z') -{ 1 }-> ap(1 + 0 + x, ap(1, ap(0, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> ap(1 + 0 + x, ap(1, ap(1 + 0 + y, ys))) :|: z = 1, ys >= 0, x >= 0, y >= 0, z' = 1 + (1 + 0 + x) + (1 + (1 + 0 + y) + ys) ap(z, z') -{ 1 }-> 8 :|: z' = 7, z = 4 ap(z, z') -{ 1 }-> 7 :|: z - 12 >= 0, z' >= 0 ap(z, z') -{ 1 }-> 7 :|: xs >= 0, x >= 0, z = 4, z' = 1 + (1 + 0 + x) + xs ap(z, z') -{ 1 }-> 7 :|: z = 1, z' - 9 >= 0 ap(z, z') -{ 0 }-> 0 :|: z >= 0, z' >= 0 ap(z, z') -{ 1 }-> z' - 9 :|: z' - 9 >= 0, z = 5 ap(z, z') -{ 0 }-> 1 + z + z' :|: z >= 0, z' >= 0 encArg(z) -{ 0 }-> ap(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> 8 :|: z = 8 encArg(z) -{ 0 }-> 7 :|: z = 7 encArg(z) -{ 0 }-> 6 :|: z = 6 encArg(z) -{ 0 }-> 5 :|: z = 5 encArg(z) -{ 0 }-> 4 :|: z = 4 encArg(z) -{ 0 }-> 3 :|: z = 3 encArg(z) -{ 0 }-> 2 :|: z = 2 encArg(z) -{ 0 }-> 1 :|: z = 1 encArg(z) -{ 0 }-> 0 :|: z = 0 encArg(z) -{ 0 }-> 0 :|: z >= 0 encode_ap(z, z') -{ 0 }-> ap(encArg(z), encArg(z')) :|: z >= 0, z' >= 0 encode_ap(z, z') -{ 0 }-> 0 :|: z >= 0, z' >= 0 encode_cons -{ 0 }-> 0 :|: encode_dropLast -{ 0 }-> 1 :|: encode_dropLast -{ 0 }-> 0 :|: encode_if -{ 0 }-> 2 :|: encode_if -{ 0 }-> 0 :|: encode_if2 -{ 0 }-> 3 :|: encode_if2 -{ 0 }-> 0 :|: encode_isEmpty -{ 0 }-> 4 :|: encode_isEmpty -{ 0 }-> 0 :|: encode_last -{ 0 }-> 5 :|: encode_last -{ 0 }-> 0 :|: encode_map -{ 0 }-> 6 :|: encode_map -{ 0 }-> 0 :|: encode_null -{ 0 }-> 7 :|: encode_null -{ 0 }-> 0 :|: encode_true -{ 0 }-> 8 :|: encode_true -{ 0 }-> 0 :|: ---------------------------------------- (35) CpxTrsToCdtProof (UPPER BOUND(ID)) Converted Cpx (relative) TRS to CDT ---------------------------------------- (36) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) encode_ap(z0, z1) -> ap(encArg(z0), encArg(z1)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: ENCARG(map) -> c ENCARG(if) -> c1 ENCARG(isEmpty) -> c2 ENCARG(true) -> c3 ENCARG(null) -> c4 ENCARG(cons) -> c5 ENCARG(last) -> c6 ENCARG(if2) -> c7 ENCARG(dropLast) -> c8 ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_AP(z0, z1) -> c10(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_MAP -> c11 ENCODE_IF -> c12 ENCODE_ISEMPTY -> c13 ENCODE_TRUE -> c14 ENCODE_NULL -> c15 ENCODE_CONS -> c16 ENCODE_LAST -> c17 ENCODE_IF2 -> c18 ENCODE_DROPLAST -> c19 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(ap(if, ap(isEmpty, z1)), z0), AP(if, ap(isEmpty, z1)), AP(isEmpty, z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(ap(ap(if, null), z0), z1) -> c22(AP(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)), AP(cons, ap(z0, ap(last, z1))), AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1), AP(if2, z0)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(map, z0), AP(dropLast, z1)) AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))), AP(cons, z0), AP(dropLast, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) S tuples: AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(ap(if, ap(isEmpty, z1)), z0), AP(if, ap(isEmpty, z1)), AP(isEmpty, z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(ap(ap(if, null), z0), z1) -> c22(AP(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)), AP(cons, ap(z0, ap(last, z1))), AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1), AP(if2, z0)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(map, z0), AP(dropLast, z1)) AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))), AP(cons, z0), AP(dropLast, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) K tuples:none Defined Rule Symbols: ap_2, encArg_1, encode_ap_2, encode_map, encode_if, encode_isEmpty, encode_true, encode_null, encode_cons, encode_last, encode_if2, encode_dropLast Defined Pair Symbols: ENCARG_1, ENCODE_AP_2, ENCODE_MAP, ENCODE_IF, ENCODE_ISEMPTY, ENCODE_TRUE, ENCODE_NULL, ENCODE_CONS, ENCODE_LAST, ENCODE_IF2, ENCODE_DROPLAST, AP_2 Compound Symbols: c, c1, c2, c3, c4, c5, c6, c7, c8, c9_3, c10_3, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20_4, c21, c22_6, c23_3, c24, c25, c26, c27_3, c28, c29_5 ---------------------------------------- (37) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 18 trailing nodes: ENCARG(null) -> c4 ENCODE_ISEMPTY -> c13 ENCARG(true) -> c3 ENCARG(isEmpty) -> c2 ENCARG(map) -> c ENCARG(cons) -> c5 ENCODE_TRUE -> c14 ENCODE_IF -> c12 ENCARG(dropLast) -> c8 ENCARG(if) -> c1 ENCODE_IF2 -> c18 ENCODE_CONS -> c16 ENCODE_NULL -> c15 ENCARG(if2) -> c7 ENCODE_DROPLAST -> c19 ENCODE_MAP -> c11 ENCARG(last) -> c6 ENCODE_LAST -> c17 ---------------------------------------- (38) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) encode_ap(z0, z1) -> ap(encArg(z0), encArg(z1)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_AP(z0, z1) -> c10(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(ap(if, ap(isEmpty, z1)), z0), AP(if, ap(isEmpty, z1)), AP(isEmpty, z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(ap(ap(if, null), z0), z1) -> c22(AP(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)), AP(cons, ap(z0, ap(last, z1))), AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1), AP(if2, z0)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(map, z0), AP(dropLast, z1)) AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))), AP(cons, z0), AP(dropLast, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) S tuples: AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(ap(if, ap(isEmpty, z1)), z0), AP(if, ap(isEmpty, z1)), AP(isEmpty, z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(ap(ap(if, null), z0), z1) -> c22(AP(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)), AP(cons, ap(z0, ap(last, z1))), AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1), AP(if2, z0)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(map, z0), AP(dropLast, z1)) AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))), AP(cons, z0), AP(dropLast, ap(ap(cons, z1), z2)), AP(ap(cons, z1), z2), AP(cons, z1)) K tuples:none Defined Rule Symbols: ap_2, encArg_1, encode_ap_2, encode_map, encode_if, encode_isEmpty, encode_true, encode_null, encode_cons, encode_last, encode_if2, encode_dropLast Defined Pair Symbols: ENCARG_1, ENCODE_AP_2, AP_2 Compound Symbols: c9_3, c10_3, c20_4, c21, c22_6, c23_3, c24, c25, c26, c27_3, c28, c29_5 ---------------------------------------- (39) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 12 trailing tuple parts ---------------------------------------- (40) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) encode_ap(z0, z1) -> ap(encArg(z0), encArg(z1)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_AP(z0, z1) -> c10(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) K tuples:none Defined Rule Symbols: ap_2, encArg_1, encode_ap_2, encode_map, encode_if, encode_isEmpty, encode_true, encode_null, encode_cons, encode_last, encode_if2, encode_dropLast Defined Pair Symbols: ENCARG_1, ENCODE_AP_2, AP_2 Compound Symbols: c9_3, c10_3, c21, c24, c25, c26, c28, c20_2, c22_3, c23_2, c27_1, c29_1 ---------------------------------------- (41) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (42) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) encode_ap(z0, z1) -> ap(encArg(z0), encArg(z1)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCODE_AP(z0, z1) -> c(ENCARG(z0)) ENCODE_AP(z0, z1) -> c(ENCARG(z1)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) K tuples:none Defined Rule Symbols: ap_2, encArg_1, encode_ap_2, encode_map, encode_if, encode_isEmpty, encode_true, encode_null, encode_cons, encode_last, encode_if2, encode_dropLast Defined Pair Symbols: ENCARG_1, AP_2, ENCODE_AP_2 Compound Symbols: c9_3, c21, c24, c25, c26, c28, c20_2, c22_3, c23_2, c27_1, c29_1, c_1 ---------------------------------------- (43) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 2 leading nodes: ENCODE_AP(z0, z1) -> c(ENCARG(z0)) ENCODE_AP(z0, z1) -> c(ENCARG(z1)) ---------------------------------------- (44) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) encode_ap(z0, z1) -> ap(encArg(z0), encArg(z1)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) K tuples:none Defined Rule Symbols: ap_2, encArg_1, encode_ap_2, encode_map, encode_if, encode_isEmpty, encode_true, encode_null, encode_cons, encode_last, encode_if2, encode_dropLast Defined Pair Symbols: ENCARG_1, AP_2, ENCODE_AP_2 Compound Symbols: c9_3, c21, c24, c25, c26, c28, c20_2, c22_3, c23_2, c27_1, c29_1, c_1 ---------------------------------------- (45) CdtUsableRulesProof (BOTH BOUNDS(ID, ID)) The following rules are not usable and were removed: encode_ap(z0, z1) -> ap(encArg(z0), encArg(z1)) encode_map -> map encode_if -> if encode_isEmpty -> isEmpty encode_true -> true encode_null -> null encode_cons -> cons encode_last -> last encode_if2 -> if2 encode_dropLast -> dropLast ---------------------------------------- (46) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: ENCARG_1, AP_2, ENCODE_AP_2 Compound Symbols: c9_3, c21, c24, c25, c26, c28, c20_2, c22_3, c23_2, c27_1, c29_1, c_1 ---------------------------------------- (47) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(z0, z1)) -> c9(AP(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) by ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0), ENCARG(map)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0), ENCARG(if)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0), ENCARG(isEmpty)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0), ENCARG(true)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0), ENCARG(null)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0), ENCARG(cons)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0), ENCARG(last)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0), ENCARG(if2)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0), ENCARG(dropLast)) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(map, x1)) -> c9(AP(map, encArg(x1)), ENCARG(map), ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(AP(if, encArg(x1)), ENCARG(if), ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(isEmpty), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(AP(true, encArg(x1)), ENCARG(true), ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(AP(null, encArg(x1)), ENCARG(null), ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(AP(cons, encArg(x1)), ENCARG(cons), ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(last), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(AP(if2, encArg(x1)), ENCARG(if2), ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(dropLast), ENCARG(x1)) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ---------------------------------------- (48) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0), ENCARG(map)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0), ENCARG(if)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0), ENCARG(isEmpty)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0), ENCARG(true)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0), ENCARG(null)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0), ENCARG(cons)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0), ENCARG(last)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0), ENCARG(if2)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0), ENCARG(dropLast)) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(map, x1)) -> c9(AP(map, encArg(x1)), ENCARG(map), ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(AP(if, encArg(x1)), ENCARG(if), ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(isEmpty), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(AP(true, encArg(x1)), ENCARG(true), ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(AP(null, encArg(x1)), ENCARG(null), ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(AP(cons, encArg(x1)), ENCARG(cons), ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(last), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(AP(if2, encArg(x1)), ENCARG(if2), ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(dropLast), ENCARG(x1)) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCODE_AP_2, ENCARG_1 Compound Symbols: c21, c24, c25, c26, c28, c20_2, c22_3, c23_2, c27_1, c29_1, c_1, c9_3 ---------------------------------------- (49) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 24 trailing tuple parts ---------------------------------------- (50) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCODE_AP_2, ENCARG_1 Compound Symbols: c21, c24, c25, c26, c28, c20_2, c22_3, c23_2, c27_1, c29_1, c_1, c9_3, c9_2, c9_1 ---------------------------------------- (51) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace AP(ap(map, z0), z1) -> c20(AP(ap(ap(if, ap(isEmpty, z1)), z0), z1), AP(isEmpty, z1)) by AP(ap(map, x0), null) -> c20(AP(ap(ap(if, true), x0), null), AP(isEmpty, null)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) ---------------------------------------- (52) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), null) -> c20(AP(ap(ap(if, true), x0), null), AP(isEmpty, null)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), null) -> c20(AP(ap(ap(if, true), x0), null), AP(isEmpty, null)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCODE_AP_2, ENCARG_1 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c23_2, c27_1, c29_1, c_1, c9_3, c9_2, c9_1, c20_2 ---------------------------------------- (53) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (54) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCODE_AP_2, ENCARG_1 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c23_2, c27_1, c29_1, c_1, c9_3, c9_2, c9_1, c20_2, c1_1 ---------------------------------------- (55) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace AP(ap(if2, z0), z1) -> c23(AP(ap(map, z0), ap(dropLast, z1)), AP(dropLast, z1)) by AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c23(AP(ap(map, x0), null), AP(dropLast, ap(ap(cons, z0), null))) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) ---------------------------------------- (56) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c23(AP(ap(map, x0), null), AP(dropLast, ap(ap(cons, z0), null))) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c23(AP(ap(map, x0), null), AP(dropLast, ap(ap(cons, z0), null))) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCODE_AP_2, ENCARG_1 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c_1, c9_3, c9_2, c9_1, c20_2, c1_1, c23_2 ---------------------------------------- (57) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (58) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCODE_AP_2, ENCARG_1 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c_1, c9_3, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1 ---------------------------------------- (59) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(z0, z1) -> c(AP(encArg(z0), encArg(z1))) by ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(map, x1) -> c(AP(map, encArg(x1))) ENCODE_AP(if, x1) -> c(AP(if, encArg(x1))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(true, x1) -> c(AP(true, encArg(x1))) ENCODE_AP(null, x1) -> c(AP(null, encArg(x1))) ENCODE_AP(cons, x1) -> c(AP(cons, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(if2, x1) -> c(AP(if2, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ---------------------------------------- (60) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(map, x1) -> c(AP(map, encArg(x1))) ENCODE_AP(if, x1) -> c(AP(if, encArg(x1))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(true, x1) -> c(AP(true, encArg(x1))) ENCODE_AP(null, x1) -> c(AP(null, encArg(x1))) ENCODE_AP(cons, x1) -> c(AP(cons, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(if2, x1) -> c(AP(if2, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_3, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1 ---------------------------------------- (61) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 6 trailing nodes: ENCODE_AP(if, x1) -> c(AP(if, encArg(x1))) ENCODE_AP(map, x1) -> c(AP(map, encArg(x1))) ENCODE_AP(true, x1) -> c(AP(true, encArg(x1))) ENCODE_AP(if2, x1) -> c(AP(if2, encArg(x1))) ENCODE_AP(null, x1) -> c(AP(null, encArg(x1))) ENCODE_AP(cons, x1) -> c(AP(cons, encArg(x1))) ---------------------------------------- (62) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_3, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1 ---------------------------------------- (63) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, cons_ap(z0, z1))) -> c9(AP(encArg(x0), ap(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_ap(z0, z1))) by ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(AP(map, ap(encArg(x1), encArg(x2))), ENCARG(map), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(AP(if, ap(encArg(x1), encArg(x2))), ENCARG(if), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(isEmpty), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(AP(true, ap(encArg(x1), encArg(x2))), ENCARG(true), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(AP(null, ap(encArg(x1), encArg(x2))), ENCARG(null), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(AP(cons, ap(encArg(x1), encArg(x2))), ENCARG(cons), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(last), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(AP(if2, ap(encArg(x1), encArg(x2))), ENCARG(if2), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(dropLast), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ---------------------------------------- (64) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(AP(map, ap(encArg(x1), encArg(x2))), ENCARG(map), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(AP(if, ap(encArg(x1), encArg(x2))), ENCARG(if), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(isEmpty), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(AP(true, ap(encArg(x1), encArg(x2))), ENCARG(true), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(AP(null, ap(encArg(x1), encArg(x2))), ENCARG(null), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(AP(cons, ap(encArg(x1), encArg(x2))), ENCARG(cons), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(last), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(AP(if2, ap(encArg(x1), encArg(x2))), ENCARG(if2), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(dropLast), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_3, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1 ---------------------------------------- (65) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 15 trailing tuple parts ---------------------------------------- (66) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_3, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1 ---------------------------------------- (67) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(cons_ap(z0, z1), x1)) -> c9(AP(ap(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_ap(z0, z1)), ENCARG(x1)) by ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1)), ENCARG(map)) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1)), ENCARG(if)) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1)), ENCARG(isEmpty)) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1)), ENCARG(true)) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1)), ENCARG(null)) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1)), ENCARG(cons)) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1)), ENCARG(last)) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1)), ENCARG(if2)) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1)), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(x0, x1), cons_ap(z0, z1))) -> c9(AP(ap(encArg(x0), encArg(x1)), ap(encArg(z0), encArg(z1))), ENCARG(cons_ap(x0, x1)), ENCARG(cons_ap(z0, z1))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(AP(ap(if, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(AP(ap(true, encArg(x1)), encArg(x2)), ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(AP(ap(null, encArg(x1)), encArg(x2)), ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(AP(ap(cons, encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ---------------------------------------- (68) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1)), ENCARG(map)) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1)), ENCARG(if)) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1)), ENCARG(isEmpty)) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1)), ENCARG(true)) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1)), ENCARG(null)) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1)), ENCARG(cons)) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1)), ENCARG(last)) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1)), ENCARG(if2)) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1)), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(AP(ap(if, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(AP(ap(true, encArg(x1)), encArg(x2)), ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(AP(ap(null, encArg(x1)), encArg(x2)), ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(AP(ap(cons, encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (69) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 13 trailing tuple parts ---------------------------------------- (70) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (71) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, map)) -> c9(AP(encArg(x0), map), ENCARG(x0)) by ENCARG(cons_ap(map, map)) -> c9(AP(map, map), ENCARG(map)) ENCARG(cons_ap(if, map)) -> c9(AP(if, map), ENCARG(if)) ENCARG(cons_ap(isEmpty, map)) -> c9(AP(isEmpty, map), ENCARG(isEmpty)) ENCARG(cons_ap(true, map)) -> c9(AP(true, map), ENCARG(true)) ENCARG(cons_ap(null, map)) -> c9(AP(null, map), ENCARG(null)) ENCARG(cons_ap(cons, map)) -> c9(AP(cons, map), ENCARG(cons)) ENCARG(cons_ap(last, map)) -> c9(AP(last, map), ENCARG(last)) ENCARG(cons_ap(if2, map)) -> c9(AP(if2, map), ENCARG(if2)) ENCARG(cons_ap(dropLast, map)) -> c9(AP(dropLast, map), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), map)) -> c9(AP(ap(encArg(z0), encArg(z1)), map), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (72) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(map, map)) -> c9(AP(map, map), ENCARG(map)) ENCARG(cons_ap(if, map)) -> c9(AP(if, map), ENCARG(if)) ENCARG(cons_ap(isEmpty, map)) -> c9(AP(isEmpty, map), ENCARG(isEmpty)) ENCARG(cons_ap(true, map)) -> c9(AP(true, map), ENCARG(true)) ENCARG(cons_ap(null, map)) -> c9(AP(null, map), ENCARG(null)) ENCARG(cons_ap(cons, map)) -> c9(AP(cons, map), ENCARG(cons)) ENCARG(cons_ap(last, map)) -> c9(AP(last, map), ENCARG(last)) ENCARG(cons_ap(if2, map)) -> c9(AP(if2, map), ENCARG(if2)) ENCARG(cons_ap(dropLast, map)) -> c9(AP(dropLast, map), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (73) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(dropLast, map)) -> c9(AP(dropLast, map), ENCARG(dropLast)) ENCARG(cons_ap(last, map)) -> c9(AP(last, map), ENCARG(last)) ENCARG(cons_ap(if, map)) -> c9(AP(if, map), ENCARG(if)) ENCARG(cons_ap(if2, map)) -> c9(AP(if2, map), ENCARG(if2)) ENCARG(cons_ap(true, map)) -> c9(AP(true, map), ENCARG(true)) ENCARG(cons_ap(cons, map)) -> c9(AP(cons, map), ENCARG(cons)) ENCARG(cons_ap(isEmpty, map)) -> c9(AP(isEmpty, map), ENCARG(isEmpty)) ENCARG(cons_ap(null, map)) -> c9(AP(null, map), ENCARG(null)) ENCARG(cons_ap(map, map)) -> c9(AP(map, map), ENCARG(map)) ---------------------------------------- (74) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (75) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, if)) -> c9(AP(encArg(x0), if), ENCARG(x0)) by ENCARG(cons_ap(map, if)) -> c9(AP(map, if), ENCARG(map)) ENCARG(cons_ap(if, if)) -> c9(AP(if, if), ENCARG(if)) ENCARG(cons_ap(isEmpty, if)) -> c9(AP(isEmpty, if), ENCARG(isEmpty)) ENCARG(cons_ap(true, if)) -> c9(AP(true, if), ENCARG(true)) ENCARG(cons_ap(null, if)) -> c9(AP(null, if), ENCARG(null)) ENCARG(cons_ap(cons, if)) -> c9(AP(cons, if), ENCARG(cons)) ENCARG(cons_ap(last, if)) -> c9(AP(last, if), ENCARG(last)) ENCARG(cons_ap(if2, if)) -> c9(AP(if2, if), ENCARG(if2)) ENCARG(cons_ap(dropLast, if)) -> c9(AP(dropLast, if), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), if)) -> c9(AP(ap(encArg(z0), encArg(z1)), if), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (76) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(map, if)) -> c9(AP(map, if), ENCARG(map)) ENCARG(cons_ap(if, if)) -> c9(AP(if, if), ENCARG(if)) ENCARG(cons_ap(isEmpty, if)) -> c9(AP(isEmpty, if), ENCARG(isEmpty)) ENCARG(cons_ap(true, if)) -> c9(AP(true, if), ENCARG(true)) ENCARG(cons_ap(null, if)) -> c9(AP(null, if), ENCARG(null)) ENCARG(cons_ap(cons, if)) -> c9(AP(cons, if), ENCARG(cons)) ENCARG(cons_ap(last, if)) -> c9(AP(last, if), ENCARG(last)) ENCARG(cons_ap(if2, if)) -> c9(AP(if2, if), ENCARG(if2)) ENCARG(cons_ap(dropLast, if)) -> c9(AP(dropLast, if), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (77) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(null, if)) -> c9(AP(null, if), ENCARG(null)) ENCARG(cons_ap(cons, if)) -> c9(AP(cons, if), ENCARG(cons)) ENCARG(cons_ap(if, if)) -> c9(AP(if, if), ENCARG(if)) ENCARG(cons_ap(isEmpty, if)) -> c9(AP(isEmpty, if), ENCARG(isEmpty)) ENCARG(cons_ap(if2, if)) -> c9(AP(if2, if), ENCARG(if2)) ENCARG(cons_ap(true, if)) -> c9(AP(true, if), ENCARG(true)) ENCARG(cons_ap(dropLast, if)) -> c9(AP(dropLast, if), ENCARG(dropLast)) ENCARG(cons_ap(last, if)) -> c9(AP(last, if), ENCARG(last)) ENCARG(cons_ap(map, if)) -> c9(AP(map, if), ENCARG(map)) ---------------------------------------- (78) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (79) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, isEmpty)) -> c9(AP(encArg(x0), isEmpty), ENCARG(x0)) by ENCARG(cons_ap(map, isEmpty)) -> c9(AP(map, isEmpty), ENCARG(map)) ENCARG(cons_ap(if, isEmpty)) -> c9(AP(if, isEmpty), ENCARG(if)) ENCARG(cons_ap(isEmpty, isEmpty)) -> c9(AP(isEmpty, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(true, isEmpty)) -> c9(AP(true, isEmpty), ENCARG(true)) ENCARG(cons_ap(null, isEmpty)) -> c9(AP(null, isEmpty), ENCARG(null)) ENCARG(cons_ap(cons, isEmpty)) -> c9(AP(cons, isEmpty), ENCARG(cons)) ENCARG(cons_ap(last, isEmpty)) -> c9(AP(last, isEmpty), ENCARG(last)) ENCARG(cons_ap(if2, isEmpty)) -> c9(AP(if2, isEmpty), ENCARG(if2)) ENCARG(cons_ap(dropLast, isEmpty)) -> c9(AP(dropLast, isEmpty), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), isEmpty)) -> c9(AP(ap(encArg(z0), encArg(z1)), isEmpty), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (80) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(map, isEmpty)) -> c9(AP(map, isEmpty), ENCARG(map)) ENCARG(cons_ap(if, isEmpty)) -> c9(AP(if, isEmpty), ENCARG(if)) ENCARG(cons_ap(isEmpty, isEmpty)) -> c9(AP(isEmpty, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(true, isEmpty)) -> c9(AP(true, isEmpty), ENCARG(true)) ENCARG(cons_ap(null, isEmpty)) -> c9(AP(null, isEmpty), ENCARG(null)) ENCARG(cons_ap(cons, isEmpty)) -> c9(AP(cons, isEmpty), ENCARG(cons)) ENCARG(cons_ap(last, isEmpty)) -> c9(AP(last, isEmpty), ENCARG(last)) ENCARG(cons_ap(if2, isEmpty)) -> c9(AP(if2, isEmpty), ENCARG(if2)) ENCARG(cons_ap(dropLast, isEmpty)) -> c9(AP(dropLast, isEmpty), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (81) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(null, isEmpty)) -> c9(AP(null, isEmpty), ENCARG(null)) ENCARG(cons_ap(if2, isEmpty)) -> c9(AP(if2, isEmpty), ENCARG(if2)) ENCARG(cons_ap(true, isEmpty)) -> c9(AP(true, isEmpty), ENCARG(true)) ENCARG(cons_ap(dropLast, isEmpty)) -> c9(AP(dropLast, isEmpty), ENCARG(dropLast)) ENCARG(cons_ap(if, isEmpty)) -> c9(AP(if, isEmpty), ENCARG(if)) ENCARG(cons_ap(map, isEmpty)) -> c9(AP(map, isEmpty), ENCARG(map)) ENCARG(cons_ap(last, isEmpty)) -> c9(AP(last, isEmpty), ENCARG(last)) ENCARG(cons_ap(cons, isEmpty)) -> c9(AP(cons, isEmpty), ENCARG(cons)) ENCARG(cons_ap(isEmpty, isEmpty)) -> c9(AP(isEmpty, isEmpty), ENCARG(isEmpty)) ---------------------------------------- (82) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (83) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, true)) -> c9(AP(encArg(x0), true), ENCARG(x0)) by ENCARG(cons_ap(map, true)) -> c9(AP(map, true), ENCARG(map)) ENCARG(cons_ap(if, true)) -> c9(AP(if, true), ENCARG(if)) ENCARG(cons_ap(isEmpty, true)) -> c9(AP(isEmpty, true), ENCARG(isEmpty)) ENCARG(cons_ap(true, true)) -> c9(AP(true, true), ENCARG(true)) ENCARG(cons_ap(null, true)) -> c9(AP(null, true), ENCARG(null)) ENCARG(cons_ap(cons, true)) -> c9(AP(cons, true), ENCARG(cons)) ENCARG(cons_ap(last, true)) -> c9(AP(last, true), ENCARG(last)) ENCARG(cons_ap(if2, true)) -> c9(AP(if2, true), ENCARG(if2)) ENCARG(cons_ap(dropLast, true)) -> c9(AP(dropLast, true), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), true)) -> c9(AP(ap(encArg(z0), encArg(z1)), true), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (84) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(map, true)) -> c9(AP(map, true), ENCARG(map)) ENCARG(cons_ap(if, true)) -> c9(AP(if, true), ENCARG(if)) ENCARG(cons_ap(isEmpty, true)) -> c9(AP(isEmpty, true), ENCARG(isEmpty)) ENCARG(cons_ap(true, true)) -> c9(AP(true, true), ENCARG(true)) ENCARG(cons_ap(null, true)) -> c9(AP(null, true), ENCARG(null)) ENCARG(cons_ap(cons, true)) -> c9(AP(cons, true), ENCARG(cons)) ENCARG(cons_ap(last, true)) -> c9(AP(last, true), ENCARG(last)) ENCARG(cons_ap(if2, true)) -> c9(AP(if2, true), ENCARG(if2)) ENCARG(cons_ap(dropLast, true)) -> c9(AP(dropLast, true), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (85) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(if2, true)) -> c9(AP(if2, true), ENCARG(if2)) ENCARG(cons_ap(true, true)) -> c9(AP(true, true), ENCARG(true)) ENCARG(cons_ap(isEmpty, true)) -> c9(AP(isEmpty, true), ENCARG(isEmpty)) ENCARG(cons_ap(dropLast, true)) -> c9(AP(dropLast, true), ENCARG(dropLast)) ENCARG(cons_ap(if, true)) -> c9(AP(if, true), ENCARG(if)) ENCARG(cons_ap(last, true)) -> c9(AP(last, true), ENCARG(last)) ENCARG(cons_ap(null, true)) -> c9(AP(null, true), ENCARG(null)) ENCARG(cons_ap(map, true)) -> c9(AP(map, true), ENCARG(map)) ENCARG(cons_ap(cons, true)) -> c9(AP(cons, true), ENCARG(cons)) ---------------------------------------- (86) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (87) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, null)) -> c9(AP(encArg(x0), null), ENCARG(x0)) by ENCARG(cons_ap(map, null)) -> c9(AP(map, null), ENCARG(map)) ENCARG(cons_ap(if, null)) -> c9(AP(if, null), ENCARG(if)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null), ENCARG(isEmpty)) ENCARG(cons_ap(true, null)) -> c9(AP(true, null), ENCARG(true)) ENCARG(cons_ap(null, null)) -> c9(AP(null, null), ENCARG(null)) ENCARG(cons_ap(cons, null)) -> c9(AP(cons, null), ENCARG(cons)) ENCARG(cons_ap(last, null)) -> c9(AP(last, null), ENCARG(last)) ENCARG(cons_ap(if2, null)) -> c9(AP(if2, null), ENCARG(if2)) ENCARG(cons_ap(dropLast, null)) -> c9(AP(dropLast, null), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), null)) -> c9(AP(ap(encArg(z0), encArg(z1)), null), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (88) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(map, null)) -> c9(AP(map, null), ENCARG(map)) ENCARG(cons_ap(if, null)) -> c9(AP(if, null), ENCARG(if)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null), ENCARG(isEmpty)) ENCARG(cons_ap(true, null)) -> c9(AP(true, null), ENCARG(true)) ENCARG(cons_ap(null, null)) -> c9(AP(null, null), ENCARG(null)) ENCARG(cons_ap(cons, null)) -> c9(AP(cons, null), ENCARG(cons)) ENCARG(cons_ap(last, null)) -> c9(AP(last, null), ENCARG(last)) ENCARG(cons_ap(if2, null)) -> c9(AP(if2, null), ENCARG(if2)) ENCARG(cons_ap(dropLast, null)) -> c9(AP(dropLast, null), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (89) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 8 trailing nodes: ENCARG(cons_ap(null, null)) -> c9(AP(null, null), ENCARG(null)) ENCARG(cons_ap(dropLast, null)) -> c9(AP(dropLast, null), ENCARG(dropLast)) ENCARG(cons_ap(last, null)) -> c9(AP(last, null), ENCARG(last)) ENCARG(cons_ap(if, null)) -> c9(AP(if, null), ENCARG(if)) ENCARG(cons_ap(map, null)) -> c9(AP(map, null), ENCARG(map)) ENCARG(cons_ap(cons, null)) -> c9(AP(cons, null), ENCARG(cons)) ENCARG(cons_ap(if2, null)) -> c9(AP(if2, null), ENCARG(if2)) ENCARG(cons_ap(true, null)) -> c9(AP(true, null), ENCARG(true)) ---------------------------------------- (90) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null), ENCARG(isEmpty)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (91) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing tuple parts ---------------------------------------- (92) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (93) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, cons)) -> c9(AP(encArg(x0), cons), ENCARG(x0)) by ENCARG(cons_ap(map, cons)) -> c9(AP(map, cons), ENCARG(map)) ENCARG(cons_ap(if, cons)) -> c9(AP(if, cons), ENCARG(if)) ENCARG(cons_ap(isEmpty, cons)) -> c9(AP(isEmpty, cons), ENCARG(isEmpty)) ENCARG(cons_ap(true, cons)) -> c9(AP(true, cons), ENCARG(true)) ENCARG(cons_ap(null, cons)) -> c9(AP(null, cons), ENCARG(null)) ENCARG(cons_ap(cons, cons)) -> c9(AP(cons, cons), ENCARG(cons)) ENCARG(cons_ap(last, cons)) -> c9(AP(last, cons), ENCARG(last)) ENCARG(cons_ap(if2, cons)) -> c9(AP(if2, cons), ENCARG(if2)) ENCARG(cons_ap(dropLast, cons)) -> c9(AP(dropLast, cons), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), cons)) -> c9(AP(ap(encArg(z0), encArg(z1)), cons), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (94) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(map, cons)) -> c9(AP(map, cons), ENCARG(map)) ENCARG(cons_ap(if, cons)) -> c9(AP(if, cons), ENCARG(if)) ENCARG(cons_ap(isEmpty, cons)) -> c9(AP(isEmpty, cons), ENCARG(isEmpty)) ENCARG(cons_ap(true, cons)) -> c9(AP(true, cons), ENCARG(true)) ENCARG(cons_ap(null, cons)) -> c9(AP(null, cons), ENCARG(null)) ENCARG(cons_ap(cons, cons)) -> c9(AP(cons, cons), ENCARG(cons)) ENCARG(cons_ap(last, cons)) -> c9(AP(last, cons), ENCARG(last)) ENCARG(cons_ap(if2, cons)) -> c9(AP(if2, cons), ENCARG(if2)) ENCARG(cons_ap(dropLast, cons)) -> c9(AP(dropLast, cons), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (95) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(last, cons)) -> c9(AP(last, cons), ENCARG(last)) ENCARG(cons_ap(null, cons)) -> c9(AP(null, cons), ENCARG(null)) ENCARG(cons_ap(map, cons)) -> c9(AP(map, cons), ENCARG(map)) ENCARG(cons_ap(cons, cons)) -> c9(AP(cons, cons), ENCARG(cons)) ENCARG(cons_ap(if, cons)) -> c9(AP(if, cons), ENCARG(if)) ENCARG(cons_ap(if2, cons)) -> c9(AP(if2, cons), ENCARG(if2)) ENCARG(cons_ap(true, cons)) -> c9(AP(true, cons), ENCARG(true)) ENCARG(cons_ap(isEmpty, cons)) -> c9(AP(isEmpty, cons), ENCARG(isEmpty)) ENCARG(cons_ap(dropLast, cons)) -> c9(AP(dropLast, cons), ENCARG(dropLast)) ---------------------------------------- (96) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (97) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, last)) -> c9(AP(encArg(x0), last), ENCARG(x0)) by ENCARG(cons_ap(map, last)) -> c9(AP(map, last), ENCARG(map)) ENCARG(cons_ap(if, last)) -> c9(AP(if, last), ENCARG(if)) ENCARG(cons_ap(isEmpty, last)) -> c9(AP(isEmpty, last), ENCARG(isEmpty)) ENCARG(cons_ap(true, last)) -> c9(AP(true, last), ENCARG(true)) ENCARG(cons_ap(null, last)) -> c9(AP(null, last), ENCARG(null)) ENCARG(cons_ap(cons, last)) -> c9(AP(cons, last), ENCARG(cons)) ENCARG(cons_ap(last, last)) -> c9(AP(last, last), ENCARG(last)) ENCARG(cons_ap(if2, last)) -> c9(AP(if2, last), ENCARG(if2)) ENCARG(cons_ap(dropLast, last)) -> c9(AP(dropLast, last), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), last)) -> c9(AP(ap(encArg(z0), encArg(z1)), last), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (98) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(map, last)) -> c9(AP(map, last), ENCARG(map)) ENCARG(cons_ap(if, last)) -> c9(AP(if, last), ENCARG(if)) ENCARG(cons_ap(isEmpty, last)) -> c9(AP(isEmpty, last), ENCARG(isEmpty)) ENCARG(cons_ap(true, last)) -> c9(AP(true, last), ENCARG(true)) ENCARG(cons_ap(null, last)) -> c9(AP(null, last), ENCARG(null)) ENCARG(cons_ap(cons, last)) -> c9(AP(cons, last), ENCARG(cons)) ENCARG(cons_ap(last, last)) -> c9(AP(last, last), ENCARG(last)) ENCARG(cons_ap(if2, last)) -> c9(AP(if2, last), ENCARG(if2)) ENCARG(cons_ap(dropLast, last)) -> c9(AP(dropLast, last), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (99) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(last, last)) -> c9(AP(last, last), ENCARG(last)) ENCARG(cons_ap(cons, last)) -> c9(AP(cons, last), ENCARG(cons)) ENCARG(cons_ap(map, last)) -> c9(AP(map, last), ENCARG(map)) ENCARG(cons_ap(if, last)) -> c9(AP(if, last), ENCARG(if)) ENCARG(cons_ap(null, last)) -> c9(AP(null, last), ENCARG(null)) ENCARG(cons_ap(dropLast, last)) -> c9(AP(dropLast, last), ENCARG(dropLast)) ENCARG(cons_ap(if2, last)) -> c9(AP(if2, last), ENCARG(if2)) ENCARG(cons_ap(true, last)) -> c9(AP(true, last), ENCARG(true)) ENCARG(cons_ap(isEmpty, last)) -> c9(AP(isEmpty, last), ENCARG(isEmpty)) ---------------------------------------- (100) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (101) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, if2)) -> c9(AP(encArg(x0), if2), ENCARG(x0)) by ENCARG(cons_ap(map, if2)) -> c9(AP(map, if2), ENCARG(map)) ENCARG(cons_ap(if, if2)) -> c9(AP(if, if2), ENCARG(if)) ENCARG(cons_ap(isEmpty, if2)) -> c9(AP(isEmpty, if2), ENCARG(isEmpty)) ENCARG(cons_ap(true, if2)) -> c9(AP(true, if2), ENCARG(true)) ENCARG(cons_ap(null, if2)) -> c9(AP(null, if2), ENCARG(null)) ENCARG(cons_ap(cons, if2)) -> c9(AP(cons, if2), ENCARG(cons)) ENCARG(cons_ap(last, if2)) -> c9(AP(last, if2), ENCARG(last)) ENCARG(cons_ap(if2, if2)) -> c9(AP(if2, if2), ENCARG(if2)) ENCARG(cons_ap(dropLast, if2)) -> c9(AP(dropLast, if2), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), if2)) -> c9(AP(ap(encArg(z0), encArg(z1)), if2), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (102) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(map, if2)) -> c9(AP(map, if2), ENCARG(map)) ENCARG(cons_ap(if, if2)) -> c9(AP(if, if2), ENCARG(if)) ENCARG(cons_ap(isEmpty, if2)) -> c9(AP(isEmpty, if2), ENCARG(isEmpty)) ENCARG(cons_ap(true, if2)) -> c9(AP(true, if2), ENCARG(true)) ENCARG(cons_ap(null, if2)) -> c9(AP(null, if2), ENCARG(null)) ENCARG(cons_ap(cons, if2)) -> c9(AP(cons, if2), ENCARG(cons)) ENCARG(cons_ap(last, if2)) -> c9(AP(last, if2), ENCARG(last)) ENCARG(cons_ap(if2, if2)) -> c9(AP(if2, if2), ENCARG(if2)) ENCARG(cons_ap(dropLast, if2)) -> c9(AP(dropLast, if2), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (103) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(map, if2)) -> c9(AP(map, if2), ENCARG(map)) ENCARG(cons_ap(last, if2)) -> c9(AP(last, if2), ENCARG(last)) ENCARG(cons_ap(if, if2)) -> c9(AP(if, if2), ENCARG(if)) ENCARG(cons_ap(if2, if2)) -> c9(AP(if2, if2), ENCARG(if2)) ENCARG(cons_ap(true, if2)) -> c9(AP(true, if2), ENCARG(true)) ENCARG(cons_ap(cons, if2)) -> c9(AP(cons, if2), ENCARG(cons)) ENCARG(cons_ap(isEmpty, if2)) -> c9(AP(isEmpty, if2), ENCARG(isEmpty)) ENCARG(cons_ap(dropLast, if2)) -> c9(AP(dropLast, if2), ENCARG(dropLast)) ENCARG(cons_ap(null, if2)) -> c9(AP(null, if2), ENCARG(null)) ---------------------------------------- (104) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_2, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (105) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(x0, dropLast)) -> c9(AP(encArg(x0), dropLast), ENCARG(x0)) by ENCARG(cons_ap(map, dropLast)) -> c9(AP(map, dropLast), ENCARG(map)) ENCARG(cons_ap(if, dropLast)) -> c9(AP(if, dropLast), ENCARG(if)) ENCARG(cons_ap(isEmpty, dropLast)) -> c9(AP(isEmpty, dropLast), ENCARG(isEmpty)) ENCARG(cons_ap(true, dropLast)) -> c9(AP(true, dropLast), ENCARG(true)) ENCARG(cons_ap(null, dropLast)) -> c9(AP(null, dropLast), ENCARG(null)) ENCARG(cons_ap(cons, dropLast)) -> c9(AP(cons, dropLast), ENCARG(cons)) ENCARG(cons_ap(last, dropLast)) -> c9(AP(last, dropLast), ENCARG(last)) ENCARG(cons_ap(if2, dropLast)) -> c9(AP(if2, dropLast), ENCARG(if2)) ENCARG(cons_ap(dropLast, dropLast)) -> c9(AP(dropLast, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(cons_ap(z0, z1), dropLast)) -> c9(AP(ap(encArg(z0), encArg(z1)), dropLast), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (106) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(map, dropLast)) -> c9(AP(map, dropLast), ENCARG(map)) ENCARG(cons_ap(if, dropLast)) -> c9(AP(if, dropLast), ENCARG(if)) ENCARG(cons_ap(isEmpty, dropLast)) -> c9(AP(isEmpty, dropLast), ENCARG(isEmpty)) ENCARG(cons_ap(true, dropLast)) -> c9(AP(true, dropLast), ENCARG(true)) ENCARG(cons_ap(null, dropLast)) -> c9(AP(null, dropLast), ENCARG(null)) ENCARG(cons_ap(cons, dropLast)) -> c9(AP(cons, dropLast), ENCARG(cons)) ENCARG(cons_ap(last, dropLast)) -> c9(AP(last, dropLast), ENCARG(last)) ENCARG(cons_ap(if2, dropLast)) -> c9(AP(if2, dropLast), ENCARG(if2)) ENCARG(cons_ap(dropLast, dropLast)) -> c9(AP(dropLast, dropLast), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (107) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(map, dropLast)) -> c9(AP(map, dropLast), ENCARG(map)) ENCARG(cons_ap(dropLast, dropLast)) -> c9(AP(dropLast, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(last, dropLast)) -> c9(AP(last, dropLast), ENCARG(last)) ENCARG(cons_ap(isEmpty, dropLast)) -> c9(AP(isEmpty, dropLast), ENCARG(isEmpty)) ENCARG(cons_ap(if2, dropLast)) -> c9(AP(if2, dropLast), ENCARG(if2)) ENCARG(cons_ap(cons, dropLast)) -> c9(AP(cons, dropLast), ENCARG(cons)) ENCARG(cons_ap(true, dropLast)) -> c9(AP(true, dropLast), ENCARG(true)) ENCARG(cons_ap(if, dropLast)) -> c9(AP(if, dropLast), ENCARG(if)) ENCARG(cons_ap(null, dropLast)) -> c9(AP(null, dropLast), ENCARG(null)) ---------------------------------------- (108) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (109) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(isEmpty, x1)) -> c9(AP(isEmpty, encArg(x1)), ENCARG(x1)) by ENCARG(cons_ap(isEmpty, map)) -> c9(AP(isEmpty, map), ENCARG(map)) ENCARG(cons_ap(isEmpty, if)) -> c9(AP(isEmpty, if), ENCARG(if)) ENCARG(cons_ap(isEmpty, isEmpty)) -> c9(AP(isEmpty, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(isEmpty, true)) -> c9(AP(isEmpty, true), ENCARG(true)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null), ENCARG(null)) ENCARG(cons_ap(isEmpty, cons)) -> c9(AP(isEmpty, cons), ENCARG(cons)) ENCARG(cons_ap(isEmpty, last)) -> c9(AP(isEmpty, last), ENCARG(last)) ENCARG(cons_ap(isEmpty, if2)) -> c9(AP(isEmpty, if2), ENCARG(if2)) ENCARG(cons_ap(isEmpty, dropLast)) -> c9(AP(isEmpty, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(isEmpty, cons_ap(z0, z1))) -> c9(AP(isEmpty, ap(encArg(z0), encArg(z1))), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (110) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(isEmpty, map)) -> c9(AP(isEmpty, map), ENCARG(map)) ENCARG(cons_ap(isEmpty, if)) -> c9(AP(isEmpty, if), ENCARG(if)) ENCARG(cons_ap(isEmpty, isEmpty)) -> c9(AP(isEmpty, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(isEmpty, true)) -> c9(AP(isEmpty, true), ENCARG(true)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null), ENCARG(null)) ENCARG(cons_ap(isEmpty, cons)) -> c9(AP(isEmpty, cons), ENCARG(cons)) ENCARG(cons_ap(isEmpty, last)) -> c9(AP(isEmpty, last), ENCARG(last)) ENCARG(cons_ap(isEmpty, if2)) -> c9(AP(isEmpty, if2), ENCARG(if2)) ENCARG(cons_ap(isEmpty, dropLast)) -> c9(AP(isEmpty, dropLast), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (111) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 8 trailing nodes: ENCARG(cons_ap(isEmpty, cons)) -> c9(AP(isEmpty, cons), ENCARG(cons)) ENCARG(cons_ap(isEmpty, dropLast)) -> c9(AP(isEmpty, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(isEmpty, isEmpty)) -> c9(AP(isEmpty, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(isEmpty, if)) -> c9(AP(isEmpty, if), ENCARG(if)) ENCARG(cons_ap(isEmpty, last)) -> c9(AP(isEmpty, last), ENCARG(last)) ENCARG(cons_ap(isEmpty, map)) -> c9(AP(isEmpty, map), ENCARG(map)) ENCARG(cons_ap(isEmpty, if2)) -> c9(AP(isEmpty, if2), ENCARG(if2)) ENCARG(cons_ap(isEmpty, true)) -> c9(AP(isEmpty, true), ENCARG(true)) ---------------------------------------- (112) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null), ENCARG(null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (113) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing tuple parts ---------------------------------------- (114) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (115) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(last, x1)) -> c9(AP(last, encArg(x1)), ENCARG(x1)) by ENCARG(cons_ap(last, map)) -> c9(AP(last, map), ENCARG(map)) ENCARG(cons_ap(last, if)) -> c9(AP(last, if), ENCARG(if)) ENCARG(cons_ap(last, isEmpty)) -> c9(AP(last, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(last, true)) -> c9(AP(last, true), ENCARG(true)) ENCARG(cons_ap(last, null)) -> c9(AP(last, null), ENCARG(null)) ENCARG(cons_ap(last, cons)) -> c9(AP(last, cons), ENCARG(cons)) ENCARG(cons_ap(last, last)) -> c9(AP(last, last), ENCARG(last)) ENCARG(cons_ap(last, if2)) -> c9(AP(last, if2), ENCARG(if2)) ENCARG(cons_ap(last, dropLast)) -> c9(AP(last, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(last, cons_ap(z0, z1))) -> c9(AP(last, ap(encArg(z0), encArg(z1))), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (116) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(last, map)) -> c9(AP(last, map), ENCARG(map)) ENCARG(cons_ap(last, if)) -> c9(AP(last, if), ENCARG(if)) ENCARG(cons_ap(last, isEmpty)) -> c9(AP(last, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(last, true)) -> c9(AP(last, true), ENCARG(true)) ENCARG(cons_ap(last, null)) -> c9(AP(last, null), ENCARG(null)) ENCARG(cons_ap(last, cons)) -> c9(AP(last, cons), ENCARG(cons)) ENCARG(cons_ap(last, last)) -> c9(AP(last, last), ENCARG(last)) ENCARG(cons_ap(last, if2)) -> c9(AP(last, if2), ENCARG(if2)) ENCARG(cons_ap(last, dropLast)) -> c9(AP(last, dropLast), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (117) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(last, isEmpty)) -> c9(AP(last, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(last, cons)) -> c9(AP(last, cons), ENCARG(cons)) ENCARG(cons_ap(last, dropLast)) -> c9(AP(last, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(last, null)) -> c9(AP(last, null), ENCARG(null)) ENCARG(cons_ap(last, if)) -> c9(AP(last, if), ENCARG(if)) ENCARG(cons_ap(last, map)) -> c9(AP(last, map), ENCARG(map)) ENCARG(cons_ap(last, last)) -> c9(AP(last, last), ENCARG(last)) ENCARG(cons_ap(last, if2)) -> c9(AP(last, if2), ENCARG(if2)) ENCARG(cons_ap(last, true)) -> c9(AP(last, true), ENCARG(true)) ---------------------------------------- (118) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c9_2, c20_2, c1_1, c23_2, c2_1, c_1, c9_3 ---------------------------------------- (119) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_ap(dropLast, x1)) -> c9(AP(dropLast, encArg(x1)), ENCARG(x1)) by ENCARG(cons_ap(dropLast, map)) -> c9(AP(dropLast, map), ENCARG(map)) ENCARG(cons_ap(dropLast, if)) -> c9(AP(dropLast, if), ENCARG(if)) ENCARG(cons_ap(dropLast, isEmpty)) -> c9(AP(dropLast, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(dropLast, true)) -> c9(AP(dropLast, true), ENCARG(true)) ENCARG(cons_ap(dropLast, null)) -> c9(AP(dropLast, null), ENCARG(null)) ENCARG(cons_ap(dropLast, cons)) -> c9(AP(dropLast, cons), ENCARG(cons)) ENCARG(cons_ap(dropLast, last)) -> c9(AP(dropLast, last), ENCARG(last)) ENCARG(cons_ap(dropLast, if2)) -> c9(AP(dropLast, if2), ENCARG(if2)) ENCARG(cons_ap(dropLast, dropLast)) -> c9(AP(dropLast, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(dropLast, cons_ap(z0, z1))) -> c9(AP(dropLast, ap(encArg(z0), encArg(z1))), ENCARG(cons_ap(z0, z1))) ---------------------------------------- (120) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCARG(cons_ap(dropLast, map)) -> c9(AP(dropLast, map), ENCARG(map)) ENCARG(cons_ap(dropLast, if)) -> c9(AP(dropLast, if), ENCARG(if)) ENCARG(cons_ap(dropLast, isEmpty)) -> c9(AP(dropLast, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(dropLast, true)) -> c9(AP(dropLast, true), ENCARG(true)) ENCARG(cons_ap(dropLast, null)) -> c9(AP(dropLast, null), ENCARG(null)) ENCARG(cons_ap(dropLast, cons)) -> c9(AP(dropLast, cons), ENCARG(cons)) ENCARG(cons_ap(dropLast, last)) -> c9(AP(dropLast, last), ENCARG(last)) ENCARG(cons_ap(dropLast, if2)) -> c9(AP(dropLast, if2), ENCARG(if2)) ENCARG(cons_ap(dropLast, dropLast)) -> c9(AP(dropLast, dropLast), ENCARG(dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (121) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCARG(cons_ap(dropLast, last)) -> c9(AP(dropLast, last), ENCARG(last)) ENCARG(cons_ap(dropLast, null)) -> c9(AP(dropLast, null), ENCARG(null)) ENCARG(cons_ap(dropLast, isEmpty)) -> c9(AP(dropLast, isEmpty), ENCARG(isEmpty)) ENCARG(cons_ap(dropLast, cons)) -> c9(AP(dropLast, cons), ENCARG(cons)) ENCARG(cons_ap(dropLast, if)) -> c9(AP(dropLast, if), ENCARG(if)) ENCARG(cons_ap(dropLast, map)) -> c9(AP(dropLast, map), ENCARG(map)) ENCARG(cons_ap(dropLast, dropLast)) -> c9(AP(dropLast, dropLast), ENCARG(dropLast)) ENCARG(cons_ap(dropLast, if2)) -> c9(AP(dropLast, if2), ENCARG(if2)) ENCARG(cons_ap(dropLast, true)) -> c9(AP(dropLast, true), ENCARG(true)) ---------------------------------------- (122) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (123) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, map) -> c(AP(encArg(x0), map)) by ENCODE_AP(map, map) -> c(AP(map, map)) ENCODE_AP(if, map) -> c(AP(if, map)) ENCODE_AP(isEmpty, map) -> c(AP(isEmpty, map)) ENCODE_AP(true, map) -> c(AP(true, map)) ENCODE_AP(null, map) -> c(AP(null, map)) ENCODE_AP(cons, map) -> c(AP(cons, map)) ENCODE_AP(last, map) -> c(AP(last, map)) ENCODE_AP(if2, map) -> c(AP(if2, map)) ENCODE_AP(dropLast, map) -> c(AP(dropLast, map)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ---------------------------------------- (124) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(map, map) -> c(AP(map, map)) ENCODE_AP(if, map) -> c(AP(if, map)) ENCODE_AP(isEmpty, map) -> c(AP(isEmpty, map)) ENCODE_AP(true, map) -> c(AP(true, map)) ENCODE_AP(null, map) -> c(AP(null, map)) ENCODE_AP(cons, map) -> c(AP(cons, map)) ENCODE_AP(last, map) -> c(AP(last, map)) ENCODE_AP(if2, map) -> c(AP(if2, map)) ENCODE_AP(dropLast, map) -> c(AP(dropLast, map)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (125) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(last, map) -> c(AP(last, map)) ENCODE_AP(map, map) -> c(AP(map, map)) ENCODE_AP(null, map) -> c(AP(null, map)) ENCODE_AP(if, map) -> c(AP(if, map)) ENCODE_AP(dropLast, map) -> c(AP(dropLast, map)) ENCODE_AP(if2, map) -> c(AP(if2, map)) ENCODE_AP(true, map) -> c(AP(true, map)) ENCODE_AP(isEmpty, map) -> c(AP(isEmpty, map)) ENCODE_AP(cons, map) -> c(AP(cons, map)) ---------------------------------------- (126) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (127) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, if) -> c(AP(encArg(x0), if)) by ENCODE_AP(map, if) -> c(AP(map, if)) ENCODE_AP(if, if) -> c(AP(if, if)) ENCODE_AP(isEmpty, if) -> c(AP(isEmpty, if)) ENCODE_AP(true, if) -> c(AP(true, if)) ENCODE_AP(null, if) -> c(AP(null, if)) ENCODE_AP(cons, if) -> c(AP(cons, if)) ENCODE_AP(last, if) -> c(AP(last, if)) ENCODE_AP(if2, if) -> c(AP(if2, if)) ENCODE_AP(dropLast, if) -> c(AP(dropLast, if)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ---------------------------------------- (128) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(map, if) -> c(AP(map, if)) ENCODE_AP(if, if) -> c(AP(if, if)) ENCODE_AP(isEmpty, if) -> c(AP(isEmpty, if)) ENCODE_AP(true, if) -> c(AP(true, if)) ENCODE_AP(null, if) -> c(AP(null, if)) ENCODE_AP(cons, if) -> c(AP(cons, if)) ENCODE_AP(last, if) -> c(AP(last, if)) ENCODE_AP(if2, if) -> c(AP(if2, if)) ENCODE_AP(dropLast, if) -> c(AP(dropLast, if)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (129) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(last, if) -> c(AP(last, if)) ENCODE_AP(if2, if) -> c(AP(if2, if)) ENCODE_AP(true, if) -> c(AP(true, if)) ENCODE_AP(cons, if) -> c(AP(cons, if)) ENCODE_AP(map, if) -> c(AP(map, if)) ENCODE_AP(if, if) -> c(AP(if, if)) ENCODE_AP(dropLast, if) -> c(AP(dropLast, if)) ENCODE_AP(isEmpty, if) -> c(AP(isEmpty, if)) ENCODE_AP(null, if) -> c(AP(null, if)) ---------------------------------------- (130) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (131) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, isEmpty) -> c(AP(encArg(x0), isEmpty)) by ENCODE_AP(map, isEmpty) -> c(AP(map, isEmpty)) ENCODE_AP(if, isEmpty) -> c(AP(if, isEmpty)) ENCODE_AP(isEmpty, isEmpty) -> c(AP(isEmpty, isEmpty)) ENCODE_AP(true, isEmpty) -> c(AP(true, isEmpty)) ENCODE_AP(null, isEmpty) -> c(AP(null, isEmpty)) ENCODE_AP(cons, isEmpty) -> c(AP(cons, isEmpty)) ENCODE_AP(last, isEmpty) -> c(AP(last, isEmpty)) ENCODE_AP(if2, isEmpty) -> c(AP(if2, isEmpty)) ENCODE_AP(dropLast, isEmpty) -> c(AP(dropLast, isEmpty)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ---------------------------------------- (132) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(map, isEmpty) -> c(AP(map, isEmpty)) ENCODE_AP(if, isEmpty) -> c(AP(if, isEmpty)) ENCODE_AP(isEmpty, isEmpty) -> c(AP(isEmpty, isEmpty)) ENCODE_AP(true, isEmpty) -> c(AP(true, isEmpty)) ENCODE_AP(null, isEmpty) -> c(AP(null, isEmpty)) ENCODE_AP(cons, isEmpty) -> c(AP(cons, isEmpty)) ENCODE_AP(last, isEmpty) -> c(AP(last, isEmpty)) ENCODE_AP(if2, isEmpty) -> c(AP(if2, isEmpty)) ENCODE_AP(dropLast, isEmpty) -> c(AP(dropLast, isEmpty)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (133) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(last, isEmpty) -> c(AP(last, isEmpty)) ENCODE_AP(if, isEmpty) -> c(AP(if, isEmpty)) ENCODE_AP(if2, isEmpty) -> c(AP(if2, isEmpty)) ENCODE_AP(true, isEmpty) -> c(AP(true, isEmpty)) ENCODE_AP(isEmpty, isEmpty) -> c(AP(isEmpty, isEmpty)) ENCODE_AP(dropLast, isEmpty) -> c(AP(dropLast, isEmpty)) ENCODE_AP(cons, isEmpty) -> c(AP(cons, isEmpty)) ENCODE_AP(map, isEmpty) -> c(AP(map, isEmpty)) ENCODE_AP(null, isEmpty) -> c(AP(null, isEmpty)) ---------------------------------------- (134) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (135) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, true) -> c(AP(encArg(x0), true)) by ENCODE_AP(map, true) -> c(AP(map, true)) ENCODE_AP(if, true) -> c(AP(if, true)) ENCODE_AP(isEmpty, true) -> c(AP(isEmpty, true)) ENCODE_AP(true, true) -> c(AP(true, true)) ENCODE_AP(null, true) -> c(AP(null, true)) ENCODE_AP(cons, true) -> c(AP(cons, true)) ENCODE_AP(last, true) -> c(AP(last, true)) ENCODE_AP(if2, true) -> c(AP(if2, true)) ENCODE_AP(dropLast, true) -> c(AP(dropLast, true)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ---------------------------------------- (136) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(map, true) -> c(AP(map, true)) ENCODE_AP(if, true) -> c(AP(if, true)) ENCODE_AP(isEmpty, true) -> c(AP(isEmpty, true)) ENCODE_AP(true, true) -> c(AP(true, true)) ENCODE_AP(null, true) -> c(AP(null, true)) ENCODE_AP(cons, true) -> c(AP(cons, true)) ENCODE_AP(last, true) -> c(AP(last, true)) ENCODE_AP(if2, true) -> c(AP(if2, true)) ENCODE_AP(dropLast, true) -> c(AP(dropLast, true)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (137) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(if2, true) -> c(AP(if2, true)) ENCODE_AP(true, true) -> c(AP(true, true)) ENCODE_AP(dropLast, true) -> c(AP(dropLast, true)) ENCODE_AP(null, true) -> c(AP(null, true)) ENCODE_AP(isEmpty, true) -> c(AP(isEmpty, true)) ENCODE_AP(if, true) -> c(AP(if, true)) ENCODE_AP(last, true) -> c(AP(last, true)) ENCODE_AP(map, true) -> c(AP(map, true)) ENCODE_AP(cons, true) -> c(AP(cons, true)) ---------------------------------------- (138) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (139) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, null) -> c(AP(encArg(x0), null)) by ENCODE_AP(map, null) -> c(AP(map, null)) ENCODE_AP(if, null) -> c(AP(if, null)) ENCODE_AP(isEmpty, null) -> c(AP(isEmpty, null)) ENCODE_AP(true, null) -> c(AP(true, null)) ENCODE_AP(null, null) -> c(AP(null, null)) ENCODE_AP(cons, null) -> c(AP(cons, null)) ENCODE_AP(last, null) -> c(AP(last, null)) ENCODE_AP(if2, null) -> c(AP(if2, null)) ENCODE_AP(dropLast, null) -> c(AP(dropLast, null)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ---------------------------------------- (140) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(map, null) -> c(AP(map, null)) ENCODE_AP(if, null) -> c(AP(if, null)) ENCODE_AP(isEmpty, null) -> c(AP(isEmpty, null)) ENCODE_AP(true, null) -> c(AP(true, null)) ENCODE_AP(null, null) -> c(AP(null, null)) ENCODE_AP(cons, null) -> c(AP(cons, null)) ENCODE_AP(last, null) -> c(AP(last, null)) ENCODE_AP(if2, null) -> c(AP(if2, null)) ENCODE_AP(dropLast, null) -> c(AP(dropLast, null)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (141) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 1 leading nodes: ENCODE_AP(isEmpty, null) -> c(AP(isEmpty, null)) Removed 8 trailing nodes: ENCODE_AP(last, null) -> c(AP(last, null)) ENCODE_AP(if, null) -> c(AP(if, null)) ENCODE_AP(cons, null) -> c(AP(cons, null)) ENCODE_AP(null, null) -> c(AP(null, null)) ENCODE_AP(map, null) -> c(AP(map, null)) ENCODE_AP(if2, null) -> c(AP(if2, null)) ENCODE_AP(true, null) -> c(AP(true, null)) ENCODE_AP(dropLast, null) -> c(AP(dropLast, null)) ---------------------------------------- (142) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (143) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, cons) -> c(AP(encArg(x0), cons)) by ENCODE_AP(map, cons) -> c(AP(map, cons)) ENCODE_AP(if, cons) -> c(AP(if, cons)) ENCODE_AP(isEmpty, cons) -> c(AP(isEmpty, cons)) ENCODE_AP(true, cons) -> c(AP(true, cons)) ENCODE_AP(null, cons) -> c(AP(null, cons)) ENCODE_AP(cons, cons) -> c(AP(cons, cons)) ENCODE_AP(last, cons) -> c(AP(last, cons)) ENCODE_AP(if2, cons) -> c(AP(if2, cons)) ENCODE_AP(dropLast, cons) -> c(AP(dropLast, cons)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ---------------------------------------- (144) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(map, cons) -> c(AP(map, cons)) ENCODE_AP(if, cons) -> c(AP(if, cons)) ENCODE_AP(isEmpty, cons) -> c(AP(isEmpty, cons)) ENCODE_AP(true, cons) -> c(AP(true, cons)) ENCODE_AP(null, cons) -> c(AP(null, cons)) ENCODE_AP(cons, cons) -> c(AP(cons, cons)) ENCODE_AP(last, cons) -> c(AP(last, cons)) ENCODE_AP(if2, cons) -> c(AP(if2, cons)) ENCODE_AP(dropLast, cons) -> c(AP(dropLast, cons)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (145) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(map, cons) -> c(AP(map, cons)) ENCODE_AP(dropLast, cons) -> c(AP(dropLast, cons)) ENCODE_AP(cons, cons) -> c(AP(cons, cons)) ENCODE_AP(isEmpty, cons) -> c(AP(isEmpty, cons)) ENCODE_AP(if, cons) -> c(AP(if, cons)) ENCODE_AP(last, cons) -> c(AP(last, cons)) ENCODE_AP(null, cons) -> c(AP(null, cons)) ENCODE_AP(if2, cons) -> c(AP(if2, cons)) ENCODE_AP(true, cons) -> c(AP(true, cons)) ---------------------------------------- (146) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (147) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, last) -> c(AP(encArg(x0), last)) by ENCODE_AP(map, last) -> c(AP(map, last)) ENCODE_AP(if, last) -> c(AP(if, last)) ENCODE_AP(isEmpty, last) -> c(AP(isEmpty, last)) ENCODE_AP(true, last) -> c(AP(true, last)) ENCODE_AP(null, last) -> c(AP(null, last)) ENCODE_AP(cons, last) -> c(AP(cons, last)) ENCODE_AP(last, last) -> c(AP(last, last)) ENCODE_AP(if2, last) -> c(AP(if2, last)) ENCODE_AP(dropLast, last) -> c(AP(dropLast, last)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ---------------------------------------- (148) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(map, last) -> c(AP(map, last)) ENCODE_AP(if, last) -> c(AP(if, last)) ENCODE_AP(isEmpty, last) -> c(AP(isEmpty, last)) ENCODE_AP(true, last) -> c(AP(true, last)) ENCODE_AP(null, last) -> c(AP(null, last)) ENCODE_AP(cons, last) -> c(AP(cons, last)) ENCODE_AP(last, last) -> c(AP(last, last)) ENCODE_AP(if2, last) -> c(AP(if2, last)) ENCODE_AP(dropLast, last) -> c(AP(dropLast, last)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (149) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(map, last) -> c(AP(map, last)) ENCODE_AP(null, last) -> c(AP(null, last)) ENCODE_AP(dropLast, last) -> c(AP(dropLast, last)) ENCODE_AP(isEmpty, last) -> c(AP(isEmpty, last)) ENCODE_AP(if2, last) -> c(AP(if2, last)) ENCODE_AP(true, last) -> c(AP(true, last)) ENCODE_AP(last, last) -> c(AP(last, last)) ENCODE_AP(cons, last) -> c(AP(cons, last)) ENCODE_AP(if, last) -> c(AP(if, last)) ---------------------------------------- (150) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (151) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, if2) -> c(AP(encArg(x0), if2)) by ENCODE_AP(map, if2) -> c(AP(map, if2)) ENCODE_AP(if, if2) -> c(AP(if, if2)) ENCODE_AP(isEmpty, if2) -> c(AP(isEmpty, if2)) ENCODE_AP(true, if2) -> c(AP(true, if2)) ENCODE_AP(null, if2) -> c(AP(null, if2)) ENCODE_AP(cons, if2) -> c(AP(cons, if2)) ENCODE_AP(last, if2) -> c(AP(last, if2)) ENCODE_AP(if2, if2) -> c(AP(if2, if2)) ENCODE_AP(dropLast, if2) -> c(AP(dropLast, if2)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ---------------------------------------- (152) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(map, if2) -> c(AP(map, if2)) ENCODE_AP(if, if2) -> c(AP(if, if2)) ENCODE_AP(isEmpty, if2) -> c(AP(isEmpty, if2)) ENCODE_AP(true, if2) -> c(AP(true, if2)) ENCODE_AP(null, if2) -> c(AP(null, if2)) ENCODE_AP(cons, if2) -> c(AP(cons, if2)) ENCODE_AP(last, if2) -> c(AP(last, if2)) ENCODE_AP(if2, if2) -> c(AP(if2, if2)) ENCODE_AP(dropLast, if2) -> c(AP(dropLast, if2)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (153) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(dropLast, if2) -> c(AP(dropLast, if2)) ENCODE_AP(map, if2) -> c(AP(map, if2)) ENCODE_AP(cons, if2) -> c(AP(cons, if2)) ENCODE_AP(null, if2) -> c(AP(null, if2)) ENCODE_AP(last, if2) -> c(AP(last, if2)) ENCODE_AP(if, if2) -> c(AP(if, if2)) ENCODE_AP(isEmpty, if2) -> c(AP(isEmpty, if2)) ENCODE_AP(if2, if2) -> c(AP(if2, if2)) ENCODE_AP(true, if2) -> c(AP(true, if2)) ---------------------------------------- (154) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (155) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, dropLast) -> c(AP(encArg(x0), dropLast)) by ENCODE_AP(map, dropLast) -> c(AP(map, dropLast)) ENCODE_AP(if, dropLast) -> c(AP(if, dropLast)) ENCODE_AP(isEmpty, dropLast) -> c(AP(isEmpty, dropLast)) ENCODE_AP(true, dropLast) -> c(AP(true, dropLast)) ENCODE_AP(null, dropLast) -> c(AP(null, dropLast)) ENCODE_AP(cons, dropLast) -> c(AP(cons, dropLast)) ENCODE_AP(last, dropLast) -> c(AP(last, dropLast)) ENCODE_AP(if2, dropLast) -> c(AP(if2, dropLast)) ENCODE_AP(dropLast, dropLast) -> c(AP(dropLast, dropLast)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ---------------------------------------- (156) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(map, dropLast) -> c(AP(map, dropLast)) ENCODE_AP(if, dropLast) -> c(AP(if, dropLast)) ENCODE_AP(isEmpty, dropLast) -> c(AP(isEmpty, dropLast)) ENCODE_AP(true, dropLast) -> c(AP(true, dropLast)) ENCODE_AP(null, dropLast) -> c(AP(null, dropLast)) ENCODE_AP(cons, dropLast) -> c(AP(cons, dropLast)) ENCODE_AP(last, dropLast) -> c(AP(last, dropLast)) ENCODE_AP(if2, dropLast) -> c(AP(if2, dropLast)) ENCODE_AP(dropLast, dropLast) -> c(AP(dropLast, dropLast)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (157) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(null, dropLast) -> c(AP(null, dropLast)) ENCODE_AP(isEmpty, dropLast) -> c(AP(isEmpty, dropLast)) ENCODE_AP(dropLast, dropLast) -> c(AP(dropLast, dropLast)) ENCODE_AP(if, dropLast) -> c(AP(if, dropLast)) ENCODE_AP(map, dropLast) -> c(AP(map, dropLast)) ENCODE_AP(last, dropLast) -> c(AP(last, dropLast)) ENCODE_AP(cons, dropLast) -> c(AP(cons, dropLast)) ENCODE_AP(if2, dropLast) -> c(AP(if2, dropLast)) ENCODE_AP(true, dropLast) -> c(AP(true, dropLast)) ---------------------------------------- (158) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (159) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(x0, cons_ap(z0, z1)) -> c(AP(encArg(x0), ap(encArg(z0), encArg(z1)))) by ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(map, cons_ap(x1, x2)) -> c(AP(map, ap(encArg(x1), encArg(x2)))) ENCODE_AP(if, cons_ap(x1, x2)) -> c(AP(if, ap(encArg(x1), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(true, cons_ap(x1, x2)) -> c(AP(true, ap(encArg(x1), encArg(x2)))) ENCODE_AP(null, cons_ap(x1, x2)) -> c(AP(null, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons, cons_ap(x1, x2)) -> c(AP(cons, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(if2, cons_ap(x1, x2)) -> c(AP(if2, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ---------------------------------------- (160) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(map, cons_ap(x1, x2)) -> c(AP(map, ap(encArg(x1), encArg(x2)))) ENCODE_AP(if, cons_ap(x1, x2)) -> c(AP(if, ap(encArg(x1), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(true, cons_ap(x1, x2)) -> c(AP(true, ap(encArg(x1), encArg(x2)))) ENCODE_AP(null, cons_ap(x1, x2)) -> c(AP(null, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons, cons_ap(x1, x2)) -> c(AP(cons, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(if2, cons_ap(x1, x2)) -> c(AP(if2, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (161) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 6 trailing nodes: ENCODE_AP(cons, cons_ap(x1, x2)) -> c(AP(cons, ap(encArg(x1), encArg(x2)))) ENCODE_AP(null, cons_ap(x1, x2)) -> c(AP(null, ap(encArg(x1), encArg(x2)))) ENCODE_AP(true, cons_ap(x1, x2)) -> c(AP(true, ap(encArg(x1), encArg(x2)))) ENCODE_AP(if2, cons_ap(x1, x2)) -> c(AP(if2, ap(encArg(x1), encArg(x2)))) ENCODE_AP(if, cons_ap(x1, x2)) -> c(AP(if, ap(encArg(x1), encArg(x2)))) ENCODE_AP(map, cons_ap(x1, x2)) -> c(AP(map, ap(encArg(x1), encArg(x2)))) ---------------------------------------- (162) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (163) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(isEmpty, x1) -> c(AP(isEmpty, encArg(x1))) by ENCODE_AP(isEmpty, map) -> c(AP(isEmpty, map)) ENCODE_AP(isEmpty, if) -> c(AP(isEmpty, if)) ENCODE_AP(isEmpty, isEmpty) -> c(AP(isEmpty, isEmpty)) ENCODE_AP(isEmpty, true) -> c(AP(isEmpty, true)) ENCODE_AP(isEmpty, null) -> c(AP(isEmpty, null)) ENCODE_AP(isEmpty, cons) -> c(AP(isEmpty, cons)) ENCODE_AP(isEmpty, last) -> c(AP(isEmpty, last)) ENCODE_AP(isEmpty, if2) -> c(AP(isEmpty, if2)) ENCODE_AP(isEmpty, dropLast) -> c(AP(isEmpty, dropLast)) ENCODE_AP(isEmpty, cons_ap(z0, z1)) -> c(AP(isEmpty, ap(encArg(z0), encArg(z1)))) ---------------------------------------- (164) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(isEmpty, map) -> c(AP(isEmpty, map)) ENCODE_AP(isEmpty, if) -> c(AP(isEmpty, if)) ENCODE_AP(isEmpty, isEmpty) -> c(AP(isEmpty, isEmpty)) ENCODE_AP(isEmpty, true) -> c(AP(isEmpty, true)) ENCODE_AP(isEmpty, null) -> c(AP(isEmpty, null)) ENCODE_AP(isEmpty, cons) -> c(AP(isEmpty, cons)) ENCODE_AP(isEmpty, last) -> c(AP(isEmpty, last)) ENCODE_AP(isEmpty, if2) -> c(AP(isEmpty, if2)) ENCODE_AP(isEmpty, dropLast) -> c(AP(isEmpty, dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (165) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 1 leading nodes: ENCODE_AP(isEmpty, null) -> c(AP(isEmpty, null)) Removed 8 trailing nodes: ENCODE_AP(isEmpty, cons) -> c(AP(isEmpty, cons)) ENCODE_AP(isEmpty, isEmpty) -> c(AP(isEmpty, isEmpty)) ENCODE_AP(isEmpty, if) -> c(AP(isEmpty, if)) ENCODE_AP(isEmpty, map) -> c(AP(isEmpty, map)) ENCODE_AP(isEmpty, last) -> c(AP(isEmpty, last)) ENCODE_AP(isEmpty, dropLast) -> c(AP(isEmpty, dropLast)) ENCODE_AP(isEmpty, if2) -> c(AP(isEmpty, if2)) ENCODE_AP(isEmpty, true) -> c(AP(isEmpty, true)) ---------------------------------------- (166) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (167) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(last, x1) -> c(AP(last, encArg(x1))) by ENCODE_AP(last, map) -> c(AP(last, map)) ENCODE_AP(last, if) -> c(AP(last, if)) ENCODE_AP(last, isEmpty) -> c(AP(last, isEmpty)) ENCODE_AP(last, true) -> c(AP(last, true)) ENCODE_AP(last, null) -> c(AP(last, null)) ENCODE_AP(last, cons) -> c(AP(last, cons)) ENCODE_AP(last, last) -> c(AP(last, last)) ENCODE_AP(last, if2) -> c(AP(last, if2)) ENCODE_AP(last, dropLast) -> c(AP(last, dropLast)) ENCODE_AP(last, cons_ap(z0, z1)) -> c(AP(last, ap(encArg(z0), encArg(z1)))) ---------------------------------------- (168) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, map) -> c(AP(last, map)) ENCODE_AP(last, if) -> c(AP(last, if)) ENCODE_AP(last, isEmpty) -> c(AP(last, isEmpty)) ENCODE_AP(last, true) -> c(AP(last, true)) ENCODE_AP(last, null) -> c(AP(last, null)) ENCODE_AP(last, cons) -> c(AP(last, cons)) ENCODE_AP(last, last) -> c(AP(last, last)) ENCODE_AP(last, if2) -> c(AP(last, if2)) ENCODE_AP(last, dropLast) -> c(AP(last, dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (169) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(last, cons) -> c(AP(last, cons)) ENCODE_AP(last, if) -> c(AP(last, if)) ENCODE_AP(last, map) -> c(AP(last, map)) ENCODE_AP(last, if2) -> c(AP(last, if2)) ENCODE_AP(last, true) -> c(AP(last, true)) ENCODE_AP(last, null) -> c(AP(last, null)) ENCODE_AP(last, dropLast) -> c(AP(last, dropLast)) ENCODE_AP(last, isEmpty) -> c(AP(last, isEmpty)) ENCODE_AP(last, last) -> c(AP(last, last)) ---------------------------------------- (170) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (171) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(dropLast, x1) -> c(AP(dropLast, encArg(x1))) by ENCODE_AP(dropLast, map) -> c(AP(dropLast, map)) ENCODE_AP(dropLast, if) -> c(AP(dropLast, if)) ENCODE_AP(dropLast, isEmpty) -> c(AP(dropLast, isEmpty)) ENCODE_AP(dropLast, true) -> c(AP(dropLast, true)) ENCODE_AP(dropLast, null) -> c(AP(dropLast, null)) ENCODE_AP(dropLast, cons) -> c(AP(dropLast, cons)) ENCODE_AP(dropLast, last) -> c(AP(dropLast, last)) ENCODE_AP(dropLast, if2) -> c(AP(dropLast, if2)) ENCODE_AP(dropLast, dropLast) -> c(AP(dropLast, dropLast)) ENCODE_AP(dropLast, cons_ap(z0, z1)) -> c(AP(dropLast, ap(encArg(z0), encArg(z1)))) ---------------------------------------- (172) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, map) -> c(AP(dropLast, map)) ENCODE_AP(dropLast, if) -> c(AP(dropLast, if)) ENCODE_AP(dropLast, isEmpty) -> c(AP(dropLast, isEmpty)) ENCODE_AP(dropLast, true) -> c(AP(dropLast, true)) ENCODE_AP(dropLast, null) -> c(AP(dropLast, null)) ENCODE_AP(dropLast, cons) -> c(AP(dropLast, cons)) ENCODE_AP(dropLast, last) -> c(AP(dropLast, last)) ENCODE_AP(dropLast, if2) -> c(AP(dropLast, if2)) ENCODE_AP(dropLast, dropLast) -> c(AP(dropLast, dropLast)) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (173) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 9 trailing nodes: ENCODE_AP(dropLast, cons) -> c(AP(dropLast, cons)) ENCODE_AP(dropLast, last) -> c(AP(dropLast, last)) ENCODE_AP(dropLast, if) -> c(AP(dropLast, if)) ENCODE_AP(dropLast, if2) -> c(AP(dropLast, if2)) ENCODE_AP(dropLast, true) -> c(AP(dropLast, true)) ENCODE_AP(dropLast, map) -> c(AP(dropLast, map)) ENCODE_AP(dropLast, dropLast) -> c(AP(dropLast, dropLast)) ENCODE_AP(dropLast, isEmpty) -> c(AP(dropLast, isEmpty)) ENCODE_AP(dropLast, null) -> c(AP(dropLast, null)) ---------------------------------------- (174) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c_1, c9_3, c9_2 ---------------------------------------- (175) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_AP(cons_ap(z0, z1), x1) -> c(AP(ap(encArg(z0), encArg(z1)), encArg(x1))) by ENCODE_AP(cons_ap(x0, x1), map) -> c(AP(ap(encArg(x0), encArg(x1)), map)) ENCODE_AP(cons_ap(x0, x1), if) -> c(AP(ap(encArg(x0), encArg(x1)), if)) ENCODE_AP(cons_ap(x0, x1), isEmpty) -> c(AP(ap(encArg(x0), encArg(x1)), isEmpty)) ENCODE_AP(cons_ap(x0, x1), true) -> c(AP(ap(encArg(x0), encArg(x1)), true)) ENCODE_AP(cons_ap(x0, x1), null) -> c(AP(ap(encArg(x0), encArg(x1)), null)) ENCODE_AP(cons_ap(x0, x1), cons) -> c(AP(ap(encArg(x0), encArg(x1)), cons)) ENCODE_AP(cons_ap(x0, x1), last) -> c(AP(ap(encArg(x0), encArg(x1)), last)) ENCODE_AP(cons_ap(x0, x1), if2) -> c(AP(ap(encArg(x0), encArg(x1)), if2)) ENCODE_AP(cons_ap(x0, x1), dropLast) -> c(AP(ap(encArg(x0), encArg(x1)), dropLast)) ENCODE_AP(cons_ap(x0, x1), cons_ap(z0, z1)) -> c(AP(ap(encArg(x0), encArg(x1)), ap(encArg(z0), encArg(z1)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if, x1), x2) -> c(AP(ap(if, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(true, x1), x2) -> c(AP(ap(true, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(null, x1), x2) -> c(AP(ap(null, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons, x1), x2) -> c(AP(ap(cons, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ---------------------------------------- (176) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if, x1), x2) -> c(AP(ap(if, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(true, x1), x2) -> c(AP(ap(true, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(null, x1), x2) -> c(AP(ap(null, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons, x1), x2) -> c(AP(ap(cons, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1 ---------------------------------------- (177) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 4 trailing nodes: ENCODE_AP(cons_ap(true, x1), x2) -> c(AP(ap(true, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if, x1), x2) -> c(AP(ap(if, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons, x1), x2) -> c(AP(ap(cons, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(null, x1), x2) -> c(AP(ap(null, encArg(x1)), encArg(x2))) ---------------------------------------- (178) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c27_1, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1 ---------------------------------------- (179) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace AP(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c27(AP(last, ap(ap(cons, z1), z2))) by AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) ---------------------------------------- (180) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c29_1, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1, c27_1 ---------------------------------------- (181) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c29(AP(dropLast, ap(ap(cons, z1), z2))) by AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) ---------------------------------------- (182) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1, c27_1, c29_1 ---------------------------------------- (183) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace ENCARG(cons_ap(map, x1)) -> c9(ENCARG(x1)) by ENCARG(cons_ap(map, cons_ap(map, y0))) -> c9(ENCARG(cons_ap(map, y0))) ENCARG(cons_ap(map, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(map, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(map, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(map, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(map, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(map, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ---------------------------------------- (184) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) ENCARG(cons_ap(map, cons_ap(map, y0))) -> c9(ENCARG(cons_ap(map, y0))) ENCARG(cons_ap(map, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(map, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(map, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(map, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(map, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(map, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1, c27_1, c29_1 ---------------------------------------- (185) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace ENCARG(cons_ap(if, x1)) -> c9(ENCARG(x1)) by ENCARG(cons_ap(if, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(if, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(if, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(if, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(if, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(if, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(if, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(if, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(map, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(true, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(null, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, null)))) ---------------------------------------- (186) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) ENCARG(cons_ap(map, cons_ap(map, y0))) -> c9(ENCARG(cons_ap(map, y0))) ENCARG(cons_ap(map, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(map, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(map, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(map, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(map, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(map, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(if, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(if, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(if, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(if, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(if, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(if, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(if, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(if, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(map, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(true, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(null, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, null)))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1, c27_1, c29_1 ---------------------------------------- (187) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace ENCARG(cons_ap(true, x1)) -> c9(ENCARG(x1)) by ENCARG(cons_ap(true, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(true, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(true, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(true, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(true, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(true, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(true, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(map, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(map, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(true, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(null, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, null)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(if, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(true, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(null, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(if2, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(if, cons_ap(isEmpty, null)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(map, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(true, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(null, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if2, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(isEmpty, null))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, null))))) ---------------------------------------- (188) Obligation: Complexity Dependency Tuples Problem Rules: encArg(map) -> map encArg(if) -> if encArg(isEmpty) -> isEmpty encArg(true) -> true encArg(null) -> null encArg(cons) -> cons encArg(last) -> last encArg(if2) -> if2 encArg(dropLast) -> dropLast encArg(cons_ap(z0, z1)) -> ap(encArg(z0), encArg(z1)) ap(ap(map, z0), z1) -> ap(ap(ap(if, ap(isEmpty, z1)), z0), z1) ap(ap(ap(if, true), z0), z1) -> null ap(ap(ap(if, null), z0), z1) -> ap(ap(cons, ap(z0, ap(last, z1))), ap(ap(if2, z0), z1)) ap(ap(if2, z0), z1) -> ap(ap(map, z0), ap(dropLast, z1)) ap(isEmpty, null) -> true ap(isEmpty, ap(ap(cons, z0), z1)) -> null ap(last, ap(ap(cons, z0), null)) -> z0 ap(last, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(last, ap(ap(cons, z1), z2)) ap(dropLast, ap(ap(cons, z0), null)) -> null ap(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2))) Tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) ENCARG(cons_ap(null, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(cons, x1)) -> c9(ENCARG(x1)) ENCARG(cons_ap(if2, x1)) -> c9(ENCARG(x1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) ENCARG(cons_ap(x0, cons_ap(x1, map))) -> c9(AP(encArg(x0), ap(encArg(x1), map)), ENCARG(x0), ENCARG(cons_ap(x1, map))) ENCARG(cons_ap(x0, cons_ap(x1, if))) -> c9(AP(encArg(x0), ap(encArg(x1), if)), ENCARG(x0), ENCARG(cons_ap(x1, if))) ENCARG(cons_ap(x0, cons_ap(x1, isEmpty))) -> c9(AP(encArg(x0), ap(encArg(x1), isEmpty)), ENCARG(x0), ENCARG(cons_ap(x1, isEmpty))) ENCARG(cons_ap(x0, cons_ap(x1, true))) -> c9(AP(encArg(x0), ap(encArg(x1), true)), ENCARG(x0), ENCARG(cons_ap(x1, true))) ENCARG(cons_ap(x0, cons_ap(x1, null))) -> c9(AP(encArg(x0), ap(encArg(x1), null)), ENCARG(x0), ENCARG(cons_ap(x1, null))) ENCARG(cons_ap(x0, cons_ap(x1, cons))) -> c9(AP(encArg(x0), ap(encArg(x1), cons)), ENCARG(x0), ENCARG(cons_ap(x1, cons))) ENCARG(cons_ap(x0, cons_ap(x1, last))) -> c9(AP(encArg(x0), ap(encArg(x1), last)), ENCARG(x0), ENCARG(cons_ap(x1, last))) ENCARG(cons_ap(x0, cons_ap(x1, if2))) -> c9(AP(encArg(x0), ap(encArg(x1), if2)), ENCARG(x0), ENCARG(cons_ap(x1, if2))) ENCARG(cons_ap(x0, cons_ap(x1, dropLast))) -> c9(AP(encArg(x0), ap(encArg(x1), dropLast)), ENCARG(x0), ENCARG(cons_ap(x1, dropLast))) ENCARG(cons_ap(x0, cons_ap(x1, cons_ap(z0, z1)))) -> c9(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_ap(x1, cons_ap(z0, z1)))) ENCARG(cons_ap(x0, cons_ap(map, x2))) -> c9(AP(encArg(x0), ap(map, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(map, x2))) ENCARG(cons_ap(x0, cons_ap(if, x2))) -> c9(AP(encArg(x0), ap(if, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if, x2))) ENCARG(cons_ap(x0, cons_ap(isEmpty, x2))) -> c9(AP(encArg(x0), ap(isEmpty, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(isEmpty, x2))) ENCARG(cons_ap(x0, cons_ap(true, x2))) -> c9(AP(encArg(x0), ap(true, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(true, x2))) ENCARG(cons_ap(x0, cons_ap(null, x2))) -> c9(AP(encArg(x0), ap(null, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(null, x2))) ENCARG(cons_ap(x0, cons_ap(cons, x2))) -> c9(AP(encArg(x0), ap(cons, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons, x2))) ENCARG(cons_ap(x0, cons_ap(last, x2))) -> c9(AP(encArg(x0), ap(last, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(last, x2))) ENCARG(cons_ap(x0, cons_ap(if2, x2))) -> c9(AP(encArg(x0), ap(if2, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(if2, x2))) ENCARG(cons_ap(x0, cons_ap(dropLast, x2))) -> c9(AP(encArg(x0), ap(dropLast, encArg(x2))), ENCARG(x0), ENCARG(cons_ap(dropLast, x2))) ENCARG(cons_ap(x0, cons_ap(cons_ap(z0, z1), x2))) -> c9(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_ap(cons_ap(z0, z1), x2))) ENCARG(cons_ap(cons_ap(z0, z1), cons_ap(x1, x2))) -> c9(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(z0, z1)), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(map, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(isEmpty, cons_ap(x1, x2))) -> c9(AP(isEmpty, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(true, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(null, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(last, cons_ap(x1, x2))) -> c9(AP(last, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(if2, cons_ap(x1, x2))) -> c9(ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(dropLast, cons_ap(x1, x2))) -> c9(AP(dropLast, ap(encArg(x1), encArg(x2))), ENCARG(cons_ap(x1, x2))) ENCARG(cons_ap(cons_ap(x0, map), x2)) -> c9(AP(ap(encArg(x0), map), encArg(x2)), ENCARG(cons_ap(x0, map)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if), x2)) -> c9(AP(ap(encArg(x0), if), encArg(x2)), ENCARG(cons_ap(x0, if)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, isEmpty), x2)) -> c9(AP(ap(encArg(x0), isEmpty), encArg(x2)), ENCARG(cons_ap(x0, isEmpty)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, true), x2)) -> c9(AP(ap(encArg(x0), true), encArg(x2)), ENCARG(cons_ap(x0, true)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, null), x2)) -> c9(AP(ap(encArg(x0), null), encArg(x2)), ENCARG(cons_ap(x0, null)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons), x2)) -> c9(AP(ap(encArg(x0), cons), encArg(x2)), ENCARG(cons_ap(x0, cons)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, last), x2)) -> c9(AP(ap(encArg(x0), last), encArg(x2)), ENCARG(cons_ap(x0, last)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, if2), x2)) -> c9(AP(ap(encArg(x0), if2), encArg(x2)), ENCARG(cons_ap(x0, if2)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, dropLast), x2)) -> c9(AP(ap(encArg(x0), dropLast), encArg(x2)), ENCARG(cons_ap(x0, dropLast)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, cons_ap(z0, z1)), x2)) -> c9(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_ap(x0, cons_ap(z0, z1))), ENCARG(x2)) ENCARG(cons_ap(cons_ap(map, x1), x2)) -> c9(AP(ap(map, encArg(x1)), encArg(x2)), ENCARG(cons_ap(map, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(isEmpty, x1), x2)) -> c9(AP(ap(isEmpty, encArg(x1)), encArg(x2)), ENCARG(cons_ap(isEmpty, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(last, x1), x2)) -> c9(AP(ap(last, encArg(x1)), encArg(x2)), ENCARG(cons_ap(last, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(if2, x1), x2)) -> c9(AP(ap(if2, encArg(x1)), encArg(x2)), ENCARG(cons_ap(if2, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(dropLast, x1), x2)) -> c9(AP(ap(dropLast, encArg(x1)), encArg(x2)), ENCARG(cons_ap(dropLast, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons_ap(z0, z1), x1), x2)) -> c9(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_ap(cons_ap(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(x0, x1), map)) -> c9(AP(ap(encArg(x0), encArg(x1)), map), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if)) -> c9(AP(ap(encArg(x0), encArg(x1)), if), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), isEmpty)) -> c9(AP(ap(encArg(x0), encArg(x1)), isEmpty), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), true)) -> c9(AP(ap(encArg(x0), encArg(x1)), true), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), null)) -> c9(AP(ap(encArg(x0), encArg(x1)), null), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), cons)) -> c9(AP(ap(encArg(x0), encArg(x1)), cons), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), last)) -> c9(AP(ap(encArg(x0), encArg(x1)), last), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), if2)) -> c9(AP(ap(encArg(x0), encArg(x1)), if2), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(x0, x1), dropLast)) -> c9(AP(ap(encArg(x0), encArg(x1)), dropLast), ENCARG(cons_ap(x0, x1))) ENCARG(cons_ap(cons_ap(if, x1), x2)) -> c9(ENCARG(cons_ap(if, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(true, x1), x2)) -> c9(ENCARG(cons_ap(true, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(null, x1), x2)) -> c9(ENCARG(cons_ap(null, x1)), ENCARG(x2)) ENCARG(cons_ap(cons_ap(cons, x1), x2)) -> c9(ENCARG(cons_ap(cons, x1)), ENCARG(x2)) ENCARG(cons_ap(isEmpty, null)) -> c9(AP(isEmpty, null)) ENCODE_AP(cons_ap(z0, z1), map) -> c(AP(ap(encArg(z0), encArg(z1)), map)) ENCODE_AP(cons_ap(z0, z1), if) -> c(AP(ap(encArg(z0), encArg(z1)), if)) ENCODE_AP(cons_ap(z0, z1), isEmpty) -> c(AP(ap(encArg(z0), encArg(z1)), isEmpty)) ENCODE_AP(cons_ap(z0, z1), true) -> c(AP(ap(encArg(z0), encArg(z1)), true)) ENCODE_AP(cons_ap(z0, z1), null) -> c(AP(ap(encArg(z0), encArg(z1)), null)) ENCODE_AP(cons_ap(z0, z1), cons) -> c(AP(ap(encArg(z0), encArg(z1)), cons)) ENCODE_AP(cons_ap(z0, z1), last) -> c(AP(ap(encArg(z0), encArg(z1)), last)) ENCODE_AP(cons_ap(z0, z1), if2) -> c(AP(ap(encArg(z0), encArg(z1)), if2)) ENCODE_AP(cons_ap(z0, z1), dropLast) -> c(AP(ap(encArg(z0), encArg(z1)), dropLast)) ENCODE_AP(x0, cons_ap(x1, map)) -> c(AP(encArg(x0), ap(encArg(x1), map))) ENCODE_AP(x0, cons_ap(x1, if)) -> c(AP(encArg(x0), ap(encArg(x1), if))) ENCODE_AP(x0, cons_ap(x1, isEmpty)) -> c(AP(encArg(x0), ap(encArg(x1), isEmpty))) ENCODE_AP(x0, cons_ap(x1, true)) -> c(AP(encArg(x0), ap(encArg(x1), true))) ENCODE_AP(x0, cons_ap(x1, null)) -> c(AP(encArg(x0), ap(encArg(x1), null))) ENCODE_AP(x0, cons_ap(x1, cons)) -> c(AP(encArg(x0), ap(encArg(x1), cons))) ENCODE_AP(x0, cons_ap(x1, last)) -> c(AP(encArg(x0), ap(encArg(x1), last))) ENCODE_AP(x0, cons_ap(x1, if2)) -> c(AP(encArg(x0), ap(encArg(x1), if2))) ENCODE_AP(x0, cons_ap(x1, dropLast)) -> c(AP(encArg(x0), ap(encArg(x1), dropLast))) ENCODE_AP(x0, cons_ap(x1, cons_ap(z0, z1))) -> c(AP(encArg(x0), ap(encArg(x1), ap(encArg(z0), encArg(z1))))) ENCODE_AP(x0, cons_ap(map, x2)) -> c(AP(encArg(x0), ap(map, encArg(x2)))) ENCODE_AP(x0, cons_ap(if, x2)) -> c(AP(encArg(x0), ap(if, encArg(x2)))) ENCODE_AP(x0, cons_ap(isEmpty, x2)) -> c(AP(encArg(x0), ap(isEmpty, encArg(x2)))) ENCODE_AP(x0, cons_ap(true, x2)) -> c(AP(encArg(x0), ap(true, encArg(x2)))) ENCODE_AP(x0, cons_ap(null, x2)) -> c(AP(encArg(x0), ap(null, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons, x2)) -> c(AP(encArg(x0), ap(cons, encArg(x2)))) ENCODE_AP(x0, cons_ap(last, x2)) -> c(AP(encArg(x0), ap(last, encArg(x2)))) ENCODE_AP(x0, cons_ap(if2, x2)) -> c(AP(encArg(x0), ap(if2, encArg(x2)))) ENCODE_AP(x0, cons_ap(dropLast, x2)) -> c(AP(encArg(x0), ap(dropLast, encArg(x2)))) ENCODE_AP(x0, cons_ap(cons_ap(z0, z1), x2)) -> c(AP(encArg(x0), ap(ap(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_AP(isEmpty, cons_ap(x1, x2)) -> c(AP(isEmpty, ap(encArg(x1), encArg(x2)))) ENCODE_AP(last, cons_ap(x1, x2)) -> c(AP(last, ap(encArg(x1), encArg(x2)))) ENCODE_AP(dropLast, cons_ap(x1, x2)) -> c(AP(dropLast, ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(z0, z1), cons_ap(x1, x2)) -> c(AP(ap(encArg(z0), encArg(z1)), ap(encArg(x1), encArg(x2)))) ENCODE_AP(cons_ap(x0, map), x2) -> c(AP(ap(encArg(x0), map), encArg(x2))) ENCODE_AP(cons_ap(x0, if), x2) -> c(AP(ap(encArg(x0), if), encArg(x2))) ENCODE_AP(cons_ap(x0, isEmpty), x2) -> c(AP(ap(encArg(x0), isEmpty), encArg(x2))) ENCODE_AP(cons_ap(x0, true), x2) -> c(AP(ap(encArg(x0), true), encArg(x2))) ENCODE_AP(cons_ap(x0, null), x2) -> c(AP(ap(encArg(x0), null), encArg(x2))) ENCODE_AP(cons_ap(x0, cons), x2) -> c(AP(ap(encArg(x0), cons), encArg(x2))) ENCODE_AP(cons_ap(x0, last), x2) -> c(AP(ap(encArg(x0), last), encArg(x2))) ENCODE_AP(cons_ap(x0, if2), x2) -> c(AP(ap(encArg(x0), if2), encArg(x2))) ENCODE_AP(cons_ap(x0, dropLast), x2) -> c(AP(ap(encArg(x0), dropLast), encArg(x2))) ENCODE_AP(cons_ap(x0, cons_ap(z0, z1)), x2) -> c(AP(ap(encArg(x0), ap(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_AP(cons_ap(map, x1), x2) -> c(AP(ap(map, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(isEmpty, x1), x2) -> c(AP(ap(isEmpty, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(last, x1), x2) -> c(AP(ap(last, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(if2, x1), x2) -> c(AP(ap(if2, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(dropLast, x1), x2) -> c(AP(ap(dropLast, encArg(x1)), encArg(x2))) ENCODE_AP(cons_ap(cons_ap(z0, z1), x1), x2) -> c(AP(ap(ap(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) ENCARG(cons_ap(map, cons_ap(map, y0))) -> c9(ENCARG(cons_ap(map, y0))) ENCARG(cons_ap(map, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(map, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(map, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(map, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(map, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(map, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(if, cons_ap(if, y0))) -> c9(ENCARG(cons_ap(if, y0))) ENCARG(cons_ap(if, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(if, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(if, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(if, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(if, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(if, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(if, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(if, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(map, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(true, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(null, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, y0)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, null)))) ENCARG(cons_ap(true, cons_ap(true, y0))) -> c9(ENCARG(cons_ap(true, y0))) ENCARG(cons_ap(true, cons_ap(null, y0))) -> c9(ENCARG(cons_ap(null, y0))) ENCARG(cons_ap(true, cons_ap(cons, y0))) -> c9(ENCARG(cons_ap(cons, y0))) ENCARG(cons_ap(true, cons_ap(if2, y0))) -> c9(ENCARG(cons_ap(if2, y0))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, map)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, map)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, if)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, isEmpty)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, isEmpty)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, true)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, true)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, null)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, null)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, cons)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, last)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, last)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, if2)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, if2)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, dropLast)))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, dropLast)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(map, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(map, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(if, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(isEmpty, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(isEmpty, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(true, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(true, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(null, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(null, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(cons, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(last, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(last, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(if2, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(if2, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(dropLast, y1)))) -> c9(ENCARG(cons_ap(y0, cons_ap(dropLast, y1)))) ENCARG(cons_ap(true, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) -> c9(ENCARG(cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(isEmpty, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(isEmpty, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(true, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(true, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(null, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(null, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(cons, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(cons, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(last, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(last, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(if2, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(if2, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(dropLast, cons_ap(y0, y1)))) -> c9(ENCARG(cons_ap(dropLast, cons_ap(y0, y1)))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, map), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, map), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, if), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, isEmpty), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, isEmpty), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, true), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, true), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, null), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, null), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, cons), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, last), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, last), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, if2), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, if2), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, dropLast), y1))) -> c9(ENCARG(cons_ap(cons_ap(y0, dropLast), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) -> c9(ENCARG(cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))) ENCARG(cons_ap(true, cons_ap(cons_ap(map, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(map, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(isEmpty, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(isEmpty, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(last, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(last, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(if2, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if2, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(dropLast, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(dropLast, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) -> c9(ENCARG(cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), map))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), map))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), if))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), isEmpty))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), isEmpty))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), true))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), true))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), null))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), null))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), cons))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), cons))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), last))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), last))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), if2))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), if2))) ENCARG(cons_ap(true, cons_ap(cons_ap(y0, y1), dropLast))) -> c9(ENCARG(cons_ap(cons_ap(y0, y1), dropLast))) ENCARG(cons_ap(true, cons_ap(cons_ap(if, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(if, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(true, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(true, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(null, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(null, y0), y1))) ENCARG(cons_ap(true, cons_ap(cons_ap(cons, y0), y1))) -> c9(ENCARG(cons_ap(cons_ap(cons, y0), y1))) ENCARG(cons_ap(true, cons_ap(isEmpty, null))) -> c9(ENCARG(cons_ap(isEmpty, null))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(map, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(map, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(true, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(null, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, y0)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(map, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(true, cons_ap(map, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(map, cons_ap(isEmpty, null)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(if, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(true, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(true, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(null, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(null, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if2, y0)))) -> c9(ENCARG(cons_ap(if, cons_ap(if2, y0)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, map))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, map))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, if))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, isEmpty))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, true))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, true))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, null))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, null))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, cons))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, last))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, last))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, if2))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, if2))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, dropLast))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(map, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(map, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(if, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(isEmpty, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(true, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(true, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(null, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(null, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(cons, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(last, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(last, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(if2, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(if2, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(dropLast, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(if, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(isEmpty, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(true, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(true, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(null, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(null, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(cons, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(last, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(last, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(if2, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(if2, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(dropLast, cons_ap(y0, y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, map), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, map), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, if), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, isEmpty), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, true), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, true), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, null), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, null), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, cons), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, last), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, last), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, if2), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, if2), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, dropLast), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(map, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(map, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(isEmpty, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(last, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(last, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(if2, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(if2, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(dropLast, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), map)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), map)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), if)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), isEmpty)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), true)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), true)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), null)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), null)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), cons)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), cons)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), last)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), last)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), if2)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), if2)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(y0, y1), dropLast)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(if, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(if, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(true, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(true, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(null, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(null, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(cons_ap(cons, y0), y1)))) -> c9(ENCARG(cons_ap(if, cons_ap(cons_ap(cons, y0), y1)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(isEmpty, null)))) -> c9(ENCARG(cons_ap(if, cons_ap(isEmpty, null)))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(map, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(true, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(null, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if2, y0))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, y0))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, map)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, isEmpty)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, true)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, null)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, last)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, if2)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, dropLast)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(y1, cons_ap(y2, y3))))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(map, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(isEmpty, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(true, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(null, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(last, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(if2, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(dropLast, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(y0, cons_ap(cons_ap(y1, y2), y3)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons_ap(y2, y3)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(map, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(true, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(null, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(last, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(if2, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(dropLast, cons_ap(y0, y1)))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, map), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, isEmpty), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, true), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, null), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, last), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, if2), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, dropLast), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, cons_ap(y1, y2)), y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(map, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(isEmpty, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(last, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if2, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(dropLast, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons_ap(y0, y1), y2), y3))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), map))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), isEmpty))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), true))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), null))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), cons))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), last))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), if2))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(y0, y1), dropLast))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(if, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(true, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(null, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(cons_ap(cons, y0), y1))))) ENCARG(cons_ap(true, cons_ap(if, cons_ap(map, cons_ap(isEmpty, null))))) -> c9(ENCARG(cons_ap(if, cons_ap(map, cons_ap(isEmpty, null))))) S tuples: AP(ap(ap(if, true), z0), z1) -> c21 AP(isEmpty, null) -> c24 AP(isEmpty, ap(ap(cons, z0), z1)) -> c25 AP(last, ap(ap(cons, z0), null)) -> c26 AP(dropLast, ap(ap(cons, z0), null)) -> c28 AP(ap(ap(if, null), z0), z1) -> c22(AP(z0, ap(last, z1)), AP(last, z1), AP(ap(if2, z0), z1)) AP(ap(map, x0), ap(ap(cons, z0), z1)) -> c20(AP(ap(ap(if, null), x0), ap(ap(cons, z0), z1)), AP(isEmpty, ap(ap(cons, z0), z1))) AP(ap(map, x0), null) -> c1(AP(ap(ap(if, true), x0), null)) AP(ap(map, x0), null) -> c1(AP(isEmpty, null)) AP(ap(if2, x0), ap(ap(cons, z0), ap(ap(cons, z1), z2))) -> c23(AP(ap(map, x0), ap(ap(cons, z0), ap(dropLast, ap(ap(cons, z1), z2)))), AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), z2)))) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(ap(map, x0), null)) AP(ap(if2, x0), ap(ap(cons, z0), null)) -> c2(AP(dropLast, ap(ap(cons, z0), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c27(AP(last, ap(ap(cons, z1), null))) AP(last, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c27(AP(last, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), null))) -> c29(AP(dropLast, ap(ap(cons, z1), null))) AP(dropLast, ap(ap(cons, z0), ap(ap(cons, z1), ap(ap(cons, y1), y2)))) -> c29(AP(dropLast, ap(ap(cons, z1), ap(ap(cons, y1), y2)))) K tuples:none Defined Rule Symbols: encArg_1, ap_2 Defined Pair Symbols: AP_2, ENCARG_1, ENCODE_AP_2 Compound Symbols: c21, c24, c25, c26, c28, c22_3, c9_1, c20_2, c1_1, c23_2, c2_1, c9_3, c9_2, c_1, c27_1, c29_1