| ⊦ prefixn(n, x) = prefixn(n, x + y) ↔ n ≤ # x, y = [] |
⊦ prefixn(n, x) = (n ≤ # x ⊃ firstn(n, x);x)
n ≤ # x ⊦ prefixn(n, x + y) = prefixn(n, x)
x = (n ≤ # x + # y ⊃ firstn(n, x + y);x + y), # x < n ⊦ y = []
Used simplifier rules: prefixn: ⊦ prefixn(n, x) = (n ≤ # x ⊃ firstn(n, x);x);%prefixn-append-left: n ≤ # x ⊦ prefixn(n, x + y) = prefixn(n, x);% ⊦ m < n → n ≠ 0; (s)%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ m ≤ n → (n < m ↔ false); (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)%a: ⊦ (x + y) + z = x + y + z; from specification list% ⊦ #(x + y) = # x + # y; (s)