4.59/2.00 YES 5.04/2.13 proof of /export/starexec/sandbox/benchmark/theBenchmark.xml 5.04/2.13 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 5.04/2.13 5.04/2.13 5.04/2.13 Termination w.r.t. Q of the given QTRS could be proven: 5.04/2.13 5.04/2.13 (0) QTRS 5.04/2.13 (1) DependencyPairsProof [EQUIVALENT, 18 ms] 5.04/2.13 (2) QDP 5.04/2.13 (3) QDPQMonotonicMRRProof [EQUIVALENT, 48 ms] 5.04/2.13 (4) QDP 5.04/2.13 (5) DependencyGraphProof [EQUIVALENT, 0 ms] 5.04/2.13 (6) QDP 5.04/2.13 (7) UsableRulesProof [EQUIVALENT, 0 ms] 5.04/2.13 (8) QDP 5.04/2.13 (9) QReductionProof [EQUIVALENT, 0 ms] 5.04/2.13 (10) QDP 5.04/2.13 (11) QDPSizeChangeProof [EQUIVALENT, 0 ms] 5.04/2.13 (12) YES 5.04/2.13 5.04/2.13 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (0) 5.04/2.13 Obligation: 5.04/2.13 Q restricted rewrite system: 5.04/2.13 The TRS R consists of the following rules: 5.04/2.13 5.04/2.13 a__first(0, X) -> nil 5.04/2.13 a__first(s(X), cons(Y, Z)) -> cons(mark(Y), first(X, Z)) 5.04/2.13 a__from(X) -> cons(mark(X), from(s(X))) 5.04/2.13 mark(first(X1, X2)) -> a__first(mark(X1), mark(X2)) 5.04/2.13 mark(from(X)) -> a__from(mark(X)) 5.04/2.13 mark(0) -> 0 5.04/2.13 mark(nil) -> nil 5.04/2.13 mark(s(X)) -> s(mark(X)) 5.04/2.13 mark(cons(X1, X2)) -> cons(mark(X1), X2) 5.04/2.13 a__first(X1, X2) -> first(X1, X2) 5.04/2.13 a__from(X) -> from(X) 5.04/2.13 5.04/2.13 The set Q consists of the following terms: 5.04/2.13 5.04/2.13 a__from(x0) 5.04/2.13 mark(first(x0, x1)) 5.04/2.13 mark(from(x0)) 5.04/2.13 mark(0) 5.04/2.13 mark(nil) 5.04/2.13 mark(s(x0)) 5.04/2.13 mark(cons(x0, x1)) 5.04/2.13 a__first(x0, x1) 5.04/2.13 5.04/2.13 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (1) DependencyPairsProof (EQUIVALENT) 5.04/2.13 Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (2) 5.04/2.13 Obligation: 5.04/2.13 Q DP problem: 5.04/2.13 The TRS P consists of the following rules: 5.04/2.13 5.04/2.13 A__FIRST(s(X), cons(Y, Z)) -> MARK(Y) 5.04/2.13 A__FROM(X) -> MARK(X) 5.04/2.13 MARK(first(X1, X2)) -> A__FIRST(mark(X1), mark(X2)) 5.04/2.13 MARK(first(X1, X2)) -> MARK(X1) 5.04/2.13 MARK(first(X1, X2)) -> MARK(X2) 5.04/2.13 MARK(from(X)) -> A__FROM(mark(X)) 5.04/2.13 MARK(from(X)) -> MARK(X) 5.04/2.13 MARK(s(X)) -> MARK(X) 5.04/2.13 MARK(cons(X1, X2)) -> MARK(X1) 5.04/2.13 5.04/2.13 The TRS R consists of the following rules: 5.04/2.13 5.04/2.13 a__first(0, X) -> nil 5.04/2.13 a__first(s(X), cons(Y, Z)) -> cons(mark(Y), first(X, Z)) 5.04/2.13 a__from(X) -> cons(mark(X), from(s(X))) 5.04/2.13 mark(first(X1, X2)) -> a__first(mark(X1), mark(X2)) 5.04/2.13 mark(from(X)) -> a__from(mark(X)) 5.04/2.13 mark(0) -> 0 5.04/2.13 mark(nil) -> nil 5.04/2.13 mark(s(X)) -> s(mark(X)) 5.04/2.13 mark(cons(X1, X2)) -> cons(mark(X1), X2) 5.04/2.13 a__first(X1, X2) -> first(X1, X2) 5.04/2.13 a__from(X) -> from(X) 5.04/2.13 5.04/2.13 The set Q consists of the following terms: 5.04/2.13 5.04/2.13 a__from(x0) 5.04/2.13 mark(first(x0, x1)) 5.04/2.13 mark(from(x0)) 5.04/2.13 mark(0) 5.04/2.13 mark(nil) 5.04/2.13 mark(s(x0)) 5.04/2.13 mark(cons(x0, x1)) 5.04/2.13 a__first(x0, x1) 5.04/2.13 5.04/2.13 We have to consider all minimal (P,Q,R)-chains. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (3) QDPQMonotonicMRRProof (EQUIVALENT) 5.04/2.13 By using the Q-monotonic rule removal processor with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented such that it always occurs at a strongly monotonic position in a (P,Q,R)-chain. 5.04/2.13 5.04/2.13 Strictly oriented dependency pairs: 5.04/2.13 5.04/2.13 A__FIRST(s(X), cons(Y, Z)) -> MARK(Y) 5.04/2.13 MARK(first(X1, X2)) -> A__FIRST(mark(X1), mark(X2)) 5.04/2.13 MARK(first(X1, X2)) -> MARK(X1) 5.04/2.13 MARK(first(X1, X2)) -> MARK(X2) 5.04/2.13 MARK(from(X)) -> A__FROM(mark(X)) 5.04/2.13 MARK(from(X)) -> MARK(X) 5.04/2.13 5.04/2.13 5.04/2.13 Used ordering: Polynomial interpretation [POLO]: 5.04/2.13 5.04/2.13 POL(0) = 2 5.04/2.13 POL(A__FIRST(x_1, x_2)) = 1 + 2*x_2 5.04/2.13 POL(A__FROM(x_1)) = 2*x_1 5.04/2.13 POL(MARK(x_1)) = 2*x_1 5.04/2.13 POL(a__first(x_1, x_2)) = 2 + x_1 + 2*x_2 5.04/2.13 POL(a__from(x_1)) = 2 + 2*x_1 5.04/2.13 POL(cons(x_1, x_2)) = x_1 5.04/2.13 POL(first(x_1, x_2)) = 1 + x_1 + 2*x_2 5.04/2.13 POL(from(x_1)) = 2 + 2*x_1 5.04/2.13 POL(mark(x_1)) = 2*x_1 5.04/2.13 POL(nil) = 0 5.04/2.13 POL(s(x_1)) = x_1 5.04/2.13 5.04/2.13 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (4) 5.04/2.13 Obligation: 5.04/2.13 Q DP problem: 5.04/2.13 The TRS P consists of the following rules: 5.04/2.13 5.04/2.13 A__FROM(X) -> MARK(X) 5.04/2.13 MARK(s(X)) -> MARK(X) 5.04/2.13 MARK(cons(X1, X2)) -> MARK(X1) 5.04/2.13 5.04/2.13 The TRS R consists of the following rules: 5.04/2.13 5.04/2.13 a__first(0, X) -> nil 5.04/2.13 a__first(s(X), cons(Y, Z)) -> cons(mark(Y), first(X, Z)) 5.04/2.13 a__from(X) -> cons(mark(X), from(s(X))) 5.04/2.13 mark(first(X1, X2)) -> a__first(mark(X1), mark(X2)) 5.04/2.13 mark(from(X)) -> a__from(mark(X)) 5.04/2.13 mark(0) -> 0 5.04/2.13 mark(nil) -> nil 5.04/2.13 mark(s(X)) -> s(mark(X)) 5.04/2.13 mark(cons(X1, X2)) -> cons(mark(X1), X2) 5.04/2.13 a__first(X1, X2) -> first(X1, X2) 5.04/2.13 a__from(X) -> from(X) 5.04/2.13 5.04/2.13 The set Q consists of the following terms: 5.04/2.13 5.04/2.13 a__from(x0) 5.04/2.13 mark(first(x0, x1)) 5.04/2.13 mark(from(x0)) 5.04/2.13 mark(0) 5.04/2.13 mark(nil) 5.04/2.13 mark(s(x0)) 5.04/2.13 mark(cons(x0, x1)) 5.04/2.13 a__first(x0, x1) 5.04/2.13 5.04/2.13 We have to consider all minimal (P,Q,R)-chains. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (5) DependencyGraphProof (EQUIVALENT) 5.04/2.13 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (6) 5.04/2.13 Obligation: 5.04/2.13 Q DP problem: 5.04/2.13 The TRS P consists of the following rules: 5.04/2.13 5.04/2.13 MARK(cons(X1, X2)) -> MARK(X1) 5.04/2.13 MARK(s(X)) -> MARK(X) 5.04/2.13 5.04/2.13 The TRS R consists of the following rules: 5.04/2.13 5.04/2.13 a__first(0, X) -> nil 5.04/2.13 a__first(s(X), cons(Y, Z)) -> cons(mark(Y), first(X, Z)) 5.04/2.13 a__from(X) -> cons(mark(X), from(s(X))) 5.04/2.13 mark(first(X1, X2)) -> a__first(mark(X1), mark(X2)) 5.04/2.13 mark(from(X)) -> a__from(mark(X)) 5.04/2.13 mark(0) -> 0 5.04/2.13 mark(nil) -> nil 5.04/2.13 mark(s(X)) -> s(mark(X)) 5.04/2.13 mark(cons(X1, X2)) -> cons(mark(X1), X2) 5.04/2.13 a__first(X1, X2) -> first(X1, X2) 5.04/2.13 a__from(X) -> from(X) 5.04/2.13 5.04/2.13 The set Q consists of the following terms: 5.04/2.13 5.04/2.13 a__from(x0) 5.04/2.13 mark(first(x0, x1)) 5.04/2.13 mark(from(x0)) 5.04/2.13 mark(0) 5.04/2.13 mark(nil) 5.04/2.13 mark(s(x0)) 5.04/2.13 mark(cons(x0, x1)) 5.04/2.13 a__first(x0, x1) 5.04/2.13 5.04/2.13 We have to consider all minimal (P,Q,R)-chains. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (7) UsableRulesProof (EQUIVALENT) 5.04/2.13 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. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (8) 5.04/2.13 Obligation: 5.04/2.13 Q DP problem: 5.04/2.13 The TRS P consists of the following rules: 5.04/2.13 5.04/2.13 MARK(cons(X1, X2)) -> MARK(X1) 5.04/2.13 MARK(s(X)) -> MARK(X) 5.04/2.13 5.04/2.13 R is empty. 5.04/2.13 The set Q consists of the following terms: 5.04/2.13 5.04/2.13 a__from(x0) 5.04/2.13 mark(first(x0, x1)) 5.04/2.13 mark(from(x0)) 5.04/2.13 mark(0) 5.04/2.13 mark(nil) 5.04/2.13 mark(s(x0)) 5.04/2.13 mark(cons(x0, x1)) 5.04/2.13 a__first(x0, x1) 5.04/2.13 5.04/2.13 We have to consider all minimal (P,Q,R)-chains. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (9) QReductionProof (EQUIVALENT) 5.04/2.13 We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. 5.04/2.13 5.04/2.13 a__from(x0) 5.04/2.13 mark(first(x0, x1)) 5.04/2.13 mark(from(x0)) 5.04/2.13 mark(0) 5.04/2.13 mark(nil) 5.04/2.13 mark(s(x0)) 5.04/2.13 mark(cons(x0, x1)) 5.04/2.13 a__first(x0, x1) 5.04/2.13 5.04/2.13 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (10) 5.04/2.13 Obligation: 5.04/2.13 Q DP problem: 5.04/2.13 The TRS P consists of the following rules: 5.04/2.13 5.04/2.13 MARK(cons(X1, X2)) -> MARK(X1) 5.04/2.13 MARK(s(X)) -> MARK(X) 5.04/2.13 5.04/2.13 R is empty. 5.04/2.13 Q is empty. 5.04/2.13 We have to consider all minimal (P,Q,R)-chains. 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (11) QDPSizeChangeProof (EQUIVALENT) 5.04/2.13 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 5.04/2.13 5.04/2.13 From the DPs we obtained the following set of size-change graphs: 5.04/2.13 *MARK(cons(X1, X2)) -> MARK(X1) 5.04/2.13 The graph contains the following edges 1 > 1 5.04/2.13 5.04/2.13 5.04/2.13 *MARK(s(X)) -> MARK(X) 5.04/2.13 The graph contains the following edges 1 > 1 5.04/2.13 5.04/2.13 5.04/2.13 ---------------------------------------- 5.04/2.13 5.04/2.13 (12) 5.04/2.13 YES 5.04/2.17 EOF