| # y = m + # z, a0 ' + y = firstn(m, a0 ' + y) + a ' + z, # z ≤ 1 + # y, ∀ z0, a1. a0 ' + y = firstn(# y - # z0, a0 ' + y) + a1 ' + z0 → a0 ' + y = firstn(1 + # y - # z0, a0 ' + y) + z0, a0 ∈ firstn(m, a0 ' + y) ∨ a0 = a ∨ a0 ∈ z ⊦ a0 ' + y = firstn(# y - # z, a0 ' + y) + a ' + z, y = firstn(m, y) + z |
Used simplifier rules: a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic%eqs: ⊦ m = n + n0 ∧ m = n + n1 → n0 = n1; (forward) from specification nat-basic%a: ⊦ (x + y) + z = x + y + z; from specification list% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ a ' + x = y + b ' + z → ¬ # x < # z; (s)%n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: # y, # z, n