/export/starexec/sandbox2/solver/bin/starexec_run_standard /export/starexec/sandbox2/benchmark/theBenchmark.pl /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- MAYBE proof of /export/starexec/sandbox2/benchmark/theBenchmark.pl # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty Left Termination of the query pattern color_map(a,g) w.r.t. the given Prolog program could not be shown: (0) Prolog (1) PrologToPiTRSProof [SOUND, 0 ms] (2) PiTRS (3) DependencyPairsProof [EQUIVALENT, 23 ms] (4) PiDP (5) DependencyGraphProof [EQUIVALENT, 0 ms] (6) AND (7) PiDP (8) UsableRulesProof [EQUIVALENT, 0 ms] (9) PiDP (10) PiDPToQDPProof [SOUND, 0 ms] (11) QDP (12) QDPSizeChangeProof [EQUIVALENT, 0 ms] (13) YES (14) PiDP (15) UsableRulesProof [EQUIVALENT, 0 ms] (16) PiDP (17) PiDPToQDPProof [SOUND, 0 ms] (18) QDP (19) TransformationProof [SOUND, 0 ms] (20) QDP (21) TransformationProof [EQUIVALENT, 0 ms] (22) QDP (23) PiDP (24) UsableRulesProof [EQUIVALENT, 0 ms] (25) PiDP (26) PiDP (27) UsableRulesProof [EQUIVALENT, 0 ms] (28) PiDP (29) PrologToPiTRSProof [SOUND, 0 ms] (30) PiTRS (31) DependencyPairsProof [EQUIVALENT, 0 ms] (32) PiDP (33) DependencyGraphProof [EQUIVALENT, 0 ms] (34) AND (35) PiDP (36) UsableRulesProof [EQUIVALENT, 0 ms] (37) PiDP (38) PiDPToQDPProof [SOUND, 14 ms] (39) QDP (40) QDPSizeChangeProof [EQUIVALENT, 0 ms] (41) YES (42) PiDP (43) UsableRulesProof [EQUIVALENT, 0 ms] (44) PiDP (45) PiDPToQDPProof [SOUND, 0 ms] (46) QDP (47) TransformationProof [SOUND, 2 ms] (48) QDP (49) TransformationProof [EQUIVALENT, 0 ms] (50) QDP (51) NonTerminationLoopProof [COMPLETE, 0 ms] (52) NO (53) PiDP (54) UsableRulesProof [EQUIVALENT, 0 ms] (55) PiDP (56) PiDPToQDPProof [SOUND, 0 ms] (57) QDP (58) QDPSizeChangeProof [EQUIVALENT, 0 ms] (59) YES (60) PiDP (61) UsableRulesProof [EQUIVALENT, 0 ms] (62) PiDP (63) PiDPToQDPProof [SOUND, 0 ms] (64) QDP (65) PrologToDTProblemTransformerProof [SOUND, 0 ms] (66) TRIPLES (67) TriplesToPiDPProof [SOUND, 0 ms] (68) PiDP (69) DependencyGraphProof [EQUIVALENT, 0 ms] (70) AND (71) PiDP (72) UsableRulesProof [EQUIVALENT, 0 ms] (73) PiDP (74) PiDPToQDPProof [SOUND, 0 ms] (75) QDP (76) QDPSizeChangeProof [EQUIVALENT, 0 ms] (77) YES (78) PiDP (79) UsableRulesProof [EQUIVALENT, 0 ms] (80) PiDP (81) PiDPToQDPProof [SOUND, 0 ms] (82) QDP (83) TransformationProof [SOUND, 0 ms] (84) QDP (85) TransformationProof [EQUIVALENT, 0 ms] (86) QDP (87) PiDP (88) UsableRulesProof [EQUIVALENT, 0 ms] (89) PiDP (90) PiDP (91) PrologToTRSTransformerProof [SOUND, 0 ms] (92) QTRS (93) DependencyPairsProof [EQUIVALENT, 0 ms] (94) QDP (95) DependencyGraphProof [EQUIVALENT, 0 ms] (96) AND (97) QDP (98) UsableRulesProof [EQUIVALENT, 1 ms] (99) QDP (100) QDPSizeChangeProof [EQUIVALENT, 0 ms] (101) YES (102) QDP (103) NonTerminationLoopProof [COMPLETE, 0 ms] (104) NO (105) QDP (106) UsableRulesProof [EQUIVALENT, 0 ms] (107) QDP (108) QDPSizeChangeProof [EQUIVALENT, 0 ms] (109) YES (110) QDP (111) NonTerminationLoopProof [COMPLETE, 0 ms] (112) NO (113) PrologToIRSwTTransformerProof [SOUND, 47 ms] (114) AND (115) IRSwT (116) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (117) TRUE (118) IRSwT (119) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (120) TRUE (121) IRSwT (122) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (123) IRSwT (124) IntTRSCompressionProof [EQUIVALENT, 7 ms] (125) IRSwT (126) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (127) IRSwT (128) IRSwTTerminationDigraphProof [EQUIVALENT, 0 ms] (129) IRSwT (130) IntTRSUnneededArgumentFilterProof [EQUIVALENT, 23 ms] (131) IRSwT (132) TempFilterProof [SOUND, 4 ms] (133) IRSwT (134) IRSwTToQDPProof [SOUND, 1 ms] (135) QDP (136) QDPSizeChangeProof [EQUIVALENT, 0 ms] (137) YES (138) IRSwT (139) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (140) IRSwT (141) IntTRSCompressionProof [EQUIVALENT, 26 ms] (142) IRSwT (143) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (144) IRSwT (145) IRSwTTerminationDigraphProof [EQUIVALENT, 63 ms] (146) IRSwT ---------------------------------------- (0) Obligation: Clauses: color_map(.(Region, Regions), Colors) :- ','(color_region(Region, Colors), color_map(Regions, Colors)). color_map([], Colors). color_region(region(Name, Color, Neighbors), Colors) :- ','(select(Color, Colors, Colors1), members(Neighbors, Colors1)). select(X, .(X, Xs), Xs). select(X, .(Y, Ys), .(Y, Zs)) :- select(X, Ys, Zs). members(.(X, Xs), Ys) :- ','(member(X, Ys), members(Xs, Ys)). members([], Ys). member(X, .(X, X1)). member(X, .(X2, Xs)) :- member(X, Xs). Query: color_map(a,g) ---------------------------------------- (1) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: color_map_in_2: (f,b) color_region_in_2: (f,b) select_in_3: (f,b,f) members_in_2: (f,b) member_in_2: (f,b) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (2) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) ---------------------------------------- (3) DependencyPairsProof (EQUIVALENT) Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem: Pi DP problem: The TRS P consists of the following rules: COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> COLOR_REGION_IN_AG(Region, Colors) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> U3_AG(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> SELECT_IN_AGA(Color, Colors, Colors1) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> U5_AGA(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_AG(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> MEMBERS_IN_AG(Neighbors, Colors1) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) MEMBERS_IN_AG(.(X, Xs), Ys) -> MEMBER_IN_AG(X, Ys) MEMBER_IN_AG(X, .(X2, Xs)) -> U8_AG(X, X2, Xs, member_in_ag(X, Xs)) MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_AG(X, Xs, Ys, members_in_ag(Xs, Ys)) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_AG(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) COLOR_REGION_IN_AG(x1, x2) = COLOR_REGION_IN_AG(x2) U3_AG(x1, x2, x3, x4, x5) = U3_AG(x4, x5) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) U5_AGA(x1, x2, x3, x4, x5) = U5_AGA(x2, x3, x5) U4_AG(x1, x2, x3, x4, x5) = U4_AG(x2, x4, x5) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) U8_AG(x1, x2, x3, x4) = U8_AG(x2, x3, x4) U7_AG(x1, x2, x3, x4) = U7_AG(x1, x3, x4) U2_AG(x1, x2, x3, x4) = U2_AG(x1, x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (4) Obligation: Pi DP problem: The TRS P consists of the following rules: COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> COLOR_REGION_IN_AG(Region, Colors) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> U3_AG(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> SELECT_IN_AGA(Color, Colors, Colors1) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> U5_AGA(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_AG(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> MEMBERS_IN_AG(Neighbors, Colors1) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) MEMBERS_IN_AG(.(X, Xs), Ys) -> MEMBER_IN_AG(X, Ys) MEMBER_IN_AG(X, .(X2, Xs)) -> U8_AG(X, X2, Xs, member_in_ag(X, Xs)) MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_AG(X, Xs, Ys, members_in_ag(Xs, Ys)) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_AG(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) COLOR_REGION_IN_AG(x1, x2) = COLOR_REGION_IN_AG(x2) U3_AG(x1, x2, x3, x4, x5) = U3_AG(x4, x5) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) U5_AGA(x1, x2, x3, x4, x5) = U5_AGA(x2, x3, x5) U4_AG(x1, x2, x3, x4, x5) = U4_AG(x2, x4, x5) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) U8_AG(x1, x2, x3, x4) = U8_AG(x2, x3, x4) U7_AG(x1, x2, x3, x4) = U7_AG(x1, x3, x4) U2_AG(x1, x2, x3, x4) = U2_AG(x1, x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (5) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 10 less nodes. ---------------------------------------- (6) Complex Obligation (AND) ---------------------------------------- (7) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (8) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (9) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (10) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (11) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBER_IN_AG(.(X2, Xs)) -> MEMBER_IN_AG(Xs) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (12) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *MEMBER_IN_AG(.(X2, Xs)) -> MEMBER_IN_AG(Xs) The graph contains the following edges 1 > 1 ---------------------------------------- (13) YES ---------------------------------------- (14) Obligation: Pi DP problem: The TRS P consists of the following rules: U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (15) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (16) Obligation: Pi DP problem: The TRS P consists of the following rules: U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) The TRS R consists of the following rules: member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (17) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (18) Obligation: Q DP problem: The TRS P consists of the following rules: U6_AG(Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Ys) MEMBERS_IN_AG(Ys) -> U6_AG(Ys, member_in_ag(Ys)) The TRS R consists of the following rules: member_in_ag(.(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(.(X2, Xs)) -> U8_ag(X2, Xs, member_in_ag(Xs)) U8_ag(X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The set Q consists of the following terms: member_in_ag(x0) U8_ag(x0, x1, x2) We have to consider all (P,Q,R)-chains. ---------------------------------------- (19) TransformationProof (SOUND) By narrowing [LPAR04] the rule MEMBERS_IN_AG(Ys) -> U6_AG(Ys, member_in_ag(Ys)) at position [1] we obtained the following new rules [LPAR04]: (MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0, .(x0, x1))),MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0, .(x0, x1)))) (MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(x0, x1, member_in_ag(x1))),MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(x0, x1, member_in_ag(x1)))) ---------------------------------------- (20) Obligation: Q DP problem: The TRS P consists of the following rules: U6_AG(Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Ys) MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0, .(x0, x1))) MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(x0, x1, member_in_ag(x1))) The TRS R consists of the following rules: member_in_ag(.(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(.(X2, Xs)) -> U8_ag(X2, Xs, member_in_ag(Xs)) U8_ag(X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The set Q consists of the following terms: member_in_ag(x0) U8_ag(x0, x1, x2) We have to consider all (P,Q,R)-chains. ---------------------------------------- (21) TransformationProof (EQUIVALENT) By instantiating [LPAR04] the rule U6_AG(Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Ys) we obtained the following new rules [LPAR04]: (U6_AG(.(z0, z1), member_out_ag(z0, .(z0, z1))) -> MEMBERS_IN_AG(.(z0, z1)),U6_AG(.(z0, z1), member_out_ag(z0, .(z0, z1))) -> MEMBERS_IN_AG(.(z0, z1))) (U6_AG(.(z0, z1), member_out_ag(x1, .(z0, z1))) -> MEMBERS_IN_AG(.(z0, z1)),U6_AG(.(z0, z1), member_out_ag(x1, .(z0, z1))) -> MEMBERS_IN_AG(.(z0, z1))) ---------------------------------------- (22) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0, .(x0, x1))) MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(x0, x1, member_in_ag(x1))) U6_AG(.(z0, z1), member_out_ag(z0, .(z0, z1))) -> MEMBERS_IN_AG(.(z0, z1)) U6_AG(.(z0, z1), member_out_ag(x1, .(z0, z1))) -> MEMBERS_IN_AG(.(z0, z1)) The TRS R consists of the following rules: member_in_ag(.(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(.(X2, Xs)) -> U8_ag(X2, Xs, member_in_ag(Xs)) U8_ag(X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The set Q consists of the following terms: member_in_ag(x0) U8_ag(x0, x1, x2) We have to consider all (P,Q,R)-chains. ---------------------------------------- (23) Obligation: Pi DP problem: The TRS P consists of the following rules: SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (24) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (25) Obligation: Pi DP problem: The TRS P consists of the following rules: SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (26) Obligation: Pi DP problem: The TRS P consists of the following rules: U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x3, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1, x2) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (27) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (28) Obligation: Pi DP problem: The TRS P consists of the following rules: U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) The TRS R consists of the following rules: color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x4, x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x2, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x3, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x4, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1, x2) U8_ag(x1, x2, x3, x4) = U8_ag(x2, x3, x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x3, x4) members_out_ag(x1, x2) = members_out_ag(x1, x2) color_region_out_ag(x1, x2) = color_region_out_ag(x1, x2) region(x1, x2, x3) = region(x2, x3) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (29) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: color_map_in_2: (f,b) color_region_in_2: (f,b) select_in_3: (f,b,f) members_in_2: (f,b) member_in_2: (f,b) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (30) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) ---------------------------------------- (31) DependencyPairsProof (EQUIVALENT) Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem: Pi DP problem: The TRS P consists of the following rules: COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> COLOR_REGION_IN_AG(Region, Colors) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> U3_AG(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> SELECT_IN_AGA(Color, Colors, Colors1) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> U5_AGA(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_AG(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> MEMBERS_IN_AG(Neighbors, Colors1) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) MEMBERS_IN_AG(.(X, Xs), Ys) -> MEMBER_IN_AG(X, Ys) MEMBER_IN_AG(X, .(X2, Xs)) -> U8_AG(X, X2, Xs, member_in_ag(X, Xs)) MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_AG(X, Xs, Ys, members_in_ag(Xs, Ys)) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_AG(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) COLOR_REGION_IN_AG(x1, x2) = COLOR_REGION_IN_AG(x2) U3_AG(x1, x2, x3, x4, x5) = U3_AG(x5) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) U5_AGA(x1, x2, x3, x4, x5) = U5_AGA(x2, x5) U4_AG(x1, x2, x3, x4, x5) = U4_AG(x2, x5) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) U8_AG(x1, x2, x3, x4) = U8_AG(x4) U7_AG(x1, x2, x3, x4) = U7_AG(x1, x4) U2_AG(x1, x2, x3, x4) = U2_AG(x1, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (32) Obligation: Pi DP problem: The TRS P consists of the following rules: COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> COLOR_REGION_IN_AG(Region, Colors) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> U3_AG(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) COLOR_REGION_IN_AG(region(Name, Color, Neighbors), Colors) -> SELECT_IN_AGA(Color, Colors, Colors1) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> U5_AGA(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_AG(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) U3_AG(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> MEMBERS_IN_AG(Neighbors, Colors1) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) MEMBERS_IN_AG(.(X, Xs), Ys) -> MEMBER_IN_AG(X, Ys) MEMBER_IN_AG(X, .(X2, Xs)) -> U8_AG(X, X2, Xs, member_in_ag(X, Xs)) MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_AG(X, Xs, Ys, members_in_ag(Xs, Ys)) U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_AG(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) COLOR_REGION_IN_AG(x1, x2) = COLOR_REGION_IN_AG(x2) U3_AG(x1, x2, x3, x4, x5) = U3_AG(x5) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) U5_AGA(x1, x2, x3, x4, x5) = U5_AGA(x2, x5) U4_AG(x1, x2, x3, x4, x5) = U4_AG(x2, x5) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) U8_AG(x1, x2, x3, x4) = U8_AG(x4) U7_AG(x1, x2, x3, x4) = U7_AG(x1, x4) U2_AG(x1, x2, x3, x4) = U2_AG(x1, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (33) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 10 less nodes. ---------------------------------------- (34) Complex Obligation (AND) ---------------------------------------- (35) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (36) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (37) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_AG(X, .(X2, Xs)) -> MEMBER_IN_AG(X, Xs) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) MEMBER_IN_AG(x1, x2) = MEMBER_IN_AG(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (38) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (39) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBER_IN_AG(.(X2, Xs)) -> MEMBER_IN_AG(Xs) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (40) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *MEMBER_IN_AG(.(X2, Xs)) -> MEMBER_IN_AG(Xs) The graph contains the following edges 1 > 1 ---------------------------------------- (41) YES ---------------------------------------- (42) Obligation: Pi DP problem: The TRS P consists of the following rules: U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (43) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (44) Obligation: Pi DP problem: The TRS P consists of the following rules: U6_AG(X, Xs, Ys, member_out_ag(X, Ys)) -> MEMBERS_IN_AG(Xs, Ys) MEMBERS_IN_AG(.(X, Xs), Ys) -> U6_AG(X, Xs, Ys, member_in_ag(X, Ys)) The TRS R consists of the following rules: member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) MEMBERS_IN_AG(x1, x2) = MEMBERS_IN_AG(x2) U6_AG(x1, x2, x3, x4) = U6_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (45) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (46) Obligation: Q DP problem: The TRS P consists of the following rules: U6_AG(Ys, member_out_ag(X)) -> MEMBERS_IN_AG(Ys) MEMBERS_IN_AG(Ys) -> U6_AG(Ys, member_in_ag(Ys)) The TRS R consists of the following rules: member_in_ag(.(X, X1)) -> member_out_ag(X) member_in_ag(.(X2, Xs)) -> U8_ag(member_in_ag(Xs)) U8_ag(member_out_ag(X)) -> member_out_ag(X) The set Q consists of the following terms: member_in_ag(x0) U8_ag(x0) We have to consider all (P,Q,R)-chains. ---------------------------------------- (47) TransformationProof (SOUND) By narrowing [LPAR04] the rule MEMBERS_IN_AG(Ys) -> U6_AG(Ys, member_in_ag(Ys)) at position [1] we obtained the following new rules [LPAR04]: (MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0)),MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0))) (MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(member_in_ag(x1))),MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(member_in_ag(x1)))) ---------------------------------------- (48) Obligation: Q DP problem: The TRS P consists of the following rules: U6_AG(Ys, member_out_ag(X)) -> MEMBERS_IN_AG(Ys) MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0)) MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(member_in_ag(x1))) The TRS R consists of the following rules: member_in_ag(.(X, X1)) -> member_out_ag(X) member_in_ag(.(X2, Xs)) -> U8_ag(member_in_ag(Xs)) U8_ag(member_out_ag(X)) -> member_out_ag(X) The set Q consists of the following terms: member_in_ag(x0) U8_ag(x0) We have to consider all (P,Q,R)-chains. ---------------------------------------- (49) TransformationProof (EQUIVALENT) By instantiating [LPAR04] the rule U6_AG(Ys, member_out_ag(X)) -> MEMBERS_IN_AG(Ys) we obtained the following new rules [LPAR04]: (U6_AG(.(z0, z1), member_out_ag(z0)) -> MEMBERS_IN_AG(.(z0, z1)),U6_AG(.(z0, z1), member_out_ag(z0)) -> MEMBERS_IN_AG(.(z0, z1))) (U6_AG(.(z0, z1), member_out_ag(x1)) -> MEMBERS_IN_AG(.(z0, z1)),U6_AG(.(z0, z1), member_out_ag(x1)) -> MEMBERS_IN_AG(.(z0, z1))) ---------------------------------------- (50) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0)) MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), U8_ag(member_in_ag(x1))) U6_AG(.(z0, z1), member_out_ag(z0)) -> MEMBERS_IN_AG(.(z0, z1)) U6_AG(.(z0, z1), member_out_ag(x1)) -> MEMBERS_IN_AG(.(z0, z1)) The TRS R consists of the following rules: member_in_ag(.(X, X1)) -> member_out_ag(X) member_in_ag(.(X2, Xs)) -> U8_ag(member_in_ag(Xs)) U8_ag(member_out_ag(X)) -> member_out_ag(X) The set Q consists of the following terms: member_in_ag(x0) U8_ag(x0) We have to consider all (P,Q,R)-chains. ---------------------------------------- (51) NonTerminationLoopProof (COMPLETE) We used the non-termination processor [FROCOS05] to show that the DP problem is infinite. Found a loop by narrowing to the left: s = U6_AG(.(z0, z1), member_out_ag(z0)) evaluates to t =U6_AG(.(z0, z1), member_out_ag(z0)) Thus s starts an infinite chain as s semiunifies with t with the following substitutions: * Matcher: [ ] * Semiunifier: [ ] -------------------------------------------------------------------------------- Rewriting sequence U6_AG(.(z0, z1), member_out_ag(z0)) -> MEMBERS_IN_AG(.(z0, z1)) with rule U6_AG(.(z0', z1'), member_out_ag(z0')) -> MEMBERS_IN_AG(.(z0', z1')) at position [] and matcher [z0' / z0, z1' / z1] MEMBERS_IN_AG(.(z0, z1)) -> U6_AG(.(z0, z1), member_out_ag(z0)) with rule MEMBERS_IN_AG(.(x0, x1)) -> U6_AG(.(x0, x1), member_out_ag(x0)) Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence All these steps are and every following step will be a correct step w.r.t to Q. ---------------------------------------- (52) NO ---------------------------------------- (53) Obligation: Pi DP problem: The TRS P consists of the following rules: SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (54) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (55) Obligation: Pi DP problem: The TRS P consists of the following rules: SELECT_IN_AGA(X, .(Y, Ys), .(Y, Zs)) -> SELECT_IN_AGA(X, Ys, Zs) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) SELECT_IN_AGA(x1, x2, x3) = SELECT_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (56) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (57) Obligation: Q DP problem: The TRS P consists of the following rules: SELECT_IN_AGA(.(Y, Ys)) -> SELECT_IN_AGA(Ys) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (58) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *SELECT_IN_AGA(.(Y, Ys)) -> SELECT_IN_AGA(Ys) The graph contains the following edges 1 > 1 ---------------------------------------- (59) YES ---------------------------------------- (60) Obligation: Pi DP problem: The TRS P consists of the following rules: U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) The TRS R consists of the following rules: color_map_in_ag(.(Region, Regions), Colors) -> U1_ag(Region, Regions, Colors, color_region_in_ag(Region, Colors)) color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U1_ag(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> U2_ag(Region, Regions, Colors, color_map_in_ag(Regions, Colors)) color_map_in_ag([], Colors) -> color_map_out_ag([], Colors) U2_ag(Region, Regions, Colors, color_map_out_ag(Regions, Colors)) -> color_map_out_ag(.(Region, Regions), Colors) The argument filtering Pi contains the following mapping: color_map_in_ag(x1, x2) = color_map_in_ag(x2) U1_ag(x1, x2, x3, x4) = U1_ag(x3, x4) color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) U2_ag(x1, x2, x3, x4) = U2_ag(x1, x4) color_map_out_ag(x1, x2) = color_map_out_ag(x1) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (61) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (62) Obligation: Pi DP problem: The TRS P consists of the following rules: U1_AG(Region, Regions, Colors, color_region_out_ag(Region, Colors)) -> COLOR_MAP_IN_AG(Regions, Colors) COLOR_MAP_IN_AG(.(Region, Regions), Colors) -> U1_AG(Region, Regions, Colors, color_region_in_ag(Region, Colors)) The TRS R consists of the following rules: color_region_in_ag(region(Name, Color, Neighbors), Colors) -> U3_ag(Name, Color, Neighbors, Colors, select_in_aga(Color, Colors, Colors1)) U3_ag(Name, Color, Neighbors, Colors, select_out_aga(Color, Colors, Colors1)) -> U4_ag(Name, Color, Neighbors, Colors, members_in_ag(Neighbors, Colors1)) select_in_aga(X, .(X, Xs), Xs) -> select_out_aga(X, .(X, Xs), Xs) select_in_aga(X, .(Y, Ys), .(Y, Zs)) -> U5_aga(X, Y, Ys, Zs, select_in_aga(X, Ys, Zs)) U4_ag(Name, Color, Neighbors, Colors, members_out_ag(Neighbors, Colors1)) -> color_region_out_ag(region(Name, Color, Neighbors), Colors) U5_aga(X, Y, Ys, Zs, select_out_aga(X, Ys, Zs)) -> select_out_aga(X, .(Y, Ys), .(Y, Zs)) members_in_ag(.(X, Xs), Ys) -> U6_ag(X, Xs, Ys, member_in_ag(X, Ys)) members_in_ag([], Ys) -> members_out_ag([], Ys) U6_ag(X, Xs, Ys, member_out_ag(X, Ys)) -> U7_ag(X, Xs, Ys, members_in_ag(Xs, Ys)) member_in_ag(X, .(X, X1)) -> member_out_ag(X, .(X, X1)) member_in_ag(X, .(X2, Xs)) -> U8_ag(X, X2, Xs, member_in_ag(X, Xs)) U7_ag(X, Xs, Ys, members_out_ag(Xs, Ys)) -> members_out_ag(.(X, Xs), Ys) U8_ag(X, X2, Xs, member_out_ag(X, Xs)) -> member_out_ag(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: color_region_in_ag(x1, x2) = color_region_in_ag(x2) U3_ag(x1, x2, x3, x4, x5) = U3_ag(x5) select_in_aga(x1, x2, x3) = select_in_aga(x2) .(x1, x2) = .(x1, x2) select_out_aga(x1, x2, x3) = select_out_aga(x1, x3) U5_aga(x1, x2, x3, x4, x5) = U5_aga(x2, x5) U4_ag(x1, x2, x3, x4, x5) = U4_ag(x2, x5) members_in_ag(x1, x2) = members_in_ag(x2) U6_ag(x1, x2, x3, x4) = U6_ag(x3, x4) member_in_ag(x1, x2) = member_in_ag(x2) member_out_ag(x1, x2) = member_out_ag(x1) U8_ag(x1, x2, x3, x4) = U8_ag(x4) U7_ag(x1, x2, x3, x4) = U7_ag(x1, x4) members_out_ag(x1, x2) = members_out_ag(x1) color_region_out_ag(x1, x2) = color_region_out_ag(x1) region(x1, x2, x3) = region(x2, x3) COLOR_MAP_IN_AG(x1, x2) = COLOR_MAP_IN_AG(x2) U1_AG(x1, x2, x3, x4) = U1_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (63) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (64) Obligation: Q DP problem: The TRS P consists of the following rules: U1_AG(Colors, color_region_out_ag(Region)) -> COLOR_MAP_IN_AG(Colors) COLOR_MAP_IN_AG(Colors) -> U1_AG(Colors, color_region_in_ag(Colors)) The TRS R consists of the following rules: color_region_in_ag(Colors) -> U3_ag(select_in_aga(Colors)) U3_ag(select_out_aga(Color, Colors1)) -> U4_ag(Color, members_in_ag(Colors1)) select_in_aga(.(X, Xs)) -> select_out_aga(X, Xs) select_in_aga(.(Y, Ys)) -> U5_aga(Y, select_in_aga(Ys)) U4_ag(Color, members_out_ag(Neighbors)) -> color_region_out_ag(region(Color, Neighbors)) U5_aga(Y, select_out_aga(X, Zs)) -> select_out_aga(X, .(Y, Zs)) members_in_ag(Ys) -> U6_ag(Ys, member_in_ag(Ys)) members_in_ag(Ys) -> members_out_ag([]) U6_ag(Ys, member_out_ag(X)) -> U7_ag(X, members_in_ag(Ys)) member_in_ag(.(X, X1)) -> member_out_ag(X) member_in_ag(.(X2, Xs)) -> U8_ag(member_in_ag(Xs)) U7_ag(X, members_out_ag(Xs)) -> members_out_ag(.(X, Xs)) U8_ag(member_out_ag(X)) -> member_out_ag(X) The set Q consists of the following terms: color_region_in_ag(x0) U3_ag(x0) select_in_aga(x0) U4_ag(x0, x1) U5_aga(x0, x1) members_in_ag(x0) U6_ag(x0, x1) member_in_ag(x0) U7_ag(x0, x1) U8_ag(x0) We have to consider all (P,Q,R)-chains. ---------------------------------------- (65) PrologToDTProblemTransformerProof (SOUND) Built DT problem from termination graph DT10. { "root": 1, "program": { "directives": [], "clauses": [ [ "(color_map (. Region Regions) Colors)", "(',' (color_region Region Colors) (color_map Regions Colors))" ], [ "(color_map ([]) Colors)", null ], [ "(color_region (region Name Color Neighbors) Colors)", "(',' (select Color Colors Colors1) (members Neighbors Colors1))" ], [ "(select X (. X Xs) Xs)", null ], [ "(select X (. Y Ys) (. Y Zs))", "(select X Ys Zs)" ], [ "(members (. X Xs) Ys)", "(',' (member X Ys) (members Xs Ys))" ], [ "(members ([]) Ys)", null ], [ "(member X (. X X1))", null ], [ "(member X (. X2 Xs))", "(member X Xs)" ] ] }, "graph": { "nodes": { "26": { "goal": [ { "clause": -1, "scope": -1, "term": "(',' (color_region T9 T8) (color_map T10 T8))" }, { "clause": 1, "scope": 1, "term": "(color_map T1 T8)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T8"], "free": [], "exprvars": [] } }, "49": { "goal": [ { "clause": 2, "scope": 2, "term": "(',' (color_region T9 T8) (color_map T10 T8))" }, { "clause": -1, "scope": 2, "term": null }, { "clause": 1, "scope": 1, "term": "(color_map T1 T8)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T8"], "free": [], "exprvars": [] } }, "390": { "goal": [ { "clause": 5, "scope": 4, "term": "(members T39 T38)" }, { "clause": 6, "scope": 4, "term": "(members T39 T38)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T38"], "free": [], "exprvars": [] } }, "type": "Nodes", "210": { "goal": [{ "clause": -1, "scope": -1, "term": "(select T31 T30 X31)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": ["X31"], "exprvars": [] } }, "397": { "goal": [{ "clause": 5, "scope": 4, "term": "(members T39 T38)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T38"], "free": [], "exprvars": [] } }, "430": { "goal": [{ "clause": 1, "scope": 1, "term": "(color_map T1 T8)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T8"], "free": [], "exprvars": [] } }, "211": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (members T39 T38) (color_map T40 T30))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [ "T30", "T38" ], "free": [], "exprvars": [] } }, "398": { "goal": [{ "clause": 6, "scope": 4, "term": "(members T39 T38)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T38"], "free": [], "exprvars": [] } }, "410": { "goal": [ { "clause": 7, "scope": 5, "term": "(member T91 T90)" }, { "clause": 8, "scope": 5, "term": "(member T91 T90)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T90"], "free": [], "exprvars": [] } }, "454": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "213": { "goal": [ { "clause": 3, "scope": 3, "term": "(select T31 T30 X31)" }, { "clause": 4, "scope": 3, "term": "(select T31 T30 X31)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": ["X31"], "exprvars": [] } }, "411": { "goal": [{ "clause": 7, "scope": 5, "term": "(member T91 T90)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T90"], "free": [], "exprvars": [] } }, "455": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "214": { "goal": [{ "clause": 3, "scope": 3, "term": "(select T31 T30 X31)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": ["X31"], "exprvars": [] } }, "412": { "goal": [{ "clause": 8, "scope": 5, "term": "(member T91 T90)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T90"], "free": [], "exprvars": [] } }, "456": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "215": { "goal": [{ "clause": 4, "scope": 3, "term": "(select T31 T30 X31)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": ["X31"], "exprvars": [] } }, "413": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "414": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "458": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "218": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "219": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "51": { "goal": [{ "clause": 2, "scope": 2, "term": "(',' (color_region T9 T8) (color_map T10 T8))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T8"], "free": [], "exprvars": [] } }, "52": { "goal": [ { "clause": -1, "scope": 2, "term": null }, { "clause": 1, "scope": 1, "term": "(color_map T1 T8)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T8"], "free": [], "exprvars": [] } }, "54": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (',' (select T31 T30 X31) (members T32 X31)) (color_map T33 T30))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": ["X31"], "exprvars": [] } }, "55": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "36": { "goal": [{ "clause": 1, "scope": 1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [[ "(color_map T1 T2)", "(color_map (. X6 X7) X8)" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [ "X6", "X7", "X8" ], "exprvars": [] } }, "382": { "goal": [{ "clause": -1, "scope": -1, "term": "(members T39 T38)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T38"], "free": [], "exprvars": [] } }, "384": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_map T72 T30)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": [], "exprvars": [] } }, "461": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "220": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "462": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "1": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "422": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "423": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T121 T120)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T120"], "free": [], "exprvars": [] } }, "226": { "goal": [{ "clause": -1, "scope": -1, "term": "(select T64 T63 X64)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T63"], "free": ["X64"], "exprvars": [] } }, "424": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "227": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "425": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "426": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "9": { "goal": [ { "clause": 0, "scope": 1, "term": "(color_map T1 T2)" }, { "clause": 1, "scope": 1, "term": "(color_map T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "427": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "406": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (member T91 T90) (members T92 T90))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T90"], "free": [], "exprvars": [] } }, "407": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "408": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T91 T90)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T90"], "free": [], "exprvars": [] } }, "409": { "goal": [{ "clause": -1, "scope": -1, "term": "(members T97 T90)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T90"], "free": [], "exprvars": [] } } }, "edges": [ { "from": 1, "to": 9, "label": "CASE" }, { "from": 9, "to": 26, "label": "EVAL with clause\ncolor_map(.(X6, X7), X8) :- ','(color_region(X6, X8), color_map(X7, X8)).\nand substitutionX6 -> T9,\nX7 -> T10,\nT1 -> .(T9, T10),\nT2 -> T8,\nX8 -> T8,\nT6 -> T9,\nT7 -> T10" }, { "from": 9, "to": 36, "label": "EVAL-BACKTRACK" }, { "from": 26, "to": 49, "label": "CASE" }, { "from": 36, "to": 458, "label": "EVAL with clause\ncolor_map([], X134).\nand substitutionT1 -> [],\nT2 -> T139,\nX134 -> T139" }, { "from": 36, "to": 461, "label": "EVAL-BACKTRACK" }, { "from": 49, "to": 51, "label": "PARALLEL" }, { "from": 49, "to": 52, "label": "PARALLEL" }, { "from": 51, "to": 54, "label": "EVAL with clause\ncolor_region(region(X27, X28, X29), X30) :- ','(select(X28, X30, X31), members(X29, X31)).\nand substitutionX27 -> T27,\nX28 -> T31,\nX29 -> T32,\nT9 -> region(T27, T31, T32),\nT8 -> T30,\nX30 -> T30,\nT28 -> T31,\nT29 -> T32,\nT10 -> T33" }, { "from": 51, "to": 55, "label": "EVAL-BACKTRACK" }, { "from": 52, "to": 430, "label": "FAILURE" }, { "from": 54, "to": 210, "label": "SPLIT 1" }, { "from": 54, "to": 211, "label": "SPLIT 2\nnew knowledge:\nT31 is ground\nT30 is ground\nT38 is ground\nreplacements:X31 -> T38,\nT32 -> T39,\nT33 -> T40" }, { "from": 210, "to": 213, "label": "CASE" }, { "from": 211, "to": 382, "label": "SPLIT 1" }, { "from": 211, "to": 384, "label": "SPLIT 2\nnew knowledge:\nT39 is ground\nT38 is ground\nreplacements:T40 -> T72" }, { "from": 213, "to": 214, "label": "PARALLEL" }, { "from": 213, "to": 215, "label": "PARALLEL" }, { "from": 214, "to": 218, "label": "EVAL with clause\nselect(X48, .(X48, X49), X49).\nand substitutionT31 -> T53,\nX48 -> T53,\nX49 -> T54,\nT30 -> .(T53, T54),\nX31 -> T54" }, { "from": 214, "to": 219, "label": "EVAL-BACKTRACK" }, { "from": 215, "to": 226, "label": "EVAL with clause\nselect(X60, .(X61, X62), .(X61, X63)) :- select(X60, X62, X63).\nand substitutionT31 -> T64,\nX60 -> T64,\nX61 -> T62,\nX62 -> T63,\nT30 -> .(T62, T63),\nX63 -> X64,\nX31 -> .(T62, X64),\nT61 -> T64" }, { "from": 215, "to": 227, "label": "EVAL-BACKTRACK" }, { "from": 218, "to": 220, "label": "SUCCESS" }, { "from": 226, "to": 210, "label": "INSTANCE with matching:\nT31 -> T64\nT30 -> T63\nX31 -> X64" }, { "from": 382, "to": 390, "label": "CASE" }, { "from": 384, "to": 1, "label": "INSTANCE with matching:\nT1 -> T72\nT2 -> T30" }, { "from": 390, "to": 397, "label": "PARALLEL" }, { "from": 390, "to": 398, "label": "PARALLEL" }, { "from": 397, "to": 406, "label": "EVAL with clause\nmembers(.(X87, X88), X89) :- ','(member(X87, X89), members(X88, X89)).\nand substitutionX87 -> T91,\nX88 -> T92,\nT39 -> .(T91, T92),\nT38 -> T90,\nX89 -> T90,\nT88 -> T91,\nT89 -> T92" }, { "from": 397, "to": 407, "label": "EVAL-BACKTRACK" }, { "from": 398, "to": 425, "label": "EVAL with clause\nmembers([], X126).\nand substitutionT39 -> [],\nT38 -> T131,\nX126 -> T131" }, { "from": 398, "to": 426, "label": "EVAL-BACKTRACK" }, { "from": 406, "to": 408, "label": "SPLIT 1" }, { "from": 406, "to": 409, "label": "SPLIT 2\nnew knowledge:\nT91 is ground\nT90 is ground\nreplacements:T92 -> T97" }, { "from": 408, "to": 410, "label": "CASE" }, { "from": 409, "to": 382, "label": "INSTANCE with matching:\nT39 -> T97\nT38 -> T90" }, { "from": 410, "to": 411, "label": "PARALLEL" }, { "from": 410, "to": 412, "label": "PARALLEL" }, { "from": 411, "to": 413, "label": "EVAL with clause\nmember(X106, .(X106, X107)).\nand substitutionT91 -> T110,\nX106 -> T110,\nX107 -> T111,\nT90 -> .(T110, T111)" }, { "from": 411, "to": 414, "label": "EVAL-BACKTRACK" }, { "from": 412, "to": 423, "label": "EVAL with clause\nmember(X114, .(X115, X116)) :- member(X114, X116).\nand substitutionT91 -> T121,\nX114 -> T121,\nX115 -> T119,\nX116 -> T120,\nT90 -> .(T119, T120),\nT118 -> T121" }, { "from": 412, "to": 424, "label": "EVAL-BACKTRACK" }, { "from": 413, "to": 422, "label": "SUCCESS" }, { "from": 423, "to": 408, "label": "INSTANCE with matching:\nT91 -> T121\nT90 -> T120" }, { "from": 425, "to": 427, "label": "SUCCESS" }, { "from": 430, "to": 454, "label": "EVAL with clause\ncolor_map([], X132).\nand substitutionT1 -> [],\nT8 -> T137,\nX132 -> T137" }, { "from": 430, "to": 455, "label": "EVAL-BACKTRACK" }, { "from": 454, "to": 456, "label": "SUCCESS" }, { "from": 458, "to": 462, "label": "SUCCESS" } ], "type": "Graph" } } ---------------------------------------- (66) Obligation: Triples: selectA(X1, .(X2, X3), .(X2, X4)) :- selectA(X1, X3, X4). membersC(.(X1, X2), X3) :- memberD(X1, X3). membersC(.(X1, X2), X3) :- ','(membercD(X1, X3), membersC(X2, X3)). memberD(X1, .(X2, X3)) :- memberD(X1, X3). color_mapB(.(region(X1, X2, X3), X4), X5) :- selectA(X2, X5, X6). color_mapB(.(region(X1, X2, X3), X4), X5) :- ','(selectcA(X2, X5, X6), membersC(X3, X6)). color_mapB(.(region(X1, X2, X3), X4), X5) :- ','(selectcA(X2, X5, X6), ','(memberscC(X3, X6), color_mapB(X4, X5))). Clauses: selectcA(X1, .(X1, X2), X2). selectcA(X1, .(X2, X3), .(X2, X4)) :- selectcA(X1, X3, X4). color_mapcB(.(region(X1, X2, X3), X4), X5) :- ','(selectcA(X2, X5, X6), ','(memberscC(X3, X6), color_mapcB(X4, X5))). color_mapcB([], X1). color_mapcB([], X1). memberscC(.(X1, X2), X3) :- ','(membercD(X1, X3), memberscC(X2, X3)). memberscC([], X1). membercD(X1, .(X1, X2)). membercD(X1, .(X2, X3)) :- membercD(X1, X3). Afs: color_mapB(x1, x2) = color_mapB(x2) ---------------------------------------- (67) TriplesToPiDPProof (SOUND) We use the technique of [DT09]. With regard to the inferred argument filtering the predicates were used in the following modes: color_mapB_in_2: (f,b) selectA_in_3: (f,b,f) selectcA_in_3: (f,b,f) membersC_in_2: (f,b) memberD_in_2: (f,b) membercD_in_2: (f,b) memberscC_in_2: (f,b) Transforming TRIPLES into the following Term Rewriting System: Pi DP problem: The TRS P consists of the following rules: COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> U6_AG(X1, X2, X3, X4, X5, selectA_in_aga(X2, X5, X6)) COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> SELECTA_IN_AGA(X2, X5, X6) SELECTA_IN_AGA(X1, .(X2, X3), .(X2, X4)) -> U1_AGA(X1, X2, X3, X4, selectA_in_aga(X1, X3, X4)) SELECTA_IN_AGA(X1, .(X2, X3), .(X2, X4)) -> SELECTA_IN_AGA(X1, X3, X4) COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> U7_AG(X1, X2, X3, X4, X5, selectcA_in_aga(X2, X5, X6)) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> U8_AG(X1, X2, X3, X4, X5, membersC_in_ag(X3, X6)) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> MEMBERSC_IN_AG(X3, X6) MEMBERSC_IN_AG(.(X1, X2), X3) -> U2_AG(X1, X2, X3, memberD_in_ag(X1, X3)) MEMBERSC_IN_AG(.(X1, X2), X3) -> MEMBERD_IN_AG(X1, X3) MEMBERD_IN_AG(X1, .(X2, X3)) -> U5_AG(X1, X2, X3, memberD_in_ag(X1, X3)) MEMBERD_IN_AG(X1, .(X2, X3)) -> MEMBERD_IN_AG(X1, X3) MEMBERSC_IN_AG(.(X1, X2), X3) -> U3_AG(X1, X2, X3, membercD_in_ag(X1, X3)) U3_AG(X1, X2, X3, membercD_out_ag(X1, X3)) -> U4_AG(X1, X2, X3, membersC_in_ag(X2, X3)) U3_AG(X1, X2, X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X2, X3) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> U9_AG(X1, X2, X3, X4, X5, memberscC_in_ag(X3, X6)) U9_AG(X1, X2, X3, X4, X5, memberscC_out_ag(X3, X6)) -> U10_AG(X1, X2, X3, X4, X5, color_mapB_in_ag(X4, X5)) U9_AG(X1, X2, X3, X4, X5, memberscC_out_ag(X3, X6)) -> COLOR_MAPB_IN_AG(X4, X5) The TRS R consists of the following rules: selectcA_in_aga(X1, .(X1, X2), X2) -> selectcA_out_aga(X1, .(X1, X2), X2) selectcA_in_aga(X1, .(X2, X3), .(X2, X4)) -> U12_aga(X1, X2, X3, X4, selectcA_in_aga(X1, X3, X4)) U12_aga(X1, X2, X3, X4, selectcA_out_aga(X1, X3, X4)) -> selectcA_out_aga(X1, .(X2, X3), .(X2, X4)) membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) memberscC_in_ag(.(X1, X2), X3) -> U16_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U16_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> U17_ag(X1, X2, X3, memberscC_in_ag(X2, X3)) memberscC_in_ag([], X1) -> memberscC_out_ag([], X1) U17_ag(X1, X2, X3, memberscC_out_ag(X2, X3)) -> memberscC_out_ag(.(X1, X2), X3) The argument filtering Pi contains the following mapping: color_mapB_in_ag(x1, x2) = color_mapB_in_ag(x2) selectA_in_aga(x1, x2, x3) = selectA_in_aga(x2) .(x1, x2) = .(x1, x2) region(x1, x2, x3) = region(x2, x3) selectcA_in_aga(x1, x2, x3) = selectcA_in_aga(x2) selectcA_out_aga(x1, x2, x3) = selectcA_out_aga(x1, x2, x3) U12_aga(x1, x2, x3, x4, x5) = U12_aga(x2, x3, x5) membersC_in_ag(x1, x2) = membersC_in_ag(x2) memberD_in_ag(x1, x2) = memberD_in_ag(x2) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) memberscC_in_ag(x1, x2) = memberscC_in_ag(x2) U16_ag(x1, x2, x3, x4) = U16_ag(x3, x4) U17_ag(x1, x2, x3, x4) = U17_ag(x1, x3, x4) memberscC_out_ag(x1, x2) = memberscC_out_ag(x1, x2) COLOR_MAPB_IN_AG(x1, x2) = COLOR_MAPB_IN_AG(x2) U6_AG(x1, x2, x3, x4, x5, x6) = U6_AG(x5, x6) SELECTA_IN_AGA(x1, x2, x3) = SELECTA_IN_AGA(x2) U1_AGA(x1, x2, x3, x4, x5) = U1_AGA(x2, x3, x5) U7_AG(x1, x2, x3, x4, x5, x6) = U7_AG(x5, x6) U8_AG(x1, x2, x3, x4, x5, x6) = U8_AG(x5, x6) MEMBERSC_IN_AG(x1, x2) = MEMBERSC_IN_AG(x2) U2_AG(x1, x2, x3, x4) = U2_AG(x3, x4) MEMBERD_IN_AG(x1, x2) = MEMBERD_IN_AG(x2) U5_AG(x1, x2, x3, x4) = U5_AG(x2, x3, x4) U3_AG(x1, x2, x3, x4) = U3_AG(x3, x4) U4_AG(x1, x2, x3, x4) = U4_AG(x3, x4) U9_AG(x1, x2, x3, x4, x5, x6) = U9_AG(x5, x6) U10_AG(x1, x2, x3, x4, x5, x6) = U10_AG(x5, x6) We have to consider all (P,R,Pi)-chains Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES ---------------------------------------- (68) Obligation: Pi DP problem: The TRS P consists of the following rules: COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> U6_AG(X1, X2, X3, X4, X5, selectA_in_aga(X2, X5, X6)) COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> SELECTA_IN_AGA(X2, X5, X6) SELECTA_IN_AGA(X1, .(X2, X3), .(X2, X4)) -> U1_AGA(X1, X2, X3, X4, selectA_in_aga(X1, X3, X4)) SELECTA_IN_AGA(X1, .(X2, X3), .(X2, X4)) -> SELECTA_IN_AGA(X1, X3, X4) COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> U7_AG(X1, X2, X3, X4, X5, selectcA_in_aga(X2, X5, X6)) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> U8_AG(X1, X2, X3, X4, X5, membersC_in_ag(X3, X6)) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> MEMBERSC_IN_AG(X3, X6) MEMBERSC_IN_AG(.(X1, X2), X3) -> U2_AG(X1, X2, X3, memberD_in_ag(X1, X3)) MEMBERSC_IN_AG(.(X1, X2), X3) -> MEMBERD_IN_AG(X1, X3) MEMBERD_IN_AG(X1, .(X2, X3)) -> U5_AG(X1, X2, X3, memberD_in_ag(X1, X3)) MEMBERD_IN_AG(X1, .(X2, X3)) -> MEMBERD_IN_AG(X1, X3) MEMBERSC_IN_AG(.(X1, X2), X3) -> U3_AG(X1, X2, X3, membercD_in_ag(X1, X3)) U3_AG(X1, X2, X3, membercD_out_ag(X1, X3)) -> U4_AG(X1, X2, X3, membersC_in_ag(X2, X3)) U3_AG(X1, X2, X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X2, X3) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> U9_AG(X1, X2, X3, X4, X5, memberscC_in_ag(X3, X6)) U9_AG(X1, X2, X3, X4, X5, memberscC_out_ag(X3, X6)) -> U10_AG(X1, X2, X3, X4, X5, color_mapB_in_ag(X4, X5)) U9_AG(X1, X2, X3, X4, X5, memberscC_out_ag(X3, X6)) -> COLOR_MAPB_IN_AG(X4, X5) The TRS R consists of the following rules: selectcA_in_aga(X1, .(X1, X2), X2) -> selectcA_out_aga(X1, .(X1, X2), X2) selectcA_in_aga(X1, .(X2, X3), .(X2, X4)) -> U12_aga(X1, X2, X3, X4, selectcA_in_aga(X1, X3, X4)) U12_aga(X1, X2, X3, X4, selectcA_out_aga(X1, X3, X4)) -> selectcA_out_aga(X1, .(X2, X3), .(X2, X4)) membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) memberscC_in_ag(.(X1, X2), X3) -> U16_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U16_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> U17_ag(X1, X2, X3, memberscC_in_ag(X2, X3)) memberscC_in_ag([], X1) -> memberscC_out_ag([], X1) U17_ag(X1, X2, X3, memberscC_out_ag(X2, X3)) -> memberscC_out_ag(.(X1, X2), X3) The argument filtering Pi contains the following mapping: color_mapB_in_ag(x1, x2) = color_mapB_in_ag(x2) selectA_in_aga(x1, x2, x3) = selectA_in_aga(x2) .(x1, x2) = .(x1, x2) region(x1, x2, x3) = region(x2, x3) selectcA_in_aga(x1, x2, x3) = selectcA_in_aga(x2) selectcA_out_aga(x1, x2, x3) = selectcA_out_aga(x1, x2, x3) U12_aga(x1, x2, x3, x4, x5) = U12_aga(x2, x3, x5) membersC_in_ag(x1, x2) = membersC_in_ag(x2) memberD_in_ag(x1, x2) = memberD_in_ag(x2) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) memberscC_in_ag(x1, x2) = memberscC_in_ag(x2) U16_ag(x1, x2, x3, x4) = U16_ag(x3, x4) U17_ag(x1, x2, x3, x4) = U17_ag(x1, x3, x4) memberscC_out_ag(x1, x2) = memberscC_out_ag(x1, x2) COLOR_MAPB_IN_AG(x1, x2) = COLOR_MAPB_IN_AG(x2) U6_AG(x1, x2, x3, x4, x5, x6) = U6_AG(x5, x6) SELECTA_IN_AGA(x1, x2, x3) = SELECTA_IN_AGA(x2) U1_AGA(x1, x2, x3, x4, x5) = U1_AGA(x2, x3, x5) U7_AG(x1, x2, x3, x4, x5, x6) = U7_AG(x5, x6) U8_AG(x1, x2, x3, x4, x5, x6) = U8_AG(x5, x6) MEMBERSC_IN_AG(x1, x2) = MEMBERSC_IN_AG(x2) U2_AG(x1, x2, x3, x4) = U2_AG(x3, x4) MEMBERD_IN_AG(x1, x2) = MEMBERD_IN_AG(x2) U5_AG(x1, x2, x3, x4) = U5_AG(x2, x3, x4) U3_AG(x1, x2, x3, x4) = U3_AG(x3, x4) U4_AG(x1, x2, x3, x4) = U4_AG(x3, x4) U9_AG(x1, x2, x3, x4, x5, x6) = U9_AG(x5, x6) U10_AG(x1, x2, x3, x4, x5, x6) = U10_AG(x5, x6) We have to consider all (P,R,Pi)-chains ---------------------------------------- (69) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 10 less nodes. ---------------------------------------- (70) Complex Obligation (AND) ---------------------------------------- (71) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBERD_IN_AG(X1, .(X2, X3)) -> MEMBERD_IN_AG(X1, X3) The TRS R consists of the following rules: selectcA_in_aga(X1, .(X1, X2), X2) -> selectcA_out_aga(X1, .(X1, X2), X2) selectcA_in_aga(X1, .(X2, X3), .(X2, X4)) -> U12_aga(X1, X2, X3, X4, selectcA_in_aga(X1, X3, X4)) U12_aga(X1, X2, X3, X4, selectcA_out_aga(X1, X3, X4)) -> selectcA_out_aga(X1, .(X2, X3), .(X2, X4)) membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) memberscC_in_ag(.(X1, X2), X3) -> U16_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U16_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> U17_ag(X1, X2, X3, memberscC_in_ag(X2, X3)) memberscC_in_ag([], X1) -> memberscC_out_ag([], X1) U17_ag(X1, X2, X3, memberscC_out_ag(X2, X3)) -> memberscC_out_ag(.(X1, X2), X3) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) selectcA_in_aga(x1, x2, x3) = selectcA_in_aga(x2) selectcA_out_aga(x1, x2, x3) = selectcA_out_aga(x1, x2, x3) U12_aga(x1, x2, x3, x4, x5) = U12_aga(x2, x3, x5) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) memberscC_in_ag(x1, x2) = memberscC_in_ag(x2) U16_ag(x1, x2, x3, x4) = U16_ag(x3, x4) U17_ag(x1, x2, x3, x4) = U17_ag(x1, x3, x4) memberscC_out_ag(x1, x2) = memberscC_out_ag(x1, x2) MEMBERD_IN_AG(x1, x2) = MEMBERD_IN_AG(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (72) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (73) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBERD_IN_AG(X1, .(X2, X3)) -> MEMBERD_IN_AG(X1, X3) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) MEMBERD_IN_AG(x1, x2) = MEMBERD_IN_AG(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (74) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (75) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBERD_IN_AG(.(X2, X3)) -> MEMBERD_IN_AG(X3) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (76) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *MEMBERD_IN_AG(.(X2, X3)) -> MEMBERD_IN_AG(X3) The graph contains the following edges 1 > 1 ---------------------------------------- (77) YES ---------------------------------------- (78) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBERSC_IN_AG(.(X1, X2), X3) -> U3_AG(X1, X2, X3, membercD_in_ag(X1, X3)) U3_AG(X1, X2, X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X2, X3) The TRS R consists of the following rules: selectcA_in_aga(X1, .(X1, X2), X2) -> selectcA_out_aga(X1, .(X1, X2), X2) selectcA_in_aga(X1, .(X2, X3), .(X2, X4)) -> U12_aga(X1, X2, X3, X4, selectcA_in_aga(X1, X3, X4)) U12_aga(X1, X2, X3, X4, selectcA_out_aga(X1, X3, X4)) -> selectcA_out_aga(X1, .(X2, X3), .(X2, X4)) membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) memberscC_in_ag(.(X1, X2), X3) -> U16_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U16_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> U17_ag(X1, X2, X3, memberscC_in_ag(X2, X3)) memberscC_in_ag([], X1) -> memberscC_out_ag([], X1) U17_ag(X1, X2, X3, memberscC_out_ag(X2, X3)) -> memberscC_out_ag(.(X1, X2), X3) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) selectcA_in_aga(x1, x2, x3) = selectcA_in_aga(x2) selectcA_out_aga(x1, x2, x3) = selectcA_out_aga(x1, x2, x3) U12_aga(x1, x2, x3, x4, x5) = U12_aga(x2, x3, x5) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) memberscC_in_ag(x1, x2) = memberscC_in_ag(x2) U16_ag(x1, x2, x3, x4) = U16_ag(x3, x4) U17_ag(x1, x2, x3, x4) = U17_ag(x1, x3, x4) memberscC_out_ag(x1, x2) = memberscC_out_ag(x1, x2) MEMBERSC_IN_AG(x1, x2) = MEMBERSC_IN_AG(x2) U3_AG(x1, x2, x3, x4) = U3_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (79) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (80) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBERSC_IN_AG(.(X1, X2), X3) -> U3_AG(X1, X2, X3, membercD_in_ag(X1, X3)) U3_AG(X1, X2, X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X2, X3) The TRS R consists of the following rules: membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) MEMBERSC_IN_AG(x1, x2) = MEMBERSC_IN_AG(x2) U3_AG(x1, x2, x3, x4) = U3_AG(x3, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (81) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (82) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBERSC_IN_AG(X3) -> U3_AG(X3, membercD_in_ag(X3)) U3_AG(X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X3) The TRS R consists of the following rules: membercD_in_ag(.(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(.(X2, X3)) -> U18_ag(X2, X3, membercD_in_ag(X3)) U18_ag(X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) The set Q consists of the following terms: membercD_in_ag(x0) U18_ag(x0, x1, x2) We have to consider all (P,Q,R)-chains. ---------------------------------------- (83) TransformationProof (SOUND) By narrowing [LPAR04] the rule MEMBERSC_IN_AG(X3) -> U3_AG(X3, membercD_in_ag(X3)) at position [1] we obtained the following new rules [LPAR04]: (MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), membercD_out_ag(x0, .(x0, x1))),MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), membercD_out_ag(x0, .(x0, x1)))) (MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), U18_ag(x0, x1, membercD_in_ag(x1))),MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), U18_ag(x0, x1, membercD_in_ag(x1)))) ---------------------------------------- (84) Obligation: Q DP problem: The TRS P consists of the following rules: U3_AG(X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X3) MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), membercD_out_ag(x0, .(x0, x1))) MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), U18_ag(x0, x1, membercD_in_ag(x1))) The TRS R consists of the following rules: membercD_in_ag(.(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(.(X2, X3)) -> U18_ag(X2, X3, membercD_in_ag(X3)) U18_ag(X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) The set Q consists of the following terms: membercD_in_ag(x0) U18_ag(x0, x1, x2) We have to consider all (P,Q,R)-chains. ---------------------------------------- (85) TransformationProof (EQUIVALENT) By instantiating [LPAR04] the rule U3_AG(X3, membercD_out_ag(X1, X3)) -> MEMBERSC_IN_AG(X3) we obtained the following new rules [LPAR04]: (U3_AG(.(z0, z1), membercD_out_ag(z0, .(z0, z1))) -> MEMBERSC_IN_AG(.(z0, z1)),U3_AG(.(z0, z1), membercD_out_ag(z0, .(z0, z1))) -> MEMBERSC_IN_AG(.(z0, z1))) (U3_AG(.(z0, z1), membercD_out_ag(x1, .(z0, z1))) -> MEMBERSC_IN_AG(.(z0, z1)),U3_AG(.(z0, z1), membercD_out_ag(x1, .(z0, z1))) -> MEMBERSC_IN_AG(.(z0, z1))) ---------------------------------------- (86) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), membercD_out_ag(x0, .(x0, x1))) MEMBERSC_IN_AG(.(x0, x1)) -> U3_AG(.(x0, x1), U18_ag(x0, x1, membercD_in_ag(x1))) U3_AG(.(z0, z1), membercD_out_ag(z0, .(z0, z1))) -> MEMBERSC_IN_AG(.(z0, z1)) U3_AG(.(z0, z1), membercD_out_ag(x1, .(z0, z1))) -> MEMBERSC_IN_AG(.(z0, z1)) The TRS R consists of the following rules: membercD_in_ag(.(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(.(X2, X3)) -> U18_ag(X2, X3, membercD_in_ag(X3)) U18_ag(X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) The set Q consists of the following terms: membercD_in_ag(x0) U18_ag(x0, x1, x2) We have to consider all (P,Q,R)-chains. ---------------------------------------- (87) Obligation: Pi DP problem: The TRS P consists of the following rules: SELECTA_IN_AGA(X1, .(X2, X3), .(X2, X4)) -> SELECTA_IN_AGA(X1, X3, X4) The TRS R consists of the following rules: selectcA_in_aga(X1, .(X1, X2), X2) -> selectcA_out_aga(X1, .(X1, X2), X2) selectcA_in_aga(X1, .(X2, X3), .(X2, X4)) -> U12_aga(X1, X2, X3, X4, selectcA_in_aga(X1, X3, X4)) U12_aga(X1, X2, X3, X4, selectcA_out_aga(X1, X3, X4)) -> selectcA_out_aga(X1, .(X2, X3), .(X2, X4)) membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) memberscC_in_ag(.(X1, X2), X3) -> U16_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U16_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> U17_ag(X1, X2, X3, memberscC_in_ag(X2, X3)) memberscC_in_ag([], X1) -> memberscC_out_ag([], X1) U17_ag(X1, X2, X3, memberscC_out_ag(X2, X3)) -> memberscC_out_ag(.(X1, X2), X3) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) selectcA_in_aga(x1, x2, x3) = selectcA_in_aga(x2) selectcA_out_aga(x1, x2, x3) = selectcA_out_aga(x1, x2, x3) U12_aga(x1, x2, x3, x4, x5) = U12_aga(x2, x3, x5) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) memberscC_in_ag(x1, x2) = memberscC_in_ag(x2) U16_ag(x1, x2, x3, x4) = U16_ag(x3, x4) U17_ag(x1, x2, x3, x4) = U17_ag(x1, x3, x4) memberscC_out_ag(x1, x2) = memberscC_out_ag(x1, x2) SELECTA_IN_AGA(x1, x2, x3) = SELECTA_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (88) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (89) Obligation: Pi DP problem: The TRS P consists of the following rules: SELECTA_IN_AGA(X1, .(X2, X3), .(X2, X4)) -> SELECTA_IN_AGA(X1, X3, X4) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) SELECTA_IN_AGA(x1, x2, x3) = SELECTA_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (90) Obligation: Pi DP problem: The TRS P consists of the following rules: COLOR_MAPB_IN_AG(.(region(X1, X2, X3), X4), X5) -> U7_AG(X1, X2, X3, X4, X5, selectcA_in_aga(X2, X5, X6)) U7_AG(X1, X2, X3, X4, X5, selectcA_out_aga(X2, X5, X6)) -> U9_AG(X1, X2, X3, X4, X5, memberscC_in_ag(X3, X6)) U9_AG(X1, X2, X3, X4, X5, memberscC_out_ag(X3, X6)) -> COLOR_MAPB_IN_AG(X4, X5) The TRS R consists of the following rules: selectcA_in_aga(X1, .(X1, X2), X2) -> selectcA_out_aga(X1, .(X1, X2), X2) selectcA_in_aga(X1, .(X2, X3), .(X2, X4)) -> U12_aga(X1, X2, X3, X4, selectcA_in_aga(X1, X3, X4)) U12_aga(X1, X2, X3, X4, selectcA_out_aga(X1, X3, X4)) -> selectcA_out_aga(X1, .(X2, X3), .(X2, X4)) membercD_in_ag(X1, .(X1, X2)) -> membercD_out_ag(X1, .(X1, X2)) membercD_in_ag(X1, .(X2, X3)) -> U18_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U18_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> membercD_out_ag(X1, .(X2, X3)) memberscC_in_ag(.(X1, X2), X3) -> U16_ag(X1, X2, X3, membercD_in_ag(X1, X3)) U16_ag(X1, X2, X3, membercD_out_ag(X1, X3)) -> U17_ag(X1, X2, X3, memberscC_in_ag(X2, X3)) memberscC_in_ag([], X1) -> memberscC_out_ag([], X1) U17_ag(X1, X2, X3, memberscC_out_ag(X2, X3)) -> memberscC_out_ag(.(X1, X2), X3) The argument filtering Pi contains the following mapping: .(x1, x2) = .(x1, x2) region(x1, x2, x3) = region(x2, x3) selectcA_in_aga(x1, x2, x3) = selectcA_in_aga(x2) selectcA_out_aga(x1, x2, x3) = selectcA_out_aga(x1, x2, x3) U12_aga(x1, x2, x3, x4, x5) = U12_aga(x2, x3, x5) membercD_in_ag(x1, x2) = membercD_in_ag(x2) membercD_out_ag(x1, x2) = membercD_out_ag(x1, x2) U18_ag(x1, x2, x3, x4) = U18_ag(x2, x3, x4) memberscC_in_ag(x1, x2) = memberscC_in_ag(x2) U16_ag(x1, x2, x3, x4) = U16_ag(x3, x4) U17_ag(x1, x2, x3, x4) = U17_ag(x1, x3, x4) memberscC_out_ag(x1, x2) = memberscC_out_ag(x1, x2) COLOR_MAPB_IN_AG(x1, x2) = COLOR_MAPB_IN_AG(x2) U7_AG(x1, x2, x3, x4, x5, x6) = U7_AG(x5, x6) U9_AG(x1, x2, x3, x4, x5, x6) = U9_AG(x5, x6) We have to consider all (P,R,Pi)-chains ---------------------------------------- (91) PrologToTRSTransformerProof (SOUND) Transformed Prolog program to TRS. { "root": 3, "program": { "directives": [], "clauses": [ [ "(color_map (. Region Regions) Colors)", "(',' (color_region Region Colors) (color_map Regions Colors))" ], [ "(color_map ([]) Colors)", null ], [ "(color_region (region Name Color Neighbors) Colors)", "(',' (select Color Colors Colors1) (members Neighbors Colors1))" ], [ "(select X (. X Xs) Xs)", null ], [ "(select X (. Y Ys) (. Y Zs))", "(select X Ys Zs)" ], [ "(members (. X Xs) Ys)", "(',' (member X Ys) (members Xs Ys))" ], [ "(members ([]) Ys)", null ], [ "(member X (. X X1))", null ], [ "(member X (. X2 Xs))", "(member X Xs)" ] ] }, "graph": { "nodes": { "23": { "goal": [ { "clause": 0, "scope": 1, "term": "(color_map T1 T2)" }, { "clause": 1, "scope": 1, "term": "(color_map T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "24": { "goal": [{ "clause": 0, "scope": 1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "25": { "goal": [{ "clause": 1, "scope": 1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "type": "Nodes", "195": { "goal": [ { "clause": 3, "scope": 3, "term": "(select T41 T40 X41)" }, { "clause": 4, "scope": 3, "term": "(select T41 T40 X41)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "196": { "goal": [{ "clause": 3, "scope": 3, "term": "(select T41 T40 X41)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "197": { "goal": [{ "clause": 4, "scope": 3, "term": "(select T41 T40 X41)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "450": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "198": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "451": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "199": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "431": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T95 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "432": { "goal": [{ "clause": -1, "scope": -1, "term": "(members T101 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "158": { "goal": [{ "clause": -1, "scope": -1, "term": "(select T41 T40 X41)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "433": { "goal": [ { "clause": 7, "scope": 5, "term": "(member T95 T94)" }, { "clause": 8, "scope": 5, "term": "(member T95 T94)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "435": { "goal": [{ "clause": 7, "scope": 5, "term": "(member T95 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "436": { "goal": [{ "clause": 8, "scope": 5, "term": "(member T95 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "415": { "goal": [{ "clause": -1, "scope": -1, "term": "(select T72 T71 X74)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T71"], "free": ["X74"], "exprvars": [] } }, "416": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "417": { "goal": [ { "clause": 5, "scope": 4, "term": "(members T48 T47)" }, { "clause": 6, "scope": 4, "term": "(members T48 T47)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "439": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "418": { "goal": [{ "clause": 5, "scope": 4, "term": "(members T48 T47)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "419": { "goal": [{ "clause": 6, "scope": 4, "term": "(members T48 T47)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "97": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (select T41 T40 X41) (members T42 X41))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "56": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (color_region T18 T17) (color_map T19 T17))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "57": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "162": { "goal": [{ "clause": -1, "scope": -1, "term": "(members T48 T47)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "440": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "441": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "200": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "420": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (member T95 T94) (members T96 T94))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "3": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "421": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "444": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T125 T124)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T124"], "free": [], "exprvars": [] } }, "445": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "446": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "447": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "448": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "108": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "449": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "60": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_region T18 T17)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "61": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_map T24 T17)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "62": { "goal": [{ "clause": 2, "scope": 2, "term": "(color_region T18 T17)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } } }, "edges": [ { "from": 3, "to": 23, "label": "CASE" }, { "from": 23, "to": 24, "label": "PARALLEL" }, { "from": 23, "to": 25, "label": "PARALLEL" }, { "from": 24, "to": 56, "label": "EVAL with clause\ncolor_map(.(X15, X16), X17) :- ','(color_region(X15, X17), color_map(X16, X17)).\nand substitutionX15 -> T18,\nX16 -> T19,\nT1 -> .(T18, T19),\nT2 -> T17,\nX17 -> T17,\nT15 -> T18,\nT16 -> T19" }, { "from": 24, "to": 57, "label": "EVAL-BACKTRACK" }, { "from": 25, "to": 449, "label": "EVAL with clause\ncolor_map([], X139).\nand substitutionT1 -> [],\nT2 -> T141,\nX139 -> T141" }, { "from": 25, "to": 450, "label": "EVAL-BACKTRACK" }, { "from": 56, "to": 60, "label": "SPLIT 1" }, { "from": 56, "to": 61, "label": "SPLIT 2\nnew knowledge:\nT17 is ground\nreplacements:T19 -> T24" }, { "from": 60, "to": 62, "label": "CASE" }, { "from": 61, "to": 3, "label": "INSTANCE with matching:\nT1 -> T24\nT2 -> T17" }, { "from": 62, "to": 97, "label": "EVAL with clause\ncolor_region(region(X37, X38, X39), X40) :- ','(select(X38, X40, X41), members(X39, X41)).\nand substitutionX37 -> T37,\nX38 -> T41,\nX39 -> T42,\nT18 -> region(T37, T41, T42),\nT17 -> T40,\nX40 -> T40,\nT38 -> T41,\nT39 -> T42" }, { "from": 62, "to": 108, "label": "EVAL-BACKTRACK" }, { "from": 97, "to": 158, "label": "SPLIT 1" }, { "from": 97, "to": 162, "label": "SPLIT 2\nnew knowledge:\nT41 is ground\nT40 is ground\nT47 is ground\nreplacements:X41 -> T47,\nT42 -> T48" }, { "from": 158, "to": 195, "label": "CASE" }, { "from": 162, "to": 417, "label": "CASE" }, { "from": 195, "to": 196, "label": "PARALLEL" }, { "from": 195, "to": 197, "label": "PARALLEL" }, { "from": 196, "to": 198, "label": "EVAL with clause\nselect(X58, .(X58, X59), X59).\nand substitutionT41 -> T61,\nX58 -> T61,\nX59 -> T62,\nT40 -> .(T61, T62),\nX41 -> T62" }, { "from": 196, "to": 199, "label": "EVAL-BACKTRACK" }, { "from": 197, "to": 415, "label": "EVAL with clause\nselect(X70, .(X71, X72), .(X71, X73)) :- select(X70, X72, X73).\nand substitutionT41 -> T72,\nX70 -> T72,\nX71 -> T70,\nX72 -> T71,\nT40 -> .(T70, T71),\nX73 -> X74,\nX41 -> .(T70, X74),\nT69 -> T72" }, { "from": 197, "to": 416, "label": "EVAL-BACKTRACK" }, { "from": 198, "to": 200, "label": "SUCCESS" }, { "from": 415, "to": 158, "label": "INSTANCE with matching:\nT41 -> T72\nT40 -> T71\nX41 -> X74" }, { "from": 417, "to": 418, "label": "PARALLEL" }, { "from": 417, "to": 419, "label": "PARALLEL" }, { "from": 418, "to": 420, "label": "EVAL with clause\nmembers(.(X94, X95), X96) :- ','(member(X94, X96), members(X95, X96)).\nand substitutionX94 -> T95,\nX95 -> T96,\nT48 -> .(T95, T96),\nT47 -> T94,\nX96 -> T94,\nT92 -> T95,\nT93 -> T96" }, { "from": 418, "to": 421, "label": "EVAL-BACKTRACK" }, { "from": 419, "to": 446, "label": "EVAL with clause\nmembers([], X133).\nand substitutionT48 -> [],\nT47 -> T135,\nX133 -> T135" }, { "from": 419, "to": 447, "label": "EVAL-BACKTRACK" }, { "from": 420, "to": 431, "label": "SPLIT 1" }, { "from": 420, "to": 432, "label": "SPLIT 2\nnew knowledge:\nT95 is ground\nT94 is ground\nreplacements:T96 -> T101" }, { "from": 431, "to": 433, "label": "CASE" }, { "from": 432, "to": 162, "label": "INSTANCE with matching:\nT48 -> T101\nT47 -> T94" }, { "from": 433, "to": 435, "label": "PARALLEL" }, { "from": 433, "to": 436, "label": "PARALLEL" }, { "from": 435, "to": 439, "label": "EVAL with clause\nmember(X113, .(X113, X114)).\nand substitutionT95 -> T114,\nX113 -> T114,\nX114 -> T115,\nT94 -> .(T114, T115)" }, { "from": 435, "to": 440, "label": "EVAL-BACKTRACK" }, { "from": 436, "to": 444, "label": "EVAL with clause\nmember(X121, .(X122, X123)) :- member(X121, X123).\nand substitutionT95 -> T125,\nX121 -> T125,\nX122 -> T123,\nX123 -> T124,\nT94 -> .(T123, T124),\nT122 -> T125" }, { "from": 436, "to": 445, "label": "EVAL-BACKTRACK" }, { "from": 439, "to": 441, "label": "SUCCESS" }, { "from": 444, "to": 431, "label": "INSTANCE with matching:\nT95 -> T125\nT94 -> T124" }, { "from": 446, "to": 448, "label": "SUCCESS" }, { "from": 449, "to": 451, "label": "SUCCESS" } ], "type": "Graph" } } ---------------------------------------- (92) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f3_in(T17) -> U1(f56_in(T17), T17) U1(f56_out1, T17) -> f3_out1 f3_in(T141) -> f3_out1 f158_in(.(T61, T62)) -> f158_out1(T61, T62) f158_in(.(T70, T71)) -> U2(f158_in(T71), .(T70, T71)) U2(f158_out1(T72, X74), .(T70, T71)) -> f158_out1(T72, .(T70, X74)) f162_in(T94) -> U3(f420_in(T94), T94) U3(f420_out1(T95, T96), T94) -> f162_out1(.(T95, T96)) f162_in(T135) -> f162_out1([]) f431_in(.(T114, T115)) -> f431_out1(T114) f431_in(.(T123, T124)) -> U4(f431_in(T124), .(T123, T124)) U4(f431_out1(T125), .(T123, T124)) -> f431_out1(T125) f60_in(T40) -> U5(f97_in(T40), T40) U5(f97_out1(T41, X41, T42), T40) -> f60_out1 f56_in(T17) -> U6(f60_in(T17), T17) U6(f60_out1, T17) -> U7(f3_in(T17), T17) U7(f3_out1, T17) -> f56_out1 f97_in(T40) -> U8(f158_in(T40), T40) U8(f158_out1(T41, T47), T40) -> U9(f162_in(T47), T40, T41, T47) U9(f162_out1(T48), T40, T41, T47) -> f97_out1(T41, T47, T48) f420_in(T94) -> U10(f431_in(T94), T94) U10(f431_out1(T95), T94) -> U11(f162_in(T94), T94, T95) U11(f162_out1(T101), T94, T95) -> f420_out1(T95, T101) Q is empty. ---------------------------------------- (93) DependencyPairsProof (EQUIVALENT) Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem. ---------------------------------------- (94) Obligation: Q DP problem: The TRS P consists of the following rules: F3_IN(T17) -> U1^1(f56_in(T17), T17) F3_IN(T17) -> F56_IN(T17) F158_IN(.(T70, T71)) -> U2^1(f158_in(T71), .(T70, T71)) F158_IN(.(T70, T71)) -> F158_IN(T71) F162_IN(T94) -> U3^1(f420_in(T94), T94) F162_IN(T94) -> F420_IN(T94) F431_IN(.(T123, T124)) -> U4^1(f431_in(T124), .(T123, T124)) F431_IN(.(T123, T124)) -> F431_IN(T124) F60_IN(T40) -> U5^1(f97_in(T40), T40) F60_IN(T40) -> F97_IN(T40) F56_IN(T17) -> U6^1(f60_in(T17), T17) F56_IN(T17) -> F60_IN(T17) U6^1(f60_out1, T17) -> U7^1(f3_in(T17), T17) U6^1(f60_out1, T17) -> F3_IN(T17) F97_IN(T40) -> U8^1(f158_in(T40), T40) F97_IN(T40) -> F158_IN(T40) U8^1(f158_out1(T41, T47), T40) -> U9^1(f162_in(T47), T40, T41, T47) U8^1(f158_out1(T41, T47), T40) -> F162_IN(T47) F420_IN(T94) -> U10^1(f431_in(T94), T94) F420_IN(T94) -> F431_IN(T94) U10^1(f431_out1(T95), T94) -> U11^1(f162_in(T94), T94, T95) U10^1(f431_out1(T95), T94) -> F162_IN(T94) The TRS R consists of the following rules: f3_in(T17) -> U1(f56_in(T17), T17) U1(f56_out1, T17) -> f3_out1 f3_in(T141) -> f3_out1 f158_in(.(T61, T62)) -> f158_out1(T61, T62) f158_in(.(T70, T71)) -> U2(f158_in(T71), .(T70, T71)) U2(f158_out1(T72, X74), .(T70, T71)) -> f158_out1(T72, .(T70, X74)) f162_in(T94) -> U3(f420_in(T94), T94) U3(f420_out1(T95, T96), T94) -> f162_out1(.(T95, T96)) f162_in(T135) -> f162_out1([]) f431_in(.(T114, T115)) -> f431_out1(T114) f431_in(.(T123, T124)) -> U4(f431_in(T124), .(T123, T124)) U4(f431_out1(T125), .(T123, T124)) -> f431_out1(T125) f60_in(T40) -> U5(f97_in(T40), T40) U5(f97_out1(T41, X41, T42), T40) -> f60_out1 f56_in(T17) -> U6(f60_in(T17), T17) U6(f60_out1, T17) -> U7(f3_in(T17), T17) U7(f3_out1, T17) -> f56_out1 f97_in(T40) -> U8(f158_in(T40), T40) U8(f158_out1(T41, T47), T40) -> U9(f162_in(T47), T40, T41, T47) U9(f162_out1(T48), T40, T41, T47) -> f97_out1(T41, T47, T48) f420_in(T94) -> U10(f431_in(T94), T94) U10(f431_out1(T95), T94) -> U11(f162_in(T94), T94, T95) U11(f162_out1(T101), T94, T95) -> f420_out1(T95, T101) Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (95) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 4 SCCs with 14 less nodes. ---------------------------------------- (96) Complex Obligation (AND) ---------------------------------------- (97) Obligation: Q DP problem: The TRS P consists of the following rules: F431_IN(.(T123, T124)) -> F431_IN(T124) The TRS R consists of the following rules: f3_in(T17) -> U1(f56_in(T17), T17) U1(f56_out1, T17) -> f3_out1 f3_in(T141) -> f3_out1 f158_in(.(T61, T62)) -> f158_out1(T61, T62) f158_in(.(T70, T71)) -> U2(f158_in(T71), .(T70, T71)) U2(f158_out1(T72, X74), .(T70, T71)) -> f158_out1(T72, .(T70, X74)) f162_in(T94) -> U3(f420_in(T94), T94) U3(f420_out1(T95, T96), T94) -> f162_out1(.(T95, T96)) f162_in(T135) -> f162_out1([]) f431_in(.(T114, T115)) -> f431_out1(T114) f431_in(.(T123, T124)) -> U4(f431_in(T124), .(T123, T124)) U4(f431_out1(T125), .(T123, T124)) -> f431_out1(T125) f60_in(T40) -> U5(f97_in(T40), T40) U5(f97_out1(T41, X41, T42), T40) -> f60_out1 f56_in(T17) -> U6(f60_in(T17), T17) U6(f60_out1, T17) -> U7(f3_in(T17), T17) U7(f3_out1, T17) -> f56_out1 f97_in(T40) -> U8(f158_in(T40), T40) U8(f158_out1(T41, T47), T40) -> U9(f162_in(T47), T40, T41, T47) U9(f162_out1(T48), T40, T41, T47) -> f97_out1(T41, T47, T48) f420_in(T94) -> U10(f431_in(T94), T94) U10(f431_out1(T95), T94) -> U11(f162_in(T94), T94, T95) U11(f162_out1(T101), T94, T95) -> f420_out1(T95, T101) Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (98) UsableRulesProof (EQUIVALENT) We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R. ---------------------------------------- (99) Obligation: Q DP problem: The TRS P consists of the following rules: F431_IN(.(T123, T124)) -> F431_IN(T124) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (100) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *F431_IN(.(T123, T124)) -> F431_IN(T124) The graph contains the following edges 1 > 1 ---------------------------------------- (101) YES ---------------------------------------- (102) Obligation: Q DP problem: The TRS P consists of the following rules: F162_IN(T94) -> F420_IN(T94) F420_IN(T94) -> U10^1(f431_in(T94), T94) U10^1(f431_out1(T95), T94) -> F162_IN(T94) The TRS R consists of the following rules: f3_in(T17) -> U1(f56_in(T17), T17) U1(f56_out1, T17) -> f3_out1 f3_in(T141) -> f3_out1 f158_in(.(T61, T62)) -> f158_out1(T61, T62) f158_in(.(T70, T71)) -> U2(f158_in(T71), .(T70, T71)) U2(f158_out1(T72, X74), .(T70, T71)) -> f158_out1(T72, .(T70, X74)) f162_in(T94) -> U3(f420_in(T94), T94) U3(f420_out1(T95, T96), T94) -> f162_out1(.(T95, T96)) f162_in(T135) -> f162_out1([]) f431_in(.(T114, T115)) -> f431_out1(T114) f431_in(.(T123, T124)) -> U4(f431_in(T124), .(T123, T124)) U4(f431_out1(T125), .(T123, T124)) -> f431_out1(T125) f60_in(T40) -> U5(f97_in(T40), T40) U5(f97_out1(T41, X41, T42), T40) -> f60_out1 f56_in(T17) -> U6(f60_in(T17), T17) U6(f60_out1, T17) -> U7(f3_in(T17), T17) U7(f3_out1, T17) -> f56_out1 f97_in(T40) -> U8(f158_in(T40), T40) U8(f158_out1(T41, T47), T40) -> U9(f162_in(T47), T40, T41, T47) U9(f162_out1(T48), T40, T41, T47) -> f97_out1(T41, T47, T48) f420_in(T94) -> U10(f431_in(T94), T94) U10(f431_out1(T95), T94) -> U11(f162_in(T94), T94, T95) U11(f162_out1(T101), T94, T95) -> f420_out1(T95, T101) Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (103) NonTerminationLoopProof (COMPLETE) We used the non-termination processor [FROCOS05] to show that the DP problem is infinite. Found a loop by narrowing to the left: s = F420_IN(.(T114, T115)) evaluates to t =F420_IN(.(T114, T115)) Thus s starts an infinite chain as s semiunifies with t with the following substitutions: * Matcher: [ ] * Semiunifier: [ ] -------------------------------------------------------------------------------- Rewriting sequence F420_IN(.(T114, T115)) -> U10^1(f431_in(.(T114, T115)), .(T114, T115)) with rule F420_IN(T94) -> U10^1(f431_in(T94), T94) at position [] and matcher [T94 / .(T114, T115)] U10^1(f431_in(.(T114, T115)), .(T114, T115)) -> U10^1(f431_out1(T114), .(T114, T115)) with rule f431_in(.(T114', T115')) -> f431_out1(T114') at position [0] and matcher [T114' / T114, T115' / T115] U10^1(f431_out1(T114), .(T114, T115)) -> F162_IN(.(T114, T115)) with rule U10^1(f431_out1(T95), T94') -> F162_IN(T94') at position [] and matcher [T95 / T114, T94' / .(T114, T115)] F162_IN(.(T114, T115)) -> F420_IN(.(T114, T115)) with rule F162_IN(T94) -> F420_IN(T94) Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence All these steps are and every following step will be a correct step w.r.t to Q. ---------------------------------------- (104) NO ---------------------------------------- (105) Obligation: Q DP problem: The TRS P consists of the following rules: F158_IN(.(T70, T71)) -> F158_IN(T71) The TRS R consists of the following rules: f3_in(T17) -> U1(f56_in(T17), T17) U1(f56_out1, T17) -> f3_out1 f3_in(T141) -> f3_out1 f158_in(.(T61, T62)) -> f158_out1(T61, T62) f158_in(.(T70, T71)) -> U2(f158_in(T71), .(T70, T71)) U2(f158_out1(T72, X74), .(T70, T71)) -> f158_out1(T72, .(T70, X74)) f162_in(T94) -> U3(f420_in(T94), T94) U3(f420_out1(T95, T96), T94) -> f162_out1(.(T95, T96)) f162_in(T135) -> f162_out1([]) f431_in(.(T114, T115)) -> f431_out1(T114) f431_in(.(T123, T124)) -> U4(f431_in(T124), .(T123, T124)) U4(f431_out1(T125), .(T123, T124)) -> f431_out1(T125) f60_in(T40) -> U5(f97_in(T40), T40) U5(f97_out1(T41, X41, T42), T40) -> f60_out1 f56_in(T17) -> U6(f60_in(T17), T17) U6(f60_out1, T17) -> U7(f3_in(T17), T17) U7(f3_out1, T17) -> f56_out1 f97_in(T40) -> U8(f158_in(T40), T40) U8(f158_out1(T41, T47), T40) -> U9(f162_in(T47), T40, T41, T47) U9(f162_out1(T48), T40, T41, T47) -> f97_out1(T41, T47, T48) f420_in(T94) -> U10(f431_in(T94), T94) U10(f431_out1(T95), T94) -> U11(f162_in(T94), T94, T95) U11(f162_out1(T101), T94, T95) -> f420_out1(T95, T101) Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (106) UsableRulesProof (EQUIVALENT) We can use the usable rules and reduction pair processor [LPAR04] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its arguments. Then, we can delete all non-usable rules [FROCOS05] from R. ---------------------------------------- (107) Obligation: Q DP problem: The TRS P consists of the following rules: F158_IN(.(T70, T71)) -> F158_IN(T71) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (108) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *F158_IN(.(T70, T71)) -> F158_IN(T71) The graph contains the following edges 1 > 1 ---------------------------------------- (109) YES ---------------------------------------- (110) Obligation: Q DP problem: The TRS P consists of the following rules: F3_IN(T17) -> F56_IN(T17) F56_IN(T17) -> U6^1(f60_in(T17), T17) U6^1(f60_out1, T17) -> F3_IN(T17) The TRS R consists of the following rules: f3_in(T17) -> U1(f56_in(T17), T17) U1(f56_out1, T17) -> f3_out1 f3_in(T141) -> f3_out1 f158_in(.(T61, T62)) -> f158_out1(T61, T62) f158_in(.(T70, T71)) -> U2(f158_in(T71), .(T70, T71)) U2(f158_out1(T72, X74), .(T70, T71)) -> f158_out1(T72, .(T70, X74)) f162_in(T94) -> U3(f420_in(T94), T94) U3(f420_out1(T95, T96), T94) -> f162_out1(.(T95, T96)) f162_in(T135) -> f162_out1([]) f431_in(.(T114, T115)) -> f431_out1(T114) f431_in(.(T123, T124)) -> U4(f431_in(T124), .(T123, T124)) U4(f431_out1(T125), .(T123, T124)) -> f431_out1(T125) f60_in(T40) -> U5(f97_in(T40), T40) U5(f97_out1(T41, X41, T42), T40) -> f60_out1 f56_in(T17) -> U6(f60_in(T17), T17) U6(f60_out1, T17) -> U7(f3_in(T17), T17) U7(f3_out1, T17) -> f56_out1 f97_in(T40) -> U8(f158_in(T40), T40) U8(f158_out1(T41, T47), T40) -> U9(f162_in(T47), T40, T41, T47) U9(f162_out1(T48), T40, T41, T47) -> f97_out1(T41, T47, T48) f420_in(T94) -> U10(f431_in(T94), T94) U10(f431_out1(T95), T94) -> U11(f162_in(T94), T94, T95) U11(f162_out1(T101), T94, T95) -> f420_out1(T95, T101) Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (111) NonTerminationLoopProof (COMPLETE) We used the non-termination processor [FROCOS05] to show that the DP problem is infinite. Found a loop by narrowing to the left: s = F56_IN(.(T61, T62)) evaluates to t =F56_IN(.(T61, T62)) Thus s starts an infinite chain as s semiunifies with t with the following substitutions: * Matcher: [ ] * Semiunifier: [ ] -------------------------------------------------------------------------------- Rewriting sequence F56_IN(.(T61, T62)) -> U6^1(f60_in(.(T61, T62)), .(T61, T62)) with rule F56_IN(T17) -> U6^1(f60_in(T17), T17) at position [] and matcher [T17 / .(T61, T62)] U6^1(f60_in(.(T61, T62)), .(T61, T62)) -> U6^1(U5(f97_in(.(T61, T62)), .(T61, T62)), .(T61, T62)) with rule f60_in(T40') -> U5(f97_in(T40'), T40') at position [0] and matcher [T40' / .(T61, T62)] U6^1(U5(f97_in(.(T61, T62)), .(T61, T62)), .(T61, T62)) -> U6^1(U5(U8(f158_in(.(T61, T62)), .(T61, T62)), .(T61, T62)), .(T61, T62)) with rule f97_in(T40') -> U8(f158_in(T40'), T40') at position [0,0] and matcher [T40' / .(T61, T62)] U6^1(U5(U8(f158_in(.(T61, T62)), .(T61, T62)), .(T61, T62)), .(T61, T62)) -> U6^1(U5(U8(f158_out1(T61, T62), .(T61, T62)), .(T61, T62)), .(T61, T62)) with rule f158_in(.(T61', T62')) -> f158_out1(T61', T62') at position [0,0,0] and matcher [T61' / T61, T62' / T62] U6^1(U5(U8(f158_out1(T61, T62), .(T61, T62)), .(T61, T62)), .(T61, T62)) -> U6^1(U5(U9(f162_in(T62), .(T61, T62), T61, T62), .(T61, T62)), .(T61, T62)) with rule U8(f158_out1(T41, T47'), T40'') -> U9(f162_in(T47'), T40'', T41, T47') at position [0,0] and matcher [T41 / T61, T47' / T62, T40'' / .(T61, T62)] U6^1(U5(U9(f162_in(T62), .(T61, T62), T61, T62), .(T61, T62)), .(T61, T62)) -> U6^1(U5(U9(f162_out1([]), .(T61, T62), T61, T62), .(T61, T62)), .(T61, T62)) with rule f162_in(T135) -> f162_out1([]) at position [0,0,0] and matcher [T135 / T62] U6^1(U5(U9(f162_out1([]), .(T61, T62), T61, T62), .(T61, T62)), .(T61, T62)) -> U6^1(U5(f97_out1(T61, T62, []), .(T61, T62)), .(T61, T62)) with rule U9(f162_out1(T48), T40', T41', T47) -> f97_out1(T41', T47, T48) at position [0,0] and matcher [T48 / [], T40' / .(T61, T62), T41' / T61, T47 / T62] U6^1(U5(f97_out1(T61, T62, []), .(T61, T62)), .(T61, T62)) -> U6^1(f60_out1, .(T61, T62)) with rule U5(f97_out1(T41, X41, T42), T40) -> f60_out1 at position [0] and matcher [T41 / T61, X41 / T62, T42 / [], T40 / .(T61, T62)] U6^1(f60_out1, .(T61, T62)) -> F3_IN(.(T61, T62)) with rule U6^1(f60_out1, T17') -> F3_IN(T17') at position [] and matcher [T17' / .(T61, T62)] F3_IN(.(T61, T62)) -> F56_IN(.(T61, T62)) with rule F3_IN(T17) -> F56_IN(T17) Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence All these steps are and every following step will be a correct step w.r.t to Q. ---------------------------------------- (112) NO ---------------------------------------- (113) PrologToIRSwTTransformerProof (SOUND) Transformed Prolog program to IRSwT according to method in Master Thesis of A. Weinert { "root": 2, "program": { "directives": [], "clauses": [ [ "(color_map (. Region Regions) Colors)", "(',' (color_region Region Colors) (color_map Regions Colors))" ], [ "(color_map ([]) Colors)", null ], [ "(color_region (region Name Color Neighbors) Colors)", "(',' (select Color Colors Colors1) (members Neighbors Colors1))" ], [ "(select X (. X Xs) Xs)", null ], [ "(select X (. Y Ys) (. Y Zs))", "(select X Ys Zs)" ], [ "(members (. X Xs) Ys)", "(',' (member X Ys) (members Xs Ys))" ], [ "(members ([]) Ys)", null ], [ "(member X (. X X1))", null ], [ "(member X (. X2 Xs))", "(member X Xs)" ] ] }, "graph": { "nodes": { "47": { "goal": [{ "clause": 0, "scope": 1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "48": { "goal": [{ "clause": 1, "scope": 1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "type": "Nodes", "470": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "471": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "230": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "472": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "473": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "452": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T95 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "453": { "goal": [{ "clause": -1, "scope": -1, "term": "(members T101 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "212": { "goal": [{ "clause": 2, "scope": 2, "term": "(color_region T18 T17)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "434": { "goal": [ { "clause": 5, "scope": 4, "term": "(members T48 T47)" }, { "clause": 6, "scope": 4, "term": "(members T48 T47)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "457": { "goal": [ { "clause": 7, "scope": 5, "term": "(member T95 T94)" }, { "clause": 8, "scope": 5, "term": "(member T95 T94)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "216": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (select T41 T40 X41) (members T42 X41))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "217": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "437": { "goal": [{ "clause": 5, "scope": 4, "term": "(members T48 T47)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "459": { "goal": [{ "clause": 7, "scope": 5, "term": "(member T95 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "438": { "goal": [{ "clause": 6, "scope": 4, "term": "(members T48 T47)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "50": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (color_region T18 T17) (color_map T19 T17))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "53": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "58": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_region T18 T17)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "59": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_map T24 T17)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T17"], "free": [], "exprvars": [] } }, "460": { "goal": [{ "clause": 8, "scope": 5, "term": "(member T95 T94)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "221": { "goal": [{ "clause": -1, "scope": -1, "term": "(select T41 T40 X41)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "463": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "2": { "goal": [{ "clause": -1, "scope": -1, "term": "(color_map T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } }, "222": { "goal": [{ "clause": -1, "scope": -1, "term": "(members T48 T47)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T47"], "free": [], "exprvars": [] } }, "442": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (member T95 T94) (members T96 T94))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T94"], "free": [], "exprvars": [] } }, "464": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "223": { "goal": [ { "clause": 3, "scope": 3, "term": "(select T41 T40 X41)" }, { "clause": 4, "scope": 3, "term": "(select T41 T40 X41)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "443": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "465": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "224": { "goal": [{ "clause": 3, "scope": 3, "term": "(select T41 T40 X41)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "466": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T125 T124)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T124"], "free": [], "exprvars": [] } }, "225": { "goal": [{ "clause": 4, "scope": 3, "term": "(select T41 T40 X41)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T40"], "free": ["X41"], "exprvars": [] } }, "467": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "468": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "469": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "228": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "229": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "428": { "goal": [{ "clause": -1, "scope": -1, "term": "(select T72 T71 X74)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T71"], "free": ["X74"], "exprvars": [] } }, "429": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "40": { "goal": [ { "clause": 0, "scope": 1, "term": "(color_map T1 T2)" }, { "clause": 1, "scope": 1, "term": "(color_map T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T2"], "free": [], "exprvars": [] } } }, "edges": [ { "from": 2, "to": 40, "label": "CASE" }, { "from": 40, "to": 47, "label": "PARALLEL" }, { "from": 40, "to": 48, "label": "PARALLEL" }, { "from": 47, "to": 50, "label": "EVAL with clause\ncolor_map(.(X15, X16), X17) :- ','(color_region(X15, X17), color_map(X16, X17)).\nand substitutionX15 -> T18,\nX16 -> T19,\nT1 -> .(T18, T19),\nT2 -> T17,\nX17 -> T17,\nT15 -> T18,\nT16 -> T19" }, { "from": 47, "to": 53, "label": "EVAL-BACKTRACK" }, { "from": 48, "to": 471, "label": "EVAL with clause\ncolor_map([], X139).\nand substitutionT1 -> [],\nT2 -> T141,\nX139 -> T141" }, { "from": 48, "to": 472, "label": "EVAL-BACKTRACK" }, { "from": 50, "to": 58, "label": "SPLIT 1" }, { "from": 50, "to": 59, "label": "SPLIT 2\nnew knowledge:\nT17 is ground\nreplacements:T19 -> T24" }, { "from": 58, "to": 212, "label": "CASE" }, { "from": 59, "to": 2, "label": "INSTANCE with matching:\nT1 -> T24\nT2 -> T17" }, { "from": 212, "to": 216, "label": "EVAL with clause\ncolor_region(region(X37, X38, X39), X40) :- ','(select(X38, X40, X41), members(X39, X41)).\nand substitutionX37 -> T37,\nX38 -> T41,\nX39 -> T42,\nT18 -> region(T37, T41, T42),\nT17 -> T40,\nX40 -> T40,\nT38 -> T41,\nT39 -> T42" }, { "from": 212, "to": 217, "label": "EVAL-BACKTRACK" }, { "from": 216, "to": 221, "label": "SPLIT 1" }, { "from": 216, "to": 222, "label": "SPLIT 2\nnew knowledge:\nT41 is ground\nT40 is ground\nT47 is ground\nreplacements:X41 -> T47,\nT42 -> T48" }, { "from": 221, "to": 223, "label": "CASE" }, { "from": 222, "to": 434, "label": "CASE" }, { "from": 223, "to": 224, "label": "PARALLEL" }, { "from": 223, "to": 225, "label": "PARALLEL" }, { "from": 224, "to": 228, "label": "EVAL with clause\nselect(X58, .(X58, X59), X59).\nand substitutionT41 -> T61,\nX58 -> T61,\nX59 -> T62,\nT40 -> .(T61, T62),\nX41 -> T62" }, { "from": 224, "to": 229, "label": "EVAL-BACKTRACK" }, { "from": 225, "to": 428, "label": "EVAL with clause\nselect(X70, .(X71, X72), .(X71, X73)) :- select(X70, X72, X73).\nand substitutionT41 -> T72,\nX70 -> T72,\nX71 -> T70,\nX72 -> T71,\nT40 -> .(T70, T71),\nX73 -> X74,\nX41 -> .(T70, X74),\nT69 -> T72" }, { "from": 225, "to": 429, "label": "EVAL-BACKTRACK" }, { "from": 228, "to": 230, "label": "SUCCESS" }, { "from": 428, "to": 221, "label": "INSTANCE with matching:\nT41 -> T72\nT40 -> T71\nX41 -> X74" }, { "from": 434, "to": 437, "label": "PARALLEL" }, { "from": 434, "to": 438, "label": "PARALLEL" }, { "from": 437, "to": 442, "label": "EVAL with clause\nmembers(.(X94, X95), X96) :- ','(member(X94, X96), members(X95, X96)).\nand substitutionX94 -> T95,\nX95 -> T96,\nT48 -> .(T95, T96),\nT47 -> T94,\nX96 -> T94,\nT92 -> T95,\nT93 -> T96" }, { "from": 437, "to": 443, "label": "EVAL-BACKTRACK" }, { "from": 438, "to": 468, "label": "EVAL with clause\nmembers([], X133).\nand substitutionT48 -> [],\nT47 -> T135,\nX133 -> T135" }, { "from": 438, "to": 469, "label": "EVAL-BACKTRACK" }, { "from": 442, "to": 452, "label": "SPLIT 1" }, { "from": 442, "to": 453, "label": "SPLIT 2\nnew knowledge:\nT95 is ground\nT94 is ground\nreplacements:T96 -> T101" }, { "from": 452, "to": 457, "label": "CASE" }, { "from": 453, "to": 222, "label": "INSTANCE with matching:\nT48 -> T101\nT47 -> T94" }, { "from": 457, "to": 459, "label": "PARALLEL" }, { "from": 457, "to": 460, "label": "PARALLEL" }, { "from": 459, "to": 463, "label": "EVAL with clause\nmember(X113, .(X113, X114)).\nand substitutionT95 -> T114,\nX113 -> T114,\nX114 -> T115,\nT94 -> .(T114, T115)" }, { "from": 459, "to": 464, "label": "EVAL-BACKTRACK" }, { "from": 460, "to": 466, "label": "EVAL with clause\nmember(X121, .(X122, X123)) :- member(X121, X123).\nand substitutionT95 -> T125,\nX121 -> T125,\nX122 -> T123,\nX123 -> T124,\nT94 -> .(T123, T124),\nT122 -> T125" }, { "from": 460, "to": 467, "label": "EVAL-BACKTRACK" }, { "from": 463, "to": 465, "label": "SUCCESS" }, { "from": 466, "to": 452, "label": "INSTANCE with matching:\nT95 -> T125\nT94 -> T124" }, { "from": 468, "to": 470, "label": "SUCCESS" }, { "from": 471, "to": 473, "label": "SUCCESS" } ], "type": "Graph" } } ---------------------------------------- (114) Complex Obligation (AND) ---------------------------------------- (115) Obligation: Rules: f457_out(T94) -> f452_out(T94) :|: TRUE f452_in(x) -> f457_in(x) :|: TRUE f466_in(T124) -> f452_in(T124) :|: TRUE f452_out(x1) -> f466_out(x1) :|: TRUE f460_in(x2) -> f467_in :|: TRUE f466_out(x3) -> f460_out(.(x4, x3)) :|: TRUE f467_out -> f460_out(x5) :|: TRUE f460_in(.(x6, x7)) -> f466_in(x7) :|: TRUE f457_in(x8) -> f459_in(x8) :|: TRUE f460_out(x9) -> f457_out(x9) :|: TRUE f459_out(x10) -> f457_out(x10) :|: TRUE f457_in(x11) -> f460_in(x11) :|: TRUE f2_in(T2) -> f40_in(T2) :|: TRUE f40_out(x12) -> f2_out(x12) :|: TRUE f40_in(x13) -> f47_in(x13) :|: TRUE f40_in(x14) -> f48_in(x14) :|: TRUE f48_out(x15) -> f40_out(x15) :|: TRUE f47_out(x16) -> f40_out(x16) :|: TRUE f47_in(x17) -> f53_in :|: TRUE f53_out -> f47_out(x18) :|: TRUE f50_out(T17) -> f47_out(T17) :|: TRUE f47_in(x19) -> f50_in(x19) :|: TRUE f50_in(x20) -> f58_in(x20) :|: TRUE f58_out(x21) -> f59_in(x21) :|: TRUE f59_out(x22) -> f50_out(x22) :|: TRUE f212_out(x23) -> f58_out(x23) :|: TRUE f58_in(x24) -> f212_in(x24) :|: TRUE f212_in(T40) -> f216_in(T40) :|: TRUE f217_out -> f212_out(x25) :|: TRUE f216_out(x26) -> f212_out(x26) :|: TRUE f212_in(x27) -> f217_in :|: TRUE f216_in(x28) -> f221_in(x28) :|: TRUE f221_out(x29) -> f222_in(x30) :|: TRUE f222_out(x31) -> f216_out(x32) :|: TRUE f222_in(T47) -> f434_in(T47) :|: TRUE f434_out(x33) -> f222_out(x33) :|: TRUE f434_in(x34) -> f438_in(x34) :|: TRUE f437_out(x35) -> f434_out(x35) :|: TRUE f438_out(x36) -> f434_out(x36) :|: TRUE f434_in(x37) -> f437_in(x37) :|: TRUE f443_out -> f437_out(x38) :|: TRUE f442_out(x39) -> f437_out(x39) :|: TRUE f437_in(x40) -> f443_in :|: TRUE f437_in(x41) -> f442_in(x41) :|: TRUE f442_in(x42) -> f452_in(x42) :|: TRUE f452_out(x43) -> f453_in(x43) :|: TRUE f453_out(x44) -> f442_out(x44) :|: TRUE Start term: f2_in(T2) ---------------------------------------- (116) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: ---------------------------------------- (117) TRUE ---------------------------------------- (118) Obligation: Rules: f459_in(.(T114, T115)) -> f463_in :|: TRUE f459_in(T94) -> f464_in :|: TRUE f464_out -> f459_out(x) :|: TRUE f463_out -> f459_out(.(x1, x2)) :|: TRUE f443_out -> f437_out(T47) :|: TRUE f442_out(x3) -> f437_out(x3) :|: TRUE f437_in(x4) -> f443_in :|: TRUE f437_in(x5) -> f442_in(x5) :|: TRUE f466_in(T124) -> f452_in(T124) :|: TRUE f452_out(x6) -> f466_out(x6) :|: TRUE f222_out(x7) -> f453_out(x7) :|: TRUE f453_in(x8) -> f222_in(x8) :|: TRUE f463_in -> f463_out :|: TRUE f457_out(x9) -> f452_out(x9) :|: TRUE f452_in(x10) -> f457_in(x10) :|: TRUE f442_in(x11) -> f452_in(x11) :|: TRUE f452_out(x12) -> f453_in(x12) :|: TRUE f453_out(x13) -> f442_out(x13) :|: TRUE f434_in(x14) -> f438_in(x14) :|: TRUE f437_out(x15) -> f434_out(x15) :|: TRUE f438_out(x16) -> f434_out(x16) :|: TRUE f434_in(x17) -> f437_in(x17) :|: TRUE f460_in(x18) -> f467_in :|: TRUE f466_out(x19) -> f460_out(.(x20, x19)) :|: TRUE f467_out -> f460_out(x21) :|: TRUE f460_in(.(x22, x23)) -> f466_in(x23) :|: TRUE f222_in(x24) -> f434_in(x24) :|: TRUE f434_out(x25) -> f222_out(x25) :|: TRUE f457_in(x26) -> f459_in(x26) :|: TRUE f460_out(x27) -> f457_out(x27) :|: TRUE f459_out(x28) -> f457_out(x28) :|: TRUE f457_in(x29) -> f460_in(x29) :|: TRUE f2_in(T2) -> f40_in(T2) :|: TRUE f40_out(x30) -> f2_out(x30) :|: TRUE f40_in(x31) -> f47_in(x31) :|: TRUE f40_in(x32) -> f48_in(x32) :|: TRUE f48_out(x33) -> f40_out(x33) :|: TRUE f47_out(x34) -> f40_out(x34) :|: TRUE f47_in(x35) -> f53_in :|: TRUE f53_out -> f47_out(x36) :|: TRUE f50_out(T17) -> f47_out(T17) :|: TRUE f47_in(x37) -> f50_in(x37) :|: TRUE f50_in(x38) -> f58_in(x38) :|: TRUE f58_out(x39) -> f59_in(x39) :|: TRUE f59_out(x40) -> f50_out(x40) :|: TRUE f212_out(x41) -> f58_out(x41) :|: TRUE f58_in(x42) -> f212_in(x42) :|: TRUE f212_in(T40) -> f216_in(T40) :|: TRUE f217_out -> f212_out(x43) :|: TRUE f216_out(x44) -> f212_out(x44) :|: TRUE f212_in(x45) -> f217_in :|: TRUE f216_in(x46) -> f221_in(x46) :|: TRUE f221_out(x47) -> f222_in(x48) :|: TRUE f222_out(x49) -> f216_out(x50) :|: TRUE Start term: f2_in(T2) ---------------------------------------- (119) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: ---------------------------------------- (120) TRUE ---------------------------------------- (121) Obligation: Rules: f224_out(T40) -> f223_out(T40) :|: TRUE f223_in(x) -> f224_in(x) :|: TRUE f225_out(x1) -> f223_out(x1) :|: TRUE f223_in(x2) -> f225_in(x2) :|: TRUE f428_in(T71) -> f221_in(T71) :|: TRUE f221_out(x3) -> f428_out(x3) :|: TRUE f428_out(x4) -> f225_out(.(x5, x4)) :|: TRUE f429_out -> f225_out(x6) :|: TRUE f225_in(x7) -> f429_in :|: TRUE f225_in(.(x8, x9)) -> f428_in(x9) :|: TRUE f221_in(x10) -> f223_in(x10) :|: TRUE f223_out(x11) -> f221_out(x11) :|: TRUE f2_in(T2) -> f40_in(T2) :|: TRUE f40_out(x12) -> f2_out(x12) :|: TRUE f40_in(x13) -> f47_in(x13) :|: TRUE f40_in(x14) -> f48_in(x14) :|: TRUE f48_out(x15) -> f40_out(x15) :|: TRUE f47_out(x16) -> f40_out(x16) :|: TRUE f47_in(x17) -> f53_in :|: TRUE f53_out -> f47_out(x18) :|: TRUE f50_out(T17) -> f47_out(T17) :|: TRUE f47_in(x19) -> f50_in(x19) :|: TRUE f50_in(x20) -> f58_in(x20) :|: TRUE f58_out(x21) -> f59_in(x21) :|: TRUE f59_out(x22) -> f50_out(x22) :|: TRUE f212_out(x23) -> f58_out(x23) :|: TRUE f58_in(x24) -> f212_in(x24) :|: TRUE f212_in(x25) -> f216_in(x25) :|: TRUE f217_out -> f212_out(x26) :|: TRUE f216_out(x27) -> f212_out(x27) :|: TRUE f212_in(x28) -> f217_in :|: TRUE f216_in(x29) -> f221_in(x29) :|: TRUE f221_out(x30) -> f222_in(x31) :|: TRUE f222_out(x32) -> f216_out(x33) :|: TRUE Start term: f2_in(T2) ---------------------------------------- (122) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: intTRSProblem: f223_in(x2) -> f225_in(x2) :|: TRUE f428_in(T71) -> f221_in(T71) :|: TRUE f225_in(.(x8, x9)) -> f428_in(x9) :|: TRUE f221_in(x10) -> f223_in(x10) :|: TRUE ---------------------------------------- (123) Obligation: Rules: f223_in(x2) -> f225_in(x2) :|: TRUE f428_in(T71) -> f221_in(T71) :|: TRUE f225_in(.(x8, x9)) -> f428_in(x9) :|: TRUE f221_in(x10) -> f223_in(x10) :|: TRUE ---------------------------------------- (124) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (125) Obligation: Rules: f223_in(.(x8:0, x9:0)) -> f223_in(x9:0) :|: TRUE ---------------------------------------- (126) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (127) Obligation: Rules: f223_in(.(x8:0, x9:0)) -> f223_in(x9:0) :|: TRUE ---------------------------------------- (128) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f223_in(.(x8:0, x9:0)) -> f223_in(x9:0) :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (129) Obligation: Termination digraph: Nodes: (1) f223_in(.(x8:0, x9:0)) -> f223_in(x9:0) :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (130) IntTRSUnneededArgumentFilterProof (EQUIVALENT) Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: .(x1, x2) -> .(x2) ---------------------------------------- (131) Obligation: Rules: f223_in(.(x9:0)) -> f223_in(x9:0) :|: TRUE ---------------------------------------- (132) TempFilterProof (SOUND) Used the following sort dictionary for filtering: f223_in(VARIABLE) .(VARIABLE) Removed predefined arithmetic. ---------------------------------------- (133) Obligation: Rules: f223_in(.(x9:0)) -> f223_in(x9:0) ---------------------------------------- (134) IRSwTToQDPProof (SOUND) Removed the integers and created a QDP-Problem. ---------------------------------------- (135) Obligation: Q DP problem: The TRS P consists of the following rules: f223_in(.(x9:0)) -> f223_in(x9:0) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (136) QDPSizeChangeProof (EQUIVALENT) By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs: *f223_in(.(x9:0)) -> f223_in(x9:0) The graph contains the following edges 1 > 1 ---------------------------------------- (137) YES ---------------------------------------- (138) Obligation: Rules: f459_in(.(T114, T115)) -> f463_in :|: TRUE f459_in(T94) -> f464_in :|: TRUE f464_out -> f459_out(x) :|: TRUE f463_out -> f459_out(.(x1, x2)) :|: TRUE f428_in(T71) -> f221_in(T71) :|: TRUE f221_out(x3) -> f428_out(x3) :|: TRUE f47_in(T2) -> f53_in :|: TRUE f53_out -> f47_out(x4) :|: TRUE f50_out(T17) -> f47_out(T17) :|: TRUE f47_in(x5) -> f50_in(x5) :|: TRUE f40_in(x6) -> f47_in(x6) :|: TRUE f40_in(x7) -> f48_in(x7) :|: TRUE f48_out(x8) -> f40_out(x8) :|: TRUE f47_out(x9) -> f40_out(x9) :|: TRUE f2_in(x10) -> f40_in(x10) :|: TRUE f40_out(x11) -> f2_out(x11) :|: TRUE f222_out(x12) -> f453_out(x12) :|: TRUE f453_in(x13) -> f222_in(x13) :|: TRUE f463_in -> f463_out :|: TRUE f221_in(T40) -> f223_in(T40) :|: TRUE f223_out(x14) -> f221_out(x14) :|: TRUE f457_out(x15) -> f452_out(x15) :|: TRUE f452_in(x16) -> f457_in(x16) :|: TRUE f212_in(x17) -> f216_in(x17) :|: TRUE f217_out -> f212_out(x18) :|: TRUE f216_out(x19) -> f212_out(x19) :|: TRUE f212_in(x20) -> f217_in :|: TRUE f59_in(x21) -> f2_in(x21) :|: TRUE f2_out(x22) -> f59_out(x22) :|: TRUE f428_out(x23) -> f225_out(.(x24, x23)) :|: TRUE f429_out -> f225_out(x25) :|: TRUE f225_in(x26) -> f429_in :|: TRUE f225_in(.(x27, x28)) -> f428_in(x28) :|: TRUE f438_in(T135) -> f468_in :|: TRUE f468_out -> f438_out(x29) :|: TRUE f438_in(T47) -> f469_in :|: TRUE f469_out -> f438_out(x30) :|: TRUE f443_out -> f437_out(x31) :|: TRUE f442_out(x32) -> f437_out(x32) :|: TRUE f437_in(x33) -> f443_in :|: TRUE f437_in(x34) -> f442_in(x34) :|: TRUE f466_in(T124) -> f452_in(T124) :|: TRUE f452_out(x35) -> f466_out(x35) :|: TRUE f228_in -> f228_out :|: TRUE f216_in(x36) -> f221_in(x36) :|: TRUE f221_out(x37) -> f222_in(x38) :|: TRUE f222_out(x39) -> f216_out(x40) :|: TRUE f224_out(x41) -> f223_out(x41) :|: TRUE f223_in(x42) -> f224_in(x42) :|: TRUE f225_out(x43) -> f223_out(x43) :|: TRUE f223_in(x44) -> f225_in(x44) :|: TRUE f442_in(x45) -> f452_in(x45) :|: TRUE f452_out(x46) -> f453_in(x46) :|: TRUE f453_out(x47) -> f442_out(x47) :|: TRUE f434_in(x48) -> f438_in(x48) :|: TRUE f437_out(x49) -> f434_out(x49) :|: TRUE f438_out(x50) -> f434_out(x50) :|: TRUE f434_in(x51) -> f437_in(x51) :|: TRUE f460_in(x52) -> f467_in :|: TRUE f466_out(x53) -> f460_out(.(x54, x53)) :|: TRUE f467_out -> f460_out(x55) :|: TRUE f460_in(.(x56, x57)) -> f466_in(x57) :|: TRUE f222_in(x58) -> f434_in(x58) :|: TRUE f434_out(x59) -> f222_out(x59) :|: TRUE f50_in(x60) -> f58_in(x60) :|: TRUE f58_out(x61) -> f59_in(x61) :|: TRUE f59_out(x62) -> f50_out(x62) :|: TRUE f212_out(x63) -> f58_out(x63) :|: TRUE f58_in(x64) -> f212_in(x64) :|: TRUE f228_out -> f224_out(.(T61, T62)) :|: TRUE f224_in(x65) -> f229_in :|: TRUE f224_in(.(x66, x67)) -> f228_in :|: TRUE f229_out -> f224_out(x68) :|: TRUE f457_in(x69) -> f459_in(x69) :|: TRUE f460_out(x70) -> f457_out(x70) :|: TRUE f459_out(x71) -> f457_out(x71) :|: TRUE f457_in(x72) -> f460_in(x72) :|: TRUE f468_in -> f468_out :|: TRUE Start term: f2_in(T2) ---------------------------------------- (139) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: intTRSProblem: f459_in(.(T114, T115)) -> f463_in :|: TRUE f463_out -> f459_out(.(x1, x2)) :|: TRUE f428_in(T71) -> f221_in(T71) :|: TRUE f221_out(x3) -> f428_out(x3) :|: TRUE f47_in(x5) -> f50_in(x5) :|: TRUE f40_in(x6) -> f47_in(x6) :|: TRUE f2_in(x10) -> f40_in(x10) :|: TRUE f222_out(x12) -> f453_out(x12) :|: TRUE f453_in(x13) -> f222_in(x13) :|: TRUE f463_in -> f463_out :|: TRUE f221_in(T40) -> f223_in(T40) :|: TRUE f223_out(x14) -> f221_out(x14) :|: TRUE f457_out(x15) -> f452_out(x15) :|: TRUE f452_in(x16) -> f457_in(x16) :|: TRUE f212_in(x17) -> f216_in(x17) :|: TRUE f216_out(x19) -> f212_out(x19) :|: TRUE f59_in(x21) -> f2_in(x21) :|: TRUE f428_out(x23) -> f225_out(.(x24, x23)) :|: TRUE f225_in(.(x27, x28)) -> f428_in(x28) :|: TRUE f438_in(T135) -> f468_in :|: TRUE f468_out -> f438_out(x29) :|: TRUE f442_out(x32) -> f437_out(x32) :|: TRUE f437_in(x34) -> f442_in(x34) :|: TRUE f466_in(T124) -> f452_in(T124) :|: TRUE f452_out(x35) -> f466_out(x35) :|: TRUE f228_in -> f228_out :|: TRUE f216_in(x36) -> f221_in(x36) :|: TRUE f221_out(x37) -> f222_in(x38) :|: TRUE f222_out(x39) -> f216_out(x40) :|: TRUE f224_out(x41) -> f223_out(x41) :|: TRUE f223_in(x42) -> f224_in(x42) :|: TRUE f225_out(x43) -> f223_out(x43) :|: TRUE f223_in(x44) -> f225_in(x44) :|: TRUE f442_in(x45) -> f452_in(x45) :|: TRUE f452_out(x46) -> f453_in(x46) :|: TRUE f453_out(x47) -> f442_out(x47) :|: TRUE f434_in(x48) -> f438_in(x48) :|: TRUE f437_out(x49) -> f434_out(x49) :|: TRUE f438_out(x50) -> f434_out(x50) :|: TRUE f434_in(x51) -> f437_in(x51) :|: TRUE f466_out(x53) -> f460_out(.(x54, x53)) :|: TRUE f460_in(.(x56, x57)) -> f466_in(x57) :|: TRUE f222_in(x58) -> f434_in(x58) :|: TRUE f434_out(x59) -> f222_out(x59) :|: TRUE f50_in(x60) -> f58_in(x60) :|: TRUE f58_out(x61) -> f59_in(x61) :|: TRUE f212_out(x63) -> f58_out(x63) :|: TRUE f58_in(x64) -> f212_in(x64) :|: TRUE f228_out -> f224_out(.(T61, T62)) :|: TRUE f224_in(.(x66, x67)) -> f228_in :|: TRUE f457_in(x69) -> f459_in(x69) :|: TRUE f460_out(x70) -> f457_out(x70) :|: TRUE f459_out(x71) -> f457_out(x71) :|: TRUE f457_in(x72) -> f460_in(x72) :|: TRUE f468_in -> f468_out :|: TRUE ---------------------------------------- (140) Obligation: Rules: f459_in(.(T114, T115)) -> f463_in :|: TRUE f463_out -> f459_out(.(x1, x2)) :|: TRUE f428_in(T71) -> f221_in(T71) :|: TRUE f221_out(x3) -> f428_out(x3) :|: TRUE f47_in(x5) -> f50_in(x5) :|: TRUE f40_in(x6) -> f47_in(x6) :|: TRUE f2_in(x10) -> f40_in(x10) :|: TRUE f222_out(x12) -> f453_out(x12) :|: TRUE f453_in(x13) -> f222_in(x13) :|: TRUE f463_in -> f463_out :|: TRUE f221_in(T40) -> f223_in(T40) :|: TRUE f223_out(x14) -> f221_out(x14) :|: TRUE f457_out(x15) -> f452_out(x15) :|: TRUE f452_in(x16) -> f457_in(x16) :|: TRUE f212_in(x17) -> f216_in(x17) :|: TRUE f216_out(x19) -> f212_out(x19) :|: TRUE f59_in(x21) -> f2_in(x21) :|: TRUE f428_out(x23) -> f225_out(.(x24, x23)) :|: TRUE f225_in(.(x27, x28)) -> f428_in(x28) :|: TRUE f438_in(T135) -> f468_in :|: TRUE f468_out -> f438_out(x29) :|: TRUE f442_out(x32) -> f437_out(x32) :|: TRUE f437_in(x34) -> f442_in(x34) :|: TRUE f466_in(T124) -> f452_in(T124) :|: TRUE f452_out(x35) -> f466_out(x35) :|: TRUE f228_in -> f228_out :|: TRUE f216_in(x36) -> f221_in(x36) :|: TRUE f221_out(x37) -> f222_in(x38) :|: TRUE f222_out(x39) -> f216_out(x40) :|: TRUE f224_out(x41) -> f223_out(x41) :|: TRUE f223_in(x42) -> f224_in(x42) :|: TRUE f225_out(x43) -> f223_out(x43) :|: TRUE f223_in(x44) -> f225_in(x44) :|: TRUE f442_in(x45) -> f452_in(x45) :|: TRUE f452_out(x46) -> f453_in(x46) :|: TRUE f453_out(x47) -> f442_out(x47) :|: TRUE f434_in(x48) -> f438_in(x48) :|: TRUE f437_out(x49) -> f434_out(x49) :|: TRUE f438_out(x50) -> f434_out(x50) :|: TRUE f434_in(x51) -> f437_in(x51) :|: TRUE f466_out(x53) -> f460_out(.(x54, x53)) :|: TRUE f460_in(.(x56, x57)) -> f466_in(x57) :|: TRUE f222_in(x58) -> f434_in(x58) :|: TRUE f434_out(x59) -> f222_out(x59) :|: TRUE f50_in(x60) -> f58_in(x60) :|: TRUE f58_out(x61) -> f59_in(x61) :|: TRUE f212_out(x63) -> f58_out(x63) :|: TRUE f58_in(x64) -> f212_in(x64) :|: TRUE f228_out -> f224_out(.(T61, T62)) :|: TRUE f224_in(.(x66, x67)) -> f228_in :|: TRUE f457_in(x69) -> f459_in(x69) :|: TRUE f460_out(x70) -> f457_out(x70) :|: TRUE f459_out(x71) -> f457_out(x71) :|: TRUE f457_in(x72) -> f460_in(x72) :|: TRUE f468_in -> f468_out :|: TRUE ---------------------------------------- (141) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (142) Obligation: Rules: f457_out(x15:0) -> f434_in(x15:0) :|: TRUE f452_in(.(x56:0, x57:0)) -> f452_in(x57:0) :|: TRUE f223_out(x14:0) -> f434_in(x38:0) :|: TRUE f452_in(.(T114:0, T115:0)) -> f457_out(.(x1:0, x2:0)) :|: TRUE f434_in(x48:0) -> f222_out(x29:0) :|: TRUE f222_out(x39:0) -> f223_in(x40:0) :|: TRUE f457_out(x) -> f457_out(.(x1, x)) :|: TRUE f223_in(.(x27:0, x28:0)) -> f223_in(x28:0) :|: TRUE f223_out(x2) -> f223_out(.(x3, x2)) :|: TRUE f222_out(x12:0) -> f222_out(x12:0) :|: TRUE f434_in(x51:0) -> f452_in(x51:0) :|: TRUE f223_in(.(x66:0, x67:0)) -> f223_out(.(T61:0, T62:0)) :|: TRUE ---------------------------------------- (143) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (144) Obligation: Rules: f457_out(x15:0) -> f434_in(x15:0) :|: TRUE f452_in(.(x56:0, x57:0)) -> f452_in(x57:0) :|: TRUE f223_out(x14:0) -> f434_in(x38:0) :|: TRUE f452_in(.(T114:0, T115:0)) -> f457_out(.(x1:0, x2:0)) :|: TRUE f434_in(x48:0) -> f222_out(x29:0) :|: TRUE f222_out(x39:0) -> f223_in(x40:0) :|: TRUE f457_out(x) -> f457_out(.(x1, x)) :|: TRUE f223_in(.(x27:0, x28:0)) -> f223_in(x28:0) :|: TRUE f223_out(x2) -> f223_out(.(x3, x2)) :|: TRUE f222_out(x12:0) -> f222_out(x12:0) :|: TRUE f434_in(x51:0) -> f452_in(x51:0) :|: TRUE f223_in(.(x66:0, x67:0)) -> f223_out(.(T61:0, T62:0)) :|: TRUE ---------------------------------------- (145) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f457_out(x15:0) -> f434_in(x15:0) :|: TRUE (2) f452_in(.(x56:0, x57:0)) -> f452_in(x57:0) :|: TRUE (3) f223_out(x14:0) -> f434_in(x38:0) :|: TRUE (4) f452_in(.(T114:0, T115:0)) -> f457_out(.(x1:0, x2:0)) :|: TRUE (5) f434_in(x48:0) -> f222_out(x29:0) :|: TRUE (6) f222_out(x39:0) -> f223_in(x40:0) :|: TRUE (7) f457_out(x) -> f457_out(.(x1, x)) :|: TRUE (8) f223_in(.(x27:0, x28:0)) -> f223_in(x28:0) :|: TRUE (9) f223_out(x2) -> f223_out(.(x3, x2)) :|: TRUE (10) f222_out(x12:0) -> f222_out(x12:0) :|: TRUE (11) f434_in(x51:0) -> f452_in(x51:0) :|: TRUE (12) f223_in(.(x66:0, x67:0)) -> f223_out(.(T61:0, T62:0)) :|: TRUE Arcs: (1) -> (5), (11) (2) -> (2), (4) (3) -> (5), (11) (4) -> (1), (7) (5) -> (6), (10) (6) -> (8), (12) (7) -> (1), (7) (8) -> (8), (12) (9) -> (3), (9) (10) -> (6), (10) (11) -> (2), (4) (12) -> (3), (9) This digraph is fully evaluated! ---------------------------------------- (146) Obligation: Termination digraph: Nodes: (1) f457_out(x15:0) -> f434_in(x15:0) :|: TRUE (2) f457_out(x) -> f457_out(.(x1, x)) :|: TRUE (3) f452_in(.(T114:0, T115:0)) -> f457_out(.(x1:0, x2:0)) :|: TRUE (4) f452_in(.(x56:0, x57:0)) -> f452_in(x57:0) :|: TRUE (5) f434_in(x51:0) -> f452_in(x51:0) :|: TRUE (6) f223_out(x14:0) -> f434_in(x38:0) :|: TRUE (7) f223_out(x2) -> f223_out(.(x3, x2)) :|: TRUE (8) f223_in(.(x66:0, x67:0)) -> f223_out(.(T61:0, T62:0)) :|: TRUE (9) f223_in(.(x27:0, x28:0)) -> f223_in(x28:0) :|: TRUE (10) f222_out(x39:0) -> f223_in(x40:0) :|: TRUE (11) f222_out(x12:0) -> f222_out(x12:0) :|: TRUE (12) f434_in(x48:0) -> f222_out(x29:0) :|: TRUE Arcs: (1) -> (5), (12) (2) -> (1), (2) (3) -> (1), (2) (4) -> (3), (4) (5) -> (3), (4) (6) -> (5), (12) (7) -> (6), (7) (8) -> (6), (7) (9) -> (8), (9) (10) -> (8), (9) (11) -> (10), (11) (12) -> (10), (11) This digraph is fully evaluated!