[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 reachable-addnew-rev (conclusion) (back to tree)

⊦ ¬ r2 ∈ h ∧ r ∈ h ∧ ¬ reachable(r, r1, h) → (reachable(r, r1, h[r2, ce]) ↔ (∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ r2 ≠ null ∧ (r1 = r2 ∨ reachable(ce.nxt, r1, h))))

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof reachable-addnew-rev (previous step) (back to tree)

r ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h ⊦ reachable(r, r1, h[r2, ce]) ↔ (∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ r2 ≠ null ∧ (r1 = r2 ∨ reachable(ce.nxt, r1, h)))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof reachable-addnew-rev (previous step) (back to tree)

r ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h ⊦ reachable(r, r1, h[r2, ce]) ↔ (∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h)))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 4 from proof reachable-addnew-rev (previous step) (back to tree)

reachable(r, r1, h[r2, ce]), r ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h))

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 5 from proof reachable-addnew-rev (previous step) (back to tree)

reachable(r, r1, h[r2, ce]), r ∈ h, r1 ∈ h[r2, ce], ¬ reachable(r, r1, h), ¬ r2 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h))

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: store[linheap], name:In-insert, seq: ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st, subst:[d, b, st, a] → [ce, r2, h, r1], <all paths>

Additional information

Used terms: ce, r2, h, r1

Proof step 6 from proof reachable-addnew-rev (previous step) (back to tree)

⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st

A spec-lemma

Proof step 7 from proof reachable-addnew-rev (previous step) (back to tree)

reachable(r, r1, h[r2, ce]), r ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h, r1 = r2 ∨ r1 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h))

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: r1 = r2

Additional information

Used formulas: r1 = r2

Proof step 8 from proof reachable-addnew-rev (previous step) (back to tree)

r1 = r2, reachable(r, r1, h[r2, ce]), r ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h, r1 = r2 ∨ r1 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: endnotinH-notreachable: ⊦ ¬ r0 ∈ h → (reachable(r, r0, h) ↔ false); reach-alloc: ⊦ reachable(r, r1, h) → r1 ∈ h; ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st; (ws)

Proof step 9 from proof reachable-addnew-rev (previous step) (back to tree)

reachable(r, r2, h[r2, ce]), r ∈ h, ¬ r2 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null

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[r2, ce], r2, r], <all paths>

Additional information

Used terms: h[r2, ce], r2, r

Proof step 10 from proof reachable-addnew-rev (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 11 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 12 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: x = []

Additional information

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

Proof step 13 from proof reachable-addnew-rev (previous step) (back to tree)

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

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

Proof step 14 from proof reachable-addnew-rev (previous step) (back to tree)

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

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, r1, x0]

Additional information

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

Proof step 15 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 16 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: (r ' + x0).last abort: F discard: T computed: F

Additional information

Used terms: (r ' + x0).last

Proof step 17 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: h[r1, ce], r1, x0, r

Proof step 18 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma path-split-last

Proof step 19 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-new-irrelevant-strong: ⊦ ¬ r2 ∈ h ∧ ¬ r2 ∈ x ∧ r ∈ h → (path(r ' + x, h[r2, ce]) ↔ path(r ' + x, h)); a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st; (ws)

Proof step 20 from proof reachable-addnew-rev (previous step) (back to tree)

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

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

Additional information

Used simplifier rules: path-last: ⊦ path(r ' + x, h) → ((r ' + x).last ∈ h ↔ true); ⊦ st[a, d][a] = d; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: (r ' + x0).last, ce, r1, h

Proof step 21 from proof reachable-addnew-rev (previous step) (back to tree)

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

A spec-lemma

Proof step 22 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 23 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 ' + x0).last, r], <all paths>

Additional information

Used terms: h, (r ' + x0).last, r

Proof step 24 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 25 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 26 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 9 terms: x0

Additional information

Used terms: x0

Proof step 27 from proof reachable-addnew-rev (previous step) (back to tree)

r1 ≠ r2, reachable(r, r1, h[r2, ce]), r ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h, r1 = r2 ∨ r1 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 28 from proof reachable-addnew-rev (previous step) (back to tree)

r1 ≠ r2, reachable(r, r1, h[r2, ce]), r ∈ h, r1 ∈ h, ¬ reachable(r, r1, h), ¬ r2 ∈ h ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ reachable(ce.nxt, r1, h)

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[r2, ce], r1, r], <all paths>

Additional information

Used terms: h[r2, ce], r1, r

Proof step 29 from proof reachable-addnew-rev (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 30 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 31 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: r2 ∈ x

Additional information

Used formulas: r2 ∈ x

Proof step 32 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 ' + x).last = x.last; (s)

Proof step 33 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list[reflist], name:in-def, seq: ⊦ a ∈ x ↔ (∃ y, z. x = y + (a + z)), subst:[x, a] → [x, r2], <all paths>

Additional information

Used terms: x, r2

Proof step 34 from proof reachable-addnew-rev (previous step) (back to tree)

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

A spec-lemma

Proof step 35 from proof reachable-addnew-rev (previous step) (back to tree)

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

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] ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a + x = a ' + x; (s) ⊦ 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 36 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: (r + x0).last abort: F discard: T computed: F

Additional information

Used terms: (r + x0).last

Proof step 37 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + x = a ' + x; (s)

Proof step 38 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: path(r ' + x0 + r2 ', h[r2, ce])

Additional information

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

Proof step 39 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: h[r2, ce], r2, x0, r

Proof step 40 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma path-split-last

Proof step 41 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-new-irrelevant-strong: ⊦ ¬ r2 ∈ h ∧ ¬ r2 ∈ x ∧ r ∈ h → (path(r ' + x, h[r2, ce]) ↔ path(r ' + x, h)); a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st; (ws)

Proof step 42 from proof reachable-addnew-rev (previous step) (back to tree)

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

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

Additional information

Used simplifier rules: path-last: ⊦ path(r ' + x, h) → ((r ' + x).last ∈ h ↔ true); ⊦ st[a, d][a] = d; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: (r ' + x0).last, ce, r2, h

Proof step 43 from proof reachable-addnew-rev (previous step) (back to tree)

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

A spec-lemma

Proof step 44 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 45 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 46 from proof reachable-addnew-rev (previous step) (back to tree)

(r ' + x0).last ≠ h[(r ' + x0).last].nxt, (h[(r ' + x0).last].nxt ' + x1).last ≠ h[(r ' + x0).last].nxt, h[(r ' + x0).last].nxt ≠ null, path(r ' + x0, h), path(r ' + x0 + h[(r ' + x0).last].nxt ' + x1, h[h[(r ' + x0).last].nxt, ce]), r ∈ h, (h[(r ' + x0).last].nxt ' + x1).last ∈ h, ¬ dups(x0 + x1), ¬ reachable(r, (r ' + x0).last, h), ¬ reachable(r, (h[(r ' + x0).last].nxt ' + x1).last, h), ¬ h[(r ' + x0).last].nxt ∈ x0, ¬ h[(r ' + x0).last].nxt ∈ x1, ¬ h[(r ' + x0).last].nxt ∈ h, ¬ r ∈ x0, ¬ r ∈ 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 ' + x0).last, r], <all paths>

Additional information

Used terms: h, (r ' + x0).last, r

Proof step 47 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 48 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 49 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 15 terms: x0

Additional information

Used terms: x0

Proof step 50 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 terms: x0, r '

Proof step 51 from proof reachable-addnew-rev (previous step) (back to tree)

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

A spec-lemma

Proof step 52 from proof reachable-addnew-rev (previous step) (back to tree)

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

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

Proof step 53 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x1

Additional information

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

Proof step 54 from proof reachable-addnew-rev (previous step) (back to tree)

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

Proof step 55 from proof reachable-addnew-rev (previous step) (back to tree)

(ce.nxt ' + x).last ≠ h[r].nxt, h[r].nxt ≠ ce.nxt, h[r].nxt ≠ null, r ≠ ce.nxt, r ≠ null, r ≠ h[r].nxt, path(ce.nxt ' + x, h[h[r].nxt, ce]), (ce.nxt ' + x).last ∈ h, r ∈ h, ¬ dups(x), ¬ reachable(r, (ce.nxt ' + x).last, h), ¬ reachable(ce.nxt, (ce.nxt ' + x).last, h), ¬ h[r].nxt ∈ x, ¬ r ∈ x, ¬ ce.nxt ∈ x, ¬ h[r].nxt ∈ 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, (ce.nxt ' + x).last, ce.nxt], <all paths>

Additional information

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

Proof step 56 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 57 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 58 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 16 terms: x abort: F discard: T computed: T

Additional information

Used terms: x

Proof step 59 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 60 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 61 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma path-new-irrelevant-strong

Proof step 62 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 63 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule constructor cut

And closed the goal!

Rule argument

var: x

Additional information

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

Proof step 64 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 65 from proof reachable-addnew-rev (previous step) (back to tree)

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

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, r0, x2]

Additional information

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

Proof step 66 from proof reachable-addnew-rev (previous step) (back to tree)

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

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

Proof step 67 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: 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(r0 ' + h[r0].nxt ' + x1, h[h[r0].nxt, ce])

Proof step 68 from proof reachable-addnew-rev (previous step) (back to tree)

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

Proof step 69 from proof reachable-addnew-rev (previous step) (back to tree)

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

Proof step 70 from proof reachable-addnew-rev (previous step) (back to tree)

x1 = r1 + x, (h[r0].nxt ' + x1).last ≠ h[r0].nxt, h[r0].nxt ≠ null, r ≠ r0, r0 ≠ h[r0].nxt, r0 ≠ null, path(h[r0].nxt ' + x1, h[h[r0].nxt, ce]), path(r ' + (x2 + r0 ') + h[r0].nxt ' + x1, h[h[r0].nxt, ce]), path(r ' + x2 + r0 ', h), r0 ∈ h, (h[r0].nxt ' + x1).last ∈ h, r ∈ h, ¬ dups(x2 + x1), ¬ reachable(ce.nxt, (h[r0].nxt ' + x1).last, h), ¬ reachable(r, (h[r0].nxt ' + x1).last, h), ¬ r ∈ x1, ¬ r0 ∈ x2, ¬ r0 ∈ x1, ¬ h[r0].nxt ∈ x2, ¬ h[r0].nxt ∈ x1, ¬ h[r0].nxt ∈ h, ¬ 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); a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a + x = a ' + x; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ st[a, d][a] = d; (s) ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st; (ws)

Proof step 71 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: ce, h, x, h[r0].nxt, ce.nxt

Proof step 72 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma path-new-irrelevant-strong

Proof step 73 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: startnotinH-notreachable: ⊦ ¬ r ∈ h → (reachable(r, r0, h) ↔ false);

Proof step 74 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule constructor cut

And closed the goal!

Rule argument

var: x

Additional information

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

Proof step 75 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 76 from proof reachable-addnew-rev (previous step) (back to tree)

(ce.nxt ' + x).last ≠ h[r0].nxt, h[r0].nxt ≠ ce.nxt, h[r0].nxt ≠ null, r ≠ ce.nxt, r ≠ r0, r0 ≠ ce.nxt, r0 ≠ null, r0 ≠ h[r0].nxt, path(ce.nxt ' + x, h), path(r ' + x2 + r0 ' + h[r0].nxt ' + ce.nxt ' + x, h[h[r0].nxt, ce]), path(r ' + x2 + r0 ', h), ce.nxt ∈ h, r0 ∈ h, (ce.nxt ' + x).last ∈ h, r ∈ h, ¬ dups(x2 + x), ¬ reachable(r, (ce.nxt ' + x).last, h), ¬ reachable(ce.nxt, (ce.nxt ' + x).last, h), ¬ h[r0].nxt ∈ x, ¬ h[r0].nxt ∈ x2, ¬ r0 ∈ x, ¬ r0 ∈ x2, ¬ r ∈ x, ¬ ce.nxt ∈ x, ¬ ce.nxt ∈ x2, ¬ r ∈ x2, ¬ h[r0].nxt ∈ 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, (ce.nxt ' + x).last, ce.nxt], <all paths>

Additional information

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

Proof step 77 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 78 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 79 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 27 terms: x

Additional information

Used terms: x

Proof step 80 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: path-new-irrelevant-strong: ⊦ ¬ r2 ∈ h ∧ ¬ r2 ∈ x ∧ r ∈ h → (path(r ' + x, h[r2, ce]) ↔ path(r ' + x, h)); a: ⊦ (x + y) + z = x + y + z; from specification list[reflist]

Proof step 81 from proof reachable-addnew-rev (previous step) (back to tree)

(r ' + x).last ≠ r2, path(r ' + x, h), r ∈ h, (r ' + x).last ∈ h, ¬ dups(x), ¬ reachable(r, (r ' + x).last, h), ¬ r2 ∈ x, ¬ r2 ∈ h, ¬ r ∈ x ⊦ ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ reachable(ce.nxt, (r ' + x).last, 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, (r ' + x).last, r], <all paths>

Additional information

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

Proof step 82 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 83 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 84 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 9 terms: x

Additional information

Used terms: x

Proof step 85 from proof reachable-addnew-rev (previous step) (back to tree)

r ∈ h, ¬ reachable(r, r1, h[r2, ce]), ¬ reachable(r, r1, h), ¬ r2 ∈ h, ∃ r0. reachable(r, r0, h) ∧ h[r0].nxt = r2 ∧ h[r0].nxt ≠ null ∧ (r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h)) ⊦

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 86 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: reachable(r, r0, h[h[r0].nxt, ce])

Additional information

Used simplifier rules: reachable-addnew: ⊦ reachable(r, r1, h) ∧ ¬ r2 ∈ h → (reachable(r, r1, h[r2, ce]) ↔ true); Used formulas: reachable(r, r0, h[h[r0].nxt, ce])

Proof step 87 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 88 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: reachable(ce.nxt, r1, h[h[r0].nxt, ce])

Additional information

Used formulas: reachable(ce.nxt, r1, h[h[r0].nxt, ce])

Proof step 89 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 90 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:reachable-trans, seq: ⊦ reachable(r, r0, h) ∧ reachable(r0, r1, h) → reachable(r, r1, h), subst:[r, r0, h, r1] → [r, r0, h[h[r0].nxt, ce], r1]

Additional information

Used terms: r, r0, h[h[r0].nxt, ce], r1

Proof step 91 from proof reachable-addnew-rev (previous step) (back to tree)

⊦ reachable(r, r0, h) ∧ reachable(r0, r1, h) → reachable(r, r1, h)

Lemma reachable-trans

Proof step 92 from proof reachable-addnew-rev (previous step) (back to tree)

h[r0].nxt ≠ null, reachable(r, r0, h), reachable(r, r0, h[h[r0].nxt, ce]), reachable(ce.nxt, r1, h[h[r0].nxt, ce]), r1 ∈ h[h[r0].nxt, ce], r0 ∈ h[h[r0].nxt, ce], r0 ∈ h, r ∈ h, ¬ reachable(r, r1, h[h[r0].nxt, ce]), ¬ reachable(r, r1, h), ¬ h[r0].nxt ∈ h, reachable(r, r0, h[h[r0].nxt, ce]) ∧ reachable(r0, r1, h[h[r0].nxt, ce]) → reachable(r, r1, h[h[r0].nxt, ce]), r1 = h[r0].nxt ∨ reachable(ce.nxt, r1, h) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reachable-addnew: ⊦ reachable(r, r1, h) ∧ ¬ r2 ∈ h → (reachable(r, r1, h[r2, ce]) ↔ true);

Proof step 93 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 13

Additional information

Proof step 94 from proof reachable-addnew-rev (previous step) (back to tree)

r1 = h[r0].nxt, h[r0].nxt ≠ null, reachable(r, r0, h), reachable(r, r0, h[h[r0].nxt, ce]), reachable(ce.nxt, r1, h[h[r0].nxt, ce]), r1 ∈ h[h[r0].nxt, ce], r0 ∈ h[h[r0].nxt, ce], r0 ∈ h, r ∈ h, ¬ reachable(r, r1, h[h[r0].nxt, ce]), ¬ reachable(r, r1, h), ¬ reachable(r0, r1, h[h[r0].nxt, ce]), ¬ h[r0].nxt ∈ h ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reach-reachnext: ⊦ reachable(r, r1, h) → (reachable(r, h[r1].nxt, h) ↔ ¬(h[r1].nxt = null ∨ ¬ h[r1].nxt ∈ h)); reach-alloc: ⊦ reachable(r, r1, h) → r1 ∈ h; ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st; (ws)

Proof step 95 from proof reachable-addnew-rev (previous step) (back to tree)

h[r0].nxt ≠ null, reachable(r, r0, h), reachable(r, r0, h[h[r0].nxt, ce]), reachable(ce.nxt, h[r0].nxt, h[h[r0].nxt, ce]), r0 ∈ h[h[r0].nxt, ce], r0 ∈ h, r ∈ h, ¬ reachable(r0, h[r0].nxt, h[h[r0].nxt, ce]), ¬ reachable(r, h[r0].nxt, h[h[r0].nxt, ce]), ¬ h[r0].nxt ∈ 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[r0].nxt, ce], h[r0].nxt, r0], <all paths>

Additional information

Used terms: h[h[r0].nxt, ce], h[r0].nxt, r0

Proof step 96 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 97 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reachable-addnew: ⊦ reachable(r, r1, h) ∧ ¬ r2 ∈ h → (reachable(r, r1, h[r2, ce]) ↔ true);

Proof step 98 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule all left

And closed the goal!

Rule argument

pos: left 9 terms: h[r0].nxt ' abort: F discard: T computed: F

Additional information

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

Proof step 99 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 100 from proof reachable-addnew-rev (previous step) (back to tree)

h[r0].nxt ≠ null, reachable(ce.nxt, r1, h), reachable(ce.nxt, r1, h[h[r0].nxt, ce]), reachable(r, r0, h[h[r0].nxt, ce]), reachable(r, r0, h), r ∈ h, r0 ∈ h, r0 ∈ h[h[r0].nxt, ce], r1 ∈ h[h[r0].nxt, ce], r1 ∈ h, ¬ reachable(r, r1, h[h[r0].nxt, ce]), ¬ reachable(r, r1, h), ¬ reachable(r0, r1, h[h[r0].nxt, ce]), ¬ h[r0].nxt ∈ 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[r0].nxt, ce], r1, ce.nxt], <all paths>

Additional information

Used terms: h[h[r0].nxt, ce], r1, ce.nxt

Proof step 101 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 102 from proof reachable-addnew-rev (previous step) (back to tree)

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

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 103 from proof reachable-addnew-rev (previous step) (back to tree)

h[r0].nxt ≠ null, path(ce.nxt ' + x, h[h[r0].nxt, ce]), reachable(ce.nxt, (ce.nxt ' + x).last, h), reachable(r, r0, h[h[r0].nxt, ce]), reachable(r, r0, h), r ∈ h, r0 ∈ h, r0 ∈ h[h[r0].nxt, ce], (ce.nxt ' + x).last ∈ h[h[r0].nxt, ce], (ce.nxt ' + x).last ∈ h, ¬ reachable(r, (ce.nxt ' + x).last, h[h[r0].nxt, ce]), ¬ reachable(r, (ce.nxt ' + x).last, h), ¬ reachable(r0, (ce.nxt ' + x).last, h[h[r0].nxt, ce]), ¬ h[r0].nxt ∈ 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[r0].nxt, ce], (ce.nxt ' + x).last, r0], <all paths>

Additional information

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

Proof step 104 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reachable-def

Proof step 105 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 106 from proof reachable-addnew-rev (previous step) (back to tree)

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

User applied rule all left

And closed the goal!

Rule argument

pos: left 14 terms: h[r0].nxt + ce.nxt + x 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); null-not-reachable: ⊦ ¬ reachable(r, null, h); ⊦ b ∈ st ∧ ¬ a ∈ st → st[a, d][b] = st[b]; (s) ⊦ a ∈ st[a, d]; (s) ⊦ st[a, d][a] = d; (s) ⊦ a + x = a ' + x; (s) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: h[r0].nxt + ce.nxt + x

Proof step 107 from proof reachable-addnew-rev (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reachable-addnew: ⊦ reachable(r, r1, h) ∧ ¬ r2 ∈ h → (reachable(r, r1, h[r2, ce]) ↔ true); endnotinH-notreachable: ⊦ ¬ r0 ∈ h → (reachable(r, r0, h) ↔ false); reach-reachnext: ⊦ reachable(r, r1, h) → (reachable(r, h[r1].nxt, h) ↔ ¬(h[r1].nxt = null ∨ ¬ h[r1].nxt ∈ h));

Proof step 108 from proof reachable-addnew-rev (previous step) (back to tree)

h[r0].nxt ≠ null, reachable(r, r0, h[h[r0].nxt, ce]), reachable(r, r0, h), r ∈ h, r0 ∈ h, r0 ∈ h[h[r0].nxt, ce], ¬ reachable(ce.nxt, h[r0].nxt, h[h[r0].nxt, ce]), ¬ reachable(r, h[r0].nxt, h[h[r0].nxt, ce]), ¬ h[r0].nxt ∈ h ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:reach-reachnext, seq:⊦ reachable(r, r1, h) → (reachable(r, h[r1].nxt, h) ↔ ¬(h[r1].nxt = null ∨ ¬ h[r1].nxt ∈ h)), subst:[r, r1, h] → [r, r0, h[h[r0].nxt, ce]]

Additional information

Used simplifier rules: reachable-addnew: ⊦ reachable(r, r1, h) ∧ ¬ r2 ∈ h → (reachable(r, r1, h[r2, ce]) ↔ true); ⊦ a ∈ st[a, d]; (s) ⊦ b ∈ st ∧ ¬ a ∈ st → st[a, d][b] = st[b]; (s) Used terms: r, r0, h[h[r0].nxt, ce]

Proof step 109 from proof reachable-addnew-rev (previous step) (back to tree)

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

Lemma reach-reachnext

Proof Tree for reachable-addnew-rev (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