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

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,

Theorem base for Specification dlinked-list-seg

This is a listing of all goals defined over the current specification. Axioms are marked yellow, proved theorems green and unproved theorems blue. Click on individual names to get more information on the proof.

Name: Sequent: Type:
dlls-unfold-head-simpr ≠ r2 ⊦ h(r) = ce → ((dlls(r, r0, r2, x) * hP)(h) ↔ (∃ a, y, r1. (r => mknode(r0, a, r1) * dlls(r1, r, r2, y) * hP)(h) ∧ x = a ' + y)) A User Theorem
dlls-null ⊦ dlls(null, r0, r1, x) = (emp ∧ ⌜r1 = null⌝ ∧ ⌜x = []⌝ ) A User Theorem
dlls-last-rec ⊦ dlls(hd, lst, prv, nxt, a ' + x) = _∃(λ nxt0. hd => mknode(prv, a, nxt0) * dlls(nxt0, lst, hd, nxt, x)) An Axiom
dlls-unfold-tail ⊦ dlls(hd, lst, prv, nxt, x + a ') = _∃(λ lst0. dlls(hd, lst0, prv, lst, x) * lst => mknode(lst0, a, nxt)) A User Theorem
dll-trav-endhd0 ≠ null ⊦ h(hd0) = mknode(cur, a, null) → ( (dll-trav(prv, hd, lst, cur, hd0, lst0, null, x) * hP)(h) ↔ x ≠ [] ∧ (cur = null ⊃ hd = hd0 ∧ lst = lst0 ∧ (dlls(hd, lst, prv, null, x) * hP)(h) ; hd0 = lst0 ∧ (∃ y, b. x = (y + b) + a ∧ (dlls(hd, lst, prv, cur, y) * cur => mknode(lst, b, hd0) * hd0 => mknode(cur, a, null) * hP)(h)) )) A User Theorem
dlls-last-consecutive ⊦ (dlls(hd, lst0, prv, hd0, x) * dlls(hd0, lst, lst0, nxt, y) * hP)(h) → (dlls(hd, lst, prv, nxt, x + y) * hP)(h) A User Theorem
dlls-last-head-null ⊦ dlls(null, lst, prv, nxt, x) = (emp ∧ ⌜nxt = null⌝ ∧ ⌜lst = prv⌝ ∧ ⌜x = []⌝ ) A User Theorem
dlls-base ⊦ dlls(r, r0, r1, []) = (emp ∧ ⌜r = r1⌝ ) An Axiom
dll-trav-init ⊦ (dlls(hd, lst, prv, nxt, x) * hP)(h) → (dll-trav(prv, hd, lst, null, hd, lst, nxt, x) * hP)(h) A User Theorem
dlls-last-base ⊦ dlls(hd, lst, prv, nxt, []) = (emp ∧ ⌜hd = nxt⌝ ∧ ⌜lst = prv⌝ ) An Axiom
dlls-to-dll-prev ⊦ dlls(r, r0, null, x) = dll(r, r0, x) A User Theorem
dlls-rec ⊦ dlls(r, r0, r1, a ' + x) = _∃(λ r2. r => mknode(r0, a, r2) * dlls(r2, r, r1, x)) An Axiom
dlls-to-dll ⊦ dlls(r, null, null, x) = dll(r, x) A User Theorem
dlls-one ⊦ dlls(r, r0, r1, a ') = r => mknode(r0, a, r1) A User Theorem
dlls-last-unfold-headx ≠ [] ⊦ (dlls(hd, lst, prv, nxt, x) * hP)(h) ↔ (∃ a, y, hd0. (hd => mknode(prv, a, hd0) * dlls(hd0, lst, hd, nxt, y) * hP)(h) ∧ x = a ' + y) A User Theorem
dlls-last-fold-tailx ≠ [] ⊦ (lst => mknode(lst0, x.last, nxt) * dlls(hd, lst0, prv, lst, x.butlast) * hP)(h) → (dlls(hd, lst, prv, nxt, x) * hP)(h) A User Theorem
ll-trav-nonnull⊦ cur ≠ null → ( (dll-trav(prv, hd, lst, cur, hd0, lst0, nxt, x) * hP)(h) ↔ (∃ x0, x1, a. x = x0 + (a + x1) ∧ (dlls(hd, lst, prv, cur, x0) * cur => mknode(lst, a, hd0) * dlls(hd0, lst0, cur, nxt, x1) * hP)(h))) An Axiom
dlls-unfold-headx ≠ [] ⊦ (dlls(r, r0, r2, x) * hP)(h) ↔ (∃ a, y, r1. (r => mknode(r0, a, r1) * dlls(r1, r, r2, y) * hP)(h) ∧ x = a ' + y) A User Theorem
dll-trav-null ⊦ (dll-trav(prv, hd, lst, null, hd0, lst0, nxt, x) * hP)(h) ↔ hd = hd0 ∧ lst = lst0 ∧ (dlls(hd, lst, prv, nxt, x) * hP)(h) An Axiom
dlls-last-fold-head ⊦ (hd => mknode(prv, a, hd0) * dlls(hd0, lst, hd, nxt, x) * hP)(h) ↔ (dlls(hd, lst, prv, nxt, a ' + x) * hP)(h) ∧ True((h(hd)).right = hd0) A User Theorem
dll-trav-nexthd0 ≠ nxt ⊦ (dll-trav(prv, hd, lst, cur, hd0, lst0, nxt, x) * hP)(h) ∧ h(hd0) = mknode(cur, a, r1) → (dll-trav(prv, hd, cur, hd0, r1, lst0, nxt, x) * hP)(h) A User Theorem
dlls-fold-head ⊦ (r => mknode(r0, a, r1) * dlls(r1, r, r2, x) * hP)(h) ↔ (dlls(r, r0, r2, a ' + x) * hP)(h) ∧ True((h(r)).right = r1) A User Theorem
dlls-last-unfold-head-simphd ≠ nxt ⊦ h(hd) = ce → ((dlls(hd, lst, prv, nxt, x) * hP)(h) ↔ (∃ a, y, hd0. (hd => mknode(prv, a, hd0) * dlls(hd0, lst, hd, nxt, y) * hP)(h) ∧ x = a ' + y)) A User Theorem
dlls-last-one ⊦ dlls(hd, lst, prv, nxt, a ') = (hd => mknode(prv, a, nxt) ∧ ⌜lst = hd⌝ ) A User Theorem