| # x < n0 + n1 ⊦ x = (n0 ≤ # x ⊃ firstn(n0, x);x) + (n1 ≤ # (n0 ≤ # x ⊃ restn(n0, x);[]) ⊃ firstn(n1, []);(n0 ≤ # x ⊃ restn(n0, x);[])) |
Used simplifier rules: ⊦ # [] = 0; (s)% ⊦ m ≤ 0 ↔ m = 0; (s)% ⊦ firstn(0, x) = []; (s)% ⊦ x + [] = x; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ m ≤ n → (n < m ↔ false); (s)%n ≤ # x ⊦ # restn(n, x) = # x - n; (s)%n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s)%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ m < n → (n ≤ m ↔ false); (s)% ⊦ n ≤ # x → firstn(n, x) + restn(n, x) = x; (s)