| ts = ts0 + ts1 ∧ # ts0 = n2 ∧ n2 ≤ # ts, ts[n2 + 1] = m0 .. n0, ts[n2] = m .. n, n2 + 1 < # ts, transseq(r, ts), presrt(r, ts), semok(r, ts, mem), nowrites(runevs(m0, n0, r)), ltr(m0, n0, r), nowrites(runevs(m, n, r)), ltr(m, n, r) ⊦ ts = [], transseq(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(n2 + 2, ts)) ∧ presrt(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(n2 + 2, ts)) ∧ semok(r, ts0 + (m0 .. n0)' + (m .. n)' + restn(n2 + 2, ts), mem) |
(ts0 + ts1)[# ts0] = m .. n, ts1[1] = m0 .. n0, 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)
Used simplifier rules: l: ⊦ # ts = 0 ↔ ts = []; from specification list-data[translist]%one: ⊦ 1 < m ↔ ¬(m = 0 ∨ m = 1); from specification nat-basic1%l: ⊦ m + n < m + n0 ↔ n < n0; from specification nat-basic2%lep: ⊦ m ≤ m + n; from specification nat%len: ⊦ #(ts + ts0) = # ts + # ts0; from specification list[translist]%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%get-append-grt-02: ⊦ (ts + ts0)[n + # ts] = ts0[n]; from specification list-del[translist]