| n ≤ # x0, ∀ n. n < # x0 → restn(n, x0).first = x0[n] ⊦ restn(n, a ' + x0).first = (a ' + x0)[n] |
⊦ 0 < n → restn(n, x) = restn(n -1, x.rest)
0 < n, n ≤ # x0, ∀ n. n < # x0 → restn(n, x0).first = x0[n] ⊦ restn(n -1, (a ' + x0).rest).first = (a ' + x0)[n]
Used simplifier rules: restN-zero: ⊦ restn(0, x) = x;%get-zero-01: ⊦ (a ' + x)[0] = a;%zero: ⊦ 0 < m ↔ m ≠ 0; from specification nat-basic1%c-08: ⊦ (a ' + x).first = a; from specification list%a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: a ' + x0, n