| # x = n0 + m0 ⊦ firstn(m0, x) + firstn(n0, restn(m0, x)) = x |
#(a + x0) = n0 + m0, ∀ n0, m0. # x0 = n0 + m0 → firstn(m0, x0) + firstn(n0, restn(m0, x0)) = x0 ⊦ firstn(m0, a + x0) + firstn(n0, restn(m0, a + x0)) = a + x0
Used simplifier rules: firstN-zero: ⊦ firstn(0, x) = [];%restN-zero: ⊦ restn(0, x) = x;%list freely generated by [], +;;% ⊦ # [] = 0; (s)% ⊦ m + n = 0 ↔ m = 0 ∧ n = 0; (ws)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ [] + x = x; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list