/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.pl /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- MAYBE proof of /export/starexec/sandbox/benchmark/theBenchmark.pl # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Left Termination of the query pattern p(g) w.r.t. the given Prolog program could not be shown: (0) Prolog (1) PrologToPiTRSProof [SOUND, 0 ms] (2) PiTRS (3) DependencyPairsProof [EQUIVALENT, 0 ms] (4) PiDP (5) DependencyGraphProof [EQUIVALENT, 0 ms] (6) PiDP (7) UsableRulesProof [EQUIVALENT, 0 ms] (8) PiDP (9) PiDPToQDPProof [SOUND, 1 ms] (10) QDP (11) PrologToPiTRSProof [SOUND, 0 ms] (12) PiTRS (13) DependencyPairsProof [EQUIVALENT, 0 ms] (14) PiDP (15) DependencyGraphProof [EQUIVALENT, 0 ms] (16) PiDP (17) UsableRulesProof [EQUIVALENT, 0 ms] (18) PiDP (19) PiDPToQDPProof [SOUND, 1 ms] (20) QDP (21) PrologToDTProblemTransformerProof [SOUND, 0 ms] (22) TRIPLES (23) TriplesToPiDPProof [SOUND, 0 ms] (24) PiDP (25) DependencyGraphProof [EQUIVALENT, 0 ms] (26) PiDP (27) PiDPToQDPProof [SOUND, 5 ms] (28) QDP (29) PrologToTRSTransformerProof [SOUND, 0 ms] (30) QTRS (31) QTRSRRRProof [EQUIVALENT, 9 ms] (32) QTRS (33) QTRSRRRProof [EQUIVALENT, 0 ms] (34) QTRS (35) QTRSRRRProof [EQUIVALENT, 2 ms] (36) QTRS (37) QTRSRRRProof [EQUIVALENT, 3 ms] (38) QTRS (39) Overlay + Local Confluence [EQUIVALENT, 0 ms] (40) QTRS (41) DependencyPairsProof [EQUIVALENT, 0 ms] (42) QDP (43) UsableRulesProof [EQUIVALENT, 0 ms] (44) QDP (45) PrologToIRSwTTransformerProof [SOUND, 0 ms] (46) IRSwT (47) IRSwTSimpleDependencyGraphProof [EQUIVALENT, 0 ms] (48) IRSwT (49) IntTRSCompressionProof [EQUIVALENT, 10 ms] (50) IRSwT (51) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (52) IRSwT (53) IRSwTTerminationDigraphProof [EQUIVALENT, 6 ms] (54) IRSwT (55) FilterProof [EQUIVALENT, 0 ms] (56) IntTRS (57) IntTRSPeriodicNontermProof [COMPLETE, 0 ms] (58) NO ---------------------------------------- (0) Obligation: Clauses: p(b). p(a) :- p1(X). p1(b). p1(a) :- p1(X). Query: p(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: p_in_1: (b) p1_in_1: (f) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (2) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) ---------------------------------------- (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: P_IN_G(a) -> U1_G(p1_in_a(X)) P_IN_G(a) -> P1_IN_A(X) P1_IN_A(a) -> U2_A(p1_in_a(X)) P1_IN_A(a) -> P1_IN_A(X) The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) P_IN_G(x1) = P_IN_G(x1) U1_G(x1) = U1_G(x1) P1_IN_A(x1) = P1_IN_A U2_A(x1) = U2_A(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (4) Obligation: Pi DP problem: The TRS P consists of the following rules: P_IN_G(a) -> U1_G(p1_in_a(X)) P_IN_G(a) -> P1_IN_A(X) P1_IN_A(a) -> U2_A(p1_in_a(X)) P1_IN_A(a) -> P1_IN_A(X) The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) P_IN_G(x1) = P_IN_G(x1) U1_G(x1) = U1_G(x1) P1_IN_A(x1) = P1_IN_A U2_A(x1) = U2_A(x1) 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: P1_IN_A(a) -> P1_IN_A(X) The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) P1_IN_A(x1) = P1_IN_A We have to consider all (P,R,Pi)-chains ---------------------------------------- (7) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (8) Obligation: Pi DP problem: The TRS P consists of the following rules: P1_IN_A(a) -> P1_IN_A(X) R is empty. The argument filtering Pi contains the following mapping: a = a P1_IN_A(x1) = P1_IN_A We have to consider all (P,R,Pi)-chains ---------------------------------------- (9) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (10) Obligation: Q DP problem: The TRS P consists of the following rules: P1_IN_A -> P1_IN_A R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (11) PrologToPiTRSProof (SOUND) We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: p_in_1: (b) p1_in_1: (f) Transforming Prolog into the following Term Rewriting System: Pi-finite rewrite system: The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g(x1) a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog ---------------------------------------- (12) Obligation: Pi-finite rewrite system: The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g(x1) a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) ---------------------------------------- (13) 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: P_IN_G(a) -> U1_G(p1_in_a(X)) P_IN_G(a) -> P1_IN_A(X) P1_IN_A(a) -> U2_A(p1_in_a(X)) P1_IN_A(a) -> P1_IN_A(X) The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g(x1) a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) P_IN_G(x1) = P_IN_G(x1) U1_G(x1) = U1_G(x1) P1_IN_A(x1) = P1_IN_A U2_A(x1) = U2_A(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (14) Obligation: Pi DP problem: The TRS P consists of the following rules: P_IN_G(a) -> U1_G(p1_in_a(X)) P_IN_G(a) -> P1_IN_A(X) P1_IN_A(a) -> U2_A(p1_in_a(X)) P1_IN_A(a) -> P1_IN_A(X) The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g(x1) a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) P_IN_G(x1) = P_IN_G(x1) U1_G(x1) = U1_G(x1) P1_IN_A(x1) = P1_IN_A U2_A(x1) = U2_A(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (15) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes. ---------------------------------------- (16) Obligation: Pi DP problem: The TRS P consists of the following rules: P1_IN_A(a) -> P1_IN_A(X) The TRS R consists of the following rules: p_in_g(b) -> p_out_g(b) p_in_g(a) -> U1_g(p1_in_a(X)) p1_in_a(b) -> p1_out_a(b) p1_in_a(a) -> U2_a(p1_in_a(X)) U2_a(p1_out_a(X)) -> p1_out_a(a) U1_g(p1_out_a(X)) -> p_out_g(a) The argument filtering Pi contains the following mapping: p_in_g(x1) = p_in_g(x1) b = b p_out_g(x1) = p_out_g(x1) a = a U1_g(x1) = U1_g(x1) p1_in_a(x1) = p1_in_a p1_out_a(x1) = p1_out_a(x1) U2_a(x1) = U2_a(x1) P1_IN_A(x1) = P1_IN_A We have to consider all (P,R,Pi)-chains ---------------------------------------- (17) UsableRulesProof (EQUIVALENT) For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. ---------------------------------------- (18) Obligation: Pi DP problem: The TRS P consists of the following rules: P1_IN_A(a) -> P1_IN_A(X) R is empty. The argument filtering Pi contains the following mapping: a = a P1_IN_A(x1) = P1_IN_A We have to consider all (P,R,Pi)-chains ---------------------------------------- (19) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (20) Obligation: Q DP problem: The TRS P consists of the following rules: P1_IN_A -> P1_IN_A R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (21) PrologToDTProblemTransformerProof (SOUND) Built DT problem from termination graph DT10. { "root": 9, "program": { "directives": [], "clauses": [ [ "(p (b))", null ], [ "(p (a))", "(p1 X)" ], [ "(p1 (b))", null ], [ "(p1 (a))", "(p1 X)" ] ] }, "graph": { "nodes": { "66": { "goal": [{ "clause": -1, "scope": -1, "term": "(p1 X3)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X3"], "exprvars": [] } }, "56": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "25": { "goal": [ { "clause": -1, "scope": -1, "term": "(true)" }, { "clause": 1, "scope": 1, "term": "(p (b))" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "26": { "goal": [{ "clause": 1, "scope": 1, "term": "(p T1)" }], "kb": { "nonunifying": [[ "(p T1)", "(p (b))" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "39": { "goal": [{ "clause": -1, "scope": -1, "term": "(p1 X1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X1"], "exprvars": [] } }, "29": { "goal": [{ "clause": 1, "scope": 1, "term": "(p (b))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "type": "Nodes", "9": { "goal": [{ "clause": -1, "scope": -1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "40": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "41": { "goal": [ { "clause": 2, "scope": 2, "term": "(p1 X1)" }, { "clause": 3, "scope": 2, "term": "(p1 X1)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X1"], "exprvars": [] } }, "31": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "42": { "goal": [{ "clause": 2, "scope": 2, "term": "(p1 X1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X1"], "exprvars": [] } }, "10": { "goal": [ { "clause": 0, "scope": 1, "term": "(p T1)" }, { "clause": 1, "scope": 1, "term": "(p T1)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "43": { "goal": [{ "clause": 3, "scope": 2, "term": "(p1 X1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X1"], "exprvars": [] } }, "65": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } } }, "edges": [ { "from": 9, "to": 10, "label": "CASE" }, { "from": 10, "to": 25, "label": "EVAL with clause\np(b).\nand substitutionT1 -> b" }, { "from": 10, "to": 26, "label": "EVAL-BACKTRACK" }, { "from": 25, "to": 29, "label": "SUCCESS" }, { "from": 26, "to": 39, "label": "EVAL with clause\np(a) :- p1(X1).\nand substitutionT1 -> a" }, { "from": 26, "to": 40, "label": "EVAL-BACKTRACK" }, { "from": 29, "to": 31, "label": "BACKTRACK\nfor clause: p(a) :- p1(X)because of non-unification" }, { "from": 39, "to": 41, "label": "CASE" }, { "from": 41, "to": 42, "label": "PARALLEL" }, { "from": 41, "to": 43, "label": "PARALLEL" }, { "from": 42, "to": 56, "label": "ONLY EVAL with clause\np1(b).\nand substitutionX1 -> b" }, { "from": 43, "to": 66, "label": "ONLY EVAL with clause\np1(a) :- p1(X3).\nand substitutionX1 -> a" }, { "from": 56, "to": 65, "label": "SUCCESS" }, { "from": 66, "to": 39, "label": "INSTANCE with matching:\nX1 -> X3" } ], "type": "Graph" } } ---------------------------------------- (22) Obligation: Triples: p1A(a) :- p1A(X1). pB(a) :- p1A(X1). Clauses: p1cA(b). p1cA(a) :- p1cA(X1). Afs: pB(x1) = pB(x1) ---------------------------------------- (23) TriplesToPiDPProof (SOUND) We use the technique of [DT09]. With regard to the inferred argument filtering the predicates were used in the following modes: pB_in_1: (b) p1A_in_1: (f) Transforming TRIPLES into the following Term Rewriting System: Pi DP problem: The TRS P consists of the following rules: PB_IN_G(a) -> U2_G(p1A_in_a(X1)) PB_IN_G(a) -> P1A_IN_A(X1) P1A_IN_A(a) -> U1_A(p1A_in_a(X1)) P1A_IN_A(a) -> P1A_IN_A(X1) R is empty. The argument filtering Pi contains the following mapping: a = a p1A_in_a(x1) = p1A_in_a PB_IN_G(x1) = PB_IN_G(x1) U2_G(x1) = U2_G(x1) P1A_IN_A(x1) = P1A_IN_A U1_A(x1) = U1_A(x1) We have to consider all (P,R,Pi)-chains Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES ---------------------------------------- (24) Obligation: Pi DP problem: The TRS P consists of the following rules: PB_IN_G(a) -> U2_G(p1A_in_a(X1)) PB_IN_G(a) -> P1A_IN_A(X1) P1A_IN_A(a) -> U1_A(p1A_in_a(X1)) P1A_IN_A(a) -> P1A_IN_A(X1) R is empty. The argument filtering Pi contains the following mapping: a = a p1A_in_a(x1) = p1A_in_a PB_IN_G(x1) = PB_IN_G(x1) U2_G(x1) = U2_G(x1) P1A_IN_A(x1) = P1A_IN_A U1_A(x1) = U1_A(x1) We have to consider all (P,R,Pi)-chains ---------------------------------------- (25) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes. ---------------------------------------- (26) Obligation: Pi DP problem: The TRS P consists of the following rules: P1A_IN_A(a) -> P1A_IN_A(X1) R is empty. The argument filtering Pi contains the following mapping: a = a P1A_IN_A(x1) = P1A_IN_A We have to consider all (P,R,Pi)-chains ---------------------------------------- (27) PiDPToQDPProof (SOUND) Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. ---------------------------------------- (28) Obligation: Q DP problem: The TRS P consists of the following rules: P1A_IN_A -> P1A_IN_A R is empty. Q is empty. We have to consider all (P,Q,R)-chains. ---------------------------------------- (29) PrologToTRSTransformerProof (SOUND) Transformed Prolog program to TRS. { "root": 3, "program": { "directives": [], "clauses": [ [ "(p (b))", null ], [ "(p (a))", "(p1 X)" ], [ "(p1 (b))", null ], [ "(p1 (a))", "(p1 X)" ] ] }, "graph": { "nodes": { "11": { "goal": [{ "clause": 0, "scope": 1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "88": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "12": { "goal": [{ "clause": 1, "scope": 1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "34": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "78": { "goal": [ { "clause": 2, "scope": 2, "term": "(p1 X2)" }, { "clause": 3, "scope": 2, "term": "(p1 X2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "35": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "36": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "37": { "goal": [{ "clause": -1, "scope": -1, "term": "(p1 X2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "38": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "type": "Nodes", "3": { "goal": [{ "clause": -1, "scope": -1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "90": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "8": { "goal": [ { "clause": 0, "scope": 1, "term": "(p T1)" }, { "clause": 1, "scope": 1, "term": "(p T1)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "82": { "goal": [{ "clause": 2, "scope": 2, "term": "(p1 X2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "84": { "goal": [{ "clause": 3, "scope": 2, "term": "(p1 X2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "96": { "goal": [{ "clause": -1, "scope": -1, "term": "(p1 X4)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X4"], "exprvars": [] } } }, "edges": [ { "from": 3, "to": 8, "label": "CASE" }, { "from": 8, "to": 11, "label": "PARALLEL" }, { "from": 8, "to": 12, "label": "PARALLEL" }, { "from": 11, "to": 34, "label": "EVAL with clause\np(b).\nand substitutionT1 -> b" }, { "from": 11, "to": 35, "label": "EVAL-BACKTRACK" }, { "from": 12, "to": 37, "label": "EVAL with clause\np(a) :- p1(X2).\nand substitutionT1 -> a" }, { "from": 12, "to": 38, "label": "EVAL-BACKTRACK" }, { "from": 34, "to": 36, "label": "SUCCESS" }, { "from": 37, "to": 78, "label": "CASE" }, { "from": 78, "to": 82, "label": "PARALLEL" }, { "from": 78, "to": 84, "label": "PARALLEL" }, { "from": 82, "to": 88, "label": "ONLY EVAL with clause\np1(b).\nand substitutionX2 -> b" }, { "from": 84, "to": 96, "label": "ONLY EVAL with clause\np1(a) :- p1(X4).\nand substitutionX2 -> a" }, { "from": 88, "to": 90, "label": "SUCCESS" }, { "from": 96, "to": 37, "label": "INSTANCE with matching:\nX2 -> X4" } ], "type": "Graph" } } ---------------------------------------- (30) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f3_in(b) -> f3_out1 f3_in(a) -> U1(f37_in, a) U1(f37_out1(X2), a) -> f3_out1 f37_in -> f37_out1(b) f37_in -> U2(f37_in) U2(f37_out1(X4)) -> f37_out1(a) Q is empty. ---------------------------------------- (31) QTRSRRRProof (EQUIVALENT) Used ordering: Polynomial interpretation [POLO]: POL(U1(x_1, x_2)) = x_1 + 2*x_2 POL(U2(x_1)) = 2*x_1 POL(a) = 0 POL(b) = 0 POL(f37_in) = 0 POL(f37_out1(x_1)) = x_1 POL(f3_in(x_1)) = 1 + 2*x_1 POL(f3_out1) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: f3_in(b) -> f3_out1 f3_in(a) -> U1(f37_in, a) ---------------------------------------- (32) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: U1(f37_out1(X2), a) -> f3_out1 f37_in -> f37_out1(b) f37_in -> U2(f37_in) U2(f37_out1(X4)) -> f37_out1(a) Q is empty. ---------------------------------------- (33) QTRSRRRProof (EQUIVALENT) Used ordering: Polynomial interpretation [POLO]: POL(U1(x_1, x_2)) = 2 + x_1 + 2*x_2 POL(U2(x_1)) = 2*x_1 POL(a) = 0 POL(b) = 0 POL(f37_in) = 0 POL(f37_out1(x_1)) = 2*x_1 POL(f3_out1) = 0 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: U1(f37_out1(X2), a) -> f3_out1 ---------------------------------------- (34) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f37_in -> f37_out1(b) f37_in -> U2(f37_in) U2(f37_out1(X4)) -> f37_out1(a) Q is empty. ---------------------------------------- (35) QTRSRRRProof (EQUIVALENT) Used ordering: Polynomial interpretation [POLO]: POL(U2(x_1)) = x_1 POL(a) = 0 POL(b) = 0 POL(f37_in) = 1 POL(f37_out1(x_1)) = 2*x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: f37_in -> f37_out1(b) ---------------------------------------- (36) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f37_in -> U2(f37_in) U2(f37_out1(X4)) -> f37_out1(a) Q is empty. ---------------------------------------- (37) QTRSRRRProof (EQUIVALENT) Used ordering: Polynomial interpretation [POLO]: POL(U2(x_1)) = 2*x_1 POL(a) = 0 POL(f37_in) = 0 POL(f37_out1(x_1)) = 1 + 2*x_1 With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: U2(f37_out1(X4)) -> f37_out1(a) ---------------------------------------- (38) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f37_in -> U2(f37_in) Q is empty. ---------------------------------------- (39) Overlay + Local Confluence (EQUIVALENT) The TRS is overlay and locally confluent. By [NOC] we can switch to innermost. ---------------------------------------- (40) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: f37_in -> U2(f37_in) The set Q consists of the following terms: f37_in ---------------------------------------- (41) DependencyPairsProof (EQUIVALENT) Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem. ---------------------------------------- (42) Obligation: Q DP problem: The TRS P consists of the following rules: F37_IN -> F37_IN The TRS R consists of the following rules: f37_in -> U2(f37_in) The set Q consists of the following terms: f37_in We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (43) 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. ---------------------------------------- (44) Obligation: Q DP problem: The TRS P consists of the following rules: F37_IN -> F37_IN R is empty. The set Q consists of the following terms: f37_in We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (45) PrologToIRSwTTransformerProof (SOUND) Transformed Prolog program to IRSwT according to method in Master Thesis of A. Weinert { "root": 4, "program": { "directives": [], "clauses": [ [ "(p (b))", null ], [ "(p (a))", "(p1 X)" ], [ "(p1 (b))", null ], [ "(p1 (a))", "(p1 X)" ] ] }, "graph": { "nodes": { "33": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "99": { "goal": [{ "clause": 3, "scope": 2, "term": "(p1 X2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "23": { "goal": [{ "clause": 0, "scope": 1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "24": { "goal": [{ "clause": 1, "scope": 1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "27": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "28": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "type": "Nodes", "100": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "101": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "102": { "goal": [{ "clause": -1, "scope": -1, "term": "(p1 X4)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X4"], "exprvars": [] } }, "4": { "goal": [{ "clause": -1, "scope": -1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "7": { "goal": [ { "clause": 0, "scope": 1, "term": "(p T1)" }, { "clause": 1, "scope": 1, "term": "(p T1)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "30": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "97": { "goal": [ { "clause": 2, "scope": 2, "term": "(p1 X2)" }, { "clause": 3, "scope": 2, "term": "(p1 X2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "32": { "goal": [{ "clause": -1, "scope": -1, "term": "(p1 X2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } }, "98": { "goal": [{ "clause": 2, "scope": 2, "term": "(p1 X2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": ["X2"], "exprvars": [] } } }, "edges": [ { "from": 4, "to": 7, "label": "CASE" }, { "from": 7, "to": 23, "label": "PARALLEL" }, { "from": 7, "to": 24, "label": "PARALLEL" }, { "from": 23, "to": 27, "label": "EVAL with clause\np(b).\nand substitutionT1 -> b" }, { "from": 23, "to": 28, "label": "EVAL-BACKTRACK" }, { "from": 24, "to": 32, "label": "EVAL with clause\np(a) :- p1(X2).\nand substitutionT1 -> a" }, { "from": 24, "to": 33, "label": "EVAL-BACKTRACK" }, { "from": 27, "to": 30, "label": "SUCCESS" }, { "from": 32, "to": 97, "label": "CASE" }, { "from": 97, "to": 98, "label": "PARALLEL" }, { "from": 97, "to": 99, "label": "PARALLEL" }, { "from": 98, "to": 100, "label": "ONLY EVAL with clause\np1(b).\nand substitutionX2 -> b" }, { "from": 99, "to": 102, "label": "ONLY EVAL with clause\np1(a) :- p1(X4).\nand substitutionX2 -> a" }, { "from": 100, "to": 101, "label": "SUCCESS" }, { "from": 102, "to": 32, "label": "INSTANCE with matching:\nX2 -> X4" } ], "type": "Graph" } } ---------------------------------------- (46) Obligation: Rules: f32_out -> f102_out :|: TRUE f102_in -> f32_in :|: TRUE f97_in -> f98_in :|: TRUE f98_out -> f97_out :|: TRUE f99_out -> f97_out :|: TRUE f97_in -> f99_in :|: TRUE f99_in -> f102_in :|: TRUE f102_out -> f99_out :|: TRUE f32_in -> f97_in :|: TRUE f97_out -> f32_out :|: TRUE f7_out(T1) -> f4_out(T1) :|: TRUE f4_in(x) -> f7_in(x) :|: TRUE f23_out(x1) -> f7_out(x1) :|: TRUE f7_in(x2) -> f24_in(x2) :|: TRUE f24_out(x3) -> f7_out(x3) :|: TRUE f7_in(x4) -> f23_in(x4) :|: TRUE f24_in(a) -> f32_in :|: TRUE f33_out -> f24_out(x5) :|: TRUE f32_out -> f24_out(a) :|: TRUE f24_in(x6) -> f33_in :|: TRUE Start term: f4_in(T1) ---------------------------------------- (47) IRSwTSimpleDependencyGraphProof (EQUIVALENT) Constructed simple dependency graph. Simplified to the following IRSwTs: intTRSProblem: f102_in -> f32_in :|: TRUE f97_in -> f99_in :|: TRUE f99_in -> f102_in :|: TRUE f32_in -> f97_in :|: TRUE ---------------------------------------- (48) Obligation: Rules: f102_in -> f32_in :|: TRUE f97_in -> f99_in :|: TRUE f99_in -> f102_in :|: TRUE f32_in -> f97_in :|: TRUE ---------------------------------------- (49) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (50) Obligation: Rules: f97_in -> f97_in :|: TRUE ---------------------------------------- (51) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (52) Obligation: Rules: f97_in -> f97_in :|: TRUE ---------------------------------------- (53) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f97_in -> f97_in :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (54) Obligation: Termination digraph: Nodes: (1) f97_in -> f97_in :|: TRUE Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (55) FilterProof (EQUIVALENT) Used the following sort dictionary for filtering: f97_in() Replaced non-predefined constructor symbols by 0. ---------------------------------------- (56) Obligation: Rules: f97_in -> f97_in :|: TRUE ---------------------------------------- (57) IntTRSPeriodicNontermProof (COMPLETE) Normalized system to the following form: f(pc) -> f(1) :|: pc = 1 && TRUE Witness term starting non-terminating reduction: f(1) ---------------------------------------- (58) NO