| y = a + y0, m < # y, ∀ x0. m < # x0 → x0.head ' + firstn(m, x0.tail) = firstn(m, x0) + x0[m] ' ⊦ a ' + firstn(m, y0) = firstn(m, y) + y[m] ', y = [] |
m ≤ # y0, ∀ x0. m < # x0 → x0.head ' + firstn(m, x0.tail) = firstn(m, x0) + x0[m] ' ⊦ a ' + firstn(m, y0) = firstn(m, a ' + y0) + (a ' + y0)[m] '
Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ m < n + 1 ↔ ¬ n < m; (s)% ⊦ # a ' = 0 +1; (s)% ⊦ #(x + y) = # x + # y; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list% ⊦ a ' + x ≠ []; (s)% ⊦ a + x = a ' + x; (s)