| # xs = xs_len, xs_len + 1 = h, # xs < h, # ys = 0 ∨ # ys = h ⊦ ⟪xs0 := []⟫ (# xs0 < h ∧ # xs0 = 0 ∧ (#(a + xs) = 0 ∨ #(a + xs) = h)) |
Used simplifier rules: ⊦ m < n + 1 ↔ ¬ n < m; (s)% ⊦ ¬ n < n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ # x = 0 ↔ x = []; (s)% ⊦ # [] = 0; (s)% ⊦ 0 < m ↔ m ≠ 0; (s)% ⊦ m + 1 ≠ 0; (s)% ⊦ a + x = a ' + x; (s)% ⊦ #(a ' + x) = (# x)+1; (s)% ⊦ m +1 = m + 1; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list% ⊦ m + n = m + n0 ↔ n = n0; (s)