[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-nodups-def (conclusion) (back to tree)

⊦ reachable(r, r0, h) ↔ (∃ x. path(r ' + x, h) ∧ (r ' + x).last = r0 ∧ ¬ dups(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 polylist ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s)

Proof step 2 from proof reachable-nodups-def (previous step) (back to tree)

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

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, r0, r], <all paths>

Additional information

Used terms: h, r0, r

Proof step 3 from proof reachable-nodups-def (previous step) (back to tree)

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

Lemma reachable-def

Proof step 4 from proof reachable-nodups-def (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 5 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 6 from proof reachable-nodups-def (previous step) (back to tree)

path(r ' + x, h) ⊦ ∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = (r ' + x).last ∧ ¬ r ∈ x0 ∧ ¬ dups(x0)

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: x

Additional information

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

Proof step 7 from proof reachable-nodups-def (previous step) (back to tree)

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

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 polylist ⊦ x + [] = x; (s)

Proof step 8 from proof reachable-nodups-def (previous step) (back to tree)

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

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: [] abort: F discard: T computed: F

Additional information

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

Proof step 9 from proof reachable-nodups-def (previous step) (back to tree)

path(r ' + (r0 + x0), h), ∀ r, h. path(r ' + x0, h) → (∃ x1. path(r ' + x1, h) ∧ (r ' + x1).last = (r ' + x0).last ∧ ¬ r ∈ x1 ∧ ¬ dups(x1)) ⊦ ∃ x1. path(r ' + x1, h) ∧ (r ' + x1).last = (r ' + (r0 + x0)).last ∧ ¬ r ∈ x1 ∧ ¬ dups(x1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 10 from proof reachable-nodups-def (previous step) (back to tree)

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

User applied rule all left

And obtained the following new goals

Rule argument

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

Additional information

Used terms: h[r].nxt, h

Proof step 11 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 12 from proof reachable-nodups-def (previous step) (back to tree)

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

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: h[r].nxt ' + x1 abort: F discard: F computed: F

Additional information

Used terms: h[r].nxt ' + x1

Proof step 13 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 14 from proof reachable-nodups-def (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: r ≠ h[r].nxt

Additional information

Used formulas: r ≠ h[r].nxt

Proof step 15 from proof reachable-nodups-def (previous step) (back to tree)

(h[r].nxt ' + x1).last = (h[r].nxt ' + x0).last, r ≠ h[r].nxt, r ≠ null, path(h[r].nxt ' + x1, h), path(h[r].nxt ' + x0, h), r ∈ h, ¬ dups(x1), ¬ h[r].nxt ∈ x1, ∀ r, h. path(r ' + x0, h) → (∃ x1. path(r ' + x1, h) ∧ (r ' + x1).last = (r ' + x0).last ∧ ¬ r ∈ x1 ∧ ¬ dups(x1)) ⊦ ∃ x1. path(r ' + x1, h) ∧ (r ' + x1).last = (h[r].nxt ' + x0).last ∧ ¬ r ∈ x1 ∧ ¬ dups(x1), r ≠ h[r].nxt ∧ ¬ 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 polylist ⊦ a ∈ x → (b ' + x).last = x.last; (s)

Proof step 16 from proof reachable-nodups-def (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polylist, name:lastoc-rew, seq: ⊦ a ∈ x ↔ (∃ y, z. x = y + a ' + z ∧ ¬ a ∈ z), subst:[x, a] → [x1, r]; ['a] → [Ref], <all paths>

Additional information

Used terms: x1, r

Proof step 17 from proof reachable-nodups-def (previous step) (back to tree)

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

A spec-lemma

Proof step 18 from proof reachable-nodups-def (previous step) (back to tree)

x1.last = (h[r].nxt ' + x0).last, r ≠ h[r].nxt, r ≠ null, path(h[r].nxt ' + x1, h), path(h[r].nxt ' + x0, h), r ∈ h, ¬ dups(x1), ¬ h[r].nxt ∈ x1, ∀ r, h. path(r ' + x0, h) → (∃ x1. path(r ' + x1, h) ∧ (r ' + x1).last = (r ' + x0).last ∧ ¬ r ∈ x1 ∧ ¬ dups(x1)), ∃ y, z. x1 = y + r ' + z ∧ ¬ r ∈ z ⊦ ∃ x1. path(r ' + x1, h) ∧ (r ' + x1).last = (h[r].nxt ' + x0).last ∧ ¬ r ∈ x1 ∧ ¬ dups(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 polylist a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification polylist-dup ⊦ a ≠ a0 → (a ∈ a0 ' + x ↔ a ∈ x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ (x + a ' + y).last = (a ' + y).last; (s)

Proof step 19 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: x

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 polylist Used terms: x

Proof step 20 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 21 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: x1

Additional information

Used terms: x1

Proof step 22 from proof reachable-nodups-def (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 23 from proof reachable-nodups-def (previous step) (back to tree)

path(r ' + x, h), ¬ dups(x), ¬ r ∈ x ⊦ ∃ x0. path(r ' + x0, h) ∧ (r ' + x0).last = (r ' + x).last

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: x

Additional information

Used terms: x

Proof Tree for reachable-nodups-def (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