| ts1 = rg + ts2, ts1[1] = m0 .. n0, rg = m .. n, transseq(r, ts0 + ts1), presrt(r, ts0 + ts1), semok(r, ts0 + ts1, mem), nowrites(runevs(m0, n0, r)), ltr(m0, n0, r), nowrites(runevs(m, n, r)), ltr(m, n, r) ⊦ ts0 + ts1 = [], # ts1 = 1, ts1 = [], transseq(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(# ts0 + 2, ts0 + ts1)) ∧ presrt(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(# ts0 + 2, ts0 + ts1)) ∧ semok(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(# ts0 + 2, ts0 + ts1), mem) |
ts2.first = m0 .. n0, nowrites(runevs(m0, n0, r)), ltr(m0, n0, r), nowrites(runevs(m, n, r)), ltr(m, n, r), transseq(r, ts0 + (m .. n)' + ts2), presrt(r, ts0 + (m .. n)' + ts2), semok(r, ts0 + (m .. n)' + ts2, mem) ⊦ ts2 = [], transseq(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(# ts0 + 2, ts0 + (m .. n)' + ts2)) ∧ presrt(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(# ts0 + 2, ts0 + (m .. n)' + ts2)) ∧ semok(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(# ts0 + 2, ts0 + (m .. n)' + ts2), mem)
Used simplifier rules: e-01: ⊦ rg ' + ts ≠ []; from specification list[translist]%get-zero: ⊦ ts ≠ [] → ts[0] = ts.first; from specification list-del[translist]%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%l: ⊦ # ts = 0 ↔ ts = []; from specification list-data[translist]%one: ⊦ m + n = 1 ↔ m = 0 ∧ n = 1 ∨ n = 0 ∧ m = 1; from specification nat-basic2%succ: ⊦ m +1 = m + 1; from specification nat-basic2%len-05: ⊦ #(rg ' + ts) = (# ts)+1; from specification list[translist]%e-03: ⊦ ts + rg ' + ts0 ≠ []; from specification list[translist]%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%get-numrec: n ≠ 0 ⊦ (rg ' + ts)[(* n)] = ts[n -1]; from specification list-del[translist]%c: ⊦ rg + ts = rg ' + ts; from specification list[translist]