| ∀ y. firstn(# x0, x0 + y) = x0 ⊦ firstn(#(a + x0), (a + x0) + y) = a + x0 |
∀ y. firstn(# x0, x0 + y) = x0 ⊦ firstn(# x0, x0 + y) = x0
Used simplifier rules: firstN-rec: ⊦ firstn(n + 1, x) = x.head + firstn(n, x.tail);% ⊦ x + y = x + z ↔ y = z; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ (a ' + x).tail = x; (s)% ⊦ (a ' + x).head = a; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list% ⊦ # a ' = 0 +1; (s)% ⊦ #(x + y) = # x + # y; (s)% ⊦ a + x = a ' + x; (s)