| ⊦ ⌜n⌝ < # σ → σ from n = σ[n] + (σ from n + 1) |
σ from n ≠ σ[n] + (σ from n + 1), ⌜n⌝ < # σ ⊦
| σ from n ≠ σ[n] + (σ from n + 1), ⌜n⌝ < # σ ⊦ |
σ from n ≠ ⌜σ[n] '⌝ + (σ from n + 1), ⌜n⌝ < # σ ⊦
Used simplifier rules: cons-append: ⊦ a + σ = ⌜a '⌝ + σ;
| σ from n ≠ ⌜σ[n] '⌝ + (σ from n + 1), ⌜n⌝ < # σ ⊦ |
⌜x⌝ from n ≠ ⌜⌜x⌝ [n] '⌝ + (⌜x⌝ from n + 1), ⌜n⌝ < # ⌜x⌝ ⊦
⌜nf⌝ from n ≠ ⌜⌜nf⌝ [n] '⌝ + (⌜nf⌝ from n + 1), ⌜n⌝ < # ⌜nf⌝ ⊦
Used simplifier rules: stream('a) freely generated by ⌜ ⌝, ⌜ ⌝;;
| ⌜x⌝ from n ≠ ⌜⌜x⌝ [n] '⌝ + (⌜x⌝ from n + 1), ⌜n⌝ < # ⌜x⌝ ⊦ |
x[n] ' + (x from n + 1) ≠ x from n, x ≠ [], n < # x ⊦
Used simplifier rules: sel-fin: ⊦ ⌜x⌝ [n] = x[n]; from-fin: ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; eq-stream-to-list-2-1: ⊦ ⌜x⌝ + ⌜y⌝ = ⌜z⌝ ↔ x + y = z; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; ⊦ # x = 0 ↔ x = []; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s)
| x[n] ' + (x from n + 1) ≠ x from n, x ≠ [], n < # x ⊦ |
(a + x0)[n] ' + (a + x0 from n + 1) ≠ a + x0 from n, a + x0 ≠ [], n < #(a + x0), ∀ n. ¬(x0[n] ' + (x0 from n + 1) ≠ x0 from n ∧ x0 ≠ [] ∧ n < # x0) ⊦
Used simplifier rules: list('a) freely generated by [], +;;
| (a + x0)[n] ' + (a + x0 from n + 1) ≠ a + x0 from n, a + x0 ≠ [], n < #(a + x0), ∀ n. ¬(x0[n] ' + (x0 from n + 1) ≠ x0 from n ∧ x0 ≠ [] ∧ n < # x0) ⊦ |
(a ' + x0)[n] ' + (x0 from n) ≠ a ' + x0 from n, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦
Used simplifier rules: from-succ-cons-l-lem: ⊦ a ' + x from n + 1 = x from n; ⊦ m < n ↔ ¬ n ≤ m; (ss) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < n + 1 ↔ ¬ n < m; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s) ⊦ a + x = a ' + x; (s) ⊦ a ' + x ≠ []; (s)
| (a ' + x0)[n] ' + (x0 from n) ≠ a ' + x0 from n, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦ |
n ≠ 0 ⊦ (a ' + x)[(* n)] = x[n -1]
x0[n -1] ' + (x0 from n) ≠ a ' + x0 from n, n ≠ 0, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦
Used simplifier rules: from-zero-l: ⊦ x from 0 = x; ⊦ (a ' + x)[0] = a; (s) ⊦ # x = # z → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: n, x0, a
| n ≠ 0 ⊦ (a ' + x)[(* n)] = x[n -1] |
| x0[n -1] ' + (x0 from n) ≠ a ' + x0 from n, n ≠ 0, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦ |
x0[n - 1] ' + (x0 from n) ≠ a ' + x0 from n, n ≠ 0, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦
Used simplifier rules: ⊦ n -1 = n - 1; (s)
| x0[n - 1] ' + (x0 from n) ≠ a ' + x0 from n, n ≠ 0, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦ |
n = m + 1, x0[m] ' + (x0 from n) ≠ a ' + x0 from n, n ≠ 0, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦
Used simplifier rules: n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: n, m
| n = m + 1, x0[m] ' + (x0 from n) ≠ a ' + x0 from n, n ≠ 0, n ≤ # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ x0 = [] ∨ ¬ n0 < # x0 ⊦ |
x0[m] ' + (x0 from m + 1) ≠ x0 from m, x0 ≠ [], m < # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ ¬ n0 < # x0 ⊦
Used simplifier rules: from-succ-cons-l-lem: ⊦ a ' + x from n + 1 = x from n; ⊦ # x = 0 ↔ x = []; (s) 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 + 1 ≤ n ↔ m < n; (s) ⊦ m + 1 ≠ 0; (s) a: ⊦ (x + y) + z = x + y + z; from specification list
| x0[m] ' + (x0 from m + 1) ≠ x0 from m, x0 ≠ [], m < # x0, ∀ n0. x0[n0] ' + (x0 from n0 + 1) = x0 from n0 ∨ ¬ n0 < # x0 ⊦ |
Used terms: m
| ⌜nf⌝ from n ≠ ⌜⌜nf⌝ [n] '⌝ + (⌜nf⌝ from n + 1), ⌜n⌝ < # ⌜nf⌝ ⊦ |
⌜nf from n⌝ ≠ ⌜nf(n) '⌝ + ⌜nf from n + 1⌝ ⊦
Used simplifier rules: sel-inf: ⊦ ⌜nf⌝ [n] = nf(n); from-inf: ⊦ ⌜nf⌝ from n = ⌜nf from n⌝ ; size-inf: ⊦ # ⌜nf⌝ = ∞; ⊦ ⌜m⌝ < ∞; (s)
| ⌜nf from n⌝ ≠ ⌜nf(n) '⌝ + ⌜nf from n + 1⌝ ⊦ |
⊦ nf from n = (λ m. nf(n + m))
⌜nf from n⌝ ≠ ⌜nf(n) '⌝ + ⌜λ m. nf((n + 1) + m)⌝ ⊦
Used terms: n + 1, nf
| ⊦ nf from n = (λ m. nf(n + m)) |
| ⌜nf from n⌝ ≠ ⌜nf(n) '⌝ + ⌜λ m. nf((n + 1) + m)⌝ ⊦ |
⊦ ⌜a '⌝ + ⌜nf⌝ = ⌜λ n. (n = 0 ⊃ a;nf(n -1))⌝
⌜nf from n⌝ ≠ ⌜λ n0. (n0 = 0 ⊃ nf(n);nf((n + 1) + n0 -1))⌝ ⊦
Used terms: λ m. nf((n + 1) + m), nf(n)
| ⊦ ⌜a '⌝ + ⌜nf⌝ = ⌜λ n. (n = 0 ⊃ a;nf(n -1))⌝ |
| ⌜nf from n⌝ ≠ ⌜λ n0. (n0 = 0 ⊃ nf(n);nf((n + 1) + n0 -1))⌝ ⊦ |
nf(n0 + n) ≠ (n0 = 0 ⊃ nf(n);nf(n + 1 + (n0 - 1))) ⊦
Used simplifier rules: get-from-inf: ⊦ ((nf from n))(m) = nf(m + n); ⊦ ⌜nf⌝ = ⌜nf0⌝ ↔ nf = nf0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ n -1 = n - 1; (s)
| nf(n0 + n) ≠ (n0 = 0 ⊃ nf(n);nf(n + 1 + (n0 - 1))) ⊦ |
n0 ≠ 0, nf(n0 + n) ≠ nf(n + 1 + (n0 - 1)) ⊦
Used simplifier rules: ⊦ n + 0 = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic
| n0 ≠ 0, nf(n0 + n) ≠ nf(n + 1 + (n0 - 1)) ⊦ |
n0 ≠ 0, nf(n0 + n) ≠ nf(n + 1 + (n0 - 1)) ⊦
| n0 ≠ 0, nf(n0 + n) ≠ nf(n + 1 + (n0 - 1)) ⊦ |
Used simplifier rules: ⊦ m + 1 ≠ 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: n0, m
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.