[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 lst-in-hp (conclusion) (back to tree)

⊦ (o[lst(r)] * hR)[rs, cf, af] ∧ r ≠ null → r ∈ rs

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof lst-in-hp (previous step) (back to tree)

r ≠ null, (o[lst(r)] * hR)[rs, cf, af], ¬ r ∈ rs ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lst-rec: ⊦ r ≠ null → lst(r) = _∃(λ x. ls(r, x));

Proof step 3 from proof lst-in-hp (previous step) (back to tree)

r ≠ null, (o[_∃(λ x. ls(r, x))] * hR)[rs, cf, af], ¬ r ∈ rs ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:ex-lst-shift, seq: ⊦ (o[_∃ xv] * hR)[rs, cf, af] ↔ (∃ x. (o[xv(x)] * hR)[rs, cf, af]), subst:[hR, cf, xv, rs, af, o] → [hR, cf, λ x. ls(r, x), rs, af, o], <all paths>

Additional information

Used terms: hR, cf, λ x. ls(r, x), rs, af, o

Proof step 4 from proof lst-in-hp (previous step) (back to tree)

⊦ (o[_∃ xv] * hR)[rs, cf, af] ↔ (∃ x. (o[xv(x)] * hR)[rs, cf, af])

Lemma ex-lst-shift

Proof step 5 from proof lst-in-hp (previous step) (back to tree)

r ≠ null, ¬ r ∈ rs, ∃ x. (o[ls(r, x)] * hR)[rs, cf, af] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 6 from proof lst-in-hp (previous step) (back to tree)

r ≠ null, (o[ls(r, x)] * hR)[rs, cf, af], ¬ r ∈ rs ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap-aux[cell-heap-aux], name:sep, seq:⊦ (hR0 * hR1)[rs, f, g] ↔ (∃ rs0, rs1. rs0 ∪ rs1 = rs ∧ rs0 ∩ rs1 = ∅ ∧ hR0[rs0, f, g] ∧ hR1[rs1, f, g]), subst:[f, rs, hR1, g, hR0] → [cf, rs, hR, af, o[ls(r, x)]], <all paths>

Additional information

Used terms: cf, rs, hR, af, o[ls(r, x)]

Proof step 7 from proof lst-in-hp (previous step) (back to tree)

⊦ (hR0 * hR1)[rs, f, g] ↔ (∃ rs0, rs1. rs0 ∪ rs1 = rs ∧ rs0 ∩ rs1 = ∅ ∧ hR0[rs0, f, g] ∧ hR1[rs1, f, g])

A spec-lemma

Proof step 8 from proof lst-in-hp (previous step) (back to tree)

r ≠ null, ¬ r ∈ rs, ∃ rs0, rs1. rs0 ∪ rs1 = rs ∧ rs0 ∩ rs1 = ∅ ∧ o[ls(r, x)][rs0, cf, af] ∧ hR[rs1, cf, af] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: unc: ⊦ s ∪ s0 = s0 ∪ s; from specification set-union[refset] una: ⊦ (s ∪ s0) ∪ s1 = s ∪ s0 ∪ s1; from specification set-union[refset] ⊦ a ∈ s ∪ s0 ↔ ¬(¬ a ∈ s ∧ ¬ a ∈ s0); (ss)

Proof step 9 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, o[ls(r, x)][rs0, cf, af], hR[rs1, cf, af], ¬ r ∈ rs0, ¬ r ∈ rs1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap-aux[cell-heap-aux], name:apply, seq: ⊦ hR[rs, f, g] ↔ hR(mk(rs, f, g)), subst:[hR, rs, f, g] → [o[ls(r, x)], rs0, cf, af], <all paths>

Additional information

Used terms: o[ls(r, x)], rs0, cf, af

Proof step 10 from proof lst-in-hp (previous step) (back to tree)

⊦ hR[rs, f, g] ↔ hR(mk(rs, f, g))

A spec-lemma

Proof step 11 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], o[ls(r, x)](mk(rs0, cf, af)), ¬ r ∈ rs0, ¬ r ∈ rs1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: embed-aux[cell-heap-aux], name:lift-aux, seq: ⊦ a[hP](mk(rs, f, g)) ↔ hP(mk(rs, f)) ∧ (∀ r. r ∈ rs → g(r) = a), subst:[f, a, hP, rs, g] → [cf, o, ls(r, x), rs0, af], <all paths>

Additional information

Used terms: cf, o, ls(r, x), rs0, af

Proof step 12 from proof lst-in-hp (previous step) (back to tree)

⊦ a[hP](mk(rs, f, g)) ↔ hP(mk(rs, f)) ∧ (∀ r. r ∈ rs → g(r) = a)

A spec-lemma

Proof step 13 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r, x)(mk(rs0, cf)), ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 14 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r, x)(mk(rs0, cf)), ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x

Additional information

Used simplifier rules: ls-base: ⊦ ls(r, []) = (emp ∧ ⌜r = null⌝ ); list freely generated by [], +;; ⊦ ⌜false⌝ = false; (s) ⊦ (false ∧ hP) = false; (s) and-ass: ⊦ ((hP0 ∧ hP1) ∧ hP2) = (hP0 ∧ hP1 ∧ hP2); from specification heap-sep and-com: ⊦ (hP0 ∧ hP1) = (hP1 ∧ hP0); from specification heap-sep ⊦ ¬ false(h); (s)

Proof step 15 from proof lst-in-hp (previous step) (back to tree)

x = a + x0, rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r, x)(mk(rs0, cf)), ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ls-rec: ⊦ ls(r, a ' + x) = _∃(λ r0. r => a × r0 * ls(r0, x)); ⊦ (_∃ rP)(h) ↔ (∃ r. rP(r)(h)); (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a + x = a ' + x; (s)

Proof step 16 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, ((r => a × r0 * ls(r0, x0)))(mk(rs0, cf)), hR[rs1, cf, af], ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o ⊦

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, hP1, hP0] → [mk(rs0, cf), ls(r0, x0), r => a × r0], <all paths>

Additional information

Used terms: mk(rs0, cf), ls(r0, x0), r => a × r0

Proof step 17 from proof lst-in-hp (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 lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o, ∃ h0, h1. h0 ⊥ h1 ∧ mk(rs0, cf) = h0 ∪ h1 ∧ ((r => a × r0))(h0) ∧ ls(r0, x0)(h1) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 19 from proof lst-in-hp (previous step) (back to tree)

mk(rs0, cf) = h0 ∪ h1, rs0 ∩ rs1 = ∅, r ≠ null, ((r => a × r0))(h0), hR[rs1, cf, af], ls(r0, x0)(h1), h0 ⊥ h1, ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: maplet[cell-heap-aux], name:maplet, seq: ⊦ ((r => o))(h) ↔ h = (∅ ++ r)[r, o] ∧ r ≠ null, subst:[h, o, r] → [h0, a × r0, r], <all paths>

Additional information

Used terms: h0, a × r0, r

Proof step 20 from proof lst-in-hp (previous step) (back to tree)

⊦ ((r => o))(h) ↔ h = (∅ ++ r)[r, o] ∧ r ≠ null

A spec-lemma

Proof step 21 from proof lst-in-hp (previous step) (back to tree)

h0 = (∅ ++ r)[r, a × r0], mk(rs0, cf) = h0 ∪ h1, rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r0, x0)(h1), h0 ⊥ h1, ¬ r ∈ rs0, ¬ r ∈ rs1, ∀ r. r ∈ rs0 → af(r) = o ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: r ≠ null ⊦ (∅ ++ r)[r, o] ⊥ h ↔ ¬ r ∈ h; (s)

Proof step 22 from proof lst-in-hp (previous step) (back to tree)

mk(rs0, cf) = (∅ ++ r)[r, a × r0] ∪ h1, rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r0, x0)(h1), ¬ r ∈ rs0, ¬ r ∈ rs1, ¬ r ∈ h1, ∀ r. r ∈ rs0 → af(r) = o ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap[cell-heap-aux], name:ext, seq: ⊦ h0 = h1 ↔ (∀ r. (r ∈ h0 ↔ r ∈ h1) ∧ (r ∈ h0 → h0[r] = h1[r])), subst:[h1, h0] → [(∅ ++ r)[r, a × r0] ∪ h1, mk(rs0, cf)], <all paths>

Additional information

Used terms: (∅ ++ r)[r, a × r0] ∪ h1, mk(rs0, cf)

Proof step 23 from proof lst-in-hp (previous step) (back to tree)

⊦ h0 = h1 ↔ (∀ r. (r ∈ h0 ↔ r ∈ h1) ∧ (r ∈ h0 → h0[r] = h1[r]))

A spec-lemma

Proof step 24 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r0, x0)(h1), ¬ r ∈ rs0, ¬ r ∈ rs1, ¬ r ∈ h1, ∀ r. r ∈ rs0 → af(r) = o, ∀ r1. (r1 ∈ mk(rs0, cf) ↔ r1 ∈ (∅ ++ r)[r, a × r0] ∪ h1) ∧ (r1 ∈ mk(rs0, cf) → mk(rs0, cf)[r1] = ((∅ ++ r)[r, a × r0] ∪ h1)[r1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ r ∈ rs → mk(rs, f)[r] = f(r); (s) ⊦ r ∈ mk(rs, f) ↔ r ∈ rs; (s)

Proof step 25 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r0, x0)(h1), ¬ r ∈ rs0, ¬ r ∈ rs1, ¬ r ∈ h1, ∀ r. r ∈ rs0 → af(r) = o, ∀ r1. (r1 ∈ rs0 ↔ r1 ∈ (∅ ++ r)[r, a × r0] ∪ h1) ∧ (r1 ∈ rs0 → cf(r1) = ((∅ ++ r)[r, a × r0] ∪ h1)[r1]) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 9 terms: r abort: F discard: T computed: T

Additional information

Used terms: r

Proof step 26 from proof lst-in-hp (previous step) (back to tree)

r ∈ rs0 ↔ r ∈ (∅ ++ r)[r, a × r0] ∪ h1, rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r0, x0)(h1), ¬ r ∈ rs0, ¬ r ∈ rs1, ¬ r ∈ h1, r ∈ rs0 → cf(r) = ((∅ ++ r)[r, a × r0] ∪ h1)[r], ∀ r. r ∈ rs0 → af(r) = o ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 27 from proof lst-in-hp (previous step) (back to tree)

rs0 ∩ rs1 = ∅, r ≠ null, hR[rs1, cf, af], ls(r0, x0)(h1), ¬ r ∈ rs0, ¬ r ∈ rs1, ¬ r ∈ h1, ¬ r ∈ (∅ ++ r)[r, a × r0] ∪ h1, ∀ r. r ∈ rs0 → af(r) = o ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap[cell-heap-aux], name:in-uni, seq: ⊦ h0 ⊥ h1 → (r ∈ h0 ∪ h1 ↔ r ∈ h0 ∨ r ∈ h1), subst:[h1, h0, r] → [h1, (∅ ++ r)[r, a × r0], r], <all paths>

Additional information

Used simplifier rules: r ≠ null ⊦ (∅ ++ r)[r, o] ⊥ h ↔ ¬ r ∈ h; (s) ⊦ r ∈ h[r0, o] ↔ r ∈ h; (s) ⊦ ¬ r ∈ ∅; (s) r0 ≠ null, ¬ r0 ∈ h ⊦ r ∈ h ++ r0 ↔ r = r0 ∨ r ∈ h; (s) Used terms: h1, (∅ ++ r)[r, a × r0], r

Proof step 28 from proof lst-in-hp (previous step) (back to tree)

⊦ h0 ⊥ h1 → (r ∈ h0 ∪ h1 ↔ r ∈ h0 ∨ r ∈ h1)

A spec-lemma

Proof Tree for lst-in-hp (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