[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 rem-stays-reachable-aux (conclusion) (back to tree)

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

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reach-alloc: ⊦ reachable(r, r1, h) → r1 ∈ h;

Proof step 3 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: h, r0, r

Proof step 4 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Lemma reachable-nodups-def

Proof step 5 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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 list[reflist] ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s)

Proof step 6 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 7 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 8 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 9 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Lemma reachable-nodups-def

Proof step 10 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), (r ' + x).last ∈ h, h[(r ' + x).last].nxt ∈ h, ¬ dups(x), ¬ r ∈ x, ∃ x0. path(r ' + x0, h[(r ' + x).last, ce]) ∧ (r ' + x0).last = h[(r ' + x).last].nxt ∧ ¬ dups(r ' + x0) ⊦ ∃ x0. path(r ' + x0 + h[(r ' + x).last].nxt ', h) ∧ (r ' + x).last ≠ r ∧ ¬ (r ' + x).last ∈ x0, ∃ x0. path(h[(r ' + x).last].nxt ' + x0 + h[(r ' + x).last].nxt ', h) ∧ ¬ (r ' + x).last ∈ x0, h[(r ' + x).last].nxt ≠ (r ' + x).last ∧ r = 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 list[reflist] ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s)

Proof step 11 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[y, x] → [x, r '], <all paths>

Additional information

Used terms: x, r '

Proof step 12 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 13 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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 '.last = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s)

Proof step 14 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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; reflist freely generated by [], +;; ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ st[a, d]; (s) ⊦ ¬ dups([]); (s) ⊦ ¬ a ∈ []; (s)

Proof step 15 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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 list[reflist] ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a + x = a ' + x; (s) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ st[a, d][a] = d; (s) ⊦ a ∈ st[a, d]; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s)

Proof step 16 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[y, x] → [x1, ce.nxt '], <all paths>

Additional information

Used simplifier rules: ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: x1, ce.nxt '

Proof step 17 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 18 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 19 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [x1, r0, x0]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: x1, a, y

Proof step 20 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[r0].nxt, r0 = h[r].nxt, x1 = x0 + r0 ', r ≠ ce.nxt, r ≠ null, r0 ≠ ce.nxt, r0 ≠ null, x1 ≠ [], path(ce.nxt ' + x1, h[r, ce]), r0 ∈ h, r ∈ h, ¬ dups(x1), ¬ r ∈ x1, ¬ ce.nxt ∈ x1 ⊦ ∃ x. path(r0 ' + x + r0 ', h) ∧ ¬ r ∈ x

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 list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s)

Proof step 21 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify, seq: ⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h)), subst:[ce, r0, h, x] → [ce, r, h, ce.nxt ' + x0 + h[r].nxt '], <all paths>

Additional information

Used simplifier rules: ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: ce, r, h, ce.nxt ' + x0 + h[r].nxt '

Proof step 22 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h))

Lemma path-modify

Proof step 23 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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 list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s)

Proof step 24 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: ce.nxt ' + x0 abort: F discard: T computed: F

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 ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: ce.nxt ' + x0

Proof step 25 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 26 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [x, r0, x1]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: x, a, y

Proof step 27 from proof rem-stays-reachable-aux (previous step) (back to tree)

(r ' + x0).last = h[r0].nxt, ce.nxt = h[h[r0].nxt].nxt, x = x1 + r0 ', h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, x ≠ [], path(r ' + x, h), path(r ' + x0, h[r0, ce]), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x), ¬ dups(x0), ¬ r ∈ x, ¬ r ∈ x0 ⊦ ∃ x0. path(r ' + x0 + h[r0].nxt ', h) ∧ r0 ≠ r ∧ ¬ r0 ∈ x0, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, h[r0].nxt ≠ r0 ∧ r = h[r0].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 list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s)

Proof step 28 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[y, x] → [x0, r '], <all paths>

Additional information

Used simplifier rules: ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: x0, r '

Proof step 29 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 30 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 31 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [x0, r1, x2]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: x0, a, y

Proof step 32 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[r1].nxt, r1 = h[r0].nxt, x0 = x2 + r1 ', r ≠ r0, r ≠ r1, r1 ≠ null, r1 ≠ ce.nxt, x0 ≠ [], path(r ' + x1 + r0 ', h), path(r ' + x0, h[r0, ce]), r0 ∈ h, r1 ∈ h, ¬ dups(x1), ¬ dups(x0), ¬ r ∈ x0, ¬ r0 ∈ x1, ¬ r ∈ x1 ⊦ ∃ x. path(r ' + x + r1 ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

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 list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s)

Proof step 33 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x2 + h[r0].nxt ', h[r0, ce]), path(r ' + x1 + r0 ', h), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2 ⊦ ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: r0 ∈ x2

Additional information

Used formulas: r0 ∈ x2

Proof step 34 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x1 + r0 ', h), path(r ' + x2 + h[r0].nxt ', h[r0, ce]), r0 ∈ h, h[r0].nxt ∈ h, r0 ∈ x2, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2 ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 35 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x2 + h[r0].nxt ', h[r0, ce]), path(r ' + x1 + r0 ', h), r0 ∈ x2, h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2 ⊦ ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list[reflist], name:firstoc-rew, seq: ⊦ a ∈ x ↔ (∃ y, z. x = y + a ' + z ∧ ¬ a ∈ y), subst:[x, a] → [x2, r0], <all paths>

Additional information

Used terms: x2, r0

Proof step 36 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ a ∈ x ↔ (∃ y, z. x = y + a ' + z ∧ ¬ a ∈ y)

A spec-lemma

Proof step 37 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x1 + r0 ', h), path(r ' + x2 + h[r0].nxt ', h[r0, ce]), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2, ∃ y, z. x2 = y + r0 ' + z ∧ ¬ r0 ∈ y ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

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 list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws)

Proof step 38 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ r0, r ≠ r0, r ≠ h[r0].nxt, path(r ' + (x + r0 ' + x0) + h[r0].nxt ', h[r0, ce]), path(r ' + x1 + r0 ', h), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x1), ¬ dups(x + x0), ¬ r0 ∈ x, ¬ r0 ∈ x0, ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x, ¬ h[r0].nxt ∈ x0, ¬ r ∈ x, ¬ r ∈ x0 ⊦ ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: path(r ' + x + r0 ', h[r0, ce]) ∧ path(r0 ' + x0 + h[r0].nxt ', h[r0, ce])

Additional information

Used simplifier rules: path-prefix: ⊦ path(r ' + x + y, h) → (path(r ' + x, h) ↔ true); path-postfix: ⊦ path(x + r ' + y, h) → (path(r ' + y, h) ↔ true); a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used formulas: path(r ' + x + r0 ', h[r0, ce]) ∧ path(r0 ' + x0 + h[r0].nxt ', h[r0, ce])

Proof step 39 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ r0, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x1 + r0 ', h), path(r ' + (x + r0 ' + x0) + h[r0].nxt ', h[r0, ce]), path(r ' + x + r0 ', h[r0, ce]), path(r0 ' + x0 + h[r0].nxt ', h[r0, ce]), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x1), ¬ dups(x + x0), ¬ r0 ∈ x, ¬ r0 ∈ x0, ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x, ¬ h[r0].nxt ∈ x0, ¬ r ∈ x, ¬ r ∈ x0 ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 40 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ r0, r ≠ r0, r ≠ h[r0].nxt, path(r0 ' + x0 + h[r0].nxt ', h[r0, ce]), path(r ' + x + r0 ', h[r0, ce]), path(r ' + (x + r0 ' + x0) + h[r0].nxt ', h[r0, ce]), path(r ' + x1 + r0 ', h), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x1), ¬ dups(x + x0), ¬ r0 ∈ x, ¬ r0 ∈ x0, ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x, ¬ h[r0].nxt ∈ x0, ¬ r ∈ x, ¬ r ∈ x0 ⊦ ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x0

Additional information

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

Proof step 41 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, x0 = r1 + x2, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ r0, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x1 + r0 ', h), path(r ' + (x + r0 ' + x0) + h[r0].nxt ', h[r0, ce]), path(r ' + x + r0 ', h[r0, ce]), path(r0 ' + x0 + h[r0].nxt ', h[r0, ce]), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x1), ¬ dups(x + x0), ¬ r0 ∈ x, ¬ r0 ∈ x0, ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x, ¬ h[r0].nxt ∈ x0, ¬ r ∈ x, ¬ r ∈ x0 ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

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 list[reflist] ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a + x = a ' + x; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ st[a, d][a] = d; (s) ⊦ a ∈ st[a, d]; (s)

Proof step 42 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ r0, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ null, r ≠ ce.nxt, r ≠ h[r0].nxt, r ≠ r0, r0 ≠ ce.nxt, r0 ≠ null, path(r ' + x + r0 ' + (ce.nxt ' + x2) + h[r0].nxt ', h[r0, ce]), path(r ' + x + r0 ', h[r0, ce]), path(ce.nxt ' + x2 + h[r0].nxt ', h[r0, ce]), path(r ' + x1 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x + x2), ¬ dups(x1), ¬ r ∈ x2, ¬ r ∈ x, ¬ h[r0].nxt ∈ x2, ¬ h[r0].nxt ∈ x, ¬ r ∈ x1, ¬ r0 ∈ x1, ¬ r0 ∈ x2, ¬ r0 ∈ x, ¬ ce.nxt ∈ x2, ¬ ce.nxt ∈ x ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify-strong, seq: ⊦ ¬ r0 ∈ x ∧ r0 ∈ h → (path(x + r1 ', h[r0, ce]) ↔ path(x + r1 ', h)), subst:[ce, r0, h, x, r1] → [ce, r0, h, ce.nxt ' + x2, h[r0].nxt], <all paths>

Additional information

Used simplifier rules: ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: ce, r0, h, ce.nxt ' + x2, h[r0].nxt

Proof step 43 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x ∧ r0 ∈ h → (path(x + r1 ', h[r0, ce]) ↔ path(x + r1 ', h))

Lemma path-modify-strong

Proof step 44 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ r0, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ null, r ≠ ce.nxt, r ≠ h[r0].nxt, r ≠ r0, r0 ≠ ce.nxt, r0 ≠ null, path(r ' + x1 + r0 ', h), path((ce.nxt ' + x2) + h[r0].nxt ', h), path(r ' + x + r0 ', h[r0, ce]), path(r ' + x + r0 ' + (ce.nxt ' + x2) + h[r0].nxt ', h[r0, ce]), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x + x2), ¬ dups(x1), ¬ r0 ∈ ce.nxt ' + x2, ¬ r ∈ x2, ¬ r ∈ x, ¬ h[r0].nxt ∈ x2, ¬ h[r0].nxt ∈ x, ¬ r ∈ x1, ¬ r0 ∈ x1, ¬ r0 ∈ x2, ¬ r0 ∈ x, ¬ ce.nxt ∈ x2, ¬ ce.nxt ∈ x ⊦ ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x

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 list[reflist] ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s)

Proof step 45 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ r0, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ null, r ≠ ce.nxt, r ≠ h[r0].nxt, r ≠ r0, r0 ≠ ce.nxt, r0 ≠ null, path(r ' + x + r0 ' + (ce.nxt ' + x2) + h[r0].nxt ', h[r0, ce]), path(r ' + x + r0 ', h[r0, ce]), path((ce.nxt ' + x2) + h[r0].nxt ', h), path(r ' + x1 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x + x2), ¬ dups(x1), ¬ r ∈ x2, ¬ r ∈ x, ¬ h[r0].nxt ∈ x2, ¬ h[r0].nxt ∈ x, ¬ r ∈ x1, ¬ r0 ∈ x1, ¬ r0 ∈ x, ¬ ce.nxt ∈ x2, ¬ ce.nxt ∈ x, ¬ r0 ∈ x2 ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

User applied rule exists right

And closed the goal!

Rule argument

pos: right 2 terms: ce.nxt ' + x2 abort: F discard: T computed: F

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 ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: ce.nxt ' + x2

Proof step 46 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x1 + r0 ', h), path(r ' + x2 + h[r0].nxt ', h[r0, ce]), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2 ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify-strong, seq: ⊦ ¬ r0 ∈ x ∧ r0 ∈ h → (path(x + r1 ', h[r0, ce]) ↔ path(x + r1 ', h)), subst:[ce, r0, h, x, r1] → [ce, r0, h, r ' + x2, h[r0].nxt], <all paths>

Additional information

Used simplifier rules: ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: ce, r0, h, r ' + x2, h[r0].nxt

Proof step 47 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x ∧ r0 ∈ h → (path(x + r1 ', h[r0, ce]) ↔ path(x + r1 ', h))

Lemma path-modify-strong

Proof step 48 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path((r ' + x2) + h[r0].nxt ', h), path(r ' + x1 + r0 ', h), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ r ' + x2, ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2 ⊦ ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0, ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x

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 list[reflist] ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s)

Proof step 49 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, r ≠ h[r0].nxt, path(r ' + x1 + r0 ', h), path((r ' + x2) + h[r0].nxt ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x1), ¬ dups(x2), ¬ r0 ∈ x1, ¬ r ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ r ∈ x2, ¬ r0 ∈ x2 ⊦ ∃ x. path(r ' + x + h[r0].nxt ', h) ∧ ¬ r0 ∈ x, ∃ x0. path(h[r0].nxt ' + x0 + h[r0].nxt ', h) ∧ ¬ r0 ∈ x0

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: x2

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: x2

Proof step 50 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 51 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), h[(r ' + x).last].nxt ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ reachable(r, h[(r ' + x).last].nxt, h[(r ' + x).last, ce]), ¬ r ∈ x, h[(r ' + x).last].nxt ≠ (r ' + x).last ∧ r = h[(r ' + x).last].nxt ∨ path(r ' + x0 + h[(r ' + x).last].nxt ', h) ∧ (r ' + x).last ≠ r ∧ ¬ (r ' + x).last ∈ x0 ∨ path(h[(r ' + x).last].nxt ' + x1 + h[(r ' + x).last].nxt ', h) ∧ ¬ (r ' + x).last ∈ x1 ⊦

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[(r ' + x).last, ce], h[(r ' + x).last].nxt, r], <all paths>

Additional information

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

Proof step 52 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

Lemma reachable-def

Proof step 53 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 10

Additional information

Proof step 54 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, r = h[(r ' + x).last].nxt, h[(r ' + x).last].nxt ≠ (r ' + x).last, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), h[(r ' + x).last].nxt ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ r ∈ x, ∀ x0. ¬(path(r ' + x0, h[(r ' + x).last, ce]) ∧ (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 55 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule all left

And closed the goal!

Rule argument

pos: left 11 terms: [] abort: F discard: T computed: F

Additional information

Used simplifier rules: path-one: ⊦ path(r ', h) ↔ r ∈ h ∧ r ≠ null; path-first-in-H: ⊦ path(r ' + x, h) → (r ∈ h ↔ true); ⊦ a ≠ b → (a ∈ st[b, d] ↔ a ∈ st); (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: []

Proof step 56 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, (r ' + x).last ≠ r, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), path(r ' + x0 + h[(r ' + x).last].nxt ', h), h[(r ' + x).last].nxt ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ (r ' + x).last ∈ x0, ¬ r ∈ x, ∀ x0. ¬(path(r ' + x0, h[(r ' + x).last, ce]) ∧ (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 57 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, (r ' + x).last ≠ r, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x0 + h[(r ' + x).last].nxt ', h), path(r ' + x, h), (r ' + x).last ∈ h, h[(r ' + x).last].nxt ∈ h, ¬ dups(x), ¬ (r ' + x).last ∈ x0, ¬ r ∈ x, ∀ x1. ¬ path(r ' + x1, h[(r ' + x).last, ce]) ∨ (r ' + x1).last ≠ h[(r ' + x).last].nxt ⊦

User applied rule all left

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 58 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, (r ' + x).last ≠ r, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), path(r ' + x0 + h[(r ' + x).last].nxt ', h), h[(r ' + x).last].nxt ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ (r ' + x).last ∈ x0, ¬ r ∈ x, ¬ path(r ' + x0 + h[(r ' + x).last].nxt ', h[(r ' + x).last, ce]) ∨ (r ' + x0 + 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 list[reflist] ⊦ (a ' + x + b ').last = b; (s)

Proof step 59 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify, seq: ⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h)), subst:[x, h, r0, ce] → [r ' + x0 + h[(r ' + x).last].nxt ', h, (r ' + x).last, ce], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) Used terms: r ' + x0 + h[(r ' + x).last].nxt ', h, (r ' + x).last, ce

Proof step 60 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h))

Lemma path-modify

Proof step 61 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), path(h[(r ' + x).last].nxt ' + x1 + h[(r ' + x).last].nxt ', h), h[(r ' + x).last].nxt ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ (r ' + x).last ∈ x1, ¬ r ∈ x, ∀ x0. ¬(path(r ' + x0, h[(r ' + x).last, ce]) ∧ (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 62 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(h[(r ' + x).last].nxt ' + x1 + h[(r ' + x).last].nxt ', h), path(r ' + x, h), (r ' + x).last ∈ h, h[(r ' + x).last].nxt ∈ h, ¬ dups(x), ¬ (r ' + x).last ∈ x1, ¬ r ∈ x, ∀ x0. ¬ path(r ' + x0, h[(r ' + x).last, ce]) ∨ (r ' + x0).last ≠ h[(r ' + x).last].nxt ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[y, x] → [x, r '], <all paths>

Additional information

Used terms: x, r '

Proof step 63 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 64 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[(r ' + x).last].nxt].nxt, x = [], h[(r ' + x).last].nxt ≠ null, h[(r ' + x).last].nxt ≠ ce.nxt, path(r ' + x, h), path(h[(r ' + x).last].nxt ' + x1 + h[(r ' + x).last].nxt ', h), h[(r ' + x).last].nxt ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ (r ' + x).last ∈ x1, ¬ r ∈ x, ∀ x0. ¬ path(r ' + x0, h[(r ' + x).last, ce]) ∨ (r ' + x0).last ≠ h[(r ' + x).last].nxt ⊦

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 '.last = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s)

Proof step 65 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x1

Additional information

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

Proof step 66 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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 list[reflist] ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a + x = a ' + x; (s)

Proof step 67 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: ce.nxt ' + x + h[r].nxt ' abort: F discard: T computed: F

Additional information

Used terms: ce.nxt ' + x + h[r].nxt '

Proof step 68 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

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 list[reflist] ⊦ (a ' + x + b ').last = b; (s) ⊦ st[a, d][a] = d; (s) ⊦ a ∈ st[a, d]; (s)

Proof step 69 from proof rem-stays-reachable-aux (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify, seq: ⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h)), subst:[x, h, r0, ce] → [ce.nxt ' + x + h[r].nxt ', h, r, ce], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) Used terms: ce.nxt ' + x + h[r].nxt ', h, r, ce

Proof step 70 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h))

Lemma path-modify

Proof step 71 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[x.last].nxt].nxt, h[x.last].nxt ≠ null, h[x.last].nxt ≠ ce.nxt, x ≠ [], path(r ' + x, h), path(h[x.last].nxt ' + x1 + h[x.last].nxt ', h), h[x.last].nxt ∈ h, x.last ∈ h, ¬ dups(x), ¬ x.last ∈ x1, ¬ r ∈ x, ∀ x0. ¬ path(r ' + x0, h[x.last, ce]) ∨ (r ' + x0).last ≠ h[x.last].nxt ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 72 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[x.last].nxt].nxt, h[x.last].nxt ≠ null, h[x.last].nxt ≠ ce.nxt, x ≠ [], path(h[x.last].nxt ' + x1 + h[x.last].nxt ', h), path(r ' + x, h), x.last ∈ h, h[x.last].nxt ∈ h, ¬ dups(x), ¬ x.last ∈ x1, ¬ r ∈ x, ∀ x0. ¬ path(r ' + x0, h[x.last, ce]) ∨ (r ' + x0).last ≠ h[x.last].nxt ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [x, r0, x2]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: x, a, y

Proof step 73 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, x = x2 + r0 ', h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, x ≠ [], path(r ' + x, h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x), ¬ r0 ∈ x1, ¬ r ∈ x, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].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 list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s)

Proof step 74 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(h[r0].nxt ' + x1 + h[r0].nxt ', h), path(r ' + x2 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].nxt ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce])

Additional information

Used formulas: path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce])

Proof step 75 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x2), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].nxt ⊦

User applied rule weakening

And obtained the following new goals

Rule argument

poslist: left 6

Additional information

Proof step 76 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].nxt ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: path(r ' + x2 + r0 ', h[r0, ce])

Additional information

Used formulas: path(r ' + x2 + r0 ', h[r0, ce])

Proof step 77 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h[r0, ce]), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x2), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].nxt ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 14 terms: x2 + (r0 + (x1 + h[r0].nxt)) abort: F discard: T computed: F

Additional information

Used terms: x2 + (r0 + (x1 + h[r0].nxt))

Proof step 78 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h[r0, ce]), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ¬ path(r ' + x2 + (r0 + (x1 + h[r0].nxt)), h[r0, ce]) ∨ (r ' + x2 + (r0 + (x1 + h[r0].nxt))).last ≠ h[r0].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 list[reflist] ⊦ (a ' + x + b ').last = b; (s) ⊦ a + x = a ' + x; (s) ⊦ x + a = x + a '; (s)

Proof step 79 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h[r0, ce]), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-trans, seq:path(x, h) ∧ x.last = r ∧ path(r ' + y, h) ⊦ path(x + y, h), subst:[x, h, r, y] → [r ' + x2 + r0 ', h[r0, ce], r0, x1 + h[r0].nxt ']

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: r ' + x2 + r0 ', h[r0, ce], r0, x1 + h[r0].nxt '

Proof step 80 from proof rem-stays-reachable-aux (previous step) (back to tree)

path(x, h) ∧ x.last = r ∧ path(r ' + y, h) ⊦ path(x + y, h)

Lemma path-trans

Proof step 81 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h[r0, ce]), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2 ⊦ (r ' + x2 + r0 ').last = r0 ∧ path(r0 ' + x1 + h[r0].nxt ', h[r0, ce])

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 list[reflist] ⊦ (a ' + x + b ').last = b; (s)

Proof step 82 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h[r0, ce]), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ path(r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2 ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x1

Additional information

Used simplifier rules: reflist freely generated by [], +;;

Proof step 83 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, x1 = [], h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h[r0, ce]), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ path(r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-two: ⊦ path(r ' + r0 ', h) ↔ r ∈ h ∧ r0 ∈ h ∧ r ≠ null ∧ r0 ≠ null ∧ h[r].nxt = r0; ⊦ ¬ a ∈ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ st[a, d][a] = d; (s) ⊦ a ∈ st[a, d]; (s) ⊦ [] + x = x; (s)

Proof step 84 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0, ce][h[r0].nxt].nxt = h[r0].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h[r0, ce]), path(r ' + x2 + r0 ', h), h[r0].nxt ∈ h, r0 ∈ h, h[r0].nxt ∈ h[r0, ce], ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r ∈ x2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: store[linheap], name:At-other, seq: ⊦ a ≠ b → st[b, d][a] = st[a], subst:[a, d, b, st] → [h[r0].nxt, ce, r0, h], <all paths>

Additional information

Used simplifier rules: ⊦ a ≠ b → (a ∈ st[b, d] ↔ a ∈ st); (s) ⊦ a = b → st[b, d][a] = d; (s) Used terms: h[r0].nxt, ce, r0, h

Proof step 85 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ a ≠ b → st[b, d][a] = st[a]

A spec-lemma

Proof step 86 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, x1 = r1 + x, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h[r0, ce]), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h), r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ path(r0 ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2 ⊦

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); path-last-not-null: ⊦ ¬ path(r ' + x + null ', h); a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ≠ b → st[b, d][a] = st[a]; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a + x = a ' + x; (s) ⊦ st[a, d][a] = d; (s) ⊦ a ∈ st[a, d]; (s)

Proof step 87 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ null, r ≠ r0, r0 ≠ h[r0, ce][h[r0].nxt].nxt, r0 ≠ null, path(h[r0, ce][h[r0].nxt].nxt ' + x + h[r0].nxt ', h[r0, ce]), path(r ' + x2 + r0 ', h), path(r ' + x2 + r0 ', h[r0, ce]), h[r0].nxt ∈ h[r0, ce], r0 ∈ h, h[r0].nxt ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ' + (h[r0, ce][h[r0].nxt].nxt ' + x) + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x, ¬ r0 ∈ x2, ¬ r ∈ x2 ⊦ path(ce.nxt ' + x + h[r0].nxt ', h[r0, ce]) ∧ ce.nxt = h[r0, ce][h[r0].nxt].nxt

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: store[linheap], name:At-other, seq: ⊦ a ≠ b → st[b, d][a] = st[a], subst:[a, d, b, st] → [h[r0].nxt, ce, r0, h], <all paths>

Additional information

Used simplifier rules: ⊦ a ≠ b → (a ∈ st[b, d] ↔ a ∈ st); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a = b → st[b, d][a] = d; (s) Used terms: h[r0].nxt, ce, r0, h

Proof step 88 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ a ≠ b → st[b, d][a] = st[a]

A spec-lemma

Proof step 89 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x2), ¬ path(r ' + x2 + r0 ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].nxt ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify-strong, seq: ⊦ ¬ r0 ∈ x ∧ r0 ∈ h → (path(x + r1 ', h[r0, ce]) ↔ path(x + r1 ', h)), subst:[ce, r0, h, x, r1] → [ce, r0, h, r ' + x2, r0], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) Used terms: ce, r0, h, r ' + x2, r0

Proof step 90 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x ∧ r0 ∈ h → (path(x + r1 ', h[r0, ce]) ↔ path(x + r1 ', h))

Lemma path-modify-strong

Proof step 91 from proof rem-stays-reachable-aux (previous step) (back to tree)

ce.nxt = h[h[r0].nxt].nxt, h[r0].nxt ≠ null, h[r0].nxt ≠ ce.nxt, r ≠ r0, path(r ' + x2 + r0 ', h), path(h[r0].nxt ' + x1 + h[r0].nxt ', h), h[r0].nxt ∈ h, r0 ∈ h, ¬ dups(x2), ¬ path(h[r0].nxt ' + x1 + h[r0].nxt ', h[r0, ce]), ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ r ∈ x2, ∀ x0. ¬ path(r ' + x0, h[r0, ce]) ∨ (r ' + x0).last ≠ h[r0].nxt ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:path-modify, seq: ⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h)), subst:[ce, r0, h, x] → [ce, r0, h, h[r0].nxt ' + x1 + h[r0].nxt '], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) Used terms: ce, r0, h, h[r0].nxt ' + x1 + h[r0].nxt '

Proof step 92 from proof rem-stays-reachable-aux (previous step) (back to tree)

⊦ ¬ r0 ∈ x → (path(x, h[r0, ce]) ↔ path(x, h))

Lemma path-modify

Proof Tree for rem-stays-reachable-aux (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