/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 suffix(g,a) w.r.t. the given Prolog program could not be shown: (0) Prolog (1) PrologToDTProblemTransformerProof [SOUND, 0 ms] (2) TRIPLES (3) TriplesToPiDPProof [SOUND, 0 ms] (4) PiDP (5) DependencyGraphProof [EQUIVALENT, 0 ms] (6) PiDP (7) PiDPToQDPProof [SOUND, 0 ms] (8) QDP (9) PrologToPiTRSProof [SOUND, 0 ms] (10) PiTRS (11) DependencyPairsProof [EQUIVALENT, 0 ms] (12) PiDP (13) DependencyGraphProof [EQUIVALENT, 0 ms] (14) PiDP (15) UsableRulesProof [EQUIVALENT, 0 ms] (16) PiDP (17) PiDPToQDPProof [SOUND, 0 ms] (18) QDP (19) PrologToTRSTransformerProof [SOUND, 0 ms] (20) QTRS (21) DependencyPairsProof [EQUIVALENT, 0 ms] (22) QDP (23) DependencyGraphProof [EQUIVALENT, 0 ms] (24) QDP (25) MNOCProof [EQUIVALENT, 0 ms] (26) QDP (27) UsableRulesProof [EQUIVALENT, 0 ms] (28) QDP (29) QReductionProof [EQUIVALENT, 0 ms] (30) QDP (31) PrologToIRSwTTransformerProof [SOUND, 0 ms] (32) IRSwT (33) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (34) IRSwT (35) IntTRSCompressionProof [EQUIVALENT, 42 ms] (36) IRSwT (37) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (38) IRSwT (39) IRSwTTerminationDigraphProof [EQUIVALENT, 3 ms] (40) IRSwT (41) FilterProof [EQUIVALENT, 0 ms] (42) IntTRS (43) IntTRSPeriodicNontermProof [COMPLETE, 8 ms] (44) NO (45) PrologToPiTRSProof [SOUND, 0 ms] (46) PiTRS (47) DependencyPairsProof [EQUIVALENT, 0 ms] (48) PiDP (49) DependencyGraphProof [EQUIVALENT, 0 ms] (50) PiDP (51) UsableRulesProof [EQUIVALENT, 0 ms] (52) PiDP (53) PiDPToQDPProof [SOUND, 0 ms] (54) QDP ---------------------------------------- (0) Obligation: Clauses: suffix(Xs, Ys) :- app(X1, Xs, Ys). app([], X, X). app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs). Query: suffix(g,a) ---------------------------------------- (1) PrologToDTProblemTransformerProof (SOUND) Built DT problem from termination graph DT10. { "root": 2, "program": { "directives": [], "clauses": [ [ "(suffix Xs Ys)", "(app X1 Xs Ys)" ], [ "(app ([]) X X)", null ], [ "(app (. X Xs) Ys (. X Zs))", "(app Xs Ys Zs)" ] ] }, "graph": { "nodes": { "22": { "goal": [{ "clause": 2, "scope": 2, "term": "(app X6 T5 T7)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T5"], "free": ["X6"], "exprvars": [] } }, "23": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "2": { "goal": [{ "clause": -1, "scope": -1, "term": "(suffix T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "14": { "goal": [{ "clause": -1, "scope": -1, "term": "(app X6 T5 T7)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T5"], "free": ["X6"], "exprvars": [] } }, "25": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "26": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "6": { "goal": [{ "clause": 0, "scope": 1, "term": "(suffix T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "28": { "goal": [{ "clause": -1, "scope": -1, "term": "(app X29 T19 T22)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T19"], "free": ["X29"], "exprvars": [] } }, "type": "Nodes", "20": { "goal": [ { "clause": 1, "scope": 2, "term": "(app X6 T5 T7)" }, { "clause": 2, "scope": 2, "term": "(app X6 T5 T7)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T5"], "free": ["X6"], "exprvars": [] } }, "31": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "21": { "goal": [{ "clause": 1, "scope": 2, "term": "(app X6 T5 T7)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T5"], "free": ["X6"], "exprvars": [] } } }, "edges": [ { "from": 2, "to": 6, "label": "CASE" }, { "from": 6, "to": 14, "label": "ONLY EVAL with clause\nsuffix(X4, X5) :- app(X6, X4, X5).\nand substitutionT1 -> T5,\nX4 -> T5,\nT2 -> T7,\nX5 -> T7,\nT6 -> T7" }, { "from": 14, "to": 20, "label": "CASE" }, { "from": 20, "to": 21, "label": "PARALLEL" }, { "from": 20, "to": 22, "label": "PARALLEL" }, { "from": 21, "to": 23, "label": "EVAL with clause\napp([], X11, X11).\nand substitutionX6 -> [],\nT5 -> T12,\nX11 -> T12,\nT7 -> T12" }, { "from": 21, "to": 25, "label": "EVAL-BACKTRACK" }, { "from": 22, "to": 28, "label": "EVAL with clause\napp(.(X24, X25), X26, .(X24, X27)) :- app(X25, X26, X27).\nand substitutionX24 -> T20,\nX25 -> X29,\nX6 -> .(T20, X29),\nT5 -> T19,\nX26 -> T19,\nX28 -> T20,\nX27 -> T22,\nT7 -> .(T20, T22),\nT21 -> T22" }, { "from": 22, "to": 31, "label": "EVAL-BACKTRACK" }, { "from": 23, "to": 26, "label": "SUCCESS" }, { "from": 28, "to": 14, "label": "INSTANCE with matching:\nX6 -> X29\nT5 -> T19\nT7 -> T22" } ], "type": "Graph" } } ---------------------------------------- (2) Obligation: Triples: appA(.(X1, X2), X3, .(X1, X4)) :- appA(X2, X3, X4). suffixB(X1, X2) :- appA(X3, X1, X2). Clauses: appcA([], X1, X1). appcA(.(X1, X2), X3, .(X1, X4)) :- appcA(X2, X3, X4). Afs: suffixB(x1, x2) = suffixB(x1) ---------------------------------------- (3) TriplesToPiDPProof (SOUND) We use the technique of [DT09]. With regard to the inferred argument filtering the predicates were used in the following modes: suffixB_in_2: (b,f) appA_in_3: (f,b,f) Transforming TRIPLES into the following Term Rewriting System: Pi DP problem: The TRS P consists of the following rules: SUFFIXB_IN_GA(X1, X2) -> U2_GA(X1, X2, appA_in_aga(X3, X1, X2)) SUFFIXB_IN_GA(X1, X2) -> APPA_IN_AGA(X3, X1, X2) APPA_IN_AGA(.(X1, X2), X3, .(X1, X4)) -> U1_AGA(X1, X2, X3, X4, appA_in_aga(X2, X3, X4)) APPA_IN_AGA(.(X1, X2), X3, .(X1, X4)) -> APPA_IN_AGA(X2, X3, X4) R is empty. The argument filtering Pi contains the following mapping: appA_in_aga(x1, x2, x3) = appA_in_aga(x2) .(x1, x2) = .(x2) SUFFIXB_IN_GA(x1, x2) = SUFFIXB_IN_GA(x1) U2_GA(x1, x2, x3) = U2_GA(x1, x3) APPA_IN_AGA(x1, x2, x3) = APPA_IN_AGA(x2) U1_AGA(x1, x2, x3, x4, x5) = U1_AGA(x3, x5) We have to consider all (P,R,Pi)-chains Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES ---------------------------------------- (4) Obligation: Pi DP problem: The TRS P consists of the following rules: SUFFIXB_IN_GA(X1, X2) -> U2_GA(X1, X2, appA_in_aga(X3, X1, X2)) SUFFIXB_IN_GA(X1, X2) -> APPA_IN_AGA(X3, X1, X2) APPA_IN_AGA(.(X1, X2), X3, .(X1, X4)) -> U1_AGA(X1, X2, X3, X4, appA_in_aga(X2, X3, X4)) APPA_IN_AGA(.(X1, X2), X3, .(X1, X4)) -> APPA_IN_AGA(X2, X3, X4) R is empty. The argument filtering Pi contains the following mapping: appA_in_aga(x1, x2, x3) = appA_in_aga(x2) .(x1, x2) = .(x2) SUFFIXB_IN_GA(x1, x2) = SUFFIXB_IN_GA(x1) U2_GA(x1, x2, x3) = U2_GA(x1, x3) APPA_IN_AGA(x1, x2, x3) = APPA_IN_AGA(x2) U1_AGA(x1, x2, x3, x4, x5) = U1_AGA(x3, x5) We have to consider all (P,R,Pi)-chains ---------------------------------------- (5) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes. ---------------------------------------- (6) Obligation: Pi DP problem: The TRS P consists of the following rules: APPA_IN_AGA(.(X1, X2), X3, .(X1, X4)) -> APPA_IN_AGA(X2, X3, X4) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x2) APPA_IN_AGA(x1, x2, x3) = APPA_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (7) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (8) Obligation: Q DP problem: The TRS P consists of the following rules: APPA_IN_AGA(X3) -> APPA_IN_AGA(X3) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (9) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: suffix_in_2: (b,f) app_in_3: (f,b,f) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x1, x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x2, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x3, x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x1, x2) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (10) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x1, x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x2, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x3, x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x1, x2) ---------------------------------------- (11) 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: SUFFIX_IN_GA(Xs, Ys) -> U1_GA(Xs, Ys, app_in_aga(X1, Xs, Ys)) SUFFIX_IN_GA(Xs, Ys) -> APP_IN_AGA(X1, Xs, Ys) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> U2_AGA(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x1, x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x2, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x3, x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x1, x2) SUFFIX_IN_GA(x1, x2) = SUFFIX_IN_GA(x1) U1_GA(x1, x2, x3) = U1_GA(x1, x3) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) U2_AGA(x1, x2, x3, x4, x5) = U2_AGA(x3, x5) We have to consider all (P,R,Pi)-chains ---------------------------------------- (12) Obligation: Pi DP problem: The TRS P consists of the following rules: SUFFIX_IN_GA(Xs, Ys) -> U1_GA(Xs, Ys, app_in_aga(X1, Xs, Ys)) SUFFIX_IN_GA(Xs, Ys) -> APP_IN_AGA(X1, Xs, Ys) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> U2_AGA(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x1, x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x2, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x3, x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x1, x2) SUFFIX_IN_GA(x1, x2) = SUFFIX_IN_GA(x1) U1_GA(x1, x2, x3) = U1_GA(x1, x3) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) U2_AGA(x1, x2, x3, x4, x5) = U2_AGA(x3, x5) We have to consider all (P,R,Pi)-chains ---------------------------------------- (13) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes. ---------------------------------------- (14) Obligation: Pi DP problem: The TRS P consists of the following rules: APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x1, x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x2, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x3, x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x1, x2) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) 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: APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x2) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) 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: APP_IN_AGA(Ys) -> APP_IN_AGA(Ys) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (19) PrologToTRSTransformerProof (SOUND) Transformed Prolog program to TRS. { "root": 4, "program": { "directives": [], "clauses": [ [ "(suffix Xs Ys)", "(app X1 Xs Ys)" ], [ "(app ([]) X X)", null ], [ "(app (. X Xs) Ys (. X Zs))", "(app Xs Ys Zs)" ] ] }, "graph": { "nodes": { "33": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "34": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "24": { "goal": [{ "clause": -1, "scope": -1, "term": "(app X11 T10 T12)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "35": { "goal": [{ "clause": -1, "scope": -1, "term": "(app X36 T26 T29)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T26"], "free": ["X36"], "exprvars": [] } }, "36": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "4": { "goal": [{ "clause": -1, "scope": -1, "term": "(suffix T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "5": { "goal": [{ "clause": 0, "scope": 1, "term": "(suffix T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "27": { "goal": [ { "clause": 1, "scope": 2, "term": "(app X11 T10 T12)" }, { "clause": 2, "scope": 2, "term": "(app X11 T10 T12)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "29": { "goal": [{ "clause": 1, "scope": 2, "term": "(app X11 T10 T12)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "type": "Nodes", "30": { "goal": [{ "clause": 2, "scope": 2, "term": "(app X11 T10 T12)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "32": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } } }, "edges": [ { "from": 4, "to": 5, "label": "CASE" }, { "from": 5, "to": 24, "label": "ONLY EVAL with clause\nsuffix(X9, X10) :- app(X11, X9, X10).\nand substitutionT1 -> T10,\nX9 -> T10,\nT2 -> T12,\nX10 -> T12,\nT11 -> T12" }, { "from": 24, "to": 27, "label": "CASE" }, { "from": 27, "to": 29, "label": "PARALLEL" }, { "from": 27, "to": 30, "label": "PARALLEL" }, { "from": 29, "to": 32, "label": "EVAL with clause\napp([], X18, X18).\nand substitutionX11 -> [],\nT10 -> T19,\nX18 -> T19,\nT12 -> T19" }, { "from": 29, "to": 33, "label": "EVAL-BACKTRACK" }, { "from": 30, "to": 35, "label": "EVAL with clause\napp(.(X31, X32), X33, .(X31, X34)) :- app(X32, X33, X34).\nand substitutionX31 -> T27,\nX32 -> X36,\nX11 -> .(T27, X36),\nT10 -> T26,\nX33 -> T26,\nX35 -> T27,\nX34 -> T29,\nT12 -> .(T27, T29),\nT28 -> T29" }, { "from": 30, "to": 36, "label": "EVAL-BACKTRACK" }, { "from": 32, "to": 34, "label": "SUCCESS" }, { "from": 35, "to": 24, "label": "INSTANCE with matching:\nX11 -> X36\nT10 -> T26\nT12 -> T29" } ], "type": "Graph" } } ---------------------------------------- (20) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f4_in(T10) -> U1(f24_in(T10), T10) U1(f24_out1, T10) -> f4_out1 f24_in(T19) -> f24_out1 f24_in(T26) -> U2(f24_in(T26), T26) U2(f24_out1, T26) -> f24_out1 Q is empty. ---------------------------------------- (21) DependencyPairsProof (EQUIVALENT) Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem. ---------------------------------------- (22) Obligation: Q DP problem: The TRS P consists of the following rules: F4_IN(T10) -> U1^1(f24_in(T10), T10) F4_IN(T10) -> F24_IN(T10) F24_IN(T26) -> U2^1(f24_in(T26), T26) F24_IN(T26) -> F24_IN(T26) The TRS R consists of the following rules: f4_in(T10) -> U1(f24_in(T10), T10) U1(f24_out1, T10) -> f4_out1 f24_in(T19) -> f24_out1 f24_in(T26) -> U2(f24_in(T26), T26) U2(f24_out1, T26) -> f24_out1 Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (23) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 3 less nodes. ---------------------------------------- (24) Obligation: Q DP problem: The TRS P consists of the following rules: F24_IN(T26) -> F24_IN(T26) The TRS R consists of the following rules: f4_in(T10) -> U1(f24_in(T10), T10) U1(f24_out1, T10) -> f4_out1 f24_in(T19) -> f24_out1 f24_in(T26) -> U2(f24_in(T26), T26) U2(f24_out1, T26) -> f24_out1 Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (25) MNOCProof (EQUIVALENT) We use the modular non-overlap check [LPAR04] to enlarge Q to all left-hand sides of R. ---------------------------------------- (26) Obligation: Q DP problem: The TRS P consists of the following rules: F24_IN(T26) -> F24_IN(T26) The TRS R consists of the following rules: f4_in(T10) -> U1(f24_in(T10), T10) U1(f24_out1, T10) -> f4_out1 f24_in(T19) -> f24_out1 f24_in(T26) -> U2(f24_in(T26), T26) U2(f24_out1, T26) -> f24_out1 The set Q consists of the following terms: f4_in(x0) U1(f24_out1, x0) f24_in(x0) U2(f24_out1, x0) We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (27) UsableRulesProof (EQUIVALENT) As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. ---------------------------------------- (28) Obligation: Q DP problem: The TRS P consists of the following rules: F24_IN(T26) -> F24_IN(T26) R is empty. The set Q consists of the following terms: f4_in(x0) U1(f24_out1, x0) f24_in(x0) U2(f24_out1, x0) We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (29) QReductionProof (EQUIVALENT) We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. f4_in(x0) U1(f24_out1, x0) f24_in(x0) U2(f24_out1, x0) ---------------------------------------- (30) Obligation: Q DP problem: The TRS P consists of the following rules: F24_IN(T26) -> F24_IN(T26) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (31) PrologToIRSwTTransformerProof (SOUND) Transformed Prolog program to IRSwT according to method in Master Thesis of A. Weinert { "root": 3, "program": { "directives": [], "clauses": [ [ "(suffix Xs Ys)", "(app X1 Xs Ys)" ], [ "(app ([]) X X)", null ], [ "(app (. X Xs) Ys (. X Zs))", "(app Xs Ys Zs)" ] ] }, "graph": { "nodes": { "44": { "goal": [{ "clause": -1, "scope": -1, "term": "(app X36 T26 T29)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T26"], "free": ["X36"], "exprvars": [] } }, "45": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "3": { "goal": [{ "clause": -1, "scope": -1, "term": "(suffix T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "37": { "goal": [{ "clause": -1, "scope": -1, "term": "(app X11 T10 T12)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "38": { "goal": [ { "clause": 1, "scope": 2, "term": "(app X11 T10 T12)" }, { "clause": 2, "scope": 2, "term": "(app X11 T10 T12)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "39": { "goal": [{ "clause": 1, "scope": 2, "term": "(app X11 T10 T12)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "8": { "goal": [{ "clause": 0, "scope": 1, "term": "(suffix T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "type": "Nodes", "40": { "goal": [{ "clause": 2, "scope": 2, "term": "(app X11 T10 T12)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": ["X11"], "exprvars": [] } }, "41": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "42": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "43": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } } }, "edges": [ { "from": 3, "to": 8, "label": "CASE" }, { "from": 8, "to": 37, "label": "ONLY EVAL with clause\nsuffix(X9, X10) :- app(X11, X9, X10).\nand substitutionT1 -> T10,\nX9 -> T10,\nT2 -> T12,\nX10 -> T12,\nT11 -> T12" }, { "from": 37, "to": 38, "label": "CASE" }, { "from": 38, "to": 39, "label": "PARALLEL" }, { "from": 38, "to": 40, "label": "PARALLEL" }, { "from": 39, "to": 41, "label": "EVAL with clause\napp([], X18, X18).\nand substitutionX11 -> [],\nT10 -> T19,\nX18 -> T19,\nT12 -> T19" }, { "from": 39, "to": 42, "label": "EVAL-BACKTRACK" }, { "from": 40, "to": 44, "label": "EVAL with clause\napp(.(X31, X32), X33, .(X31, X34)) :- app(X32, X33, X34).\nand substitutionX31 -> T27,\nX32 -> X36,\nX11 -> .(T27, X36),\nT10 -> T26,\nX33 -> T26,\nX35 -> T27,\nX34 -> T29,\nT12 -> .(T27, T29),\nT28 -> T29" }, { "from": 40, "to": 45, "label": "EVAL-BACKTRACK" }, { "from": 41, "to": 43, "label": "SUCCESS" }, { "from": 44, "to": 37, "label": "INSTANCE with matching:\nX11 -> X36\nT10 -> T26\nT12 -> T29" } ], "type": "Graph" } } ---------------------------------------- (32) Obligation: Rules: f38_in(T10) -> f39_in(T10) :|: TRUE f40_out(x) -> f38_out(x) :|: TRUE f39_out(x1) -> f38_out(x1) :|: TRUE f38_in(x2) -> f40_in(x2) :|: TRUE f44_out(T26) -> f40_out(T26) :|: TRUE f45_out -> f40_out(x3) :|: TRUE f40_in(x4) -> f45_in :|: TRUE f40_in(x5) -> f44_in(x5) :|: TRUE f37_in(x6) -> f38_in(x6) :|: TRUE f38_out(x7) -> f37_out(x7) :|: TRUE f37_out(x8) -> f44_out(x8) :|: TRUE f44_in(x9) -> f37_in(x9) :|: TRUE f8_out(T1) -> f3_out(T1) :|: TRUE f3_in(x10) -> f8_in(x10) :|: TRUE f8_in(x11) -> f37_in(x11) :|: TRUE f37_out(x12) -> f8_out(x12) :|: TRUE Start term: f3_in(T1) ---------------------------------------- (33) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: intTRSProblem: f38_in(x2) -> f40_in(x2) :|: TRUE f40_in(x5) -> f44_in(x5) :|: TRUE f37_in(x6) -> f38_in(x6) :|: TRUE f44_in(x9) -> f37_in(x9) :|: TRUE ---------------------------------------- (34) Obligation: Rules: f38_in(x2) -> f40_in(x2) :|: TRUE f40_in(x5) -> f44_in(x5) :|: TRUE f37_in(x6) -> f38_in(x6) :|: TRUE f44_in(x9) -> f37_in(x9) :|: TRUE ---------------------------------------- (35) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (36) Obligation: Rules: f37_in(x6:0) -> f37_in(x6:0) :|: TRUE ---------------------------------------- (37) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (38) Obligation: Rules: f37_in(x6:0) -> f37_in(x6:0) :|: TRUE ---------------------------------------- (39) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f37_in(x6:0) -> f37_in(x6:0) :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (40) Obligation: Termination digraph: Nodes: (1) f37_in(x6:0) -> f37_in(x6:0) :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (41) FilterProof (EQUIVALENT) Used the following sort dictionary for filtering: f37_in(VARIABLE) Replaced non-predefined constructor symbols by 0. ---------------------------------------- (42) Obligation: Rules: f37_in(x6:0) -> f37_in(x6:0) :|: TRUE ---------------------------------------- (43) IntTRSPeriodicNontermProof (COMPLETE) Normalized system to the following form: f(pc, x6:0) -> f(1, x6:0) :|: pc = 1 && TRUE Witness term starting non-terminating reduction: f(1, -8) ---------------------------------------- (44) NO ---------------------------------------- (45) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: suffix_in_2: (b,f) app_in_3: (f,b,f) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x2) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (46) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x2) ---------------------------------------- (47) 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: SUFFIX_IN_GA(Xs, Ys) -> U1_GA(Xs, Ys, app_in_aga(X1, Xs, Ys)) SUFFIX_IN_GA(Xs, Ys) -> APP_IN_AGA(X1, Xs, Ys) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> U2_AGA(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x2) SUFFIX_IN_GA(x1, x2) = SUFFIX_IN_GA(x1) U1_GA(x1, x2, x3) = U1_GA(x3) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) U2_AGA(x1, x2, x3, x4, x5) = U2_AGA(x5) We have to consider all (P,R,Pi)-chains ---------------------------------------- (48) Obligation: Pi DP problem: The TRS P consists of the following rules: SUFFIX_IN_GA(Xs, Ys) -> U1_GA(Xs, Ys, app_in_aga(X1, Xs, Ys)) SUFFIX_IN_GA(Xs, Ys) -> APP_IN_AGA(X1, Xs, Ys) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> U2_AGA(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x2) SUFFIX_IN_GA(x1, x2) = SUFFIX_IN_GA(x1) U1_GA(x1, x2, x3) = U1_GA(x3) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) U2_AGA(x1, x2, x3, x4, x5) = U2_AGA(x5) We have to consider all (P,R,Pi)-chains ---------------------------------------- (49) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes. ---------------------------------------- (50) Obligation: Pi DP problem: The TRS P consists of the following rules: APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) The TRS R consists of the following rules: suffix_in_ga(Xs, Ys) -> U1_ga(Xs, Ys, app_in_aga(X1, Xs, Ys)) app_in_aga([], X, X) -> app_out_aga([], X, X) app_in_aga(.(X, Xs), Ys, .(X, Zs)) -> U2_aga(X, Xs, Ys, Zs, app_in_aga(Xs, Ys, Zs)) U2_aga(X, Xs, Ys, Zs, app_out_aga(Xs, Ys, Zs)) -> app_out_aga(.(X, Xs), Ys, .(X, Zs)) U1_ga(Xs, Ys, app_out_aga(X1, Xs, Ys)) -> suffix_out_ga(Xs, Ys) The argument filtering Pi contains the following mapping: suffix_in_ga(x1, x2) = suffix_in_ga(x1) U1_ga(x1, x2, x3) = U1_ga(x3) app_in_aga(x1, x2, x3) = app_in_aga(x2) app_out_aga(x1, x2, x3) = app_out_aga(x1, x3) U2_aga(x1, x2, x3, x4, x5) = U2_aga(x5) .(x1, x2) = .(x2) suffix_out_ga(x1, x2) = suffix_out_ga(x2) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (51) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (52) Obligation: Pi DP problem: The TRS P consists of the following rules: APP_IN_AGA(.(X, Xs), Ys, .(X, Zs)) -> APP_IN_AGA(Xs, Ys, Zs) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x2) APP_IN_AGA(x1, x2, x3) = APP_IN_AGA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (53) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (54) Obligation: Q DP problem: The TRS P consists of the following rules: APP_IN_AGA(Ys) -> APP_IN_AGA(Ys) R is empty. Q is empty. We have to consider all (P,Q,R)-chains.