| m0 +1 ≤ # x, m0 +1 ≤ n, n ≤ # x, ∀ n, x. n ≤ # x ∧ m0 ≤ n ∧ m0 ≤ # x → firstn(m0, firstn(n, x)) = firstn(m0, x) ⊦ firstn(m0 +1, firstn(n, x)) = firstn(m0 +1, x) |
m0 < # x, m0 < n, n ≤ # x, ∀ n, x. n ≤ # x ∧ m0 ≤ n ∧ m0 ≤ # x → firstn(m0, firstn(n, x)) = firstn(m0, x) ⊦ firstn(n, x).head ' + firstn(m0, firstn(n, x).tail) = x.head ' + firstn(m0, x.tail), x = []
Used simplifier rules: firstN-rec: ⊦ firstn(n + 1, x) = x.head + firstn(n, x.tail);% ⊦ m < n → n ≠ 0; (s)% ⊦ # x = 0 ↔ x = []; (s)%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ m + 1 ≤ n ↔ m < n; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ a + x = a ' + x; (s)% ⊦ m +1 = m + 1; (s)