YES proof of Transformed_CSR_04_Ex2_Luc02a_L.trs # AProVE Commit ID: c69e44bd14796315568835c1ffa2502984884775 jera 20211004 unpublished Termination w.r.t. Q of the given QTRS could be proven: (0) QTRS (1) QTRSRRRProof [EQUIVALENT, 69 ms] (2) QTRS (3) QTRSRRRProof [EQUIVALENT, 0 ms] (4) QTRS (5) RisEmptyProof [EQUIVALENT, 0 ms] (6) YES ---------------------------------------- (0) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N))) sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(0, X) -> X add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y)) -> cons(Y) Q is empty. ---------------------------------------- (1) QTRSRRRProof (EQUIVALENT) Used ordering: terms/1(YES) cons/1)YES( recip/1)YES( sqr/1(YES) 0/0) s/1(YES) add/2(YES,YES) dbl/1(YES) first/2(YES,YES) nil/0) Quasi precedence: [terms_1, sqr_1] > 0 > nil > s_1 [terms_1, sqr_1] > add_2 > s_1 [terms_1, sqr_1] > dbl_1 > s_1 first_2 > nil > s_1 Status: terms_1: [1] sqr_1: [1] 0: multiset status s_1: multiset status add_2: [1,2] dbl_1: multiset status first_2: [1,2] nil: multiset status With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: sqr(0) -> 0 sqr(s(X)) -> s(add(sqr(X), dbl(X))) dbl(0) -> 0 dbl(s(X)) -> s(s(dbl(X))) add(0, X) -> X add(s(X), Y) -> s(add(X, Y)) first(0, X) -> nil first(s(X), cons(Y)) -> cons(Y) ---------------------------------------- (2) Obligation: Q restricted rewrite system: The TRS R consists of the following rules: terms(N) -> cons(recip(sqr(N))) Q is empty. ---------------------------------------- (3) QTRSRRRProof (EQUIVALENT) Used ordering: terms/1(YES) cons/1(YES) recip/1(YES) sqr/1)YES( Quasi precedence: terms_1 > cons_1 terms_1 > recip_1 Status: terms_1: [1] cons_1: [1] recip_1: [1] With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly: terms(N) -> cons(recip(sqr(N))) ---------------------------------------- (4) Obligation: Q restricted rewrite system: R is empty. Q is empty. ---------------------------------------- (5) RisEmptyProof (EQUIVALENT) The TRS R is empty. Hence, termination is trivially proven. ---------------------------------------- (6) YES