/export/starexec/sandbox/solver/bin/starexec_run_rcdcRelativeAlsoLower /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- KILLED proof of /export/starexec/sandbox/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), 181 ms] (4) CpxRelTRS (5) RelTrsToDecreasingLoopProblemProof [LOWER BOUND(ID), 0 ms] (6) TRS for Loop Detection (7) RenamingProof [BOTH BOUNDS(ID, ID), 0 ms] (8) CpxRelTRS (9) TypeInferenceProof [BOTH BOUNDS(ID, ID), 0 ms] (10) typed CpxTrs (11) OrderProof [LOWER BOUND(ID), 0 ms] (12) typed CpxTrs (13) RewriteLemmaProof [LOWER BOUND(ID), 833 ms] (14) BOUNDS(1, INF) (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) NarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (26) CpxTypedWeightedCompleteTrs (27) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(ID), 0 ms] (28) CpxRNTS (29) SimplificationProof [BOTH BOUNDS(ID, ID), 1 ms] (30) CpxRNTS (31) CompletionProof [UPPER BOUND(ID), 0 ms] (32) CpxTypedWeightedCompleteTrs (33) CpxTypedWeightedTrsToRntsProof [UPPER BOUND(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), 0 ms] (48) CdtProblem (49) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (50) CdtProblem (51) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (52) CdtProblem (53) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (54) CdtProblem (55) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (56) CdtProblem (57) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (58) CdtProblem (59) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (60) CdtProblem (61) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (62) CdtProblem (63) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (64) CdtProblem (65) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (66) CdtProblem (67) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (68) CdtProblem (69) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (70) CdtProblem (71) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (72) CdtProblem (73) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (74) CdtProblem (75) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (76) CdtProblem (77) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (78) CdtProblem (79) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (80) CdtProblem (81) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (82) CdtProblem (83) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (84) CdtProblem (85) CdtRhsSimplificationProcessorProof [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) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 28 ms] (92) CdtProblem (93) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (94) CdtProblem (95) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (96) CdtProblem (97) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 4 ms] (98) CdtProblem (99) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 7 ms] (100) CdtProblem (101) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (102) CdtProblem (103) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 16 ms] (104) CdtProblem (105) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (106) CdtProblem (107) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 3 ms] (108) CdtProblem (109) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 0 ms] (110) CdtProblem (111) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 ms] (112) CdtProblem (113) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (114) CdtProblem (115) CdtNarrowingProof [BOTH BOUNDS(ID, ID), 0 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), 0 ms] (140) CdtProblem (141) CdtLeafRemovalProof [BOTH BOUNDS(ID, ID), 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) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 0 ms] (156) CdtProblem (157) CdtLeafRemovalProof [ComplexityIfPolyImplication, 3 ms] (158) CdtProblem (159) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 0 ms] (160) CdtProblem (161) CdtLeafRemovalProof [ComplexityIfPolyImplication, 1 ms] (162) CdtProblem (163) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (164) CdtProblem (165) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 4 ms] (166) CdtProblem (167) CdtLeafRemovalProof [ComplexityIfPolyImplication, 0 ms] (168) CdtProblem (169) CdtRhsSimplificationProcessorProof [BOTH BOUNDS(ID, ID), 0 ms] (170) CdtProblem (171) CdtGraphSplitRhsProof [BOTH BOUNDS(ID, ID), 0 ms] (172) CdtProblem (173) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 221 ms] (174) CdtProblem (175) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 769 ms] (176) CdtProblem (177) CdtForwardInstantiationProof [BOTH BOUNDS(ID, ID), 2628 ms] (178) 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: a(0, b(0, x)) -> b(0, a(0, x)) a(0, x) -> b(0, b(0, x)) a(0, a(1, a(x, y))) -> a(1, a(0, a(x, y))) b(0, a(1, a(x, y))) -> b(1, a(0, a(x, y))) a(0, a(x, y)) -> a(1, a(1, a(x, y))) 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(0) -> 0 encArg(1) -> 1 encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1 ---------------------------------------- (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: a(0, b(0, x)) -> b(0, a(0, x)) a(0, x) -> b(0, b(0, x)) a(0, a(1, a(x, y))) -> a(1, a(0, a(x, y))) b(0, a(1, a(x, y))) -> b(1, a(0, a(x, y))) a(0, a(x, y)) -> a(1, a(1, a(x, y))) The (relative) TRS S consists of the following rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1 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: a(0, b(0, x)) -> b(0, a(0, x)) a(0, x) -> b(0, b(0, x)) a(0, a(1, a(x, y))) -> a(1, a(0, a(x, y))) b(0, a(1, a(x, y))) -> b(1, a(0, a(x, y))) a(0, a(x, y)) -> a(1, a(1, a(x, y))) The (relative) TRS S consists of the following rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1 Rewrite Strategy: INNERMOST ---------------------------------------- (5) RelTrsToDecreasingLoopProblemProof (LOWER BOUND(ID)) Transformed a relative TRS into a decreasing-loop problem. ---------------------------------------- (6) 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: a(0, b(0, x)) -> b(0, a(0, x)) a(0, x) -> b(0, b(0, x)) a(0, a(1, a(x, y))) -> a(1, a(0, a(x, y))) b(0, a(1, a(x, y))) -> b(1, a(0, a(x, y))) a(0, a(x, y)) -> a(1, a(1, a(x, y))) The (relative) TRS S consists of the following rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1 Rewrite Strategy: INNERMOST ---------------------------------------- (7) RenamingProof (BOTH BOUNDS(ID, ID)) Renamed function symbols to avoid clashes with predefined symbol. ---------------------------------------- (8) 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: a(0', b(0', x)) -> b(0', a(0', x)) a(0', x) -> b(0', b(0', x)) a(0', a(1', a(x, y))) -> a(1', a(0', a(x, y))) b(0', a(1', a(x, y))) -> b(1', a(0', a(x, y))) a(0', a(x, y)) -> a(1', a(1', a(x, y))) The (relative) TRS S consists of the following rules: encArg(0') -> 0' encArg(1') -> 1' encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1' Rewrite Strategy: INNERMOST ---------------------------------------- (9) TypeInferenceProof (BOTH BOUNDS(ID, ID)) Infered types. ---------------------------------------- (10) Obligation: Innermost TRS: Rules: a(0', b(0', x)) -> b(0', a(0', x)) a(0', x) -> b(0', b(0', x)) a(0', a(1', a(x, y))) -> a(1', a(0', a(x, y))) b(0', a(1', a(x, y))) -> b(1', a(0', a(x, y))) a(0', a(x, y)) -> a(1', a(1', a(x, y))) encArg(0') -> 0' encArg(1') -> 1' encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1' Types: a :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b 0' :: 0':1':cons_a:cons_b b :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b 1' :: 0':1':cons_a:cons_b encArg :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b cons_a :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b cons_b :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b encode_a :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b encode_0 :: 0':1':cons_a:cons_b encode_b :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b encode_1 :: 0':1':cons_a:cons_b hole_0':1':cons_a:cons_b1_3 :: 0':1':cons_a:cons_b gen_0':1':cons_a:cons_b2_3 :: Nat -> 0':1':cons_a:cons_b ---------------------------------------- (11) OrderProof (LOWER BOUND(ID)) Heuristically decided to analyse the following defined symbols: a, b, encArg They will be analysed ascendingly in the following order: a = b a < encArg b < encArg ---------------------------------------- (12) Obligation: Innermost TRS: Rules: a(0', b(0', x)) -> b(0', a(0', x)) a(0', x) -> b(0', b(0', x)) a(0', a(1', a(x, y))) -> a(1', a(0', a(x, y))) b(0', a(1', a(x, y))) -> b(1', a(0', a(x, y))) a(0', a(x, y)) -> a(1', a(1', a(x, y))) encArg(0') -> 0' encArg(1') -> 1' encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0' encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1' Types: a :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b 0' :: 0':1':cons_a:cons_b b :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b 1' :: 0':1':cons_a:cons_b encArg :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b cons_a :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b cons_b :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b encode_a :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b encode_0 :: 0':1':cons_a:cons_b encode_b :: 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b -> 0':1':cons_a:cons_b encode_1 :: 0':1':cons_a:cons_b hole_0':1':cons_a:cons_b1_3 :: 0':1':cons_a:cons_b gen_0':1':cons_a:cons_b2_3 :: Nat -> 0':1':cons_a:cons_b Generator Equations: gen_0':1':cons_a:cons_b2_3(0) <=> 0' gen_0':1':cons_a:cons_b2_3(+(x, 1)) <=> cons_a(0', gen_0':1':cons_a:cons_b2_3(x)) The following defined symbols remain to be analysed: b, a, encArg They will be analysed ascendingly in the following order: a = b a < encArg b < encArg ---------------------------------------- (13) RewriteLemmaProof (LOWER BOUND(ID)) Proved the following rewrite lemma: encArg(gen_0':1':cons_a:cons_b2_3(n153_3)) -> *3_3, rt in Omega(0) Induction Base: encArg(gen_0':1':cons_a:cons_b2_3(0)) Induction Step: encArg(gen_0':1':cons_a:cons_b2_3(+(n153_3, 1))) ->_R^Omega(0) a(encArg(0'), encArg(gen_0':1':cons_a:cons_b2_3(n153_3))) ->_R^Omega(0) a(0', encArg(gen_0':1':cons_a:cons_b2_3(n153_3))) ->_IH a(0', *3_3) We have rt in Omega(1) and sz in O(n). Thus, we have irc_R in Omega(n^0). ---------------------------------------- (14) BOUNDS(1, INF) ---------------------------------------- (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: a(0, b(0, x)) -> b(0, a(0, x)) a(0, x) -> b(0, b(0, x)) a(0, a(1, a(x, y))) -> a(1, a(0, a(x, y))) b(0, a(1, a(x, y))) -> b(1, a(0, a(x, y))) a(0, a(x, y)) -> a(1, a(1, a(x, y))) encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1 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: a(0, x) -> b(0, b(0, x)) a(0, c_b(0, x)) -> b(0, a(0, x)) a(0, c_a(x, y)) -> a(1, a(1, a(x, y))) b(0, c_a(1, c_a(x, y))) -> b(1, a(0, a(x, y))) a(0, c_a(1, c_a(x, y))) -> a(1, a(0, a(x, y))) The (relative) TRS S consists of the following rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) encode_0 -> 0 encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) encode_1 -> 1 a(x0, x1) -> c_a(x0, x1) b(x0, x1) -> c_b(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: a(0, x) -> b(0, b(0, x)) [1] a(0, c_b(0, x)) -> b(0, a(0, x)) [1] a(0, c_a(x, y)) -> a(1, a(1, a(x, y))) [1] b(0, c_a(1, c_a(x, y))) -> b(1, a(0, a(x, y))) [1] a(0, c_a(1, c_a(x, y))) -> a(1, a(0, a(x, y))) [1] encArg(0) -> 0 [0] encArg(1) -> 1 [0] encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) [0] encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) [0] encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) [0] encode_0 -> 0 [0] encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) [0] encode_1 -> 1 [0] a(x0, x1) -> c_a(x0, x1) [0] b(x0, x1) -> c_b(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: a(0, x) -> b(0, b(0, x)) [1] a(0, c_b(0, x)) -> b(0, a(0, x)) [1] a(0, c_a(x, y)) -> a(1, a(1, a(x, y))) [1] b(0, c_a(1, c_a(x, y))) -> b(1, a(0, a(x, y))) [1] a(0, c_a(1, c_a(x, y))) -> a(1, a(0, a(x, y))) [1] encArg(0) -> 0 [0] encArg(1) -> 1 [0] encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) [0] encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) [0] encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) [0] encode_0 -> 0 [0] encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) [0] encode_1 -> 1 [0] a(x0, x1) -> c_a(x0, x1) [0] b(x0, x1) -> c_b(x0, x1) [0] The TRS has the following type information: a :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b 0 :: 0:c_b:c_a:1:cons_a:cons_b b :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b c_b :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b c_a :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b 1 :: 0:c_b:c_a:1:cons_a:cons_b encArg :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b cons_a :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b cons_b :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b encode_a :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b encode_0 :: 0:c_b:c_a:1:cons_a:cons_b encode_b :: 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b -> 0:c_b:c_a:1:cons_a:cons_b encode_1 :: 0:c_b:c_a:1:cons_a:cons_b Rewrite Strategy: INNERMOST ---------------------------------------- (23) 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_a_2 encode_0 encode_b_2 encode_1 a_2 b_2 Due to the following rules being added: encArg(v0) -> null_encArg [0] encode_a(v0, v1) -> null_encode_a [0] encode_0 -> null_encode_0 [0] encode_b(v0, v1) -> null_encode_b [0] encode_1 -> null_encode_1 [0] a(v0, v1) -> null_a [0] b(v0, v1) -> null_b [0] And the following fresh constants: null_encArg, null_encode_a, null_encode_0, null_encode_b, null_encode_1, null_a, null_b ---------------------------------------- (24) 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: a(0, x) -> b(0, b(0, x)) [1] a(0, c_b(0, x)) -> b(0, a(0, x)) [1] a(0, c_a(x, y)) -> a(1, a(1, a(x, y))) [1] b(0, c_a(1, c_a(x, y))) -> b(1, a(0, a(x, y))) [1] a(0, c_a(1, c_a(x, y))) -> a(1, a(0, a(x, y))) [1] encArg(0) -> 0 [0] encArg(1) -> 1 [0] encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) [0] encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) [0] encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) [0] encode_0 -> 0 [0] encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) [0] encode_1 -> 1 [0] a(x0, x1) -> c_a(x0, x1) [0] b(x0, x1) -> c_b(x0, x1) [0] encArg(v0) -> null_encArg [0] encode_a(v0, v1) -> null_encode_a [0] encode_0 -> null_encode_0 [0] encode_b(v0, v1) -> null_encode_b [0] encode_1 -> null_encode_1 [0] a(v0, v1) -> null_a [0] b(v0, v1) -> null_b [0] The TRS has the following type information: a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b 0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b c_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b c_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b 1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encArg :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b cons_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b cons_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encArg :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b Rewrite Strategy: INNERMOST ---------------------------------------- (25) NarrowingProof (BOTH BOUNDS(ID, ID)) Narrowed the inner basic terms of all right-hand sides by a single narrowing step. ---------------------------------------- (26) 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: a(0, c_a(1, c_a(x', y'))) -> b(0, b(1, a(0, a(x', y')))) [2] a(0, x) -> b(0, c_b(0, x)) [1] a(0, x) -> b(0, null_b) [1] a(0, c_b(0, x)) -> b(0, b(0, b(0, x))) [2] a(0, c_b(0, c_b(0, x''))) -> b(0, b(0, a(0, x''))) [2] a(0, c_b(0, c_a(x2, y''))) -> b(0, a(1, a(1, a(x2, y'')))) [2] a(0, c_b(0, c_a(1, c_a(x3, y1)))) -> b(0, a(1, a(0, a(x3, y1)))) [2] a(0, c_b(0, x)) -> b(0, c_a(0, x)) [1] a(0, c_b(0, x)) -> b(0, null_a) [1] a(0, c_a(0, y)) -> a(1, a(1, b(0, b(0, y)))) [2] a(0, c_a(0, c_b(0, x4))) -> a(1, a(1, b(0, a(0, x4)))) [2] a(0, c_a(0, c_a(x5, y2))) -> a(1, a(1, a(1, a(1, a(x5, y2))))) [2] a(0, c_a(0, c_a(1, c_a(x6, y3)))) -> a(1, a(1, a(1, a(0, a(x6, y3))))) [2] a(0, c_a(x, y)) -> a(1, a(1, c_a(x, y))) [1] a(0, c_a(x, y)) -> a(1, a(1, null_a)) [1] b(0, c_a(1, c_a(0, y))) -> b(1, a(0, b(0, b(0, y)))) [2] b(0, c_a(1, c_a(0, c_b(0, x7)))) -> b(1, a(0, b(0, a(0, x7)))) [2] b(0, c_a(1, c_a(0, c_a(x8, y4)))) -> b(1, a(0, a(1, a(1, a(x8, y4))))) [2] b(0, c_a(1, c_a(0, c_a(1, c_a(x9, y5))))) -> b(1, a(0, a(1, a(0, a(x9, y5))))) [2] b(0, c_a(1, c_a(x, y))) -> b(1, a(0, c_a(x, y))) [1] b(0, c_a(1, c_a(x, y))) -> b(1, a(0, null_a)) [1] a(0, c_a(1, c_a(0, y))) -> a(1, a(0, b(0, b(0, y)))) [2] a(0, c_a(1, c_a(0, c_b(0, x10)))) -> a(1, a(0, b(0, a(0, x10)))) [2] a(0, c_a(1, c_a(0, c_a(x11, y6)))) -> a(1, a(0, a(1, a(1, a(x11, y6))))) [2] a(0, c_a(1, c_a(0, c_a(1, c_a(x12, y7))))) -> a(1, a(0, a(1, a(0, a(x12, y7))))) [2] a(0, c_a(1, c_a(x, y))) -> a(1, a(0, c_a(x, y))) [1] a(0, c_a(1, c_a(x, y))) -> a(1, a(0, null_a)) [1] encArg(0) -> 0 [0] encArg(1) -> 1 [0] encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) [0] encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) [0] encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) [0] encode_0 -> 0 [0] encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) [0] encode_1 -> 1 [0] a(x0, x1) -> c_a(x0, x1) [0] b(x0, x1) -> c_b(x0, x1) [0] encArg(v0) -> null_encArg [0] encode_a(v0, v1) -> null_encode_a [0] encode_0 -> null_encode_0 [0] encode_b(v0, v1) -> null_encode_b [0] encode_1 -> null_encode_1 [0] a(v0, v1) -> null_a [0] b(v0, v1) -> null_b [0] The TRS has the following type information: a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b 0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b c_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b c_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b 1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encArg :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b cons_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b cons_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encArg :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b Rewrite Strategy: INNERMOST ---------------------------------------- (27) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: 0 => 0 1 => 1 null_encArg => 0 null_encode_a => 0 null_encode_0 => 0 null_encode_b => 0 null_encode_1 => 0 null_a => 0 null_b => 0 ---------------------------------------- (28) Obligation: Complexity RNTS consisting of the following rules: a(z, z') -{ 2 }-> b(0, b(1, a(0, a(x', y')))) :|: z' = 1 + 1 + (1 + x' + y'), x' >= 0, y' >= 0, z = 0 a(z, z') -{ 2 }-> b(0, b(0, b(0, x))) :|: x >= 0, z' = 1 + 0 + x, z = 0 a(z, z') -{ 2 }-> b(0, b(0, a(0, x''))) :|: z' = 1 + 0 + (1 + 0 + x''), x'' >= 0, z = 0 a(z, z') -{ 2 }-> b(0, a(1, a(1, a(x2, y'')))) :|: z' = 1 + 0 + (1 + x2 + y''), y'' >= 0, z = 0, x2 >= 0 a(z, z') -{ 2 }-> b(0, a(1, a(0, a(x3, y1)))) :|: y1 >= 0, z' = 1 + 0 + (1 + 1 + (1 + x3 + y1)), z = 0, x3 >= 0 a(z, z') -{ 1 }-> b(0, 0) :|: z' = x, x >= 0, z = 0 a(z, z') -{ 1 }-> b(0, 0) :|: x >= 0, z' = 1 + 0 + x, z = 0 a(z, z') -{ 1 }-> b(0, 1 + 0 + x) :|: z' = x, x >= 0, z = 0 a(z, z') -{ 1 }-> b(0, 1 + 0 + x) :|: x >= 0, z' = 1 + 0 + x, z = 0 a(z, z') -{ 2 }-> a(1, a(1, b(0, b(0, y)))) :|: y >= 0, z = 0, z' = 1 + 0 + y a(z, z') -{ 2 }-> a(1, a(1, b(0, a(0, x4)))) :|: z' = 1 + 0 + (1 + 0 + x4), x4 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(1, a(1, a(1, a(x5, y2))))) :|: z' = 1 + 0 + (1 + x5 + y2), x5 >= 0, y2 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(1, a(1, a(0, a(x6, y3))))) :|: z' = 1 + 0 + (1 + 1 + (1 + x6 + y3)), x6 >= 0, y3 >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(1, 0)) :|: z' = 1 + x + y, x >= 0, y >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(1, 1 + x + y)) :|: z' = 1 + x + y, x >= 0, y >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(0, b(0, b(0, y)))) :|: z' = 1 + 1 + (1 + 0 + y), y >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(0, b(0, a(0, x10)))) :|: x10 >= 0, z = 0, z' = 1 + 1 + (1 + 0 + (1 + 0 + x10)) a(z, z') -{ 2 }-> a(1, a(0, a(1, a(1, a(x11, y6))))) :|: y6 >= 0, x11 >= 0, z' = 1 + 1 + (1 + 0 + (1 + x11 + y6)), z = 0 a(z, z') -{ 2 }-> a(1, a(0, a(1, a(0, a(x12, y7))))) :|: z' = 1 + 1 + (1 + 0 + (1 + 1 + (1 + x12 + y7))), x12 >= 0, y7 >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(0, 0)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 a(z, z') -{ 1 }-> a(1, a(0, 1 + x + y)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 a(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 a(z, z') -{ 0 }-> 1 + x0 + x1 :|: z = x0, x0 >= 0, x1 >= 0, z' = x1 b(z, z') -{ 2 }-> b(1, a(0, b(0, b(0, y)))) :|: z' = 1 + 1 + (1 + 0 + y), y >= 0, z = 0 b(z, z') -{ 2 }-> b(1, a(0, b(0, a(0, x7)))) :|: x7 >= 0, z = 0, z' = 1 + 1 + (1 + 0 + (1 + 0 + x7)) b(z, z') -{ 2 }-> b(1, a(0, a(1, a(1, a(x8, y4))))) :|: x8 >= 0, z' = 1 + 1 + (1 + 0 + (1 + x8 + y4)), y4 >= 0, z = 0 b(z, z') -{ 2 }-> b(1, a(0, a(1, a(0, a(x9, y5))))) :|: y5 >= 0, z' = 1 + 1 + (1 + 0 + (1 + 1 + (1 + x9 + y5))), z = 0, x9 >= 0 b(z, z') -{ 1 }-> b(1, a(0, 0)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 b(z, z') -{ 1 }-> b(1, a(0, 1 + x + y)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 b(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 b(z, z') -{ 0 }-> 1 + x0 + x1 :|: z = x0, x0 >= 0, x1 >= 0, z' = x1 encArg(z) -{ 0 }-> b(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> a(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> 1 :|: z = 1 encArg(z) -{ 0 }-> 0 :|: z = 0 encArg(z) -{ 0 }-> 0 :|: v0 >= 0, z = v0 encode_0 -{ 0 }-> 0 :|: encode_1 -{ 0 }-> 1 :|: encode_1 -{ 0 }-> 0 :|: encode_a(z, z') -{ 0 }-> a(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, x_2 >= 0, z = x_1, z' = x_2 encode_a(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 encode_b(z, z') -{ 0 }-> b(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, x_2 >= 0, z = x_1, z' = x_2 encode_b(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 ---------------------------------------- (29) SimplificationProof (BOTH BOUNDS(ID, ID)) Simplified the RNTS by moving equalities from the constraints into the right-hand sides. ---------------------------------------- (30) Obligation: Complexity RNTS consisting of the following rules: a(z, z') -{ 2 }-> b(0, b(1, a(0, a(x', y')))) :|: z' = 1 + 1 + (1 + x' + y'), x' >= 0, y' >= 0, z = 0 a(z, z') -{ 2 }-> b(0, b(0, b(0, z' - 1))) :|: z' - 1 >= 0, z = 0 a(z, z') -{ 2 }-> b(0, b(0, a(0, z' - 2))) :|: z' - 2 >= 0, z = 0 a(z, z') -{ 2 }-> b(0, a(1, a(1, a(x2, y'')))) :|: z' = 1 + 0 + (1 + x2 + y''), y'' >= 0, z = 0, x2 >= 0 a(z, z') -{ 2 }-> b(0, a(1, a(0, a(x3, y1)))) :|: y1 >= 0, z' = 1 + 0 + (1 + 1 + (1 + x3 + y1)), z = 0, x3 >= 0 a(z, z') -{ 1 }-> b(0, 0) :|: z' >= 0, z = 0 a(z, z') -{ 1 }-> b(0, 0) :|: z' - 1 >= 0, z = 0 a(z, z') -{ 1 }-> b(0, 1 + 0 + z') :|: z' >= 0, z = 0 a(z, z') -{ 1 }-> b(0, 1 + 0 + (z' - 1)) :|: z' - 1 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(1, b(0, b(0, z' - 1)))) :|: z' - 1 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(1, b(0, a(0, z' - 2)))) :|: z' - 2 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(1, a(1, a(1, a(x5, y2))))) :|: z' = 1 + 0 + (1 + x5 + y2), x5 >= 0, y2 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(1, a(1, a(0, a(x6, y3))))) :|: z' = 1 + 0 + (1 + 1 + (1 + x6 + y3)), x6 >= 0, y3 >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(1, 0)) :|: z' = 1 + x + y, x >= 0, y >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(1, 1 + x + y)) :|: z' = 1 + x + y, x >= 0, y >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(0, b(0, b(0, z' - 3)))) :|: z' - 3 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(0, b(0, a(0, z' - 4)))) :|: z' - 4 >= 0, z = 0 a(z, z') -{ 2 }-> a(1, a(0, a(1, a(1, a(x11, y6))))) :|: y6 >= 0, x11 >= 0, z' = 1 + 1 + (1 + 0 + (1 + x11 + y6)), z = 0 a(z, z') -{ 2 }-> a(1, a(0, a(1, a(0, a(x12, y7))))) :|: z' = 1 + 1 + (1 + 0 + (1 + 1 + (1 + x12 + y7))), x12 >= 0, y7 >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(0, 0)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 a(z, z') -{ 1 }-> a(1, a(0, 1 + x + y)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 a(z, z') -{ 0 }-> 0 :|: z >= 0, z' >= 0 a(z, z') -{ 0 }-> 1 + z + z' :|: z >= 0, z' >= 0 b(z, z') -{ 2 }-> b(1, a(0, b(0, b(0, z' - 3)))) :|: z' - 3 >= 0, z = 0 b(z, z') -{ 2 }-> b(1, a(0, b(0, a(0, z' - 4)))) :|: z' - 4 >= 0, z = 0 b(z, z') -{ 2 }-> b(1, a(0, a(1, a(1, a(x8, y4))))) :|: x8 >= 0, z' = 1 + 1 + (1 + 0 + (1 + x8 + y4)), y4 >= 0, z = 0 b(z, z') -{ 2 }-> b(1, a(0, a(1, a(0, a(x9, y5))))) :|: y5 >= 0, z' = 1 + 1 + (1 + 0 + (1 + 1 + (1 + x9 + y5))), z = 0, x9 >= 0 b(z, z') -{ 1 }-> b(1, a(0, 0)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 b(z, z') -{ 1 }-> b(1, a(0, 1 + x + y)) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 b(z, z') -{ 0 }-> 0 :|: z >= 0, z' >= 0 b(z, z') -{ 0 }-> 1 + z + z' :|: z >= 0, z' >= 0 encArg(z) -{ 0 }-> b(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> a(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> 1 :|: z = 1 encArg(z) -{ 0 }-> 0 :|: z = 0 encArg(z) -{ 0 }-> 0 :|: z >= 0 encode_0 -{ 0 }-> 0 :|: encode_1 -{ 0 }-> 1 :|: encode_1 -{ 0 }-> 0 :|: encode_a(z, z') -{ 0 }-> a(encArg(z), encArg(z')) :|: z >= 0, z' >= 0 encode_a(z, z') -{ 0 }-> 0 :|: z >= 0, z' >= 0 encode_b(z, z') -{ 0 }-> b(encArg(z), encArg(z')) :|: z >= 0, z' >= 0 encode_b(z, z') -{ 0 }-> 0 :|: z >= 0, z' >= 0 ---------------------------------------- (31) 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_a(v0, v1) -> null_encode_a [0] encode_0 -> null_encode_0 [0] encode_b(v0, v1) -> null_encode_b [0] encode_1 -> null_encode_1 [0] a(v0, v1) -> null_a [0] b(v0, v1) -> null_b [0] And the following fresh constants: null_encArg, null_encode_a, null_encode_0, null_encode_b, null_encode_1, null_a, null_b ---------------------------------------- (32) 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: a(0, x) -> b(0, b(0, x)) [1] a(0, c_b(0, x)) -> b(0, a(0, x)) [1] a(0, c_a(x, y)) -> a(1, a(1, a(x, y))) [1] b(0, c_a(1, c_a(x, y))) -> b(1, a(0, a(x, y))) [1] a(0, c_a(1, c_a(x, y))) -> a(1, a(0, a(x, y))) [1] encArg(0) -> 0 [0] encArg(1) -> 1 [0] encArg(cons_a(x_1, x_2)) -> a(encArg(x_1), encArg(x_2)) [0] encArg(cons_b(x_1, x_2)) -> b(encArg(x_1), encArg(x_2)) [0] encode_a(x_1, x_2) -> a(encArg(x_1), encArg(x_2)) [0] encode_0 -> 0 [0] encode_b(x_1, x_2) -> b(encArg(x_1), encArg(x_2)) [0] encode_1 -> 1 [0] a(x0, x1) -> c_a(x0, x1) [0] b(x0, x1) -> c_b(x0, x1) [0] encArg(v0) -> null_encArg [0] encode_a(v0, v1) -> null_encode_a [0] encode_0 -> null_encode_0 [0] encode_b(v0, v1) -> null_encode_b [0] encode_1 -> null_encode_1 [0] a(v0, v1) -> null_a [0] b(v0, v1) -> null_b [0] The TRS has the following type information: a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b 0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b c_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b c_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b 1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encArg :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b cons_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b cons_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b -> 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b encode_1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encArg :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_0 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_encode_1 :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_a :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b null_b :: 0:c_b:c_a:1:cons_a:cons_b:null_encArg:null_encode_a:null_encode_0:null_encode_b:null_encode_1:null_a:null_b Rewrite Strategy: INNERMOST ---------------------------------------- (33) CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID)) Transformed the TRS into an over-approximating RNTS by (improved) Size Abstraction. The constant constructors are abstracted as follows: 0 => 0 1 => 1 null_encArg => 0 null_encode_a => 0 null_encode_0 => 0 null_encode_b => 0 null_encode_1 => 0 null_a => 0 null_b => 0 ---------------------------------------- (34) Obligation: Complexity RNTS consisting of the following rules: a(z, z') -{ 1 }-> b(0, b(0, x)) :|: z' = x, x >= 0, z = 0 a(z, z') -{ 1 }-> b(0, a(0, x)) :|: x >= 0, z' = 1 + 0 + x, z = 0 a(z, z') -{ 1 }-> a(1, a(1, a(x, y))) :|: z' = 1 + x + y, x >= 0, y >= 0, z = 0 a(z, z') -{ 1 }-> a(1, a(0, a(x, y))) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 a(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 a(z, z') -{ 0 }-> 1 + x0 + x1 :|: z = x0, x0 >= 0, x1 >= 0, z' = x1 b(z, z') -{ 1 }-> b(1, a(0, a(x, y))) :|: x >= 0, y >= 0, z' = 1 + 1 + (1 + x + y), z = 0 b(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 b(z, z') -{ 0 }-> 1 + x0 + x1 :|: z = x0, x0 >= 0, x1 >= 0, z' = x1 encArg(z) -{ 0 }-> b(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> a(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, z = 1 + x_1 + x_2, x_2 >= 0 encArg(z) -{ 0 }-> 1 :|: z = 1 encArg(z) -{ 0 }-> 0 :|: z = 0 encArg(z) -{ 0 }-> 0 :|: v0 >= 0, z = v0 encode_0 -{ 0 }-> 0 :|: encode_1 -{ 0 }-> 1 :|: encode_1 -{ 0 }-> 0 :|: encode_a(z, z') -{ 0 }-> a(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, x_2 >= 0, z = x_1, z' = x_2 encode_a(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 encode_b(z, z') -{ 0 }-> b(encArg(x_1), encArg(x_2)) :|: x_1 >= 0, x_2 >= 0, z = x_1, z' = x_2 encode_b(z, z') -{ 0 }-> 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1 Only complete derivations are relevant for the runtime complexity. ---------------------------------------- (35) CpxTrsToCdtProof (UPPER BOUND(ID)) Converted Cpx (relative) TRS to CDT ---------------------------------------- (36) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) encode_a(z0, z1) -> a(encArg(z0), encArg(z1)) encode_0 -> 0 encode_b(z0, z1) -> b(encArg(z0), encArg(z1)) encode_1 -> 1 a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(0) -> c ENCARG(1) -> c1 ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_A(z0, z1) -> c4(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_0 -> c5 ENCODE_B(z0, z1) -> c6(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_1 -> c7 A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(1, a(1, a(z0, z1))), A(1, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(B(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(1, a(1, a(z0, z1))), A(1, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(B(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: a_2, b_2, encArg_1, encode_a_2, encode_0, encode_b_2, encode_1 Defined Pair Symbols: ENCARG_1, ENCODE_A_2, ENCODE_0, ENCODE_B_2, ENCODE_1, A_2, B_2 Compound Symbols: c, c1, c2_3, c3_3, c4_3, c5, c6_3, c7, c8_2, c9_2, c10_3, c11_3, c12_3 ---------------------------------------- (37) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 4 trailing nodes: ENCARG(0) -> c ENCODE_1 -> c7 ENCARG(1) -> c1 ENCODE_0 -> c5 ---------------------------------------- (38) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) encode_a(z0, z1) -> a(encArg(z0), encArg(z1)) encode_0 -> 0 encode_b(z0, z1) -> b(encArg(z0), encArg(z1)) encode_1 -> 1 a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_A(z0, z1) -> c4(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_B(z0, z1) -> c6(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(1, a(1, a(z0, z1))), A(1, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(B(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(1, a(1, a(z0, z1))), A(1, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(B(1, a(0, a(z0, z1))), A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: a_2, b_2, encArg_1, encode_a_2, encode_0, encode_b_2, encode_1 Defined Pair Symbols: ENCARG_1, ENCODE_A_2, ENCODE_B_2, A_2, B_2 Compound Symbols: c2_3, c3_3, c4_3, c6_3, c8_2, c9_2, c10_3, c11_3, c12_3 ---------------------------------------- (39) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 4 trailing tuple parts ---------------------------------------- (40) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) encode_a(z0, z1) -> a(encArg(z0), encArg(z1)) encode_0 -> 0 encode_b(z0, z1) -> b(encArg(z0), encArg(z1)) encode_1 -> 1 a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_A(z0, z1) -> c4(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCODE_B(z0, z1) -> c6(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: a_2, b_2, encArg_1, encode_a_2, encode_0, encode_b_2, encode_1 Defined Pair Symbols: ENCARG_1, ENCODE_A_2, ENCODE_B_2, A_2, B_2 Compound Symbols: c2_3, c3_3, c4_3, c6_3, c8_2, c9_2, c10_2, c11_1, c12_2 ---------------------------------------- (41) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (42) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) encode_a(z0, z1) -> a(encArg(z0), encArg(z1)) encode_0 -> 0 encode_b(z0, z1) -> b(encArg(z0), encArg(z1)) encode_1 -> 1 a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_A(z0, z1) -> c(ENCARG(z0)) ENCODE_A(z0, z1) -> c(ENCARG(z1)) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(ENCARG(z0)) ENCODE_B(z0, z1) -> c(ENCARG(z1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: a_2, b_2, encArg_1, encode_a_2, encode_0, encode_b_2, encode_1 Defined Pair Symbols: ENCARG_1, A_2, B_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c2_3, c3_3, c8_2, c9_2, c10_2, c11_1, c12_2, c_1 ---------------------------------------- (43) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 4 leading nodes: ENCODE_A(z0, z1) -> c(ENCARG(z0)) ENCODE_A(z0, z1) -> c(ENCARG(z1)) ENCODE_B(z0, z1) -> c(ENCARG(z0)) ENCODE_B(z0, z1) -> c(ENCARG(z1)) ---------------------------------------- (44) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) encode_a(z0, z1) -> a(encArg(z0), encArg(z1)) encode_0 -> 0 encode_b(z0, z1) -> b(encArg(z0), encArg(z1)) encode_1 -> 1 a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: a_2, b_2, encArg_1, encode_a_2, encode_0, encode_b_2, encode_1 Defined Pair Symbols: ENCARG_1, A_2, B_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c2_3, c3_3, c8_2, c9_2, c10_2, c11_1, c12_2, c_1 ---------------------------------------- (45) CdtUsableRulesProof (BOTH BOUNDS(ID, ID)) The following rules are not usable and were removed: encode_a(z0, z1) -> a(encArg(z0), encArg(z1)) encode_0 -> 0 encode_b(z0, z1) -> b(encArg(z0), encArg(z1)) encode_1 -> 1 ---------------------------------------- (46) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, B_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c2_3, c3_3, c8_2, c9_2, c10_2, c11_1, c12_2, c_1 ---------------------------------------- (47) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_a(z0, z1)) -> c2(A(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) by ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0), ENCARG(0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0), ENCARG(1)) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(0), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(A(1, encArg(x1)), ENCARG(1), ENCARG(x1)) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ---------------------------------------- (48) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0), ENCARG(0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0), ENCARG(1)) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(0), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(A(1, encArg(x1)), ENCARG(1), ENCARG(x1)) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, B_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c3_3, c8_2, c9_2, c10_2, c11_1, c12_2, c_1, c2_3 ---------------------------------------- (49) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 5 trailing tuple parts ---------------------------------------- (50) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, B_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c3_3, c8_2, c9_2, c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1 ---------------------------------------- (51) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_b(z0, z1)) -> c3(B(encArg(z0), encArg(z1)), ENCARG(z0), ENCARG(z1)) by ENCARG(cons_b(x0, 0)) -> c3(B(encArg(x0), 0), ENCARG(x0), ENCARG(0)) ENCARG(cons_b(x0, 1)) -> c3(B(encArg(x0), 1), ENCARG(x0), ENCARG(1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(0), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(B(1, encArg(x1)), ENCARG(1), ENCARG(x1)) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ---------------------------------------- (52) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(B(encArg(x0), 0), ENCARG(x0), ENCARG(0)) ENCARG(cons_b(x0, 1)) -> c3(B(encArg(x0), 1), ENCARG(x0), ENCARG(1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(0), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(B(1, encArg(x1)), ENCARG(1), ENCARG(x1)) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_A_2, ENCODE_B_2, ENCARG_1 Compound Symbols: c8_2, c9_2, c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3 ---------------------------------------- (53) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 7 trailing tuple parts ---------------------------------------- (54) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) S tuples: A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_A_2, ENCODE_B_2, ENCARG_1 Compound Symbols: c8_2, c9_2, c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2 ---------------------------------------- (55) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace A(0, b(0, z0)) -> c8(B(0, a(0, z0)), A(0, z0)) by A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, z0)) -> c8(B(0, b(0, b(0, z0))), A(0, z0)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) ---------------------------------------- (56) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, z0)) -> c8(B(0, b(0, b(0, z0))), A(0, z0)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) S tuples: A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, z0)) -> c8(B(0, b(0, b(0, z0))), A(0, z0)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_A_2, ENCODE_B_2, ENCARG_1 Compound Symbols: c9_2, c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2 ---------------------------------------- (57) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing tuple parts ---------------------------------------- (58) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) S tuples: A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_A_2, ENCODE_B_2, ENCARG_1 Compound Symbols: c9_2, c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1 ---------------------------------------- (59) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace A(0, z0) -> c9(B(0, b(0, z0)), B(0, z0)) by A(0, a(1, a(z0, z1))) -> c9(B(0, b(1, a(0, a(z0, z1)))), B(0, a(1, a(z0, z1)))) ---------------------------------------- (60) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(x0, 0)) -> c2(A(encArg(x0), 0), ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(A(encArg(x0), 1), ENCARG(x0)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, b(1, a(0, a(z0, z1)))), B(0, a(1, a(z0, z1)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, b(1, a(0, a(z0, z1)))), B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_A_2, ENCODE_B_2, ENCARG_1 Compound Symbols: c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_2 ---------------------------------------- (61) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing tuple parts ---------------------------------------- (62) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_A_2, ENCODE_B_2, ENCARG_1 Compound Symbols: c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1 ---------------------------------------- (63) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_A(z0, z1) -> c(A(encArg(z0), encArg(z1))) by ENCODE_A(x0, 0) -> c(A(encArg(x0), 0)) ENCODE_A(x0, 1) -> c(A(encArg(x0), 1)) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(1, x1) -> c(A(1, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ---------------------------------------- (64) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, 0) -> c(A(encArg(x0), 0)) ENCODE_A(x0, 1) -> c(A(encArg(x0), 1)) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(1, x1) -> c(A(1, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_B_2, ENCARG_1, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1 ---------------------------------------- (65) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing nodes: ENCODE_A(1, x1) -> c(A(1, encArg(x1))) ENCODE_A(x0, 0) -> c(A(encArg(x0), 0)) ENCODE_A(x0, 1) -> c(A(encArg(x0), 1)) ---------------------------------------- (66) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCODE_B_2, ENCARG_1, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c_1, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1 ---------------------------------------- (67) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_B(z0, z1) -> c(B(encArg(z0), encArg(z1))) by ENCODE_B(x0, 0) -> c(B(encArg(x0), 0)) ENCODE_B(x0, 1) -> c(B(encArg(x0), 1)) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(1, x1) -> c(B(1, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ---------------------------------------- (68) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, 0) -> c(B(encArg(x0), 0)) ENCODE_B(x0, 1) -> c(B(encArg(x0), 1)) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(1, x1) -> c(B(1, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (69) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing nodes: ENCODE_B(1, x1) -> c(B(1, encArg(x1))) ENCODE_B(x0, 1) -> c(B(encArg(x0), 1)) ENCODE_B(x0, 0) -> c(B(encArg(x0), 0)) ---------------------------------------- (70) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (71) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_a(x0, cons_a(z0, z1))) -> c2(A(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) by ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(A(1, a(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ---------------------------------------- (72) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(A(1, a(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (73) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing tuple parts ---------------------------------------- (74) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (75) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_a(x0, cons_b(z0, z1))) -> c2(A(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) by ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(A(encArg(x0), b(1, encArg(x2))), ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(A(1, b(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ---------------------------------------- (76) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(A(encArg(x0), b(1, encArg(x2))), ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(A(1, b(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (77) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 4 trailing tuple parts ---------------------------------------- (78) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (79) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_a(cons_a(z0, z1), x1)) -> c2(A(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) by ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(A(a(encArg(x0), encArg(x1)), 0), ENCARG(cons_a(x0, x1)), ENCARG(0)) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(A(a(encArg(x0), encArg(x1)), 1), ENCARG(cons_a(x0, x1)), ENCARG(1)) ENCARG(cons_a(cons_a(x0, x1), cons_a(z0, z1))) -> c2(A(a(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1))), ENCARG(cons_a(x0, x1)), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(cons_a(x0, x1), cons_b(z0, z1))) -> c2(A(a(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1))), ENCARG(cons_a(x0, x1)), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(A(a(1, encArg(x1)), encArg(x2)), ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ---------------------------------------- (80) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(A(a(encArg(x0), encArg(x1)), 0), ENCARG(cons_a(x0, x1)), ENCARG(0)) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(A(a(encArg(x0), encArg(x1)), 1), ENCARG(cons_a(x0, x1)), ENCARG(1)) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(A(a(1, encArg(x1)), encArg(x2)), ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (81) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 5 trailing tuple parts ---------------------------------------- (82) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_3, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1 ---------------------------------------- (83) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_a(cons_b(z0, z1), x1)) -> c2(A(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) by ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(A(b(encArg(x0), encArg(x1)), 0), ENCARG(cons_b(x0, x1)), ENCARG(0)) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(A(b(encArg(x0), encArg(x1)), 1), ENCARG(cons_b(x0, x1)), ENCARG(1)) ENCARG(cons_a(cons_b(x0, x1), cons_a(z0, z1))) -> c2(A(b(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1))), ENCARG(cons_b(x0, x1)), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(cons_b(x0, x1), cons_b(z0, z1))) -> c2(A(b(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1))), ENCARG(cons_b(x0, x1)), ENCARG(cons_b(z0, z1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(A(b(encArg(x0), 0), encArg(x2)), ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(A(b(encArg(x0), 1), encArg(x2)), ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(A(b(1, encArg(x1)), encArg(x2)), ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ---------------------------------------- (84) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(A(b(encArg(x0), encArg(x1)), 0), ENCARG(cons_b(x0, x1)), ENCARG(0)) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(A(b(encArg(x0), encArg(x1)), 1), ENCARG(cons_b(x0, x1)), ENCARG(1)) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(A(b(encArg(x0), 0), encArg(x2)), ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(A(b(encArg(x0), 1), encArg(x2)), ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(A(b(1, encArg(x1)), encArg(x2)), ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3 ---------------------------------------- (85) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 7 trailing tuple parts ---------------------------------------- (86) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3 ---------------------------------------- (87) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_a(0, x1)) -> c2(A(0, encArg(x1)), ENCARG(x1)) by ENCARG(cons_a(0, 0)) -> c2(A(0, 0), ENCARG(0)) ENCARG(cons_a(0, 1)) -> c2(A(0, 1), ENCARG(1)) ENCARG(cons_a(0, cons_a(z0, z1))) -> c2(A(0, a(encArg(z0), encArg(z1))), ENCARG(cons_a(z0, z1))) ENCARG(cons_a(0, cons_b(z0, z1))) -> c2(A(0, b(encArg(z0), encArg(z1))), ENCARG(cons_b(z0, z1))) ---------------------------------------- (88) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_a(0, 0)) -> c2(A(0, 0), ENCARG(0)) ENCARG(cons_a(0, 1)) -> c2(A(0, 1), ENCARG(1)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (89) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing nodes: ENCARG(cons_a(0, 0)) -> c2(A(0, 0), ENCARG(0)) ENCARG(cons_a(0, 1)) -> c2(A(0, 1), ENCARG(1)) ---------------------------------------- (90) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (91) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_b(x0, cons_a(z0, z1))) -> c3(B(encArg(x0), a(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_a(z0, z1))) by ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(B(1, a(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ---------------------------------------- (92) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(B(1, a(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (93) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing tuple parts ---------------------------------------- (94) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (95) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_b(x0, cons_b(z0, z1))) -> c3(B(encArg(x0), b(encArg(z0), encArg(z1))), ENCARG(x0), ENCARG(cons_b(z0, z1))) by ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(B(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(B(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(B(encArg(x0), b(1, encArg(x2))), ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(B(1, b(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ---------------------------------------- (96) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(B(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(B(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(B(encArg(x0), b(1, encArg(x2))), ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(0), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(B(1, b(encArg(x1), encArg(x2))), ENCARG(1), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (97) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 6 trailing tuple parts ---------------------------------------- (98) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (99) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_b(cons_a(z0, z1), x1)) -> c3(B(a(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_a(z0, z1)), ENCARG(x1)) by ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(B(a(encArg(x0), encArg(x1)), 0), ENCARG(cons_a(x0, x1)), ENCARG(0)) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(B(a(encArg(x0), encArg(x1)), 1), ENCARG(cons_a(x0, x1)), ENCARG(1)) ENCARG(cons_b(cons_a(x0, x1), cons_a(z0, z1))) -> c3(B(a(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1))), ENCARG(cons_a(x0, x1)), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(cons_a(x0, x1), cons_b(z0, z1))) -> c3(B(a(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1))), ENCARG(cons_a(x0, x1)), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(B(a(1, encArg(x1)), encArg(x2)), ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ---------------------------------------- (100) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(B(a(encArg(x0), encArg(x1)), 0), ENCARG(cons_a(x0, x1)), ENCARG(0)) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(B(a(encArg(x0), encArg(x1)), 1), ENCARG(cons_a(x0, x1)), ENCARG(1)) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(B(a(1, encArg(x1)), encArg(x2)), ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (101) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 5 trailing tuple parts ---------------------------------------- (102) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_3, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2 ---------------------------------------- (103) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_b(cons_b(z0, z1), x1)) -> c3(B(b(encArg(z0), encArg(z1)), encArg(x1)), ENCARG(cons_b(z0, z1)), ENCARG(x1)) by ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(B(b(encArg(x0), encArg(x1)), 0), ENCARG(cons_b(x0, x1)), ENCARG(0)) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(B(b(encArg(x0), encArg(x1)), 1), ENCARG(cons_b(x0, x1)), ENCARG(1)) ENCARG(cons_b(cons_b(x0, x1), cons_a(z0, z1))) -> c3(B(b(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1))), ENCARG(cons_b(x0, x1)), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(cons_b(x0, x1), cons_b(z0, z1))) -> c3(B(b(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1))), ENCARG(cons_b(x0, x1)), ENCARG(cons_b(z0, z1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(B(b(encArg(x0), 0), encArg(x2)), ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(B(b(encArg(x0), 1), encArg(x2)), ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(B(b(1, encArg(x1)), encArg(x2)), ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ---------------------------------------- (104) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(B(b(encArg(x0), encArg(x1)), 0), ENCARG(cons_b(x0, x1)), ENCARG(0)) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(B(b(encArg(x0), encArg(x1)), 1), ENCARG(cons_b(x0, x1)), ENCARG(1)) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(B(b(encArg(x0), 0), encArg(x2)), ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(B(b(encArg(x0), 1), encArg(x2)), ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(B(b(1, encArg(x1)), encArg(x2)), ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3 ---------------------------------------- (105) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 7 trailing tuple parts ---------------------------------------- (106) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c3_2, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3 ---------------------------------------- (107) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCARG(cons_b(0, x1)) -> c3(B(0, encArg(x1)), ENCARG(x1)) by ENCARG(cons_b(0, 0)) -> c3(B(0, 0), ENCARG(0)) ENCARG(cons_b(0, 1)) -> c3(B(0, 1), ENCARG(1)) ENCARG(cons_b(0, cons_a(z0, z1))) -> c3(B(0, a(encArg(z0), encArg(z1))), ENCARG(cons_a(z0, z1))) ENCARG(cons_b(0, cons_b(z0, z1))) -> c3(B(0, b(encArg(z0), encArg(z1))), ENCARG(cons_b(z0, z1))) ---------------------------------------- (108) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(0, 0)) -> c3(B(0, 0), ENCARG(0)) ENCARG(cons_b(0, 1)) -> c3(B(0, 1), ENCARG(1)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (109) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing nodes: ENCARG(cons_b(0, 0)) -> c3(B(0, 0), ENCARG(0)) ENCARG(cons_b(0, 1)) -> c3(B(0, 1), ENCARG(1)) ---------------------------------------- (110) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (111) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace A(0, b(0, b(0, z0))) -> c8(B(0, b(0, a(0, z0))), A(0, b(0, z0))) by A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, b(0, b(0, z0)))), A(0, b(0, z0))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) ---------------------------------------- (112) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, b(0, b(0, z0)))), A(0, b(0, z0))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, z0))) -> c8(B(0, b(0, b(0, b(0, z0)))), A(0, b(0, z0))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (113) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing tuple parts ---------------------------------------- (114) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (115) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_A(x0, cons_a(z0, z1)) -> c(A(encArg(x0), a(encArg(z0), encArg(z1)))) by ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(1, cons_a(x1, x2)) -> c(A(1, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ---------------------------------------- (116) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(1, cons_a(x1, x2)) -> c(A(1, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (117) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing nodes: ENCODE_A(1, cons_a(x1, x2)) -> c(A(1, a(encArg(x1), encArg(x2)))) ---------------------------------------- (118) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (119) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_A(x0, cons_b(z0, z1)) -> c(A(encArg(x0), b(encArg(z0), encArg(z1)))) by ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(1, x2)) -> c(A(encArg(x0), b(1, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(1, cons_b(x1, x2)) -> c(A(1, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ---------------------------------------- (120) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(1, x2)) -> c(A(encArg(x0), b(1, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(1, cons_b(x1, x2)) -> c(A(1, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (121) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing nodes: ENCODE_A(x0, cons_b(1, x2)) -> c(A(encArg(x0), b(1, encArg(x2)))) ENCODE_A(1, cons_b(x1, x2)) -> c(A(1, b(encArg(x1), encArg(x2)))) ---------------------------------------- (122) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(0, x1) -> c(A(0, encArg(x1))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (123) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_A(0, x1) -> c(A(0, encArg(x1))) by ENCODE_A(0, 0) -> c(A(0, 0)) ENCODE_A(0, 1) -> c(A(0, 1)) ENCODE_A(0, cons_a(z0, z1)) -> c(A(0, a(encArg(z0), encArg(z1)))) ENCODE_A(0, cons_b(z0, z1)) -> c(A(0, b(encArg(z0), encArg(z1)))) ---------------------------------------- (124) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(0, 0) -> c(A(0, 0)) ENCODE_A(0, 1) -> c(A(0, 1)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (125) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing nodes: ENCODE_A(0, 0) -> c(A(0, 0)) ENCODE_A(0, 1) -> c(A(0, 1)) ---------------------------------------- (126) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (127) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_A(cons_a(z0, z1), x1) -> c(A(a(encArg(z0), encArg(z1)), encArg(x1))) by ENCODE_A(cons_a(x0, x1), 0) -> c(A(a(encArg(x0), encArg(x1)), 0)) ENCODE_A(cons_a(x0, x1), 1) -> c(A(a(encArg(x0), encArg(x1)), 1)) ENCODE_A(cons_a(x0, x1), cons_a(z0, z1)) -> c(A(a(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1)))) ENCODE_A(cons_a(x0, x1), cons_b(z0, z1)) -> c(A(a(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(1, x1), x2) -> c(A(a(1, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ---------------------------------------- (128) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, x1), 0) -> c(A(a(encArg(x0), encArg(x1)), 0)) ENCODE_A(cons_a(x0, x1), 1) -> c(A(a(encArg(x0), encArg(x1)), 1)) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(1, x1), x2) -> c(A(a(1, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (129) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing nodes: ENCODE_A(cons_a(x0, x1), 0) -> c(A(a(encArg(x0), encArg(x1)), 0)) ENCODE_A(cons_a(1, x1), x2) -> c(A(a(1, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(x0, x1), 1) -> c(A(a(encArg(x0), encArg(x1)), 1)) ---------------------------------------- (130) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (131) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_A(cons_b(z0, z1), x1) -> c(A(b(encArg(z0), encArg(z1)), encArg(x1))) by ENCODE_A(cons_b(x0, x1), 0) -> c(A(b(encArg(x0), encArg(x1)), 0)) ENCODE_A(cons_b(x0, x1), 1) -> c(A(b(encArg(x0), encArg(x1)), 1)) ENCODE_A(cons_b(x0, x1), cons_a(z0, z1)) -> c(A(b(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1)))) ENCODE_A(cons_b(x0, x1), cons_b(z0, z1)) -> c(A(b(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1)))) ENCODE_A(cons_b(x0, 0), x2) -> c(A(b(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_b(x0, 1), x2) -> c(A(b(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(1, x1), x2) -> c(A(b(1, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ---------------------------------------- (132) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, x1), 0) -> c(A(b(encArg(x0), encArg(x1)), 0)) ENCODE_A(cons_b(x0, x1), 1) -> c(A(b(encArg(x0), encArg(x1)), 1)) ENCODE_A(cons_b(x0, 0), x2) -> c(A(b(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_b(x0, 1), x2) -> c(A(b(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(1, x1), x2) -> c(A(b(1, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (133) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 5 trailing nodes: ENCODE_A(cons_b(x0, 1), x2) -> c(A(b(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_b(x0, 0), x2) -> c(A(b(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_b(x0, x1), 0) -> c(A(b(encArg(x0), encArg(x1)), 0)) ENCODE_A(cons_b(x0, x1), 1) -> c(A(b(encArg(x0), encArg(x1)), 1)) ENCODE_A(cons_b(1, x1), x2) -> c(A(b(1, encArg(x1)), encArg(x2))) ---------------------------------------- (134) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (135) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_B(x0, cons_a(z0, z1)) -> c(B(encArg(x0), a(encArg(z0), encArg(z1)))) by ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(1, cons_a(x1, x2)) -> c(B(1, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ---------------------------------------- (136) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(1, cons_a(x1, x2)) -> c(B(1, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (137) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing nodes: ENCODE_B(1, cons_a(x1, x2)) -> c(B(1, a(encArg(x1), encArg(x2)))) ---------------------------------------- (138) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (139) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_B(x0, cons_b(z0, z1)) -> c(B(encArg(x0), b(encArg(z0), encArg(z1)))) by ENCODE_B(x0, cons_b(x1, 0)) -> c(B(encArg(x0), b(encArg(x1), 0))) ENCODE_B(x0, cons_b(x1, 1)) -> c(B(encArg(x0), b(encArg(x1), 1))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(1, x2)) -> c(B(encArg(x0), b(1, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(1, cons_b(x1, x2)) -> c(B(1, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ---------------------------------------- (140) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, 0)) -> c(B(encArg(x0), b(encArg(x1), 0))) ENCODE_B(x0, cons_b(x1, 1)) -> c(B(encArg(x0), b(encArg(x1), 1))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(1, x2)) -> c(B(encArg(x0), b(1, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(1, cons_b(x1, x2)) -> c(B(1, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (141) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 4 trailing nodes: ENCODE_B(x0, cons_b(x1, 0)) -> c(B(encArg(x0), b(encArg(x1), 0))) ENCODE_B(1, cons_b(x1, x2)) -> c(B(1, b(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, 1)) -> c(B(encArg(x0), b(encArg(x1), 1))) ENCODE_B(x0, cons_b(1, x2)) -> c(B(encArg(x0), b(1, encArg(x2)))) ---------------------------------------- (142) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(0, x1) -> c(B(0, encArg(x1))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (143) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_B(0, x1) -> c(B(0, encArg(x1))) by ENCODE_B(0, 0) -> c(B(0, 0)) ENCODE_B(0, 1) -> c(B(0, 1)) ENCODE_B(0, cons_a(z0, z1)) -> c(B(0, a(encArg(z0), encArg(z1)))) ENCODE_B(0, cons_b(z0, z1)) -> c(B(0, b(encArg(z0), encArg(z1)))) ---------------------------------------- (144) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(0, 0) -> c(B(0, 0)) ENCODE_B(0, 1) -> c(B(0, 1)) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (145) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing nodes: ENCODE_B(0, 0) -> c(B(0, 0)) ENCODE_B(0, 1) -> c(B(0, 1)) ---------------------------------------- (146) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (147) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_B(cons_a(z0, z1), x1) -> c(B(a(encArg(z0), encArg(z1)), encArg(x1))) by ENCODE_B(cons_a(x0, x1), 0) -> c(B(a(encArg(x0), encArg(x1)), 0)) ENCODE_B(cons_a(x0, x1), 1) -> c(B(a(encArg(x0), encArg(x1)), 1)) ENCODE_B(cons_a(x0, x1), cons_a(z0, z1)) -> c(B(a(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1)))) ENCODE_B(cons_a(x0, x1), cons_b(z0, z1)) -> c(B(a(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(1, x1), x2) -> c(B(a(1, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ---------------------------------------- (148) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, x1), 0) -> c(B(a(encArg(x0), encArg(x1)), 0)) ENCODE_B(cons_a(x0, x1), 1) -> c(B(a(encArg(x0), encArg(x1)), 1)) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(1, x1), x2) -> c(B(a(1, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (149) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 3 trailing nodes: ENCODE_B(cons_a(1, x1), x2) -> c(B(a(1, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(x0, x1), 1) -> c(B(a(encArg(x0), encArg(x1)), 1)) ENCODE_B(cons_a(x0, x1), 0) -> c(B(a(encArg(x0), encArg(x1)), 0)) ---------------------------------------- (150) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_B_2, ENCODE_A_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c_1, c2_3, c2_2, c3_3, c3_2 ---------------------------------------- (151) CdtNarrowingProof (BOTH BOUNDS(ID, ID)) Use narrowing to replace ENCODE_B(cons_b(z0, z1), x1) -> c(B(b(encArg(z0), encArg(z1)), encArg(x1))) by ENCODE_B(cons_b(x0, x1), 0) -> c(B(b(encArg(x0), encArg(x1)), 0)) ENCODE_B(cons_b(x0, x1), 1) -> c(B(b(encArg(x0), encArg(x1)), 1)) ENCODE_B(cons_b(x0, x1), cons_a(z0, z1)) -> c(B(b(encArg(x0), encArg(x1)), a(encArg(z0), encArg(z1)))) ENCODE_B(cons_b(x0, x1), cons_b(z0, z1)) -> c(B(b(encArg(x0), encArg(x1)), b(encArg(z0), encArg(z1)))) ENCODE_B(cons_b(x0, 0), x2) -> c(B(b(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_b(x0, 1), x2) -> c(B(b(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(1, x1), x2) -> c(B(b(1, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ---------------------------------------- (152) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, x1), 0) -> c(B(b(encArg(x0), encArg(x1)), 0)) ENCODE_B(cons_b(x0, x1), 1) -> c(B(b(encArg(x0), encArg(x1)), 1)) ENCODE_B(cons_b(x0, 0), x2) -> c(B(b(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_b(x0, 1), x2) -> c(B(b(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(1, x1), x2) -> c(B(b(1, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1 ---------------------------------------- (153) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID)) Removed 5 trailing nodes: ENCODE_B(cons_b(x0, 0), x2) -> c(B(b(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_b(1, x1), x2) -> c(B(b(1, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, x1), 0) -> c(B(b(encArg(x0), encArg(x1)), 0)) ENCODE_B(cons_b(x0, 1), x2) -> c(B(b(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_b(x0, x1), 1) -> c(B(b(encArg(x0), encArg(x1)), 1)) ---------------------------------------- (154) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) A(0, a(z0, z1)) -> c11(A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c11_1, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1 ---------------------------------------- (155) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace A(0, a(z0, z1)) -> c11(A(z0, z1)) by A(0, a(0, a(1, a(y0, y1)))) -> c11(A(0, a(1, a(y0, y1)))) A(0, a(0, a(y0, y1))) -> c11(A(0, a(y0, y1))) A(0, a(0, b(0, a(y0, y1)))) -> c11(A(0, b(0, a(y0, y1)))) A(0, a(0, b(0, y0))) -> c11(A(0, b(0, y0))) A(0, a(0, b(0, b(0, b(0, y0))))) -> c11(A(0, b(0, b(0, b(0, y0))))) A(0, a(0, b(0, b(0, a(y0, y1))))) -> c11(A(0, b(0, b(0, a(y0, y1))))) A(0, a(0, b(0, b(0, y0)))) -> c11(A(0, b(0, b(0, y0)))) ---------------------------------------- (156) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(0, a(1, a(y0, y1)))) -> c11(A(0, a(1, a(y0, y1)))) A(0, a(0, a(y0, y1))) -> c11(A(0, a(y0, y1))) A(0, a(0, b(0, a(y0, y1)))) -> c11(A(0, b(0, a(y0, y1)))) A(0, a(0, b(0, y0))) -> c11(A(0, b(0, y0))) A(0, a(0, b(0, b(0, b(0, y0))))) -> c11(A(0, b(0, b(0, b(0, y0))))) A(0, a(0, b(0, b(0, a(y0, y1))))) -> c11(A(0, b(0, b(0, a(y0, y1))))) A(0, a(0, b(0, b(0, y0)))) -> c11(A(0, b(0, b(0, y0)))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(0, a(1, a(y0, y1)))) -> c11(A(0, a(1, a(y0, y1)))) A(0, a(0, a(y0, y1))) -> c11(A(0, a(y0, y1))) A(0, a(0, b(0, a(y0, y1)))) -> c11(A(0, b(0, a(y0, y1)))) A(0, a(0, b(0, y0))) -> c11(A(0, b(0, y0))) A(0, a(0, b(0, b(0, b(0, y0))))) -> c11(A(0, b(0, b(0, b(0, y0))))) A(0, a(0, b(0, b(0, a(y0, y1))))) -> c11(A(0, b(0, b(0, a(y0, y1))))) A(0, a(0, b(0, b(0, y0)))) -> c11(A(0, b(0, b(0, y0)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c11_1 ---------------------------------------- (157) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 7 leading nodes: A(0, a(0, b(0, y0))) -> c11(A(0, b(0, y0))) A(0, a(0, b(0, b(0, b(0, y0))))) -> c11(A(0, b(0, b(0, b(0, y0))))) A(0, a(0, b(0, b(0, a(y0, y1))))) -> c11(A(0, b(0, b(0, a(y0, y1))))) A(0, a(0, b(0, b(0, y0)))) -> c11(A(0, b(0, b(0, y0)))) A(0, a(0, b(0, a(y0, y1)))) -> c11(A(0, b(0, a(y0, y1)))) A(0, a(0, a(1, a(y0, y1)))) -> c11(A(0, a(1, a(y0, y1)))) A(0, a(0, a(y0, y1))) -> c11(A(0, a(y0, y1))) ---------------------------------------- (158) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) S tuples: A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: A_2, B_2, ENCARG_1, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c10_2, c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1 ---------------------------------------- (159) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace A(0, a(1, a(z0, z1))) -> c10(A(0, a(z0, z1)), A(z0, z1)) by A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) A(0, a(1, a(0, a(1, a(y0, y1))))) -> c10(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) A(0, a(1, a(0, b(0, a(y0, y1))))) -> c10(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) A(0, a(1, a(0, b(0, y0)))) -> c10(A(0, a(0, b(0, y0))), A(0, b(0, y0))) A(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c10(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) A(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c10(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) A(0, a(1, a(0, b(0, b(0, y0))))) -> c10(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) ---------------------------------------- (160) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) A(0, a(1, a(0, a(1, a(y0, y1))))) -> c10(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) A(0, a(1, a(0, b(0, a(y0, y1))))) -> c10(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) A(0, a(1, a(0, b(0, y0)))) -> c10(A(0, a(0, b(0, y0))), A(0, b(0, y0))) A(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c10(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) A(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c10(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) A(0, a(1, a(0, b(0, b(0, y0))))) -> c10(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) S tuples: B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) A(0, a(1, a(0, a(1, a(y0, y1))))) -> c10(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) A(0, a(1, a(0, b(0, a(y0, y1))))) -> c10(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) A(0, a(1, a(0, b(0, y0)))) -> c10(A(0, a(0, b(0, y0))), A(0, b(0, y0))) A(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c10(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) A(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c10(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) A(0, a(1, a(0, b(0, b(0, y0))))) -> c10(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: B_2, ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c10_2 ---------------------------------------- (161) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 6 leading nodes: A(0, a(1, a(0, b(0, y0)))) -> c10(A(0, a(0, b(0, y0))), A(0, b(0, y0))) A(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c10(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) A(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c10(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) A(0, a(1, a(0, b(0, b(0, y0))))) -> c10(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) A(0, a(1, a(0, b(0, a(y0, y1))))) -> c10(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) A(0, a(1, a(0, a(1, a(y0, y1))))) -> c10(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) ---------------------------------------- (162) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) S tuples: B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: B_2, ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c10_2 ---------------------------------------- (163) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 1 trailing tuple parts ---------------------------------------- (164) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) S tuples: B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: B_2, ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2 Compound Symbols: c12_2, c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c10_1 ---------------------------------------- (165) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace B(0, a(1, a(z0, z1))) -> c12(A(0, a(z0, z1)), A(z0, z1)) by B(0, a(1, a(0, b(0, a(y0, y1))))) -> c12(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) B(0, a(1, a(0, b(0, y0)))) -> c12(A(0, a(0, b(0, y0))), A(0, b(0, y0))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) B(0, a(1, a(0, a(1, a(y0, y1))))) -> c12(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) B(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c12(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) B(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c12(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) B(0, a(1, a(0, b(0, b(0, y0))))) -> c12(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1)))), A(1, a(1, a(y0, y1)))) B(0, a(1, a(0, a(1, a(1, a(y0, y1)))))) -> c12(A(0, a(0, a(1, a(1, a(y0, y1))))), A(0, a(1, a(1, a(y0, y1))))) ---------------------------------------- (166) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(0, b(0, a(y0, y1))))) -> c12(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) B(0, a(1, a(0, b(0, y0)))) -> c12(A(0, a(0, b(0, y0))), A(0, b(0, y0))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) B(0, a(1, a(0, a(1, a(y0, y1))))) -> c12(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) B(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c12(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) B(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c12(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) B(0, a(1, a(0, b(0, b(0, y0))))) -> c12(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1)))), A(1, a(1, a(y0, y1)))) B(0, a(1, a(0, a(1, a(1, a(y0, y1)))))) -> c12(A(0, a(0, a(1, a(1, a(y0, y1))))), A(0, a(1, a(1, a(y0, y1))))) S tuples: A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(0, b(0, a(y0, y1))))) -> c12(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) B(0, a(1, a(0, b(0, y0)))) -> c12(A(0, a(0, b(0, y0))), A(0, b(0, y0))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) B(0, a(1, a(0, a(1, a(y0, y1))))) -> c12(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) B(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c12(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) B(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c12(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) B(0, a(1, a(0, b(0, b(0, y0))))) -> c12(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1)))), A(1, a(1, a(y0, y1)))) B(0, a(1, a(0, a(1, a(1, a(y0, y1)))))) -> c12(A(0, a(0, a(1, a(1, a(y0, y1))))), A(0, a(1, a(1, a(y0, y1))))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c10_1, c12_2 ---------------------------------------- (167) CdtLeafRemovalProof (ComplexityIfPolyImplication) Removed 7 leading nodes: B(0, a(1, a(0, b(0, y0)))) -> c12(A(0, a(0, b(0, y0))), A(0, b(0, y0))) B(0, a(1, a(0, b(0, b(0, b(0, y0)))))) -> c12(A(0, a(0, b(0, b(0, b(0, y0))))), A(0, b(0, b(0, b(0, y0))))) B(0, a(1, a(0, b(0, b(0, a(y0, y1)))))) -> c12(A(0, a(0, b(0, b(0, a(y0, y1))))), A(0, b(0, b(0, a(y0, y1))))) B(0, a(1, a(0, b(0, b(0, y0))))) -> c12(A(0, a(0, b(0, b(0, y0)))), A(0, b(0, b(0, y0)))) B(0, a(1, a(0, b(0, a(y0, y1))))) -> c12(A(0, a(0, b(0, a(y0, y1)))), A(0, b(0, a(y0, y1)))) B(0, a(1, a(0, a(1, a(y0, y1))))) -> c12(A(0, a(0, a(1, a(y0, y1)))), A(0, a(1, a(y0, y1)))) B(0, a(1, a(0, a(1, a(1, a(y0, y1)))))) -> c12(A(0, a(0, a(1, a(1, a(y0, y1))))), A(0, a(1, a(1, a(y0, y1))))) ---------------------------------------- (168) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1)))), A(1, a(1, a(y0, y1)))) S tuples: A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1))), A(1, a(y0, y1))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1)))), A(1, a(1, a(y0, y1)))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c10_1, c12_2 ---------------------------------------- (169) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID)) Removed 2 trailing tuple parts ---------------------------------------- (170) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) S tuples: A(0, b(0, a(z0, z1))) -> c8(B(0, a(1, a(1, a(z0, z1)))), A(0, a(z0, z1))) A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c2_1, c3_1, c8_2, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c_1, c10_1, c12_1 ---------------------------------------- (171) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID)) Split RHS of tuples not part of any SCC ---------------------------------------- (172) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) S tuples: A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c2_1, c3_1, c8_1, c9_1, c2_3, c2_2, c3_3, c3_2, c8_2, c_1, c10_1, c12_1, c1_1 ---------------------------------------- (173) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace ENCARG(cons_a(1, x1)) -> c2(ENCARG(x1)) by ENCARG(cons_a(1, cons_a(1, y0))) -> c2(ENCARG(cons_a(1, y0))) ENCARG(cons_a(1, cons_b(y0, 0))) -> c2(ENCARG(cons_b(y0, 0))) ENCARG(cons_a(1, cons_b(y0, 1))) -> c2(ENCARG(cons_b(y0, 1))) ENCARG(cons_a(1, cons_b(1, y0))) -> c2(ENCARG(cons_b(1, y0))) ENCARG(cons_a(1, cons_a(y0, 0))) -> c2(ENCARG(cons_a(y0, 0))) ENCARG(cons_a(1, cons_a(y0, 1))) -> c2(ENCARG(cons_a(y0, 1))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1))) -> c2(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1))) -> c2(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1))) -> c2(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1))) -> c2(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1))) -> c2(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1))) -> c2(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1))) -> c2(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1))) -> c2(ENCARG(cons_b(cons_b(1, y0), y1))) ---------------------------------------- (174) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) ENCARG(cons_a(1, cons_a(1, y0))) -> c2(ENCARG(cons_a(1, y0))) ENCARG(cons_a(1, cons_b(y0, 0))) -> c2(ENCARG(cons_b(y0, 0))) ENCARG(cons_a(1, cons_b(y0, 1))) -> c2(ENCARG(cons_b(y0, 1))) ENCARG(cons_a(1, cons_b(1, y0))) -> c2(ENCARG(cons_b(1, y0))) ENCARG(cons_a(1, cons_a(y0, 0))) -> c2(ENCARG(cons_a(y0, 0))) ENCARG(cons_a(1, cons_a(y0, 1))) -> c2(ENCARG(cons_a(y0, 1))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1))) -> c2(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1))) -> c2(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1))) -> c2(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1))) -> c2(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1))) -> c2(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1))) -> c2(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1))) -> c2(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1))) -> c2(ENCARG(cons_b(cons_b(1, y0), y1))) S tuples: A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c3_1, c8_1, c2_1, c9_1, c2_3, c2_2, c3_3, c3_2, c8_2, c_1, c10_1, c12_1, c1_1 ---------------------------------------- (175) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace ENCARG(cons_b(x0, 0)) -> c3(ENCARG(x0)) by ENCARG(cons_b(cons_b(y0, 0), 0)) -> c3(ENCARG(cons_b(y0, 0))) ENCARG(cons_b(cons_b(y0, 1), 0)) -> c3(ENCARG(cons_b(y0, 1))) ENCARG(cons_b(cons_b(1, y0), 0)) -> c3(ENCARG(cons_b(1, y0))) ENCARG(cons_b(cons_a(y0, 0), 0)) -> c3(ENCARG(cons_a(y0, 0))) ENCARG(cons_b(cons_a(y0, 1), 0)) -> c3(ENCARG(cons_a(y0, 1))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, y0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, y0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1)))) ---------------------------------------- (176) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) ENCARG(cons_a(1, cons_a(1, y0))) -> c2(ENCARG(cons_a(1, y0))) ENCARG(cons_a(1, cons_b(y0, 0))) -> c2(ENCARG(cons_b(y0, 0))) ENCARG(cons_a(1, cons_b(y0, 1))) -> c2(ENCARG(cons_b(y0, 1))) ENCARG(cons_a(1, cons_b(1, y0))) -> c2(ENCARG(cons_b(1, y0))) ENCARG(cons_a(1, cons_a(y0, 0))) -> c2(ENCARG(cons_a(y0, 0))) ENCARG(cons_a(1, cons_a(y0, 1))) -> c2(ENCARG(cons_a(y0, 1))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1))) -> c2(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1))) -> c2(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1))) -> c2(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1))) -> c2(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1))) -> c2(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1))) -> c2(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1))) -> c2(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1))) -> c2(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, 0), 0)) -> c3(ENCARG(cons_b(y0, 0))) ENCARG(cons_b(cons_b(y0, 1), 0)) -> c3(ENCARG(cons_b(y0, 1))) ENCARG(cons_b(cons_b(1, y0), 0)) -> c3(ENCARG(cons_b(1, y0))) ENCARG(cons_b(cons_a(y0, 0), 0)) -> c3(ENCARG(cons_a(y0, 0))) ENCARG(cons_b(cons_a(y0, 1), 0)) -> c3(ENCARG(cons_a(y0, 1))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, y0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, y0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1)))) S tuples: A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c3_1, c8_1, c2_1, c9_1, c2_3, c2_2, c3_3, c3_2, c8_2, c_1, c10_1, c12_1, c1_1 ---------------------------------------- (177) CdtForwardInstantiationProof (BOTH BOUNDS(ID, ID)) Use forward instantiation to replace ENCARG(cons_b(x0, 1)) -> c3(ENCARG(x0)) by ENCARG(cons_b(cons_b(y0, 1), 1)) -> c3(ENCARG(cons_b(y0, 1))) ENCARG(cons_b(cons_b(1, y0), 1)) -> c3(ENCARG(cons_b(1, y0))) ENCARG(cons_b(cons_a(y0, 0), 1)) -> c3(ENCARG(cons_a(y0, 0))) ENCARG(cons_b(cons_a(y0, 1), 1)) -> c3(ENCARG(cons_a(y0, 1))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 1)) -> c3(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 1)) -> c3(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 1)) -> c3(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 1)) -> c3(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(1, y0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(1, y0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_b(cons_b(y0, 0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 0), 0))) ENCARG(cons_b(cons_b(cons_b(y0, 1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 1), 0))) ENCARG(cons_b(cons_b(cons_b(1, y0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(1, y0), 0))) ENCARG(cons_b(cons_b(cons_a(y0, 0), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 0), 0))) ENCARG(cons_b(cons_b(cons_a(y0, 1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(0, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(0, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(0, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(1, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(0, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(1, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(1, y0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(1, y0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0))) ---------------------------------------- (178) Obligation: Complexity Dependency Tuples Problem Rules: encArg(0) -> 0 encArg(1) -> 1 encArg(cons_a(z0, z1)) -> a(encArg(z0), encArg(z1)) encArg(cons_b(z0, z1)) -> b(encArg(z0), encArg(z1)) a(0, b(0, z0)) -> b(0, a(0, z0)) a(0, z0) -> b(0, b(0, z0)) a(0, a(1, a(z0, z1))) -> a(1, a(0, a(z0, z1))) a(0, a(z0, z1)) -> a(1, a(1, a(z0, z1))) b(0, a(1, a(z0, z1))) -> b(1, a(0, a(z0, z1))) Tuples: ENCARG(cons_b(1, x1)) -> c3(ENCARG(x1)) A(0, b(0, z0)) -> c8(A(0, z0)) ENCARG(cons_a(x0, 0)) -> c2(ENCARG(x0)) ENCARG(cons_a(x0, 1)) -> c2(ENCARG(x0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, 0))) -> c2(A(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_a(x0, cons_a(x1, 1))) -> c2(A(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_a(x0, cons_a(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_a(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_a(0, x2))) -> c2(A(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_a(x0, cons_a(1, x2))) -> c2(A(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_a(x0, cons_a(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_a(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_a(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_a(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(0, cons_a(x1, x2))) -> c2(A(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_a(1, cons_a(x1, x2))) -> c2(ENCARG(cons_a(x1, x2))) ENCARG(cons_a(x0, cons_b(x1, 0))) -> c2(A(encArg(x0), b(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_a(x0, cons_b(x1, 1))) -> c2(A(encArg(x0), b(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_a(x0, cons_b(x1, cons_a(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_a(x0, cons_b(x1, cons_b(z0, z1)))) -> c2(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_a(x0, cons_b(0, x2))) -> c2(A(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_a(x0, cons_b(cons_a(z0, z1), x2))) -> c2(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_a(x0, cons_b(cons_b(z0, z1), x2))) -> c2(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_a(cons_a(z0, z1), cons_b(x1, x2))) -> c2(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_b(z0, z1), cons_b(x1, x2))) -> c2(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(x0, cons_b(1, x2))) -> c2(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_a(0, cons_b(x1, x2))) -> c2(A(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_a(1, cons_b(x1, x2))) -> c2(ENCARG(cons_b(x1, x2))) ENCARG(cons_a(cons_a(x0, 0), x2)) -> c2(A(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, 1), x2)) -> c2(A(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_a(z0, z1)), x2)) -> c2(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, cons_b(z0, z1)), x2)) -> c2(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_a(0, x1), x2)) -> c2(A(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_a(z0, z1), x1), x2)) -> c2(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(cons_b(z0, z1), x1), x2)) -> c2(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_a(x0, x1), 0)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(x0, x1), 1)) -> c2(ENCARG(cons_a(x0, x1))) ENCARG(cons_a(cons_a(1, x1), x2)) -> c2(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_a(z0, z1)), x2)) -> c2(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, cons_b(z0, z1)), x2)) -> c2(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_a(cons_b(0, x1), x2)) -> c2(A(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_a(z0, z1), x1), x2)) -> c2(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(cons_b(z0, z1), x1), x2)) -> c2(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, x1), 0)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, x1), 1)) -> c2(ENCARG(cons_b(x0, x1))) ENCARG(cons_a(cons_b(x0, 0), x2)) -> c2(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_a(cons_b(x0, 1), x2)) -> c2(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_a(cons_b(1, x1), x2)) -> c2(ENCARG(cons_b(1, x1)), ENCARG(x2)) ENCARG(cons_b(x0, cons_a(x1, 0))) -> c3(B(encArg(x0), a(encArg(x1), 0)), ENCARG(x0), ENCARG(cons_a(x1, 0))) ENCARG(cons_b(x0, cons_a(x1, 1))) -> c3(B(encArg(x0), a(encArg(x1), 1)), ENCARG(x0), ENCARG(cons_a(x1, 1))) ENCARG(cons_b(x0, cons_a(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_a(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_a(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_a(0, x2))) -> c3(B(encArg(x0), a(0, encArg(x2))), ENCARG(x0), ENCARG(cons_a(0, x2))) ENCARG(cons_b(x0, cons_a(1, x2))) -> c3(B(encArg(x0), a(1, encArg(x2))), ENCARG(x0), ENCARG(cons_a(1, x2))) ENCARG(cons_b(x0, cons_a(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_a(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_a(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_a(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_a(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(0, cons_a(x1, x2))) -> c3(B(0, a(encArg(x1), encArg(x2))), ENCARG(cons_a(x1, x2))) ENCARG(cons_b(1, cons_a(x1, x2))) -> c3(ENCARG(cons_a(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, cons_a(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_a(z0, z1)))) ENCARG(cons_b(x0, cons_b(x1, cons_b(z0, z1)))) -> c3(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1)))), ENCARG(x0), ENCARG(cons_b(x1, cons_b(z0, z1)))) ENCARG(cons_b(x0, cons_b(0, x2))) -> c3(B(encArg(x0), b(0, encArg(x2))), ENCARG(x0), ENCARG(cons_b(0, x2))) ENCARG(cons_b(x0, cons_b(cons_a(z0, z1), x2))) -> c3(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_a(z0, z1), x2))) ENCARG(cons_b(x0, cons_b(cons_b(z0, z1), x2))) -> c3(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2))), ENCARG(x0), ENCARG(cons_b(cons_b(z0, z1), x2))) ENCARG(cons_b(cons_a(z0, z1), cons_b(x1, x2))) -> c3(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_a(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_b(z0, z1), cons_b(x1, x2))) -> c3(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2))), ENCARG(cons_b(z0, z1)), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(x0, cons_b(x1, 0))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 0))) ENCARG(cons_b(x0, cons_b(x1, 1))) -> c3(ENCARG(x0), ENCARG(cons_b(x1, 1))) ENCARG(cons_b(x0, cons_b(1, x2))) -> c3(ENCARG(x0), ENCARG(cons_b(1, x2))) ENCARG(cons_b(0, cons_b(x1, x2))) -> c3(B(0, b(encArg(x1), encArg(x2))), ENCARG(cons_b(x1, x2))) ENCARG(cons_b(1, cons_b(x1, x2))) -> c3(ENCARG(cons_b(x1, x2))) ENCARG(cons_b(cons_a(x0, 0), x2)) -> c3(B(a(encArg(x0), 0), encArg(x2)), ENCARG(cons_a(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, 1), x2)) -> c3(B(a(encArg(x0), 1), encArg(x2)), ENCARG(cons_a(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_a(z0, z1)), x2)) -> c3(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, cons_b(z0, z1)), x2)) -> c3(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_a(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_a(0, x1), x2)) -> c3(B(a(0, encArg(x1)), encArg(x2)), ENCARG(cons_a(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_a(z0, z1), x1), x2)) -> c3(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(cons_b(z0, z1), x1), x2)) -> c3(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_a(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_a(x0, x1), 0)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(x0, x1), 1)) -> c3(ENCARG(cons_a(x0, x1))) ENCARG(cons_b(cons_a(1, x1), x2)) -> c3(ENCARG(cons_a(1, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_a(z0, z1)), x2)) -> c3(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_a(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, cons_b(z0, z1)), x2)) -> c3(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2)), ENCARG(cons_b(x0, cons_b(z0, z1))), ENCARG(x2)) ENCARG(cons_b(cons_b(0, x1), x2)) -> c3(B(b(0, encArg(x1)), encArg(x2)), ENCARG(cons_b(0, x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_a(z0, z1), x1), x2)) -> c3(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_a(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(cons_b(z0, z1), x1), x2)) -> c3(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2)), ENCARG(cons_b(cons_b(z0, z1), x1)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, x1), 0)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, x1), 1)) -> c3(ENCARG(cons_b(x0, x1))) ENCARG(cons_b(cons_b(x0, 0), x2)) -> c3(ENCARG(cons_b(x0, 0)), ENCARG(x2)) ENCARG(cons_b(cons_b(x0, 1), x2)) -> c3(ENCARG(cons_b(x0, 1)), ENCARG(x2)) ENCARG(cons_b(cons_b(1, x1), x2)) -> c3(ENCARG(cons_b(1, x1)), ENCARG(x2)) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) ENCODE_A(x0, cons_a(x1, 0)) -> c(A(encArg(x0), a(encArg(x1), 0))) ENCODE_A(x0, cons_a(x1, 1)) -> c(A(encArg(x0), a(encArg(x1), 1))) ENCODE_A(x0, cons_a(x1, cons_a(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(x1, cons_b(z0, z1))) -> c(A(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_a(0, x2)) -> c(A(encArg(x0), a(0, encArg(x2)))) ENCODE_A(x0, cons_a(1, x2)) -> c(A(encArg(x0), a(1, encArg(x2)))) ENCODE_A(x0, cons_a(cons_a(z0, z1), x2)) -> c(A(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_a(cons_b(z0, z1), x2)) -> c(A(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_a(x1, x2)) -> c(A(0, a(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_a(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_a(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_A(x0, cons_b(x1, 0)) -> c(A(encArg(x0), b(encArg(x1), 0))) ENCODE_A(x0, cons_b(x1, 1)) -> c(A(encArg(x0), b(encArg(x1), 1))) ENCODE_A(x0, cons_b(x1, cons_a(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(x1, cons_b(z0, z1))) -> c(A(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_A(x0, cons_b(0, x2)) -> c(A(encArg(x0), b(0, encArg(x2)))) ENCODE_A(x0, cons_b(cons_a(z0, z1), x2)) -> c(A(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(x0, cons_b(cons_b(z0, z1), x2)) -> c(A(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_A(0, cons_b(x1, x2)) -> c(A(0, b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(z0, z1), cons_b(x1, x2)) -> c(A(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_b(z0, z1), cons_b(x1, x2)) -> c(A(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_A(cons_a(x0, 0), x2) -> c(A(a(encArg(x0), 0), encArg(x2))) ENCODE_A(cons_a(x0, 1), x2) -> c(A(a(encArg(x0), 1), encArg(x2))) ENCODE_A(cons_a(x0, cons_a(z0, z1)), x2) -> c(A(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(x0, cons_b(z0, z1)), x2) -> c(A(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_a(0, x1), x2) -> c(A(a(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_a(z0, z1), x1), x2) -> c(A(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_a(cons_b(z0, z1), x1), x2) -> c(A(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(x0, cons_a(z0, z1)), x2) -> c(A(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(x0, cons_b(z0, z1)), x2) -> c(A(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_A(cons_b(0, x1), x2) -> c(A(b(0, encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_a(z0, z1), x1), x2) -> c(A(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_A(cons_b(cons_b(z0, z1), x1), x2) -> c(A(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(x0, cons_a(x1, 0)) -> c(B(encArg(x0), a(encArg(x1), 0))) ENCODE_B(x0, cons_a(x1, 1)) -> c(B(encArg(x0), a(encArg(x1), 1))) ENCODE_B(x0, cons_a(x1, cons_a(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(x1, cons_b(z0, z1))) -> c(B(encArg(x0), a(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_a(0, x2)) -> c(B(encArg(x0), a(0, encArg(x2)))) ENCODE_B(x0, cons_a(1, x2)) -> c(B(encArg(x0), a(1, encArg(x2)))) ENCODE_B(x0, cons_a(cons_a(z0, z1), x2)) -> c(B(encArg(x0), a(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_a(cons_b(z0, z1), x2)) -> c(B(encArg(x0), a(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_a(x1, x2)) -> c(B(0, a(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_a(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_a(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), a(encArg(x1), encArg(x2)))) ENCODE_B(x0, cons_b(x1, cons_a(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), a(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(x1, cons_b(z0, z1))) -> c(B(encArg(x0), b(encArg(x1), b(encArg(z0), encArg(z1))))) ENCODE_B(x0, cons_b(0, x2)) -> c(B(encArg(x0), b(0, encArg(x2)))) ENCODE_B(x0, cons_b(cons_a(z0, z1), x2)) -> c(B(encArg(x0), b(a(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(x0, cons_b(cons_b(z0, z1), x2)) -> c(B(encArg(x0), b(b(encArg(z0), encArg(z1)), encArg(x2)))) ENCODE_B(0, cons_b(x1, x2)) -> c(B(0, b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(z0, z1), cons_b(x1, x2)) -> c(B(a(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_b(z0, z1), cons_b(x1, x2)) -> c(B(b(encArg(z0), encArg(z1)), b(encArg(x1), encArg(x2)))) ENCODE_B(cons_a(x0, 0), x2) -> c(B(a(encArg(x0), 0), encArg(x2))) ENCODE_B(cons_a(x0, 1), x2) -> c(B(a(encArg(x0), 1), encArg(x2))) ENCODE_B(cons_a(x0, cons_a(z0, z1)), x2) -> c(B(a(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(x0, cons_b(z0, z1)), x2) -> c(B(a(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_a(0, x1), x2) -> c(B(a(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_a(z0, z1), x1), x2) -> c(B(a(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_a(cons_b(z0, z1), x1), x2) -> c(B(a(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(x0, cons_a(z0, z1)), x2) -> c(B(b(encArg(x0), a(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(x0, cons_b(z0, z1)), x2) -> c(B(b(encArg(x0), b(encArg(z0), encArg(z1))), encArg(x2))) ENCODE_B(cons_b(0, x1), x2) -> c(B(b(0, encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_a(z0, z1), x1), x2) -> c(B(b(a(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) ENCODE_B(cons_b(cons_b(z0, z1), x1), x2) -> c(B(b(b(encArg(z0), encArg(z1)), encArg(x1)), encArg(x2))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) ENCARG(cons_a(1, cons_a(1, y0))) -> c2(ENCARG(cons_a(1, y0))) ENCARG(cons_a(1, cons_b(y0, 0))) -> c2(ENCARG(cons_b(y0, 0))) ENCARG(cons_a(1, cons_b(y0, 1))) -> c2(ENCARG(cons_b(y0, 1))) ENCARG(cons_a(1, cons_b(1, y0))) -> c2(ENCARG(cons_b(1, y0))) ENCARG(cons_a(1, cons_a(y0, 0))) -> c2(ENCARG(cons_a(y0, 0))) ENCARG(cons_a(1, cons_a(y0, 1))) -> c2(ENCARG(cons_a(y0, 1))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1))) -> c2(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1))) -> c2(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1))) -> c2(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1))) -> c2(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3))))) -> c2(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3)))) -> c2(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3)))) -> c2(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1)))) -> c2(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1)))) -> c2(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1)))) -> c2(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1))) -> c2(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1))) -> c2(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3))) -> c2(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1))) -> c2(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3))) -> c2(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1))) -> c2(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1))) -> c2(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1))) -> c2(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, 0), 0)) -> c3(ENCARG(cons_b(y0, 0))) ENCARG(cons_b(cons_b(y0, 1), 0)) -> c3(ENCARG(cons_b(y0, 1))) ENCARG(cons_b(cons_b(1, y0), 0)) -> c3(ENCARG(cons_b(1, y0))) ENCARG(cons_b(cons_a(y0, 0), 0)) -> c3(ENCARG(cons_a(y0, 0))) ENCARG(cons_b(cons_a(y0, 1), 0)) -> c3(ENCARG(cons_a(y0, 1))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 0)) -> c3(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 0)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 0)) -> c3(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 0)) -> c3(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 0)) -> c3(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 0)) -> c3(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 0)) -> c3(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 0)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 0)) -> c3(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 0)) -> c3(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, y0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, y0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_b(y0, 1), 1)) -> c3(ENCARG(cons_b(y0, 1))) ENCARG(cons_b(cons_b(1, y0), 1)) -> c3(ENCARG(cons_b(1, y0))) ENCARG(cons_b(cons_a(y0, 0), 1)) -> c3(ENCARG(cons_a(y0, 0))) ENCARG(cons_b(cons_a(y0, 1), 1)) -> c3(ENCARG(cons_a(y0, 1))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_a(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 1)) -> c3(ENCARG(cons_a(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_a(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 1)) -> c3(ENCARG(cons_a(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 1)) -> c3(ENCARG(cons_a(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_a(0, y0), y1))) ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 1)) -> c3(ENCARG(cons_a(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_a(1, y0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_a(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_b(0, y0), y1))) ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_a(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 1)) -> c3(ENCARG(cons_a(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 1)) -> c3(ENCARG(cons_a(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 1)) -> c3(ENCARG(cons_a(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 1)) -> c3(ENCARG(cons_a(cons_b(1, y0), y1))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_a(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(1, y1)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_a(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_a(y2, y3)))) ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_b(0, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 1)) -> c3(ENCARG(cons_b(1, cons_a(y0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_a(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, cons_b(y2, y3))))) ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(0, y1)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(cons_a(y1, y2), y3)))) ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(cons_b(y1, y2), y3)))) ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), cons_b(y2, y3)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 0)))) ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(y1, 1)))) ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 1)) -> c3(ENCARG(cons_b(y0, cons_b(1, y1)))) ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_b(0, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 1)) -> c3(ENCARG(cons_b(1, cons_b(y0, y1)))) ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_a(0, y0), y1))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 1)) -> c3(ENCARG(cons_b(cons_a(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_a(1, y0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, y2)), y3))) ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_b(0, y0), y1))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), y2), y3))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 1)) -> c3(ENCARG(cons_b(cons_b(y0, y1), 1))) ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 0), y1))) ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 1), y1))) ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 1)) -> c3(ENCARG(cons_b(cons_b(1, y0), y1))) ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(1, y0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(1, y0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, 0)))) ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, 1)))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_a(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_a(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_a(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 0))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(y1, 1))))) ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(y0, cons_b(1, y1))))) ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(0, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 1)) -> c3(ENCARG(cons_a(1, cons_b(1, cons_b(y0, y1))))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_a(1, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(0, y0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 0)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, y1), 1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 0), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(y0, 1), y1)))) ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 1)) -> c3(ENCARG(cons_a(1, cons_b(cons_b(1, y0), y1)))) ENCARG(cons_b(cons_b(cons_b(y0, 0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 0), 0))) ENCARG(cons_b(cons_b(cons_b(y0, 1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, 1), 0))) ENCARG(cons_b(cons_b(cons_b(1, y0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(1, y0), 0))) ENCARG(cons_b(cons_b(cons_a(y0, 0), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 0), 0))) ENCARG(cons_b(cons_b(cons_a(y0, 1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, 1), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_a(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(0, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(0, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_a(y0, cons_b(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(y0, cons_b(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(0, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(0, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_a(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_a(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_a(cons_b(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_a(cons_b(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_a(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_a(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(0, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(0, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(1, cons_a(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(1, cons_a(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(cons_a(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(cons_b(y1, y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), cons_b(y2, y3)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, 0)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(y1, 1)), 0))) ENCARG(cons_b(cons_b(cons_b(y0, cons_b(1, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(y0, cons_b(1, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(0, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(0, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(1, cons_b(y0, y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_b(1, cons_b(y0, y1)), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_a(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_a(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, cons_a(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, cons_b(y1, y2)), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(0, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(0, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(cons_a(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), y2), y3), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), 0), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), 0), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, y1), 1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, y1), 1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, 0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, 0), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(y0, 1), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(y0, 1), y1), 0))) ENCARG(cons_b(cons_b(cons_b(cons_b(1, y0), y1), 0), 1)) -> c3(ENCARG(cons_b(cons_b(cons_b(1, y0), y1), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(1, y0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(1, y0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(1, y0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(1, y0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_a(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(0, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(1, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(y0, cons_b(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(0, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(1, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_a(1, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_a(cons_b(1, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_a(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_a(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(0, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(1, cons_a(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_a(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, cons_b(y2, y3)))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_a(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(cons_b(y1, y2), y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), cons_b(y2, y3))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 0))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(y1, 1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(y0, cons_b(1, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(0, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(1, cons_b(y0, y1))), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_a(1, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_a(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, cons_b(y1, y2)), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(0, y0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_a(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(cons_b(y0, y1), y2), y3)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 0)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, y1), 1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 0), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(y0, 1), y1)), 0))) ENCARG(cons_b(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0), 1)) -> c3(ENCARG(cons_b(cons_a(1, cons_b(cons_b(1, y0), y1)), 0))) S tuples: A(0, b(0, z0)) -> c8(A(0, z0)) A(0, a(1, a(z0, z1))) -> c9(B(0, a(1, a(z0, z1)))) A(0, b(0, b(0, b(0, z0)))) -> c8(B(0, b(0, b(0, a(0, z0)))), A(0, b(0, b(0, z0)))) A(0, b(0, b(0, a(z0, z1)))) -> c8(B(0, b(0, a(1, a(1, a(z0, z1))))), A(0, b(0, a(z0, z1)))) A(0, b(0, b(0, z0))) -> c8(A(0, b(0, z0))) A(0, a(1, a(1, a(y0, y1)))) -> c10(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(y0, y1)))) -> c12(A(0, a(1, a(y0, y1)))) B(0, a(1, a(1, a(1, a(y0, y1))))) -> c12(A(0, a(1, a(1, a(y0, y1))))) A(0, b(0, a(z0, z1))) -> c1(B(0, a(1, a(1, a(z0, z1))))) A(0, b(0, a(z0, z1))) -> c1(A(0, a(z0, z1))) K tuples:none Defined Rule Symbols: encArg_1, a_2, b_2 Defined Pair Symbols: ENCARG_1, A_2, ENCODE_A_2, ENCODE_B_2, B_2 Compound Symbols: c3_1, c8_1, c2_1, c9_1, c2_3, c2_2, c3_3, c3_2, c8_2, c_1, c10_1, c12_1, c1_1