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