| ⊦ ¬ # σ < ⌜n⌝ ∧ ¬ # σ0 < ⌜n1⌝ → (σ to n) + σ0 from n1 + n = σ0 from n1 |
(σ to n) + σ0 from n1 + n ≠ σ0 from n1, ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ ⊦
| (σ to n) + σ0 from n1 + n ≠ σ0 from n1, ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ ⊦ |
(σ to n) + σ0 from n1 + n ≠ σ0 from n1, ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ ⊦
| (σ to n) + σ0 from n1 + n ≠ σ0 from n1, ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ ⊦ |
⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n])
¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ (∃ n0. ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0])) ⊦
Used terms: σ0 from n1, (σ to n) + σ0 from n1 + n
| ⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n]) |
| ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ (∃ n0. ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0])) ⊦ |
¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦
| ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ |
⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝
¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0)
⌜n1⌝ < # σ0, finp(σ0), ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ ⌜(# σ0).n - n1⌝ ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦
Used terms: n1, σ0
| ⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝ |
| ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0) |
¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0)
| ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0) |
σ0 = ⌜x⌝ , ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0)
σ0 = ⌜nf⌝ , ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0)
Used simplifier rules: stream freely generated by ⌜ ⌝, ⌜ ⌝;;
| σ0 = ⌜x⌝ , ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0) |
¬ # σ < ⌜n⌝ , (σ to n) + ⌜x⌝ from # x + n ≠ [] ∨ ¬(⌜n0⌝ < #((σ to n) + ⌜x⌝ from # x + n) → ((σ to n) + ⌜x⌝ from # x + n)[n0] = [][n0]) ⊦
Used simplifier rules: length-from: ¬ # x < n ⊦ #(x from n) = # x - n; from-fin: ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; sel-fin: ⊦ ⌜x⌝ [n] = x[n]; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; size-empty-equiv: ⊦ # σ = ⌜0⌝ ↔ σ = []; from-all: ⊦ x from # x = []; ⊦ m - m = 0; (s) ⊦ m ≤ m; (s) ⊦ m ≤ n → (n ≤ m ↔ m = n); (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ finp(⌜x⌝ ); (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ m ≤ n → (n < m ↔ false); (s)
| ¬ # σ < ⌜n⌝ , (σ to n) + ⌜x⌝ from # x + n ≠ [] ∨ ¬(⌜n0⌝ < #((σ to n) + ⌜x⌝ from # x + n) → ((σ to n) + ⌜x⌝ from # x + n)[n0] = [][n0]) ⊦ |
σ = ⌜x0⌝ , ¬ # σ < ⌜n⌝ , (σ to n) + ⌜x⌝ from # x + n ≠ [] ∨ ¬(⌜n0⌝ < #((σ to n) + ⌜x⌝ from # x + n) → ((σ to n) + ⌜x⌝ from # x + n)[n0] = [][n0]) ⊦
σ = ⌜nf⌝ , ¬ # σ < ⌜n⌝ , (σ to n) + ⌜x⌝ from # x + n ≠ [] ∨ ¬(⌜n0⌝ < #((σ to n) + ⌜x⌝ from # x + n) → ((σ to n) + ⌜x⌝ from # x + n)[n0] = [][n0]) ⊦
Used simplifier rules: stream freely generated by ⌜ ⌝, ⌜ ⌝;;
| σ = ⌜x0⌝ , ¬ # σ < ⌜n⌝ , (σ to n) + ⌜x⌝ from # x + n ≠ [] ∨ ¬(⌜n0⌝ < #((σ to n) + ⌜x⌝ from # x + n) → ((σ to n) + ⌜x⌝ from # x + n)[n0] = [][n0]) ⊦ |
(x0 to n) + x from # x + n ≠ [], n ≤ # x0 ⊦
Used simplifier rules: fin-empty: ⊦ ⌜x⌝ = [] ↔ x = []; to-fin: ⊦ ⌜x⌝ to n = ⌜x to n⌝ ; from-appfin: ⊦ ⌜x⌝ + ⌜y⌝ from n = ⌜x + y from n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; length-from: ¬ # x < n ⊦ #(x from n) = # x - n; length-to: ¬ # x < n ⊦ #(x to n) = n; ⊦ ¬ n < 0; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m - m = 0; (s) ⊦ m + n - n + n1 = m - n1; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ m ≤ n → (n < m ↔ false); (s) ⊦ #(x + y) = # x + # y; (s) ⊦ ¬ n < n; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss)
| (x0 to n) + x from # x + n ≠ [], n ≤ # x0 ⊦ |
⊦ # x < n → x + y from n = y from (n - # x)
(x0 to n) + x from # x + n ≠ [], n ≤ # x0, ¬ #(x0 to n) < # x + n ⊦
Used simplifier rules: length-to: ¬ # x < n ⊦ #(x to n) = n; from-all: ⊦ x from # x = []; ⊦ m ≤ n → (n < m ↔ false); (s) ⊦ m + n - m = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: # x + n, x, x0 to n
| ⊦ # x < n → x + y from n = y from (n - # x) |
| (x0 to n) + x from # x + n ≠ [], n ≤ # x0, ¬ #(x0 to n) < # x + n ⊦ |
(x0 to n) from n ≠ [], n ≤ # x0 ⊦
Used simplifier rules: length-to: ¬ # x < n ⊦ #(x to n) = n; c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ n + 0 = n; (s) ⊦ # [] = 0; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x + [] = x; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ m + m0 ≤ m ↔ m0 = 0; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m ≤ n → (n < m ↔ false); (s)
| (x0 to n) from n ≠ [], n ≤ # x0 ⊦ |
⊦ x = y ↔ # x = # y ∧ (∀ n. n < # x → x[n] = y[n])
Used simplifier rules: length-from: ¬ # x < n ⊦ #(x from n) = # x - n; length-to: ¬ # x < n ⊦ #(x to n) = n; ⊦ # [] = 0; (s) ⊦ ¬ n < n; (s) ⊦ m ≤ n → (n < m ↔ false); (s) ⊦ m - m = 0; (s) ⊦ ¬ n < 0; (s) Used terms: [], (x0 to n) from n
| ⊦ x = y ↔ # x = # y ∧ (∀ n. n < # x → x[n] = y[n]) |
| σ = ⌜nf⌝ , ¬ # σ < ⌜n⌝ , (σ to n) + ⌜x⌝ from # x + n ≠ [] ∨ ¬(⌜n0⌝ < #((σ to n) + ⌜x⌝ from # x + n) → ((σ to n) + ⌜x⌝ from # x + n)[n0] = [][n0]) ⊦ |
(nf to n) + x from # x + n ≠ [] ⊦
Used simplifier rules: size-inf: ⊦ # ⌜nf⌝ = ∞; fin-empty: ⊦ ⌜x⌝ = [] ↔ x = []; to-inf: ⊦ ⌜nf⌝ to n = ⌜nf to n⌝ ; from-appfin: ⊦ ⌜x⌝ + ⌜y⌝ from n = ⌜x + y from n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; length-from: ¬ # x < n ⊦ #(x from n) = # x - n; size-inf-to: ⊦ #(nf to n) = n; ⊦ ¬ n < 0; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m - m = 0; (s) ⊦ m + n - n + n1 = m - n1; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ #(x + y) = # x + # y; (s) ⊦ ¬ n < n; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ ¬ ∞ < n∞; (s)
| (nf to n) + x from # x + n ≠ [] ⊦ |
⊦ x = y ↔ # x = # y ∧ (∀ n. n < # x → x[n] = y[n])
Used simplifier rules: length-from: ¬ # x < n ⊦ #(x from n) = # x - n; size-inf-to: ⊦ #(nf to n) = n; ⊦ # [] = 0; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ ¬ n < n; (s) ⊦ #(x + y) = # x + # y; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ m + n - n + n1 = m - n1; (s) ⊦ m - m = 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ¬ n < 0; (s) Used terms: [], (nf to n) + x from # x + n
| ⊦ x = y ↔ # x = # y ∧ (∀ n. n < # x → x[n] = y[n]) |
| σ0 = ⌜nf⌝ , ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ #(σ0 from n1) ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ ⌜n1⌝ < # σ0 ∧ finp(σ0) |
¬ # σ < ⌜n⌝ , #((σ to n) + ⌜nf⌝ from n1 + n) ≠ ∞ ∨ ((σ to n) + ⌜nf⌝ from n1 + n)[n0] ≠ nf(n0 + n1) ⊦
Used simplifier rules: less-size-from: ⌜n⌝ < # σ ⊦ ⌜n0⌝ < #(σ from n) ↔ ⌜n0 + n⌝ < # σ; size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from-inf: ⊦ ⌜nf⌝ from n = ⌜nf from n⌝ ; sel-inf: ⊦ ⌜nf⌝ [n] = nf(n); get-from-inf: ⊦ ((nf from n))(m) = nf(m + n); size-inf: ⊦ # ⌜nf⌝ = ∞; ⊦ ¬ finp(⌜nf⌝ ); (s) ⊦ ⌜m⌝ < ∞; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) ⊦ n∞ < ∞ ↔ n∞ ≠ ∞; (s) ⊦ ⌜m⌝ + ∞ = ∞; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ¬ ∞ < n∞; (s)
| ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜nf⌝ from n1 + n) ≠ ∞ ∨ ((σ to n) + ⌜nf⌝ from n1 + n)[n0] ≠ nf(n0 + n1) ⊦ |
⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝
¬ # σ < ⌜n⌝ , #((σ to n) + ⌜nf⌝ from n1 + n) ≠ ∞ ∨ ((σ to n) + ⌜nf⌝ from n1 + n)[n0] ≠ nf(n0 + n1) ⊦ ⌜n1 + n⌝ < #((σ to n) + ⌜nf⌝ ) ∧ finp((σ to n) + ⌜nf⌝ )
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; size-inf: ⊦ # ⌜nf⌝ = ∞; neq-fin-inf-01: ⊦ ⌜x⌝ ≠ σ + ⌜nf0⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ n∞ < ∞ ↔ n∞ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) ⊦ ⌜m⌝ + ∞ = ∞; (s) add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf ⊦ ⌜n⌝ ≠ ∞; (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic Used terms: n1 + n, (σ to n) + ⌜nf⌝
| ⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝ |
| ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜nf⌝ from n1 + n) ≠ ∞ ∨ ((σ to n) + ⌜nf⌝ from n1 + n)[n0] ≠ nf(n0 + n1) ⊦ ⌜n1 + n⌝ < #((σ to n) + ⌜nf⌝ ) ∧ finp((σ to n) + ⌜nf⌝ ) |
⌜nf0⌝ = (σ to n) + ⌜nf⌝ , nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ ⊦
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-inf: ⊦ # ⌜nf⌝ = ∞; from-inf: ⊦ ⌜nf⌝ from n = ⌜nf from n⌝ ; sel-inf: ⊦ ⌜nf⌝ [n] = nf(n); get-from-inf: ⊦ ((nf from n))(m) = nf(m + n); ⊦ ⌜nf⌝ = ⌜nf0⌝ ↔ nf = nf0; (s) ⊦ ¬ finp(⌜nf⌝ ); (s) stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) ⊦ n∞ < ∞ ↔ n∞ ≠ ∞; (s) ⊦ ⌜m⌝ + ∞ = ∞; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)
| ⌜nf0⌝ = (σ to n) + ⌜nf⌝ , nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ ⊦ |
⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n])
# ⌜nf0⌝ = #((σ to n) + ⌜nf⌝ ), nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ , ∀ n0. ⌜n0⌝ < # ⌜nf0⌝ → ⌜nf0⌝ [n0] = ((σ to n) + ⌜nf⌝ )[n0] ⊦
Used terms: (σ to n) + ⌜nf⌝ , ⌜nf0⌝
| ⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n]) |
| # ⌜nf0⌝ = #((σ to n) + ⌜nf⌝ ), nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ , ∀ n0. ⌜n0⌝ < # ⌜nf0⌝ → ⌜nf0⌝ [n0] = ((σ to n) + ⌜nf⌝ )[n0] ⊦ |
nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ , ∀ n2. nf0(n2) = ((σ to n) + ⌜nf⌝ )[n2] ⊦
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-inf: ⊦ # ⌜nf⌝ = ∞; sel-inf: ⊦ ⌜nf⌝ [n] = nf(n); ⊦ ⌜m⌝ < ∞; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜m⌝ + ∞ = ∞; (s)
| nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ , ∀ n2. nf0(n2) = ((σ to n) + ⌜nf⌝ )[n2] ⊦ |
nf0(n0 + n1 + n) = ((σ to n) + ⌜nf⌝ )[n0 + n1 + n], nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ ⊦
Used terms: n0 + n1 + n
| nf0(n0 + n1 + n) = ((σ to n) + ⌜nf⌝ )[n0 + n1 + n], nf0(n0 + n1 + n) ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ ⊦ |
nf0(n0 + n1 + n) = ((σ to n) + ⌜nf⌝ )[n0 + n1 + n], ((σ to n) + ⌜nf⌝ )[n0 + n1 + n] ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ ⊦
| nf0(n0 + n1 + n) = ((σ to n) + ⌜nf⌝ )[n0 + n1 + n], ((σ to n) + ⌜nf⌝ )[n0 + n1 + n] ≠ nf(n0 + n1), ¬ # σ < ⌜n⌝ ⊦ |
⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]
Used simplifier rules: get-append-ls: ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; sel-inf: ⊦ ⌜nf⌝ [n] = nf(n); ⊦ ⌜n⌝ .n = n; (s) ⊦ m + n - m = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n1 + n + m < n0; (s) ⊦ ¬ m + n < m; (s) add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf Used terms: n0 + n1 + n, ⌜nf⌝ , σ to n
| ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n] |
| ⌜n1⌝ < # σ0, finp(σ0), ¬ # σ0 < ⌜n1⌝ , ¬ # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) ≠ ⌜(# σ0).n - n1⌝ ∨ ¬(⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) ⊦ |
x ≠ [], n1 < # x, ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) ≠ ⌜# x - n1⌝ ∨ ¬(n0 + n1 < # x → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦
Used simplifier rules: less-size-from: ⌜n⌝ < # σ ⊦ ⌜n0⌝ < #(σ from n) ↔ ⌜n0 + n⌝ < # σ; size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; get-from: ⊦ ⌜n⌝ + ⌜m⌝ < # σ → (σ from n)[m] = σ[n + m]; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; sel-fin: ⊦ ⌜x⌝ [n] = x[n]; ⊦ # x = 0 ↔ x = []; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ⌜n⌝ .n = n; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ finp(⌜x⌝ ); (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ n∞ < n∞0 → ¬ n∞0 < n∞; (s)
| x ≠ [], n1 < # x, ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) ≠ ⌜# x - n1⌝ ∨ ¬(n0 + n1 < # x → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦ |
# x = n2 + n1, x ≠ [], n1 < # x, n1 ≤ # x, ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) ≠ ⌜n2⌝ ∨ ¬(n0 + n1 < # x → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦
Used simplifier rules: ⊦ m < n → m ≤ n; (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: # x, n1, n2
| # x = n2 + n1, x ≠ [], n1 < # x, n1 ≤ # x, ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) ≠ ⌜n2⌝ ∨ ¬(n0 + n1 < # x → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦ |
# x = n2 + n1, n2 ≠ 0, x ≠ [], ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) ≠ ⌜n2⌝ ∨ ¬(n0 < n2 → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦
Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < m + n ↔ n ≠ 0; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m < n → n ≠ 0; (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m < n → m ≤ n; (s)
| # x = n2 + n1, n2 ≠ 0, x ≠ [], ¬ # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) ≠ ⌜n2⌝ ∨ ¬(n0 < n2 → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦ |
⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝
# x = n2 + n1, n2 ≠ 0, x ≠ [], ⌜n1 + n⌝ < #((σ to n) + ⌜x⌝ ), finp((σ to n) + ⌜x⌝ ), ¬ # σ < ⌜n⌝ , ⌜(#((σ to n) + ⌜x⌝ )).n - n1 + n⌝ ≠ ⌜n2⌝ ∨ ¬(n0 < n2 → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; neq-fin-inf-03: ⊦ σ0 + ⌜x⌝ = ⌜nf0⌝ ↔ σ0 = ⌜nf0⌝ ; inf-not-to: ⊦ ⌜nf⌝ ≠ σ to n; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ + ⌜n1⌝ ↔ n + m < n0 + n1; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf ⊦ m < m + n ↔ n ≠ 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic Used terms: n1 + n, (σ to n) + ⌜x⌝
| ⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝ |
| # x = n2 + n1, n2 ≠ 0, x ≠ [], ⌜n1 + n⌝ < #((σ to n) + ⌜x⌝ ), finp((σ to n) + ⌜x⌝ ), ¬ # σ < ⌜n⌝ , ⌜(#((σ to n) + ⌜x⌝ )).n - n1 + n⌝ ≠ ⌜n2⌝ ∨ ¬(n0 < n2 → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) ⊦ |
# x = n2 + n1, ⌜x0⌝ = (σ to n) + ⌜x⌝ , (x0 from n1 + n)[n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ ⊦
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from-fin: ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; sel-fin: ⊦ ⌜x⌝ [n] = x[n]; ⊦ ⌜x⌝ = ⌜x0⌝ ↔ x = x0; (s) ⊦ finp(⌜x⌝ ); (s) ⊦ m < n → n ≠ 0; (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m + n - m = n; (s) ⊦ m < m + n ↔ n ≠ 0; (s) n0 ≤ n ⊦ m < n - n0 ↔ m + n0 < n; (s) ⊦ m < n → m ≤ n; (s) ⊦ ⌜n⌝ = ⌜n0⌝ ↔ n = n0; (s) ⊦ m + n - n + n1 = m - n1; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ .n = n; (s) n∞ ≠ ∞ ⊦ (⌜m⌝ + n∞).n = m + n∞.n; (s) ⊦ ⌜n⌝ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ + ⌜n1⌝ ↔ n + m < n0 + n1; (s)
| # x = n2 + n1, ⌜x0⌝ = (σ to n) + ⌜x⌝ , (x0 from n1 + n)[n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ ⊦ |
⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n])
# ⌜x0⌝ = #((σ to n) + ⌜x⌝ ), # x = n2 + n1, (x0 from n1 + n)[n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ , ∀ n0. ⌜n0⌝ < # ⌜x0⌝ → ⌜x0⌝ [n0] = ((σ to n) + ⌜x⌝ )[n0] ⊦
Used terms: (σ to n) + ⌜x⌝ , ⌜x0⌝
| ⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n]) |
| # ⌜x0⌝ = #((σ to n) + ⌜x⌝ ), # x = n2 + n1, (x0 from n1 + n)[n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ , ∀ n0. ⌜n0⌝ < # ⌜x0⌝ → ⌜x0⌝ [n0] = ((σ to n) + ⌜x⌝ )[n0] ⊦ |
# x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ , ∀ n3. n3 < # x0 → x0[n3] = ((σ to n) + ⌜x⌝ )[n3] ⊦
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; sel-fin: ⊦ ⌜x⌝ [n] = x[n]; get-from-01: m + m0 < # x ⊦ (x from m)[m0] = x[m + m0]; c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m = m0 + n0 ∧ n < n0 → m0 + n < m; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0; (s)
| # x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ , ∀ n3. n3 < # x0 → x0[n3] = ((σ to n) + ⌜x⌝ )[n3] ⊦ |
# x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ , (n1 + n) + n0 < # x0 → x0[(n1 + n) + n0] = ((σ to n) + ⌜x⌝ )[(n1 + n) + n0] ⊦
Used terms: (n1 + n) + n0
| # x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ , (n1 + n) + n0 < # x0 → x0[(n1 + n) + n0] = ((σ to n) + ⌜x⌝ )[(n1 + n) + n0] ⊦ |
# x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] = ((σ to n) + ⌜x⌝ )[(n1 + n) + n0], x0[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ ⊦
Used simplifier rules: ⊦ m = m0 + n0 ∧ n < n0 → m0 + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic
| # x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] = ((σ to n) + ⌜x⌝ )[(n1 + n) + n0], x0[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ ⊦ |
# x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] = ((σ to n) + ⌜x⌝ )[(n1 + n) + n0], ((σ to n) + ⌜x⌝ )[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ ⊦
| # x = n2 + n1, n + n2 + n1 = # x0, x0[(n1 + n) + n0] = ((σ to n) + ⌜x⌝ )[(n1 + n) + n0], ((σ to n) + ⌜x⌝ )[(n1 + n) + n0] ≠ x[n1 + n0], x ≠ [], n0 < n2, ¬ # σ < ⌜n⌝ ⊦ |
⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]
Used simplifier rules: get-append-ls: ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; sel-fin: ⊦ ⌜x⌝ [n] = x[n]; ⊦ ⌜n⌝ .n = n; (s) ⊦ m + n - m = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n1 + n + m < n0; (s) ⊦ ¬ m + n < m; (s) add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf Used terms: (n1 + n) + n0, ⌜x⌝ , σ to n
| ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n] |
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.