| ⊦ restn(# x, a ' + x) = (a ' + x).last ' |
restn(# x, a ' + x) ≠ (a ' + x).last ' ⊦
| restn(# x, a ' + x) ≠ (a ' + x).last ' ⊦ |
restn(# x, a ' + x) ≠ (a ' + x).last ', x ≠ [] ⊦
Used simplifier rules: restN-zero: ⊦ restn(0, x) = x; ⊦ # [] = 0; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a '.last = a; (s) ⊦ a ' = b ' ↔ a = b; (s) Used formulas: x = []
| restn(# x, a ' + x) ≠ (a ' + x).last ', x ≠ [] ⊦ |
restn(# x, a ' + x) ≠ x.last ', x ≠ [] ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x ≠ [] → (a ' + x).last = x.last; (s)
| restn(# x, a ' + x) ≠ x.last ', x ≠ [] ⊦ |
Used simplifier rules: restN-rec: ⊦ restn(n + 1, x) = restn(n, x.tail); restN-len: ⊦ restn(# x, x + y) = y; ⊦ #(x + y) = # x + # y; (s) ⊦ # a ' = 0 +1; (s) ⊦ (a ' + x).tail = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ a ' = b ' ↔ a = b; (s) x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: x, a0, y
The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.