MAYBE proof of /export/starexec/sandbox2/benchmark/theBenchmark.pl # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Left Termination of the query pattern member(g,a) w.r.t. the given Prolog program could not be shown: (0) Prolog (1) PrologToTRSTransformerProof [SOUND, 0 ms] (2) QTRS (3) DependencyPairsProof [EQUIVALENT, 0 ms] (4) QDP (5) DependencyGraphProof [EQUIVALENT, 0 ms] (6) QDP (7) MNOCProof [EQUIVALENT, 0 ms] (8) QDP (9) UsableRulesProof [EQUIVALENT, 0 ms] (10) QDP (11) QReductionProof [EQUIVALENT, 0 ms] (12) QDP (13) PrologToPiTRSProof [SOUND, 0 ms] (14) PiTRS (15) DependencyPairsProof [EQUIVALENT, 0 ms] (16) PiDP (17) DependencyGraphProof [EQUIVALENT, 0 ms] (18) PiDP (19) UsableRulesProof [EQUIVALENT, 0 ms] (20) PiDP (21) PiDPToQDPProof [SOUND, 0 ms] (22) QDP (23) PrologToPiTRSProof [SOUND, 0 ms] (24) PiTRS (25) DependencyPairsProof [EQUIVALENT, 0 ms] (26) PiDP (27) DependencyGraphProof [EQUIVALENT, 0 ms] (28) PiDP (29) UsableRulesProof [EQUIVALENT, 0 ms] (30) PiDP (31) PiDPToQDPProof [SOUND, 0 ms] (32) QDP (33) PrologToDTProblemTransformerProof [SOUND, 0 ms] (34) TRIPLES (35) TriplesToPiDPProof [SOUND, 0 ms] (36) PiDP (37) DependencyGraphProof [EQUIVALENT, 0 ms] (38) PiDP (39) PiDPToQDPProof [SOUND, 0 ms] (40) QDP (41) PrologToIRSwTTransformerProof [SOUND, 0 ms] (42) IRSwT (43) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (44) IRSwT (45) IntTRSCompressionProof [EQUIVALENT, 0 ms] (46) IRSwT (47) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (48) IRSwT (49) IRSwTTerminationDigraphProof [EQUIVALENT, 0 ms] (50) IRSwT (51) FilterProof [EQUIVALENT, 1 ms] (52) IntTRS (53) IntTRSPeriodicNontermProof [COMPLETE, 0 ms] (54) NO ---------------------------------------- (0) Obligation: Clauses: member(X, .(X, X1)). member(X, .(X2, Xs)) :- member(X, Xs). Query: member(g,a) ---------------------------------------- (1) PrologToTRSTransformerProof (SOUND) Transformed Prolog program to TRS. { "root": 1, "program": { "directives": [], "clauses": [ [ "(member X (. X X1))", null ], [ "(member X (. X2 Xs))", "(member X Xs)" ] ] }, "graph": { "nodes": { "33": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T19 T22)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T19"], "free": [], "exprvars": [] } }, "1": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "23": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "34": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "15": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "6": { "goal": [ { "clause": 0, "scope": 1, "term": "(member T1 T2)" }, { "clause": 1, "scope": 1, "term": "(member T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "9": { "goal": [{ "clause": 0, "scope": 1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "type": "Nodes", "20": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "10": { "goal": [{ "clause": 1, "scope": 1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } } }, "edges": [ { "from": 1, "to": 6, "label": "CASE" }, { "from": 6, "to": 9, "label": "PARALLEL" }, { "from": 6, "to": 10, "label": "PARALLEL" }, { "from": 9, "to": 15, "label": "EVAL with clause\nmember(X11, .(X11, X12)).\nand substitutionT1 -> T11,\nX11 -> T11,\nX12 -> T12,\nT2 -> .(T11, T12)" }, { "from": 9, "to": 20, "label": "EVAL-BACKTRACK" }, { "from": 10, "to": 33, "label": "EVAL with clause\nmember(X19, .(X20, X21)) :- member(X19, X21).\nand substitutionT1 -> T19,\nX19 -> T19,\nX20 -> T20,\nX21 -> T22,\nT2 -> .(T20, T22),\nT21 -> T22" }, { "from": 10, "to": 34, "label": "EVAL-BACKTRACK" }, { "from": 15, "to": 23, "label": "SUCCESS" }, { "from": 33, "to": 1, "label": "INSTANCE with matching:\nT1 -> T19\nT2 -> T22" } ], "type": "Graph" } } ---------------------------------------- (2) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f1_in(T11) -> f1_out1 f1_in(T19) -> U1(f1_in(T19), T19) U1(f1_out1, T19) -> f1_out1 Q is empty. ---------------------------------------- (3) DependencyPairsProof (EQUIVALENT) Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem. ---------------------------------------- (4) Obligation: Q DP problem: The TRS P consists of the following rules: F1_IN(T19) -> U1^1(f1_in(T19), T19) F1_IN(T19) -> F1_IN(T19) The TRS R consists of the following rules: f1_in(T11) -> f1_out1 f1_in(T19) -> U1(f1_in(T19), T19) U1(f1_out1, T19) -> f1_out1 Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (5) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node. ---------------------------------------- (6) Obligation: Q DP problem: The TRS P consists of the following rules: F1_IN(T19) -> F1_IN(T19) The TRS R consists of the following rules: f1_in(T11) -> f1_out1 f1_in(T19) -> U1(f1_in(T19), T19) U1(f1_out1, T19) -> f1_out1 Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (7) MNOCProof (EQUIVALENT) We use the modular non-overlap check [LPAR04] to enlarge Q to all left-hand sides of R. ---------------------------------------- (8) Obligation: Q DP problem: The TRS P consists of the following rules: F1_IN(T19) -> F1_IN(T19) The TRS R consists of the following rules: f1_in(T11) -> f1_out1 f1_in(T19) -> U1(f1_in(T19), T19) U1(f1_out1, T19) -> f1_out1 The set Q consists of the following terms: f1_in(x0) U1(f1_out1, x0) We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (9) 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. ---------------------------------------- (10) Obligation: Q DP problem: The TRS P consists of the following rules: F1_IN(T19) -> F1_IN(T19) R is empty. The set Q consists of the following terms: f1_in(x0) U1(f1_out1, x0) We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (11) 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]. f1_in(x0) U1(f1_out1, x0) ---------------------------------------- (12) Obligation: Q DP problem: The TRS P consists of the following rules: F1_IN(T19) -> F1_IN(T19) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (13) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: member_in_2: (b,f) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga U1_ga(x1, x2, x3, x4) = U1_ga(x4) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (14) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga U1_ga(x1, x2, x3, x4) = U1_ga(x4) ---------------------------------------- (15) 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: MEMBER_IN_GA(X, .(X2, Xs)) -> U1_GA(X, X2, Xs, member_in_ga(X, Xs)) MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga U1_ga(x1, x2, x3, x4) = U1_ga(x4) MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) U1_GA(x1, x2, x3, x4) = U1_GA'(x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (16) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X, .(X2, Xs)) -> U1_GA(X, X2, Xs, member_in_ga(X, Xs)) MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga U1_ga(x1, x2, x3, x4) = U1_ga(x4) MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) U1_GA(x1, x2, x3, x4) = U1_GA(x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (17) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 1 less node. ---------------------------------------- (18) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga U1_ga(x1, x2, x3, x4) = U1_ga(x4) MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (19) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (20) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) R is empty. The argument filtering Pi contains the following mapping: MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (21) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (22) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X) -> MEMBER_IN_GA(X) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (23) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: member_in_2: (b,f) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga(x1) U1_ga(x1, x2, x3, x4) = U1_ga(x1, x4) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (24) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga(x1) U1_ga(x1, x2, x3, x4) = U1_ga(x1, x4) ---------------------------------------- (25) 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: MEMBER_IN_GA(X, .(X2, Xs)) -> U1_GA(X, X2, Xs, member_in_ga(X, Xs)) MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga(x1) U1_ga(x1, x2, x3, x4) = U1_ga(x1, x4) MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) U1_GA(x1, x2, x3, x4) = U1_GA(x1, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (26) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X, .(X2, Xs)) -> U1_GA(X, X2, Xs, member_in_ga(X, Xs)) MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga(x1) U1_ga(x1, x2, x3, x4) = U1_ga(x1, x4) MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) U1_GA(x1, x2, x3, x4) = U1_GA(x1, x4) We have to consider all (P,R,Pi)-chains ---------------------------------------- (27) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 1 less node. ---------------------------------------- (28) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) The TRS R consists of the following rules: member_in_ga(X, .(X, X1)) -> member_out_ga(X, .(X, X1)) member_in_ga(X, .(X2, Xs)) -> U1_ga(X, X2, Xs, member_in_ga(X, Xs)) U1_ga(X, X2, Xs, member_out_ga(X, Xs)) -> member_out_ga(X, .(X2, Xs)) The argument filtering Pi contains the following mapping: member_in_ga(x1, x2) = member_in_ga(x1) member_out_ga(x1, x2) = member_out_ga(x1) U1_ga(x1, x2, x3, x4) = U1_ga(x1, x4) MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (29) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (30) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X, .(X2, Xs)) -> MEMBER_IN_GA(X, Xs) R is empty. The argument filtering Pi contains the following mapping: MEMBER_IN_GA(x1, x2) = MEMBER_IN_GA(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (31) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (32) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBER_IN_GA(X) -> MEMBER_IN_GA(X) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (33) PrologToDTProblemTransformerProof (SOUND) Built DT problem from termination graph DT10. { "root": 4, "program": { "directives": [], "clauses": [ [ "(member X (. X X1))", null ], [ "(member X (. X2 Xs))", "(member X Xs)" ] ] }, "graph": { "nodes": { "22": { "goal": [{ "clause": 1, "scope": 1, "term": "(member T5 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T5"], "free": [], "exprvars": [] } }, "47": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T30 T33)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T30"], "free": [], "exprvars": [] } }, "26": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T10 T13)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": [], "exprvars": [] } }, "27": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "type": "Nodes", "93": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T41 T44)" }], "kb": { "nonunifying": [[ "(member T41 T2)", "(member X5 (. X5 X6))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T41"], "free": [ "X5", "X6" ], "exprvars": [] } }, "94": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "95": { "goal": [ { "clause": 0, "scope": 3, "term": "(member T41 T44)" }, { "clause": 1, "scope": 3, "term": "(member T41 T44)" } ], "kb": { "nonunifying": [[ "(member T41 T2)", "(member X5 (. X5 X6))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T41"], "free": [ "X5", "X6" ], "exprvars": [] } }, "30": { "goal": [ { "clause": 0, "scope": 2, "term": "(member T10 T13)" }, { "clause": 1, "scope": 2, "term": "(member T10 T13)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": [], "exprvars": [] } }, "96": { "goal": [{ "clause": 0, "scope": 3, "term": "(member T41 T44)" }], "kb": { "nonunifying": [[ "(member T41 T2)", "(member X5 (. X5 X6))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T41"], "free": [ "X5", "X6" ], "exprvars": [] } }, "31": { "goal": [{ "clause": 0, "scope": 2, "term": "(member T10 T13)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": [], "exprvars": [] } }, "97": { "goal": [{ "clause": 1, "scope": 3, "term": "(member T41 T44)" }], "kb": { "nonunifying": [[ "(member T41 T2)", "(member X5 (. X5 X6))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T41"], "free": [ "X5", "X6" ], "exprvars": [] } }, "32": { "goal": [{ "clause": 1, "scope": 2, "term": "(member T10 T13)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T10"], "free": [], "exprvars": [] } }, "54": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "98": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "99": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "35": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "36": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "37": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "16": { "goal": [ { "clause": -1, "scope": -1, "term": "(true)" }, { "clause": 1, "scope": 1, "term": "(member T5 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T5"], "free": [], "exprvars": [] } }, "17": { "goal": [{ "clause": 1, "scope": 1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [[ "(member T1 T2)", "(member X5 (. X5 X6))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [ "X5", "X6" ], "exprvars": [] } }, "100": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "101": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T61 T64)" }], "kb": { "nonunifying": [[ "(member T61 T2)", "(member X5 (. X5 X6))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T61"], "free": [ "X5", "X6" ], "exprvars": [] } }, "102": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "4": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "5": { "goal": [ { "clause": 0, "scope": 1, "term": "(member T1 T2)" }, { "clause": 1, "scope": 1, "term": "(member T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } } }, "edges": [ { "from": 4, "to": 5, "label": "CASE" }, { "from": 5, "to": 16, "label": "EVAL with clause\nmember(X5, .(X5, X6)).\nand substitutionT1 -> T5,\nX5 -> T5,\nX6 -> T6,\nT2 -> .(T5, T6)" }, { "from": 5, "to": 17, "label": "EVAL-BACKTRACK" }, { "from": 16, "to": 22, "label": "SUCCESS" }, { "from": 17, "to": 93, "label": "EVAL with clause\nmember(X39, .(X40, X41)) :- member(X39, X41).\nand substitutionT1 -> T41,\nX39 -> T41,\nX40 -> T42,\nX41 -> T44,\nT2 -> .(T42, T44),\nT43 -> T44" }, { "from": 17, "to": 94, "label": "EVAL-BACKTRACK" }, { "from": 22, "to": 26, "label": "EVAL with clause\nmember(X10, .(X11, X12)) :- member(X10, X12).\nand substitutionT5 -> T10,\nX10 -> T10,\nX11 -> T11,\nX12 -> T13,\nT2 -> .(T11, T13),\nT12 -> T13" }, { "from": 22, "to": 27, "label": "EVAL-BACKTRACK" }, { "from": 26, "to": 30, "label": "CASE" }, { "from": 30, "to": 31, "label": "PARALLEL" }, { "from": 30, "to": 32, "label": "PARALLEL" }, { "from": 31, "to": 35, "label": "EVAL with clause\nmember(X21, .(X21, X22)).\nand substitutionT10 -> T22,\nX21 -> T22,\nX22 -> T23,\nT13 -> .(T22, T23)" }, { "from": 31, "to": 36, "label": "EVAL-BACKTRACK" }, { "from": 32, "to": 47, "label": "EVAL with clause\nmember(X29, .(X30, X31)) :- member(X29, X31).\nand substitutionT10 -> T30,\nX29 -> T30,\nX30 -> T31,\nX31 -> T33,\nT13 -> .(T31, T33),\nT32 -> T33" }, { "from": 32, "to": 54, "label": "EVAL-BACKTRACK" }, { "from": 35, "to": 37, "label": "SUCCESS" }, { "from": 47, "to": 4, "label": "INSTANCE with matching:\nT1 -> T30\nT2 -> T33" }, { "from": 93, "to": 95, "label": "CASE" }, { "from": 95, "to": 96, "label": "PARALLEL" }, { "from": 95, "to": 97, "label": "PARALLEL" }, { "from": 96, "to": 98, "label": "EVAL with clause\nmember(X50, .(X50, X51)).\nand substitutionT41 -> T53,\nX50 -> T53,\nX51 -> T54,\nT44 -> .(T53, T54)" }, { "from": 96, "to": 99, "label": "EVAL-BACKTRACK" }, { "from": 97, "to": 101, "label": "EVAL with clause\nmember(X58, .(X59, X60)) :- member(X58, X60).\nand substitutionT41 -> T61,\nX58 -> T61,\nX59 -> T62,\nX60 -> T64,\nT44 -> .(T62, T64),\nT63 -> T64" }, { "from": 97, "to": 102, "label": "EVAL-BACKTRACK" }, { "from": 98, "to": 100, "label": "SUCCESS" }, { "from": 101, "to": 4, "label": "INSTANCE with matching:\nT1 -> T61\nT2 -> T64" } ], "type": "Graph" } } ---------------------------------------- (34) Obligation: Triples: memberA(X1, .(X2, .(X3, X4))) :- memberA(X1, X4). memberA(X1, .(X2, .(X3, X4))) :- memberA(X1, X4). Clauses: membercA(X1, .(X1, X2)). membercA(X1, .(X2, .(X1, X3))). membercA(X1, .(X2, .(X3, X4))) :- membercA(X1, X4). membercA(X1, .(X2, .(X1, X3))). membercA(X1, .(X2, .(X3, X4))) :- membercA(X1, X4). Afs: memberA(x1, x2) = memberA(x1) ---------------------------------------- (35) TriplesToPiDPProof (SOUND) We use the technique of [DT09]. With regard to the inferred argument filtering the predicates were used in the following modes: memberA_in_2: (b,f) Transforming TRIPLES into the following Term Rewriting System: Pi DP problem: The TRS P consists of the following rules: MEMBERA_IN_GA(X1, .(X2, .(X3, X4))) -> U1_GA(X1, X2, X3, X4, memberA_in_ga(X1, X4)) MEMBERA_IN_GA(X1, .(X2, .(X3, X4))) -> MEMBERA_IN_GA(X1, X4) R is empty. The argument filtering Pi contains the following mapping: memberA_in_ga(x1, x2) = memberA_in_ga(x1) .(x1, x2) = .(x2) MEMBERA_IN_GA(x1, x2) = MEMBERA_IN_GA(x1) U1_GA(x1, x2, x3, x4, x5) = U1_GA(x1, x5) We have to consider all (P,R,Pi)-chains Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES ---------------------------------------- (36) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBERA_IN_GA(X1, .(X2, .(X3, X4))) -> U1_GA(X1, X2, X3, X4, memberA_in_ga(X1, X4)) MEMBERA_IN_GA(X1, .(X2, .(X3, X4))) -> MEMBERA_IN_GA(X1, X4) R is empty. The argument filtering Pi contains the following mapping: memberA_in_ga(x1, x2) = memberA_in_ga(x1) .(x1, x2) = .(x2) MEMBERA_IN_GA(x1, x2) = MEMBERA_IN_GA(x1) U1_GA(x1, x2, x3, x4, x5) = U1_GA(x1, x5) We have to consider all (P,R,Pi)-chains ---------------------------------------- (37) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 1 less node. ---------------------------------------- (38) Obligation: Pi DP problem: The TRS P consists of the following rules: MEMBERA_IN_GA(X1, .(X2, .(X3, X4))) -> MEMBERA_IN_GA(X1, X4) R is empty. The argument filtering Pi contains the following mapping: .(x1, x2) = .(x2) MEMBERA_IN_GA(x1, x2) = MEMBERA_IN_GA(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (39) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (40) Obligation: Q DP problem: The TRS P consists of the following rules: MEMBERA_IN_GA(X1) -> MEMBERA_IN_GA(X1) R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (41) PrologToIRSwTTransformerProof (SOUND) Transformed Prolog program to IRSwT according to method in Master Thesis of A. Weinert { "root": 2, "program": { "directives": [], "clauses": [ [ "(member X (. X X1))", null ], [ "(member X (. X2 Xs))", "(member X Xs)" ] ] }, "graph": { "nodes": { "2": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "24": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "3": { "goal": [ { "clause": 0, "scope": 1, "term": "(member T1 T2)" }, { "clause": 1, "scope": 1, "term": "(member T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "25": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "49": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "7": { "goal": [{ "clause": 0, "scope": 1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "8": { "goal": [{ "clause": 1, "scope": 1, "term": "(member T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "type": "Nodes", "42": { "goal": [{ "clause": -1, "scope": -1, "term": "(member T19 T22)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T19"], "free": [], "exprvars": [] } }, "21": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } } }, "edges": [ { "from": 2, "to": 3, "label": "CASE" }, { "from": 3, "to": 7, "label": "PARALLEL" }, { "from": 3, "to": 8, "label": "PARALLEL" }, { "from": 7, "to": 21, "label": "EVAL with clause\nmember(X11, .(X11, X12)).\nand substitutionT1 -> T11,\nX11 -> T11,\nX12 -> T12,\nT2 -> .(T11, T12)" }, { "from": 7, "to": 24, "label": "EVAL-BACKTRACK" }, { "from": 8, "to": 42, "label": "EVAL with clause\nmember(X19, .(X20, X21)) :- member(X19, X21).\nand substitutionT1 -> T19,\nX19 -> T19,\nX20 -> T20,\nX21 -> T22,\nT2 -> .(T20, T22),\nT21 -> T22" }, { "from": 8, "to": 49, "label": "EVAL-BACKTRACK" }, { "from": 21, "to": 25, "label": "SUCCESS" }, { "from": 42, "to": 2, "label": "INSTANCE with matching:\nT1 -> T19\nT2 -> T22" } ], "type": "Graph" } } ---------------------------------------- (42) Obligation: Rules: f49_out -> f8_out(T1) :|: TRUE f42_out(T19) -> f8_out(T19) :|: TRUE f8_in(x) -> f49_in :|: TRUE f8_in(x1) -> f42_in(x1) :|: TRUE f8_out(x2) -> f3_out(x2) :|: TRUE f3_in(x3) -> f8_in(x3) :|: TRUE f3_in(x4) -> f7_in(x4) :|: TRUE f7_out(x5) -> f3_out(x5) :|: TRUE f2_in(x6) -> f3_in(x6) :|: TRUE f3_out(x7) -> f2_out(x7) :|: TRUE f2_out(x8) -> f42_out(x8) :|: TRUE f42_in(x9) -> f2_in(x9) :|: TRUE Start term: f2_in(T1) ---------------------------------------- (43) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: intTRSProblem: f8_in(x1) -> f42_in(x1) :|: TRUE f3_in(x3) -> f8_in(x3) :|: TRUE f2_in(x6) -> f3_in(x6) :|: TRUE f42_in(x9) -> f2_in(x9) :|: TRUE ---------------------------------------- (44) Obligation: Rules: f8_in(x1) -> f42_in(x1) :|: TRUE f3_in(x3) -> f8_in(x3) :|: TRUE f2_in(x6) -> f3_in(x6) :|: TRUE f42_in(x9) -> f2_in(x9) :|: TRUE ---------------------------------------- (45) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (46) Obligation: Rules: f2_in(x6:0) -> f2_in(x6:0) :|: TRUE ---------------------------------------- (47) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (48) Obligation: Rules: f2_in(x6:0) -> f2_in(x6:0) :|: TRUE ---------------------------------------- (49) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f2_in(x6:0) -> f2_in(x6:0) :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (50) Obligation: Termination digraph: Nodes: (1) f2_in(x6:0) -> f2_in(x6:0) :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (51) FilterProof (EQUIVALENT) Used the following sort dictionary for filtering: f2_in(VARIABLE) Replaced non-predefined constructor symbols by 0. ---------------------------------------- (52) Obligation: Rules: f2_in(x6:0) -> f2_in(x6:0) :|: TRUE ---------------------------------------- (53) 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) ---------------------------------------- (54) NO