/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.pl /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox/benchmark/theBenchmark.pl # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty Left Termination of the query pattern tc(g,a) w.r.t. the given Prolog program could successfully be proven: (0) Prolog (1) PrologToDTProblemTransformerProof [SOUND, 0 ms] (2) TRIPLES (3) TriplesToPiDPProof [SOUND, 0 ms] (4) PiDP (5) DependencyGraphProof [EQUIVALENT, 0 ms] (6) TRUE ---------------------------------------- (0) Obligation: Clauses: p(a, b). p(b, c). tc(X, X). tc(X, Y) :- ','(p(X, Z), tc(Z, Y)). Query: tc(g,a) ---------------------------------------- (1) PrologToDTProblemTransformerProof (SOUND) Built DT problem from termination graph DT10. { "root": 82, "program": { "directives": [], "clauses": [ [ "(p (a) (b))", null ], [ "(p (b) (c))", null ], [ "(tc X X)", null ], [ "(tc X Y)", "(',' (p X Z) (tc Z Y))" ] ] }, "graph": { "nodes": { "88": { "goal": [ { "clause": 0, "scope": 2, "term": "(',' (p T7 X7) (tc X7 T9))" }, { "clause": 1, "scope": 2, "term": "(',' (p T7 X7) (tc X7 T9))" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T7"], "free": ["X7"], "exprvars": [] } }, "89": { "goal": [{ "clause": 0, "scope": 2, "term": "(',' (p T7 X7) (tc X7 T9))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T7"], "free": ["X7"], "exprvars": [] } }, "type": "Nodes", "140": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (p T12 X16) (tc X16 T14))" }], "kb": { "nonunifying": [[ "(tc T12 T2)", "(tc X2 X2)" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T12"], "free": [ "X2", "X16" ], "exprvars": [] } }, "141": { "goal": [ { "clause": 0, "scope": 3, "term": "(',' (p T12 X16) (tc X16 T14))" }, { "clause": 1, "scope": 3, "term": "(',' (p T12 X16) (tc X16 T14))" } ], "kb": { "nonunifying": [[ "(tc T12 T2)", "(tc X2 X2)" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T12"], "free": [ "X2", "X16" ], "exprvars": [] } }, "142": { "goal": [{ "clause": 0, "scope": 3, "term": "(',' (p T12 X16) (tc X16 T14))" }], "kb": { "nonunifying": [[ "(tc T12 T2)", "(tc X2 X2)" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T12"], "free": [ "X2", "X16" ], "exprvars": [] } }, "143": { "goal": [{ "clause": 1, "scope": 3, "term": "(',' (p T12 X16) (tc X16 T14))" }], "kb": { "nonunifying": [[ "(tc T12 T2)", "(tc X2 X2)" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T12"], "free": [ "X2", "X16" ], "exprvars": [] } }, "144": { "goal": [{ "clause": -1, "scope": -1, "term": "(tc (b) T14)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "145": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "146": { "goal": [{ "clause": -1, "scope": -1, "term": "(tc (c) T14)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "136": { "goal": [{ "clause": -1, "scope": -1, "term": "(tc (c) T9)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "147": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "137": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "90": { "goal": [{ "clause": 1, "scope": 2, "term": "(',' (p T7 X7) (tc X7 T9))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T7"], "free": ["X7"], "exprvars": [] } }, "91": { "goal": [{ "clause": -1, "scope": -1, "term": "(tc (b) T9)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "92": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "82": { "goal": [{ "clause": -1, "scope": -1, "term": "(tc T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "83": { "goal": [ { "clause": 2, "scope": 1, "term": "(tc T1 T2)" }, { "clause": 3, "scope": 1, "term": "(tc T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": [], "exprvars": [] } }, "84": { "goal": [ { "clause": -1, "scope": -1, "term": "(true)" }, { "clause": 3, "scope": 1, "term": "(tc T4 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T4"], "free": [], "exprvars": [] } }, "85": { "goal": [{ "clause": 3, "scope": 1, "term": "(tc T1 T2)" }], "kb": { "nonunifying": [[ "(tc T1 T2)", "(tc X2 X2)" ]], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T1"], "free": ["X2"], "exprvars": [] } }, "86": { "goal": [{ "clause": 3, "scope": 1, "term": "(tc T4 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T4"], "free": [], "exprvars": [] } }, "87": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (p T7 X7) (tc X7 T9))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": ["T7"], "free": ["X7"], "exprvars": [] } } }, "edges": [ { "from": 82, "to": 83, "label": "CASE" }, { "from": 83, "to": 84, "label": "EVAL with clause\ntc(X2, X2).\nand substitutionT1 -> T4,\nX2 -> T4,\nT2 -> T4" }, { "from": 83, "to": 85, "label": "EVAL-BACKTRACK" }, { "from": 84, "to": 86, "label": "SUCCESS" }, { "from": 85, "to": 140, "label": "ONLY EVAL with clause\ntc(X14, X15) :- ','(p(X14, X16), tc(X16, X15)).\nand substitutionT1 -> T12,\nX14 -> T12,\nT2 -> T14,\nX15 -> T14,\nT13 -> T14" }, { "from": 86, "to": 87, "label": "ONLY EVAL with clause\ntc(X5, X6) :- ','(p(X5, X7), tc(X7, X6)).\nand substitutionT4 -> T7,\nX5 -> T7,\nT2 -> T9,\nX6 -> T9,\nT8 -> T9" }, { "from": 87, "to": 88, "label": "CASE" }, { "from": 88, "to": 89, "label": "PARALLEL" }, { "from": 88, "to": 90, "label": "PARALLEL" }, { "from": 89, "to": 91, "label": "EVAL with clause\np(a, b).\nand substitutionT7 -> a,\nX7 -> b" }, { "from": 89, "to": 92, "label": "EVAL-BACKTRACK" }, { "from": 90, "to": 136, "label": "EVAL with clause\np(b, c).\nand substitutionT7 -> b,\nX7 -> c" }, { "from": 90, "to": 137, "label": "EVAL-BACKTRACK" }, { "from": 91, "to": 82, "label": "INSTANCE with matching:\nT1 -> b\nT2 -> T9" }, { "from": 136, "to": 82, "label": "INSTANCE with matching:\nT1 -> c\nT2 -> T9" }, { "from": 140, "to": 141, "label": "CASE" }, { "from": 141, "to": 142, "label": "PARALLEL" }, { "from": 141, "to": 143, "label": "PARALLEL" }, { "from": 142, "to": 144, "label": "EVAL with clause\np(a, b).\nand substitutionT12 -> a,\nX16 -> b" }, { "from": 142, "to": 145, "label": "EVAL-BACKTRACK" }, { "from": 143, "to": 146, "label": "EVAL with clause\np(b, c).\nand substitutionT12 -> b,\nX16 -> c" }, { "from": 143, "to": 147, "label": "EVAL-BACKTRACK" }, { "from": 144, "to": 82, "label": "INSTANCE with matching:\nT1 -> b\nT2 -> T14" }, { "from": 146, "to": 82, "label": "INSTANCE with matching:\nT1 -> c\nT2 -> T14" } ], "type": "Graph" } } ---------------------------------------- (2) Obligation: Triples: tcA(a, X1) :- tcA(b, X1). tcA(b, X1) :- tcA(c, X1). tcA(a, X1) :- tcA(b, X1). tcA(b, X1) :- tcA(c, X1). Clauses: tccA(X1, X1). tccA(a, X1) :- tccA(b, X1). tccA(b, X1) :- tccA(c, X1). tccA(a, X1) :- tccA(b, X1). tccA(b, X1) :- tccA(c, X1). Afs: tcA(x1, x2) = tcA(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: tcA_in_2: (b,f) Transforming TRIPLES into the following Term Rewriting System: Pi DP problem: The TRS P consists of the following rules: TCA_IN_GA(a, X1) -> U1_GA(X1, tcA_in_ga(b, X1)) TCA_IN_GA(a, X1) -> TCA_IN_GA(b, X1) TCA_IN_GA(b, X1) -> U2_GA(X1, tcA_in_ga(c, X1)) TCA_IN_GA(b, X1) -> TCA_IN_GA(c, X1) R is empty. The argument filtering Pi contains the following mapping: tcA_in_ga(x1, x2) = tcA_in_ga(x1) a = a b = b c = c TCA_IN_GA(x1, x2) = TCA_IN_GA(x1) U1_GA(x1, x2) = U1_GA(x2) U2_GA(x1, x2) = U2_GA(x2) 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: TCA_IN_GA(a, X1) -> U1_GA(X1, tcA_in_ga(b, X1)) TCA_IN_GA(a, X1) -> TCA_IN_GA(b, X1) TCA_IN_GA(b, X1) -> U2_GA(X1, tcA_in_ga(c, X1)) TCA_IN_GA(b, X1) -> TCA_IN_GA(c, X1) R is empty. The argument filtering Pi contains the following mapping: tcA_in_ga(x1, x2) = tcA_in_ga(x1) a = a b = b c = c TCA_IN_GA(x1, x2) = TCA_IN_GA(x1) U1_GA(x1, x2) = U1_GA(x2) U2_GA(x1, x2) = U2_GA(x2) We have to consider all (P,R,Pi)-chains ---------------------------------------- (5) DependencyGraphProof (EQUIVALENT) The approximation of the Dependency Graph [LOPSTR] contains 0 SCCs with 4 less nodes. ---------------------------------------- (6) TRUE