| t ≠ leaf ⊦ t ≤ a → ¬ a < t.toList.last |
t ≠ leaf, a < t.toList.last, t ≤ a ⊦
| t ≠ leaf, a < t.toList.last, t ≤ a ⊦ |
branch(t0, a0, t1) ≠ leaf, a < branch(t0, a0, t1).toList.last, branch(t0, a0, t1) ≤ a, ∀ a. ¬(t1 ≠ leaf ∧ a < t1.toList.last ∧ t1 ≤ a), ∀ a. ¬(t0 ≠ leaf ∧ a < t0.toList.last ∧ t0 ≤ a) ⊦
Used simplifier rules: tree freely generated by leaf, branch;;
| branch(t0, a0, t1) ≠ leaf, a < branch(t0, a0, t1).toList.last, branch(t0, a0, t1) ≤ a, ∀ a. ¬(t1 ≠ leaf ∧ a < t1.toList.last ∧ t1 ≤ a), ∀ a. ¬(t0 ≠ leaf ∧ a < t0.toList.last ∧ t0 ≤ a) ⊦ |
t1 ≠ leaf, a0 < (a0 ' + t1.toList).last, a < (a0 ' + t1.toList).last, t1 ≤ a, t0 ≤ a, ¬ a < a0, ∀ a1. ¬ a1 < t1.toList.last ∨ ¬ t1 ≤ a1, t0 = leaf ∨ (∀ a1. ¬ a1 < t0.toList.last ∨ ¬ t0 ≤ a1) ⊦
Used simplifier rules: tree-le-elem-rec: ⊦ branch(t0, b, t1) ≤ a ↔ t0 ≤ a ∧ ¬ a < b ∧ t1 ≤ a; toList-rec: ⊦ branch(t0, a, t1).toList = t0.toList + (a + t1.toList); tree-le-elem-base: ⊦ leaf ≤ a; toList-base: ⊦ leaf.toList = []; ⊦ ¬ a < a; (s) ⊦ a '.last = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x + [] = x; (s) nll: ⊦ ¬ b < a ∧ b < c → a < c; (forward) from specification oelem ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a + x = a ' + x; (s) ⊦ leaf ≠ branch(t, val, t0); (s)
| t1 ≠ leaf, a0 < (a0 ' + t1.toList).last, a < (a0 ' + t1.toList).last, t1 ≤ a, t0 ≤ a, ¬ a < a0, ∀ a1. ¬ a1 < t1.toList.last ∨ ¬ t1 ≤ a1, t0 = leaf ∨ (∀ a1. ¬ a1 < t0.toList.last ∨ ¬ t0 ≤ a1) ⊦ |
t1.toList ≠ [], t1 ≠ leaf, a < (a0 ' + t1.toList).last, a0 < (a0 ' + t1.toList).last, t0 ≤ a, t1 ≤ a, ¬ a < a0, ∀ a1. ¬ a1 < t1.toList.last ∨ ¬ t1 ≤ a1, t0 = leaf ∨ (∀ a1. ¬ a1 < t0.toList.last ∨ ¬ t0 ≤ a1) ⊦
Used simplifier rules: nll: ⊦ ¬ b < a ∧ b < c → a < c; (forward) from specification oelem ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a '.last = a; (s) ⊦ ¬ a < a; (s) Used formulas: t1.toList = []
| t1.toList ≠ [], t1 ≠ leaf, a < (a0 ' + t1.toList).last, a0 < (a0 ' + t1.toList).last, t0 ≤ a, t1 ≤ a, ¬ a < a0, ∀ a1. ¬ a1 < t1.toList.last ∨ ¬ t1 ≤ a1, t0 = leaf ∨ (∀ a1. ¬ a1 < t0.toList.last ∨ ¬ t0 ≤ a1) ⊦ |
t1.toList ≠ [], t1 ≠ leaf, a < t1.toList.last, a0 < t1.toList.last, t1 ≤ a, t0 ≤ a, ¬ a < a0, ∀ a1. ¬ a1 < t1.toList.last ∨ ¬ t1 ≤ a1, t0 = leaf ∨ (∀ a1. ¬ a1 < t0.toList.last ∨ ¬ t0 ≤ a1) ⊦
Used simplifier rules: nll: ⊦ ¬ b < a ∧ b < c → a < c; (forward) from specification oelem a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x ≠ [] → (a ' + x).last = x.last; (s)
| t1.toList ≠ [], t1 ≠ leaf, a < t1.toList.last, a0 < t1.toList.last, t1 ≤ a, t0 ≤ a, ¬ a < a0, ∀ a1. ¬ a1 < t1.toList.last ∨ ¬ t1 ≤ a1, t0 = leaf ∨ (∀ a1. ¬ a1 < t0.toList.last ∨ ¬ t0 ≤ a1) ⊦ |
Used terms: a
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.