| y = [], n0 + # y = m + 1, ∀ y0, n0, x. # y0 < # y → true → lastn(n0 + # y0, x + y0) = lastn(n0, x) + y0 ⊦ lastn(m, (x + y).butlast) + (x + y).last ' = lastn(n0, x) + y |
∀ y0, n0, x. # y0 < # [] → true → lastn(n0 + # y0, x + y0) = lastn(n0, x) + y0 ⊦ lastn(m, x.butlast) + x.last ' = lastn(m + 1, x)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list%app: ⊦ x + [] = x; from specification list%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%add-base: ⊦ n + 0 = n; from specification nat-basic2%size-01: ⊦ # [] = 0; from specification list-data