[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 tr-unfold-path (conclusion) (back to tree)

⊦ p ∈ t → tr(r, t) = _∃(λ r0. trp(r, t, p, r0) * tr(r0, t(p)))

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof tr-unfold-path (previous step) (back to tree)

tr(r, t) ≠ _∃(λ r0. trp(r, t, p, r0) * tr(r0, t(p))), p ∈ t ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: p

Additional information

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

Proof step 3 from proof tr-unfold-path (previous step) (back to tree)

tr(r, t) ≠ _∃(λ r0. trp(r, t, [], r0) * tr(r0, t([]))), [] ∈ t ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: trp-base: ⊦ trp(r, t, [], r0) = (⌜r = r0⌝ ∧ emp); ⊦ [] ∈ t; (s) sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep and-com: ⊦ (hP0 ∧ hP1) = (hP1 ∧ hP0); from specification heap-sep and-ass: ⊦ ((hP0 ∧ hP1) ∧ hP2) = (hP0 ∧ hP1 ∧ hP2); from specification heap-sep ⊦ emp * hP = hP; (s) ⊦ (⌜bv⌝ ∧ hP0) * hP1 = (⌜bv⌝ ∧ hP0 * hP1); (s) ⊦ t([]) = t; (s)

Proof step 4 from proof tr-unfold-path (previous step) (back to tree)

tr(r, t) ≠ _∃(λ r0. ⌜r = r0⌝ ∧ tr(r0, t)) ⊦

User applied rule expand left

And closed the goal!

Rule argument

pos: left 1

Additional information

Used simplifier rules: ⊦ ⌜bv⌝ (h) ↔ bv; (s) ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s) ⊦ (hP0 ∧ hP1)(h) ↔ hP0(h) ∧ hP1(h); (s) ⊦ ⌜false⌝ = false; (s) ⊦ ¬ false(h); (s) and-ass: ⊦ ((hP0 ∧ hP1) ∧ hP2) = (hP0 ∧ hP1 ∧ hP2); from specification heap-sep and-com: ⊦ (hP0 ∧ hP1) = (hP1 ∧ hP0); from specification heap-sep

Proof step 5 from proof tr-unfold-path (previous step) (back to tree)

tr(r, t) ≠ _∃(λ r0. trp(r, t, b + p0, r0) * tr(r0, t(b + p0))), b + p0 ∈ t, ∀ r, t. ¬(tr(r, t) ≠ _∃(λ r0. trp(r, t, p0, r0) * tr(r0, t(p0))) ∧ p0 ∈ t) ⊦

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 6 from proof tr-unfold-path (previous step) (back to tree)

tr(r, t) ≠ _∃(λ r0. trp(r, t, b ' + p0, r0) * tr(r0, t(b ' + p0))), b ' + p0 ∈ t, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: t

Additional information

Used simplifier rules: trp-leaf: ⊦ trp(r, leaf, b ' + p, r0) = false; Tree[A] freely generated by leaf, branch; ⊦ tr(r, leaf) = (emp ∧ ⌜r = null⌝ ); (s) ⊦ false * hP = false; (s) sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep ⊦ p ∈ leaf ↔ p = []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (s) ⊦ a ' ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list

Proof step 7 from proof tr-unfold-path (previous step) (back to tree)

t = branch(t1, a, t2), tr(r, t) ≠ _∃(λ r0. trp(r, t, b ' + p0, r0) * tr(r0, t(b ' + p0))), b ' + p0 ∈ t, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

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 ⊦ b ' + p ∈ branch(t1, a, t2) ↔ p ∈ (b ⊃ t2;t1); (s) ⊦ branch(t1, a, t2)(b ' + p) = (b ⊃ t2(p);t1(p)); (s)

Proof step 8 from proof tr-unfold-path (previous step) (back to tree)

tr(r, branch(t1, a, t2)) ≠ _∃(λ r0. trp(r, branch(t1, a, t2), b ' + p0, r0) * tr(r0, (b ⊃ t2(p0);t1(p0)))), p0 ∈ (b ⊃ t2;t1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: linked-tree, name:tr-rec, seq:⊦ tr(r, branch(t0, a, t1)) = _∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t0) * tr(r1, t1)), subst:[r, t0, a, t1] → [r, t1, a, t2]; [A] → [A], lhs:tr(r, branch(t1, a, t2)), <all paths>

Additional information

Used terms: r, t1, a, t2

Proof step 9 from proof tr-unfold-path (previous step) (back to tree)

⊦ tr(r, branch(t0, a, t1)) = _∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t0) * tr(r1, t1))

A spec-lemma

Proof step 10 from proof tr-unfold-path (previous step) (back to tree)

_∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)) ≠ _∃(λ r0. trp(r, branch(t1, a, t2), b ' + p0, r0) * tr(r0, (b ⊃ t2(p0);t1(p0)))), p0 ∈ (b ⊃ t2;t1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 2

Additional information

Proof step 11 from proof tr-unfold-path (previous step) (back to tree)

b, _∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)) ≠ _∃(λ r0. trp(r, branch(t1, a, t2), b ' + p0, r0) * tr(r0, (b ⊃ t2(p0);t1(p0)))), p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 12 from proof tr-unfold-path (previous step) (back to tree)

_∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)) ≠ _∃(λ r0. trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0))), p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

User applied rule expand left

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 13 from proof tr-unfold-path (previous step) (back to tree)

¬((_∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)))(h) ↔ (_∃(λ r0. trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0))))(h)), p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s) ⊦ (_∃ bcP)(h) ↔ (∃ b, c. bcP(b, c)(h)); (s)

Proof step 14 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ (∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)) ↔ (∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 15 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0, ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 16 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2))(h), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap-sep, name:sep, seq: ⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1)), subst:[h, hP0, hP1] → [h, r => mknode(r0, a, r1) * tr(r0, t1), tr(r1, t2)]; [A] → [Node[A]], lhs:(r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2))(h), <all paths>

Additional information

Used simplifier rules: sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: h, r => mknode(r0, a, r1) * tr(r0, t1), tr(r1, t2)

Proof step 17 from proof tr-unfold-path (previous step) (back to tree)

⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1))

A spec-lemma

Proof step 18 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, ∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ (r => mknode(r0, a, r1) * tr(r0, t1))(h0) ∧ tr(r1, t2)(h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 19 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h0 ∪ h1)

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: r1, t2 abort: F discard: T computed: F

Additional information

Used terms: r1, t2

Proof step 20 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1), tr(r1, t2) = _∃(λ r. trp(r1, t2, p0, r) * tr(r, t2(p0))) ∨ ¬ p0 ∈ t2 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 21 from proof tr-unfold-path (previous step) (back to tree)

tr(r1, t2) = _∃(λ r. trp(r1, t2, p0, r) * tr(r, t2(p0))), h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h0 ∪ h1)

User applied rule expand left

And obtained the following new goals

Rule argument

pos: left 1 terms: h1 abort: F discard: T computed: T

Additional information

Used terms: h1

Proof step 22 from proof tr-unfold-path (previous step) (back to tree)

tr(r1, t2)(h1) ↔ (_∃(λ r. trp(r1, t2, p0, r) * tr(r, t2(p0))))(h1), h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s)

Proof step 23 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1), (trp(r1, t2, p0, r2) * tr(r2, t2(p0)))(h1) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h0 ∪ h1)

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: r2 abort: F discard: T computed: F

Additional information

Used terms: r2

Proof step 24 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1), (trp(r1, t2, p0, r2) * tr(r2, t2(p0)))(h1), ¬ (trp(r, branch(t1, a, t2), true ' + p0, r2) * tr(r2, t2(p0)))(h0 ∪ h1) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:trp-branch-rec, seq:⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃ (λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2))), subst:[r, p, b, r0, t2, a, t1] → [r, p0, true, r2, t2, a, t1]; [A] → [A], lhs:trp(r, branch(t1, a, t2), true ' + p0, r2), <all paths>

Additional information

Used terms: r, p0, true, r2, t2, a, t1

Proof step 25 from proof tr-unfold-path (previous step) (back to tree)

⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃(λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2)))

Lemma trp-branch-rec

Proof step 26 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1), (trp(r1, t2, p0, r2) * tr(r2, t2(p0)))(h1), ¬ (_∃(λ r1, r3. r => mknode(r1, a, r3) * (true ⊃ tr(r1, t1) * trp(r3, t2, p0, r2);trp(r1, t1, p0, r2) * tr(r3, t2))) * tr(r2, t2(p0)))(h0 ∪ h1) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep ⊦ (_∃ bcP * hP)(h) ↔ (∃ b, c. (bcP(b, c) * hP)(h)); (s)

Proof step 27 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r0, a, r1) * tr(r0, t1))(h0), tr(r1, t2)(h1), (trp(r1, t2, p0, r2) * tr(r2, t2(p0)))(h1) ⊦ ∃ r0, c. ((r => mknode(r0, a, c) * tr(r0, t1) * trp(c, t2, p0, r2)) * tr(r2, t2(p0)))(h0 ∪ h1)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: r0, r1 abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ hP0(h0) ∧ hP1(h1) ∧ h0 ⊥ h1 → (hP0 * hP1)(h0 ∪ h1); (ss) sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: r0, r1

Proof step 28 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0, ∃ r0. (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 29 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, (trp(r, branch(t1, a, t2), true ' + p0, r0) * tr(r0, t2(p0)))(h), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:trp-branch-rec, seq:⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃ (λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2))), subst:[r, p, b, r0, t2, a, t1] → [r, p0, true, r0, t2, a, t1]; [A] → [A], lhs:trp(r, branch(t1, a, t2), true ' + p0, r0), <all paths>

Additional information

Used terms: r, p0, true, r0, t2, a, t1

Proof step 30 from proof tr-unfold-path (previous step) (back to tree)

⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃(λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2)))

Lemma trp-branch-rec

Proof step 31 from proof tr-unfold-path (previous step) (back to tree)

(_∃(λ r1, r2. r => mknode(r1, a, r2) * (true ⊃ tr(r1, t1) * trp(r2, t2, p0, r0);trp(r1, t1, p0, r0) * tr(r2, t2))) * tr(r0, t2(p0)))(h), p0 ∈ t2, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep ⊦ (_∃ bcP * hP)(h) ↔ (∃ b, c. (bcP(b, c) * hP)(h)); (s)

Proof step 32 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, ((r => mknode(r1, a, r2) * tr(r1, t1) * trp(r2, t2, p0, r0)) * tr(r0, t2(p0)))(h), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap-sep, name:sep, seq: ⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1)), subst:[h, hP0, hP1] → [h, trp(r2, t2, p0, r0) * tr(r0, t2(p0)), r => mknode(r1, a, r2) * tr(r1, t1)]; [A] → [Node[A]], lhs:((r => mknode(r1, a, r2) * tr(r1, t1) * trp(r2, t2, p0, r0)) * tr(r0, t2(p0)))(h), <all paths>

Additional information

Used simplifier rules: sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: h, trp(r2, t2, p0, r0) * tr(r0, t2(p0)), r => mknode(r1, a, r2) * tr(r1, t1)

Proof step 33 from proof tr-unfold-path (previous step) (back to tree)

⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1))

A spec-lemma

Proof step 34 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t2, ∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0) ∧ (r => mknode(r1, a, r2) * tr(r1, t1))(h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 35 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: r2, t2 abort: F discard: T computed: F

Additional information

Used terms: r2, t2

Proof step 36 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0), tr(r2, t2) = _∃(λ r1. trp(r2, t2, p0, r1) * tr(r1, t2(p0))) ∨ ¬ p0 ∈ t2 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 37 from proof tr-unfold-path (previous step) (back to tree)

tr(r2, t2) = _∃(λ r1. trp(r2, t2, p0, r1) * tr(r1, t2(p0))), h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

User applied rule expand left

And obtained the following new goals

Rule argument

pos: left 1 terms: h0 abort: F discard: T computed: F

Additional information

Used terms: h0

Proof step 38 from proof tr-unfold-path (previous step) (back to tree)

tr(r2, t2)(h0) ↔ (_∃(λ r1. trp(r2, t2, p0, r1) * tr(r1, t2(p0))))(h0), h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s)

Proof step 39 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0), tr(r2, t2)(h0) ↔ (∃ r. (trp(r2, t2, p0, r) * tr(r, t2(p0)))(h0)) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 5

Additional information

Proof step 40 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0), ¬ tr(r2, t2)(h0) ⊦ ∃ r. (trp(r2, t2, p0, r) * tr(r, t2(p0)))(h0), ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: r0

Additional information

Used terms: r0

Proof step 41 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), tr(r2, t2)(h0), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0), ∃ r. (trp(r2, t2, p0, r) * tr(r, t2(p0)))(h0) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 42 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t2, (r => mknode(r1, a, r2) * tr(r1, t1))(h1), tr(r2, t2)(h0), (trp(r2, t2, p0, r3) * tr(r3, t2(p0)))(h0), (trp(r2, t2, p0, r0) * tr(r0, t2(p0)))(h0) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: r1, r2 abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ hP0(h0) ∧ hP1(h1) ∧ h0 ⊥ h1 → (hP0 * hP1)(h0 ∪ h1); (ss) sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: r1, r2

Proof step 43 from proof tr-unfold-path (previous step) (back to tree)

¬ b, _∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)) ≠ _∃(λ r0. trp(r, branch(t1, a, t2), b ' + p0, r0) * tr(r0, (b ⊃ t2(p0);t1(p0)))), p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 44 from proof tr-unfold-path (previous step) (back to tree)

_∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)) ≠ _∃(λ r0. trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0))), p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

User applied rule expand left

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 45 from proof tr-unfold-path (previous step) (back to tree)

¬ ((_∃(λ r0, r1. r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2)))(h) ↔ (_∃(λ r0. trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0))))(h)), p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s) ⊦ (_∃ bcP)(h) ↔ (∃ b, c. bcP(b, c)(h)); (s)

Proof step 46 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ (∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)) ↔ (∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 47 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0, ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 48 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2))(h), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap-sep, name:sep, seq: ⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1)), subst:[h, hP0, hP1] → [h, r => mknode(r0, a, r1) * tr(r1, t2), tr(r0, t1)]; [A] → [Node[A]], lhs:(r => mknode(r0, a, r1) * tr(r0, t1) * tr(r1, t2))(h), <all paths>

Additional information

Used simplifier rules: sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: h, r => mknode(r0, a, r1) * tr(r1, t2), tr(r0, t1)

Proof step 49 from proof tr-unfold-path (previous step) (back to tree)

⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1))

A spec-lemma

Proof step 50 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, ∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ (r => mknode(r0, a, r1) * tr(r1, t2))(h0) ∧ tr(r0, t1)(h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 51 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h0 ∪ h1)

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: r0, t1 abort: F discard: T computed: F

Additional information

Used terms: r0, t1

Proof step 52 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1), tr(r0, t1) = _∃(λ r1. trp(r0, t1, p0, r1) * tr(r1, t1(p0))) ∨ ¬ p0 ∈ t1 ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 53 from proof tr-unfold-path (previous step) (back to tree)

tr(r0, t1) = _∃(λ r1. trp(r0, t1, p0, r1) * tr(r1, t1(p0))), h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h0 ∪ h1)

User applied rule expand left

And obtained the following new goals

Rule argument

pos: left 1 terms: h1 abort: F discard: T computed: T

Additional information

Used terms: h1

Proof step 54 from proof tr-unfold-path (previous step) (back to tree)

tr(r0, t1)(h1) ↔ (_∃(λ r1. trp(r0, t1, p0, r1) * tr(r1, t1(p0))))(h1), h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h0 ∪ h1)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s)

Proof step 55 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1), (trp(r0, t1, p0, r2) * tr(r2, t1(p0)))(h1) ⊦ ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h0 ∪ h1)

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: r2 abort: F discard: T computed: F

Additional information

Used terms: r2

Proof step 56 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1), (trp(r0, t1, p0, r2) * tr(r2, t1(p0)))(h1), ¬ (trp(r, branch(t1, a, t2), false ' + p0, r2) * tr(r2, t1(p0)))(h0 ∪ h1) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:trp-branch-rec, seq:⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃ (λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2))), subst:[r, p, b, r0, t2, a, t1] → [r, p0, false, r2, t2, a, t1]; [A] → [A], lhs:trp(r, branch(t1, a, t2), false ' + p0, r2), <all paths>

Additional information

Used terms: r, p0, false, r2, t2, a, t1

Proof step 57 from proof tr-unfold-path (previous step) (back to tree)

⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃(λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2)))

Lemma trp-branch-rec

Proof step 58 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1), (trp(r0, t1, p0, r2) * tr(r2, t1(p0)))(h1), ¬ (_∃(λ r1, r3. r => mknode(r1, a, r3) * (false ⊃ tr(r1, t1) * trp(r3, t2, p0, r2);trp(r1, t1, p0, r2) * tr(r3, t2))) * tr(r2, t1(p0)))(h0 ∪ h1) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep ⊦ (_∃ bcP * hP)(h) ↔ (∃ b, c. (bcP(b, c) * hP)(h)); (s)

Proof step 59 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r0, a, r1) * tr(r1, t2))(h0), tr(r0, t1)(h1), (trp(r0, t1, p0, r2) * tr(r2, t1(p0)))(h1) ⊦ ∃ r0, c. ((r => mknode(r0, a, c) * trp(r0, t1, p0, r2) * tr(c, t2)) * tr(r2, t1(p0)))(h0 ∪ h1)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: r0, r1 abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ hP0(h0) ∧ hP1(h1) ∧ h0 ⊥ h1 → (hP0 * hP1)(h0 ∪ h1); (ss) sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: r0, r1

Proof step 60 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0, ∃ r0. (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h) ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 61 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, (trp(r, branch(t1, a, t2), false ' + p0, r0) * tr(r0, t1(p0)))(h), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:trp-branch-rec, seq:⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃ (λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2))), subst:[r, p, b, r0, t2, a, t1] → [r, p0, false, r0, t2, a, t1]; [A] → [A], lhs:trp(r, branch(t1, a, t2), false ' + p0, r0), <all paths>

Additional information

Used terms: r, p0, false, r0, t2, a, t1

Proof step 62 from proof tr-unfold-path (previous step) (back to tree)

⊦ trp(r, branch(t1, a, t2), b ' + p, r0) = _∃(λ r1, r2. r => mknode(r1, a, r2) * (b ⊃ tr(r1, t1) * trp(r2, t2, p, r0);trp(r1, t1, p, r0) * tr(r2, t2)))

Lemma trp-branch-rec

Proof step 63 from proof tr-unfold-path (previous step) (back to tree)

(_∃(λ r1, r2. r => mknode(r1, a, r2) * (false ⊃ tr(r1, t1) * trp(r2, t2, p0, r0);trp(r1, t1, p0, r0) * tr(r2, t2))) * tr(r0, t1(p0)))(h), p0 ∈ t1, ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep ⊦ (_∃ bcP * hP)(h) ↔ (∃ b, c. (bcP(b, c) * hP)(h)); (s)

Proof step 64 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, ((r => mknode(r1, a, r2) * trp(r1, t1, p0, r0) * tr(r2, t2)) * tr(r0, t1(p0)))(h), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap-sep, name:sep, seq: ⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1)), subst:[h, hP0, hP1] → [h, trp(r1, t1, p0, r0) * tr(r0, t1(p0)), r => mknode(r1, a, r2) * tr(r2, t2)]; [A] → [Node[A]], lhs:((r => mknode(r1, a, r2) * trp(r1, t1, p0, r0) * tr(r2, t2)) * tr(r0, t1(p0)))(h), <all paths>

Additional information

Used simplifier rules: sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep Used terms: h, trp(r1, t1, p0, r0) * tr(r0, t1(p0)), r => mknode(r1, a, r2) * tr(r2, t2)

Proof step 65 from proof tr-unfold-path (previous step) (back to tree)

⊦ (hP0 * hP1)(h) ↔ (∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ hP0(h0) ∧ hP1(h1))

A spec-lemma

Proof step 66 from proof tr-unfold-path (previous step) (back to tree)

p0 ∈ t1, ∃ h0, h1. h0 ⊥ h1 ∧ h = h0 ∪ h1 ∧ (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0) ∧ (r => mknode(r1, a, r2) * tr(r2, t2))(h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 67 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r1, a, r2) * tr(r2, t2))(h1), (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦ ∃ r0, c. (r => mknode(r0, a, c) * tr(r0, t1) * tr(c, t2))(h0 ∪ h1)

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: r1, r2 abort: F discard: T computed: F

Additional information

Used terms: r1, r2

Proof step 68 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r1, a, r2) * tr(r2, t2))(h1), (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0), ¬ (r => mknode(r1, a, r2) * tr(r1, t1) * tr(r2, t2))(h0 ∪ h1), ∀ r0, t0. tr(r0, t0) = _∃(λ r1. trp(r0, t0, p0, r1) * tr(r1, t0(p0))) ∨ ¬ p0 ∈ t0 ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 6 terms: r1, t1 abort: F discard: T computed: F

Additional information

Used terms: r1, t1

Proof step 69 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r1, a, r2) * tr(r2, t2))(h1), (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0), ¬ (r => mknode(r1, a, r2) * tr(r1, t1) * tr(r2, t2))(h0 ∪ h1), tr(r1, t1) = _∃(λ r. trp(r1, t1, p0, r) * tr(r, t1(p0))) ∨ ¬ p0 ∈ t1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 70 from proof tr-unfold-path (previous step) (back to tree)

tr(r1, t1) = _∃(λ r. trp(r1, t1, p0, r) * tr(r, t1(p0))), h0 ⊥ h1, p0 ∈ t1, (r => mknode(r1, a, r2) * tr(r2, t2))(h1), (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0), ¬ (r => mknode(r1, a, r2) * tr(r1, t1) * tr(r2, t2))(h0 ∪ h1) ⊦

User applied rule expand left

And obtained the following new goals

Rule argument

pos: left 1 terms: h0 abort: F discard: T computed: F

Additional information

Used terms: h0

Proof step 71 from proof tr-unfold-path (previous step) (back to tree)

tr(r1, t1)(h0) ↔ (_∃(λ r. trp(r1, t1, p0, r) * tr(r, t1(p0))))(h0), h0 ⊥ h1, p0 ∈ t1, (r => mknode(r1, a, r2) * tr(r2, t2))(h1), (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0), ¬ (r => mknode(r1, a, r2) * tr(r1, t1) * tr(r2, t2))(h0 ∪ h1) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sep-com: ⊦ hP0 * hP1 = hP1 * hP0; from specification heap-sep sep-ass: ⊦ (hP0 * hP1) * hP2 = hP0 * hP1 * hP2; from specification heap-sep ⊦ hP0(h0) ∧ hP1(h1) ∧ h0 ⊥ h1 → (hP0 * hP1)(h0 ∪ h1); (ss) ⊦ (_∃ bP)(h) ↔ (∃ b. bP(b)(h)); (s)

Proof step 72 from proof tr-unfold-path (previous step) (back to tree)

h0 ⊥ h1, p0 ∈ t1, (r => mknode(r1, a, r2) * tr(r2, t2))(h1), (trp(r1, t1, p0, r0) * tr(r0, t1(p0)))(h0), ¬ (r => mknode(r1, a, r2) * tr(r1, t1) * tr(r2, t2))(h0 ∪ h1), ¬ tr(r1, t1)(h0) ⊦ ∃ r. (trp(r1, t1, p0, r) * tr(r, t1(p0)))(h0)

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: r0

Additional information

Used terms: r0

Proof Tree for tr-unfold-path (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