[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 reach-reachnext (conclusion) (back to tree)

⊦ reachable(r, r1, h) → (reachable(r, h[r1].nxt, h) ↔ ¬(h[r1].nxt = null ∨ ¬ h[r1].nxt ∈ h))

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof reach-reachnext (previous step) (back to tree)

¬(reachable(r, h[r1].nxt, h) ↔ ¬(h[r1].nxt = null ∨ ¬ h[r1].nxt ∈ h)), reachable(r, r1, h) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof reach-reachnext (previous step) (back to tree)

¬(reachable(r, h[r1].nxt, h) ↔ h[r1].nxt ≠ null ∧ h[r1].nxt ∈ h), reachable(r, r1, h) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:reachable-def, seq: ⊦ reachable(r, r0, h) ↔ (∃ x. path(r ' + x, h) ∧ (r ' + x).last = r0), subst:[h, r0, r] → [h, r1, r], <all paths>

Additional information

Used terms: h, r1, r

Proof step 4 from proof reach-reachnext (previous step) (back to tree)

⊦ reachable(r, r0, h) ↔ (∃ x. path(r ' + x, h) ∧ (r ' + x).last = r0)

Lemma reachable-def

Proof step 5 from proof reach-reachnext (previous step) (back to tree)

¬(reachable(r, h[r1].nxt, h) ↔ h[r1].nxt ≠ null ∧ h[r1].nxt ∈ h), ∃ x. path(r ' + x, h) ∧ (r ' + x).last = r1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 6 from proof reach-reachnext (previous step) (back to tree)

¬(reachable(r, h[(r ' + x).last].nxt, h) ↔ h[(r ' + x).last].nxt ≠ null ∧ h[(r ' + x).last].nxt ∈ h), path(r ' + x, h) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:reachable-def, seq: ⊦ reachable(r, r0, h) ↔ (∃ x. path(r ' + x, h) ∧ (r ' + x).last = r0), subst:[h, r0, r] → [h, h[(r ' + x).last].nxt, r], <all paths>

Additional information

Used terms: h, h[(r ' + x).last].nxt, r

Proof step 7 from proof reach-reachnext (previous step) (back to tree)

⊦ reachable(r, r0, h) ↔ (∃ x. path(r ' + x, h) ∧ (r ' + x).last = r0)

Lemma reachable-def

Proof step 8 from proof reach-reachnext (previous step) (back to tree)

path(r ' + x, h) ⊦ (∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = h[(r ' + x).last].nxt) ↔ h[(r ' + x).last].nxt ≠ null ∧ h[(r ' + x).last].nxt ∈ h

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 9 from proof reach-reachnext (previous step) (back to tree)

path(r ' + x, h) ⊦ (∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = h[(r ' + x).last].nxt) ↔ h[(r ' + x).last].nxt ≠ null ∧ h[(r ' + x).last].nxt ∈ h

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 10 from proof reach-reachnext (previous step) (back to tree)

path(r ' + x, h), ∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = h[(r ' + x).last].nxt ⊦ h[(r ' + x).last].nxt ≠ null ∧ h[(r ' + x).last].nxt ∈ h

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 11 from proof reach-reachnext (previous step) (back to tree)

(r ' + x0).last = h[(r ' + x).last].nxt, path(r ' + x0, h), path(r ' + x, h) ⊦ (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: x

Additional information

Used simplifier rules: list('a) freely generated by [], +;;

Proof step 12 from proof reach-reachnext (previous step) (back to tree)

(r ' + x0).last = h[(r ' + []).last].nxt, path(r ' + [], h), path(r ' + x0, h) ⊦ (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-one: ⊦ path(r ', h) ↔ r ∈ h ∧ r ≠ null; a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ x + [] = x; (s) ⊦ a '.last = a; (s)

Proof step 13 from proof reach-reachnext (previous step) (back to tree)

(r ' + x0).last = h[r].nxt, r ≠ null, path(r ' + x0, h), r ∈ h ⊦ h[r].nxt ≠ null ∧ h[r].nxt ∈ h

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: x0

Additional information

Used simplifier rules: path-one: ⊦ path(r ', h) ↔ r ∈ h ∧ r ≠ null; list('a) freely generated by [], +;; ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification polylist

Proof step 14 from proof reach-reachnext (previous step) (back to tree)

(r ' + (r0 + x)).last = h[r].nxt, r ≠ null, path(r ' + (r0 + x), h), r ∈ h, ∀ r, h. (r ' + x).last = h[r].nxt ∧ r ≠ null ∧ path(r ' + x, h) ∧ r ∈ h → h[r].nxt ≠ null ∧ h[r].nxt ∈ h ⊦ h[r].nxt ≠ null ∧ h[r].nxt ∈ h

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-cons: ⊦ path(r ' + r0 ' + x, h) ↔ r ∈ h ∧ r ≠ null ∧ h[r].nxt = r0 ∧ path(r0 ' + x, h); a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ a + x = a ' + x; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s)

Proof step 15 from proof reach-reachnext (previous step) (back to tree)

(h[r].nxt ' + x).last = h[r].nxt, r ≠ null, path(h[r].nxt ' + x, h), r ∈ h, ∀ r, h. (r ' + x).last = h[r].nxt ∧ r ≠ null ∧ path(r ' + x, h) ∧ r ∈ h → h[r].nxt ≠ null ∧ h[r].nxt ∈ h ⊦ h[r].nxt ≠ null ∧ h[r].nxt ∈ h

User applied rule constructor cut

And closed the goal!

Rule argument

var: x

Additional information

Used simplifier rules: path-one: ⊦ path(r ', h) ↔ r ∈ h ∧ r ≠ null; path-cons: ⊦ path(r ' + r0 ' + x, h) ↔ r ∈ h ∧ r ≠ null ∧ h[r].nxt = r0 ∧ path(r0 ' + x, h); list('a) freely generated by [], +;; ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ a '.last = a; (s) ⊦ x + [] = x; (s)

Proof step 16 from proof reach-reachnext (previous step) (back to tree)

(r ' + x0).last = h[(r ' + (r0 + x1)).last].nxt, path(r ' + (r0 + x1), h), path(r ' + x0, h), ∀ r, x0, h. (r ' + x0).last = h[(r ' + x1).last].nxt ∧ path(r ' + x0, h) ∧ path(r ' + x1, h) → (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h ⊦ (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-cons: ⊦ path(r ' + r0 ' + x, h) ↔ r ∈ h ∧ r ≠ null ∧ h[r].nxt = r0 ∧ path(r0 ' + x, h); a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ a + x = a ' + x; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s)

Proof step 17 from proof reach-reachnext (previous step) (back to tree)

(r ' + x0).last = h[(h[r].nxt ' + x1).last].nxt, r ≠ null, path(h[r].nxt ' + x1, h), path(r ' + x0, h), r ∈ h, ∀ r, x0, h. (r ' + x0).last = h[(r ' + x1).last].nxt ∧ path(r ' + x0, h) ∧ path(r ' + x1, h) → (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h ⊦ (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x0

Additional information

Used simplifier rules: path-one: ⊦ path(r ', h) ↔ r ∈ h ∧ r ≠ null; list('a) freely generated by [], +;; ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ a '.last = a; (s)

Proof step 18 from proof reach-reachnext (previous step) (back to tree)

(r ' + x0).last = h[(h[r].nxt ' + x1).last].nxt, x0 = r0 + x, r ≠ null, path(r ' + x0, h), path(h[r].nxt ' + x1, h), r ∈ h, ∀ r, x0, h. (r ' + x0).last = h[(r ' + x1).last].nxt ∧ path(r ' + x0, h) ∧ path(r ' + x1, h) → (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h ⊦ (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-cons: ⊦ path(r ' + r0 ' + x, h) ↔ r ∈ h ∧ r ≠ null ∧ h[r].nxt = r0 ∧ path(r0 ' + x, h); a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a + x = a ' + x; (s)

Proof step 19 from proof reach-reachnext (previous step) (back to tree)

(h[r].nxt ' + x).last = h[(h[r].nxt ' + x1).last].nxt, r ≠ null, path(h[r].nxt ' + x, h), path(h[r].nxt ' + x1, h), r ∈ h, ∀ r, x0, h. (r ' + x0).last = h[(r ' + x1).last].nxt ∧ path(r ' + x0, h) ∧ path(r ' + x1, h) → (r ' + x0).last ≠ null ∧ (r ' + x0).last ∈ h ⊦ (h[r].nxt ' + x).last ≠ null ∧ (h[r].nxt ' + x).last ∈ h

User applied rule all left

And closed the goal!

Rule argument

pos: left 6 terms: h[r].nxt, x, h abort: F discard: T computed: T

Additional information

Used terms: h[r].nxt, x, h

Proof step 20 from proof reach-reachnext (previous step) (back to tree)

h[(r ' + x).last].nxt ≠ null, path(r ' + x, h), h[(r ' + x).last].nxt ∈ h ⊦ ∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = h[(r ' + x).last].nxt

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 21 from proof reach-reachnext (previous step) (back to tree)

h[(r ' + x).last].nxt ≠ null, path(r ' + x, h), h[(r ' + x).last].nxt ∈ h ⊦ ∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = h[(r ' + x).last].nxt

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: x + h[(r ' + x).last].nxt abort: F discard: T computed: F

Additional information

Used terms: x + h[(r ' + x).last].nxt

Proof step 22 from proof reach-reachnext (previous step) (back to tree)

h[(r ' + x).last].nxt ≠ null, path(r ' + x, h), h[(r ' + x).last].nxt ∈ h ⊦ path(r ' + (x + h[(r ' + x).last].nxt), h) ∧ (r ' + (x + h[(r ' + x).last].nxt)).last = h[(r ' + x).last].nxt

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ (a ' + x + b ').last = b; (s) ⊦ x + a = x + a '; (s)

Proof step 23 from proof reach-reachnext (previous step) (back to tree)

h[(r ' + x).last].nxt ≠ null, path(r ' + x, h), h[(r ' + x).last].nxt ∈ h, ¬ path(r ' + x + h[(r ' + x).last].nxt ', h) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: x

Additional information

Used simplifier rules: path-one: ⊦ path(r ', h) ↔ r ∈ h ∧ r ≠ null; path-two: ⊦ path(r ' + r0 ', h) ↔ r ∈ h ∧ r0 ∈ h ∧ r ≠ null ∧ r0 ≠ null ∧ h[r].nxt = r0; list('a) freely generated by [], +;; ⊦ x + [] = x; (s) ⊦ a '.last = a; (s) ⊦ [] + x = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification polylist

Proof step 24 from proof reach-reachnext (previous step) (back to tree)

h[(r ' + (r0 + x0)).last].nxt ≠ null, path(r ' + (r0 + x0), h), h[(r ' + (r0 + x0)).last].nxt ∈ h, ¬ path(r ' + (r0 + x0) + h[(r ' + (r0 + x0)).last].nxt ', h), ∀ h, r. ¬(h[(r ' + x0).last].nxt ≠ null ∧ path(r ' + x0, h) ∧ h[(r ' + x0).last].nxt ∈ h ∧ ¬ path(r ' + x0 + h[(r ' + x0).last].nxt ', h)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-cons: ⊦ path(r ' + r0 ' + x, h) ↔ r ∈ h ∧ r ≠ null ∧ h[r].nxt = r0 ∧ path(r0 ' + x, h); a: ⊦ (x + y) + z = x + y + z; from specification polylist ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a + x = a ' + x; (s)

Proof step 25 from proof reach-reachnext (previous step) (back to tree)

h[(h[r].nxt ' + x0).last].nxt ≠ null, r ≠ null, path(h[r].nxt ' + x0, h), r ∈ h, h[(h[r].nxt ' + x0).last].nxt ∈ h, ¬ path(h[r].nxt ' + x0 + h[(h[r].nxt ' + x0).last].nxt ', h), ∀ h0, r1. h0[(r1 ' + x0).last].nxt = null ∨ ¬ path(r1 ' + x0, h0) ∨ ¬ h0[(r1 ' + x0).last].nxt ∈ h0 ∨ path(r1 ' + x0 + h0[(r1 ' + x0).last].nxt ', h0) ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 7 terms: h, h[r].nxt

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification polylist Used terms: h, h[r].nxt

Proof Tree for reach-reachnext (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