| ⊦ ¬ # σ < n∞ ∧ ¬ # σ0 < n∞1 → (σ to∞ n∞) + σ0 to∞ n∞1 + n∞ = (σ to∞ n∞) + (σ0 to∞ n∞1) |
(σ to∞ n∞) + σ0 to∞ n∞1 + n∞ ≠ (σ to∞ n∞) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < n∞ ⊦
| (σ to∞ n∞) + σ0 to∞ n∞1 + n∞ ≠ (σ to∞ n∞) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < n∞ ⊦ |
(σ to∞ n∞) + σ0 to∞ n∞1 + n∞ ≠ (σ to∞ n∞) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < n∞ ⊦
| (σ to∞ n∞) + σ0 to∞ n∞1 + n∞ ≠ (σ to∞ n∞) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < n∞ ⊦ |
n∞ = ⌜n⌝ , (σ to∞ n∞) + σ0 to∞ n∞1 + n∞ ≠ (σ to∞ n∞) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < n∞ ⊦
Used simplifier rules: append-toinf-ls: ⊦ ¬ # σ < n∞ → σ + σ0 to∞ n∞ = σ to∞ n∞; toinf-inf: ⊦ σ to∞ ∞ = σ; append-cancel-l-02: ⊦ σ0 + σ = σ0 ↔ σ = [] ∨ ¬ finp(σ0); toinf-empty2: ⊦ ¬ # σ < n∞ → (σ to∞ n∞ = [] ↔ n∞ = ⌜0⌝ ); append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ; natinf freely generated by ∞, ⌜ ⌝;; ⊦ n∞ + ∞ = ∞; (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∞ < ∞ ↔ n∞ ≠ ∞; (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic ⊦ ⌜n⌝ ≠ ∞; (s)
| n∞ = ⌜n⌝ , (σ to∞ n∞) + σ0 to∞ n∞1 + n∞ ≠ (σ to∞ n∞) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < n∞ ⊦ |
(σ to n) + σ0 to∞ n∞1 + ⌜n⌝ ≠ (σ to n) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < ⌜n⌝ ⊦
Used simplifier rules: toinf-fin: ⊦ σ to∞ ⌜n⌝ = σ to n;
| (σ to n) + σ0 to∞ n∞1 + ⌜n⌝ ≠ (σ to n) + (σ0 to∞ n∞1), ¬ # σ0 < n∞1, ¬ # σ < ⌜n⌝ ⊦ |
Used simplifier rules: toinf-inf: ⊦ σ to∞ ∞ = σ; toinf-add: ⊦ σ to∞ ⌜n⌝ + ⌜m⌝ = σ to n + m; to-append-add: ⊦ ¬ # σ < ⌜n⌝ ∧ ¬ # σ0 < ⌜n1⌝ → (σ to n) + σ0 to n1 + n = (σ to n) + (σ0 to n1); append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; toinf-fin: ⊦ σ to∞ ⌜n⌝ = σ to n; natinf freely generated by ∞, ⌜ ⌝;; a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic 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⌝ = ∞; (s)
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.