[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 1 from proof toList-ordered-tree-ordered (conclusion) (back to tree)

⊦ ordered≤(t.toList) → ordered≤(t)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t.toList), ¬ ordered≤(t) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: t

Additional information

Used simplifier rules: toList-base: ⊦ leaf.toList = []; ordered-base: ⊦ ordered≤(leaf); tree freely generated by leaf, branch;; ⊦ ordered≤([]); (s)

Proof step 3 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(branch(t0, a, t1).toList), ¬ ordered≤(branch(t0, a, t1)) ⊦ ordered≤(t0.toList) ∧ ¬ ordered≤(t0), ordered≤(t1.toList) ∧ ¬ ordered≤(t1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: toList-rec: ⊦ branch(t0, a, t1).toList = t0.toList + (a + t1.toList); ⊦ ordered≤(x + y) → ordered≤(x); (s) ⊦ ordered≤(x + y) → ordered≤(y); (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a + x = a ' + x; (s)

Proof step 4 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0.toList + a ' + t1.toList), ordered≤(t1), ordered≤(t0), ¬ ordered≤(branch(t0, a, t1)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:ordered-rec, seq: ⊦ ordered≤(branch(t0, a, t1)) ↔ ordered≤(t0) ∧ t0 ≤ a ∧ a ≤ t1 ∧ ordered≤(t1), subst:[t0, a, t1] → [t0, a, t1], <all paths>

Additional information

Used terms: t0, a, t1

Proof step 5 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ ordered≤(branch(t0, a, t1)) ↔ ordered≤(t0) ∧ t0 ≤ a ∧ a ≤ t1 ∧ ordered≤(t1)

Lemma ordered-rec

Proof step 6 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0), ordered≤(t1), ordered≤(t0.toList + a ' + t1.toList), ¬ ordered≤(t0) ∨ ¬ t0 ≤ a ∨ ¬ a ≤ t1 ∨ ¬ ordered≤(t1) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0.toList + a ' + t1.toList), ordered≤(t1), ordered≤(t0), ¬ t0 ≤ a ∨ ¬ a ≤ t1 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 4

Additional information

Proof step 8 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0), ordered≤(t1), ordered≤(t0.toList + a ' + t1.toList), ¬ t0 ≤ a ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:tree-le-elem-unfold, seq: ⊦ t ≤ a ↔ (∀ b. b ∈ t → ¬ a < b), subst:[t, a] → [t0, a], <all paths>

Additional information

Used terms: t0, a

Proof step 9 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ t ≤ a ↔ (∀ b. b ∈ t → ¬ a < b)

Lemma tree-le-elem-unfold

Proof step 10 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0.toList + a ' + t1.toList), ordered≤(t1), ordered≤(t0), ∃ b. ¬(b ∈ t0 → ¬ a < b) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 11 from proof toList-ordered-tree-ordered (previous step) (back to tree)

a < b, ordered≤(t0), ordered≤(t1), ordered≤(t0.toList + a ' + t1.toList), b ∈ t0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:orderedle-all, seq: ⊦ ordered≤(x) ↔ (∀ m, n. m ≤ n ∧ n < # x → ¬ x[n] < x[m]), subst:[x] → [t0.toList + a ' + t1.toList], <all paths>

Additional information

Used terms: t0.toList + a ' + t1.toList

Proof step 12 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ ordered≤(x) ↔ (∀ m, n. m ≤ n ∧ n < # x → ¬ x[n] < x[m])

A spec-lemma

Proof step 13 from proof toList-ordered-tree-ordered (previous step) (back to tree)

a < b, ordered≤(t1), ordered≤(t0), b ∈ t0, ∀ m, n. m ≤ n ∧ n < #(t0.toList + a ' + t1.toList) → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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 + 1 ↔ ¬ n < m; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s) ⊦ #(x + y) = # x + # y; (s)

Proof step 14 from proof toList-ordered-tree-ordered (previous step) (back to tree)

a < b, ordered≤(t0), ordered≤(t1), b ∈ t0, ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:in-tree-in-toList, seq: ⊦ a ∈ t ↔ a ∈ t.toList, subst:[a, t] → [b, t0], <all paths>

Additional information

Used terms: b, t0

Proof step 15 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ a ∈ t ↔ a ∈ t.toList

Lemma in-tree-in-toList

Proof step 16 from proof toList-ordered-tree-ordered (previous step) (back to tree)

a < b, ordered≤(t1), ordered≤(t0), b ∈ t0.toList, ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del, name:in-get, seq: ⊦ a ∈ x ↔ (∃ n. n < # x ∧ x[n] = a), subst:[a, x] → [b, t0.toList], <all paths>

Additional information

Used terms: b, t0.toList

Proof step 17 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ a ∈ x ↔ (∃ n. n < # x ∧ x[n] = a)

A spec-lemma

Proof step 18 from proof toList-ordered-tree-ordered (previous step) (back to tree)

a < b, ordered≤(t0), ordered≤(t1), ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m], ∃ n. n < # t0.toList ∧ t0.toList[n] = b ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x = 0 ↔ x = []; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic

Proof step 19 from proof toList-ordered-tree-ordered (previous step) (back to tree)

t0.toList ≠ [], a < t0.toList[n], n < # t0.toList, ordered≤(t0), ordered≤(t1), ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

User applied rule all left

And closed the goal!

Rule argument

pos: left 6 terms: n, # t0.toList abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ m < n → m ≤ n; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ (x + a ' + y)[# x] = a; (s) ⊦ n < # x → (x + y)[n] = x[n]; (s) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: n, # t0.toList

Proof step 20 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0), ordered≤(t1), ordered≤(t0.toList + a ' + t1.toList), ¬ a ≤ t1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:elem-le-tree-unfold, seq: ⊦ a ≤ t ↔ (∀ b. b ∈ t → ¬ b < a), subst:[a, t] → [a, t1], <all paths>

Additional information

Used terms: a, t1

Proof step 21 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ a ≤ t ↔ (∀ b. b ∈ t → ¬ b < a)

Lemma elem-le-tree-unfold

Proof step 22 from proof toList-ordered-tree-ordered (previous step) (back to tree)

ordered≤(t0.toList + a ' + t1.toList), ordered≤(t1), ordered≤(t0), ∃ b. ¬(b ∈ t1 → ¬ b < a) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 23 from proof toList-ordered-tree-ordered (previous step) (back to tree)

b < a, ordered≤(t0), ordered≤(t1), ordered≤(t0.toList + a ' + t1.toList), b ∈ t1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:orderedle-all, seq: ⊦ ordered≤(x) ↔ (∀ m, n. m ≤ n ∧ n < # x → ¬ x[n] < x[m]), subst:[x] → [t0.toList + a ' + t1.toList], <all paths>

Additional information

Used terms: t0.toList + a ' + t1.toList

Proof step 24 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ ordered≤(x) ↔ (∀ m, n. m ≤ n ∧ n < # x → ¬ x[n] < x[m])

A spec-lemma

Proof step 25 from proof toList-ordered-tree-ordered (previous step) (back to tree)

b < a, ordered≤(t1), ordered≤(t0), b ∈ t1, ∀ m, n. m ≤ n ∧ n < #(t0.toList + a ' + t1.toList) → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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 + 1 ↔ ¬ n < m; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s) ⊦ #(x + y) = # x + # y; (s)

Proof step 26 from proof toList-ordered-tree-ordered (previous step) (back to tree)

b < a, ordered≤(t0), ordered≤(t1), b ∈ t1, ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:in-tree-in-toList, seq: ⊦ a ∈ t ↔ a ∈ t.toList, subst:[a, t] → [b, t1], <all paths>

Additional information

Used terms: b, t1

Proof step 27 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ a ∈ t ↔ a ∈ t.toList

Lemma in-tree-in-toList

Proof step 28 from proof toList-ordered-tree-ordered (previous step) (back to tree)

b < a, ordered≤(t1), ordered≤(t0), b ∈ t1.toList, ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del, name:in-get, seq: ⊦ a ∈ x ↔ (∃ n. n < # x ∧ x[n] = a), subst:[a, x] → [b, t1.toList], <all paths>

Additional information

Used terms: b, t1.toList

Proof step 29 from proof toList-ordered-tree-ordered (previous step) (back to tree)

⊦ a ∈ x ↔ (∃ n. n < # x ∧ x[n] = a)

A spec-lemma

Proof step 30 from proof toList-ordered-tree-ordered (previous step) (back to tree)

b < a, ordered≤(t0), ordered≤(t1), ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m], ∃ n. n < # t1.toList ∧ t1.toList[n] = b ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x = 0 ↔ x = []; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic

Proof step 31 from proof toList-ordered-tree-ordered (previous step) (back to tree)

t1.toList ≠ [], t1.toList[n] < a, n < # t1.toList, ordered≤(t0), ordered≤(t1), ∀ m, n. m ≤ n ∧ ¬ # t0.toList + # t1.toList < n → ¬ (t0.toList + a ' + t1.toList)[n] < (t0.toList + a ' + t1.toList)[m] ⊦

User applied rule all left

And closed the goal!

Rule argument

pos: left 6 terms: # t0.toList, # t0.toList + n +1 abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ m ≤ m + n; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ m +1 = m + 1; (s) ⊦ (x + y)[n + # x] = y[n]; (s) ⊦ (a ' + x)[n + 1] = x[n]; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ (x + a ' + y)[# x] = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: # t0.toList, # t0.toList + n +1

Proof Tree for toList-ordered-tree-ordered (View conclusion)

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.

the proof tree