[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 mk-exists (conclusion) (back to tree)

⊦ ∃ rs, f. h = mk(rs, f)

User applied rule induction

And obtained the following new goals

Rule argument

indvar: # h wfpred: <

Additional information

Used simplifier rules: <; (wellfounded) Used terms: # h

Proof step 2 from proof mk-exists (previous step) (back to tree)

∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof mk-exists (previous step) (back to tree)

∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: h = ∅

Additional information

Used formulas: h = ∅

Proof step 4 from proof mk-exists (previous step) (back to tree)

h = ∅, ∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 5 from proof mk-exists (previous step) (back to tree)

∀ h0. # h0 < # ∅ → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. ∅ = mk(rs, f)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: ∅, f abort: F discard: F computed: F

Additional information

Used simplifier rules: emp: ⊦ mk(∅, f) = ∅; Used terms: ∅, f

Proof step 6 from proof mk-exists (previous step) (back to tree)

h ≠ ∅, ∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap, name:ext, seq: ⊦ h0 = h1 ↔ (∀ r. (r ∈ h0 ↔ r ∈ h1) ∧ (r ∈ h0 → h0[r] = h1[r])), subst:[h1, h0] → [∅, h], <all paths>

Additional information

Used terms: ∅, h

Proof step 7 from proof mk-exists (previous step) (back to tree)

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

A spec-lemma

Proof step 8 from proof mk-exists (previous step) (back to tree)

∃ r. ¬((r ∈ h ↔ r ∈ ∅) ∧ (r ∈ h → h[r] = ∅[r])), ∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ r ∈ ∅; (s)

Proof step 9 from proof mk-exists (previous step) (back to tree)

r ∈ h, ∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap, name:exin, seq: ⊦ r ≠ null → (r ∈ h ↔ (∃ h0, o. h = (h0 ++ r)[r, o] ∧ ¬ r ∈ h0)), subst:[h, r] → [h, r], <all paths>

Additional information

Used simplifier rules: ⊦ ¬ null ∈ h; (s) Used terms: h, r

Proof step 10 from proof mk-exists (previous step) (back to tree)

⊦ r ≠ null → (r ∈ h ↔ (∃ h0, o. h = (h0 ++ r)[r, o] ∧ ¬ r ∈ h0))

A spec-lemma

Proof step 11 from proof mk-exists (previous step) (back to tree)

r ≠ null, ∃ h0, o. h = (h0 ++ r)[r, o] ∧ ¬ r ∈ h0, ∀ h0. # h0 < # h → true → (∃ rs, f. h0 = mk(rs, f)) ⊦ ∃ rs, f. h = mk(rs, f)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 12 from proof mk-exists (previous step) (back to tree)

r ≠ null, ¬ r ∈ h0, ∀ h1. # h1 < # (h0 ++ r)[r, o] → true → (∃ rs, f. h1 = mk(rs, f)) ⊦ ∃ rs, f. (h0 ++ r)[r, o] = mk(rs, f)

User applied rule apply induction

And obtained the following new goals

Rule argument

subst: [h1] → [h0]

Additional information

Used simplifier rules: r0 ≠ null, ¬ r0 ∈ h ⊦ r ∈ h ++ r0 ↔ r = r0 ∨ r ∈ h; (s) r ∈ h ⊦ # h[r, o] = # h; (s) ¬ r ∈ h, r ≠ null ⊦ #(h ++ r) = # h + 1; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: h0

Proof step 13 from proof mk-exists (previous step) (back to tree)

r ≠ null, ¬ r ∈ h0, ∃ rs, f. h0 = mk(rs, f), ∀ h1. # h1 < # (h0 ++ r)[r, o] → true → (∃ rs, f. h1 = mk(rs, f)) ⊦ ∃ rs, f. (h0 ++ r)[r, o] = mk(rs, f)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: in-mk: ⊦ r ∈ mk(rs, f) ↔ r ∈ rs;

Proof step 14 from proof mk-exists (previous step) (back to tree)

r ≠ null, ¬ r ∈ rs, ∀ h1. # h1 < # (mk(rs, f) ++ r)[r, o] → true → (∃ rs, f. h1 = mk(rs, f)) ⊦ ∃ rs0, f0. (mk(rs, f) ++ r)[r, o] = mk(rs0, f0)

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: rs ++ r, f(r; o) abort: F discard: T computed: F

Additional information

Used terms: rs ++ r, f(r; o)

Proof step 15 from proof mk-exists (previous step) (back to tree)

(mk(rs, f) ++ r)[r, o] ≠ mk(rs ++ r, f(r; o)), r ≠ null, ¬ r ∈ rs, ∀ h1. # h1 < # (mk(rs, f) ++ r)[r, o] → true → (∃ rs, f. h1 = mk(rs, f)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: heap, name:ext, seq: ⊦ h0 = h1 ↔ (∀ r. (r ∈ h0 ↔ r ∈ h1) ∧ (r ∈ h0 → h0[r] = h1[r])), subst:[h1, h0] → [mk(rs ++ r, f(r; o)), (mk(rs, f) ++ r)[r, o]], <all paths>

Additional information

Used terms: mk(rs ++ r, f(r; o)), (mk(rs, f) ++ r)[r, o]

Proof step 16 from proof mk-exists (previous step) (back to tree)

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

A spec-lemma

Proof step 17 from proof mk-exists (previous step) (back to tree)

r ≠ null, ¬ r ∈ rs, ∃ r0. ¬((r0 ∈ (mk(rs, f) ++ r)[r, o] ↔ r0 ∈ mk(rs ++ r, f(r; o))) ∧ (r0 ∈ (mk(rs, f) ++ r)[r, o] → (mk(rs, f) ++ r)[r, o][r0] = mk(rs ++ r, f(r; o))[r0])), ∀ h1. # h1 < # (mk(rs, f) ++ r)[r, o] → true → (∃ rs, f. h1 = mk(rs, f)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: in-mk: ⊦ r ∈ mk(rs, f) ↔ r ∈ rs; r0 ≠ null, ¬ r0 ∈ h ⊦ r ∈ h ++ r0 ↔ r = r0 ∨ r ∈ h; (s) ⊦ h[r0, o][r] = (r = r0 ∧ r0 ∈ h ⊃ o;h[r]); (s) ⊦ r ∈ h[r0, o] ↔ r ∈ h; (s) ⊦ a ∈ s ++ b ↔ a = b ∨ a ∈ s; (s)

Proof step 18 from proof mk-exists (previous step) (back to tree)

(r0 = r ⊃ o;(mk(rs, f) ++ r)[r0]) ≠ mk(rs ++ r, f(r; o))[r0], r ≠ null, ¬ r ∈ rs, r0 = r ∨ r0 ∈ rs, ∀ h1. # h1 < # (mk(rs, f) ++ r)[r, o] → true → (∃ rs, f. h1 = mk(rs, f)) ⊦

Heuristic nonsplitting cut applied rule cut formula

And closed the goal!

Rule argument

fma: r0 ∈ rs ++ r

Additional information

Used simplifier rules: in-mk: ⊦ r ∈ mk(rs, f) ↔ r ∈ rs; at-mk: ⊦ r ∈ rs → mk(rs, f)[r] = f(r); in-mk: ⊦ r ∈ mk(rs, f) ↔ r ∈ rs; r ∈ h, r0 ≠ null, ¬ r0 ∈ h ⊦ r ≠ r0 → (h ++ r0)[r] = h[r]; (s) ⊦ a ∈ s ++ b ↔ ¬(a ≠ b ∧ ¬ a ∈ s); (ss) ⊦ a ∈ s ++ b ↔ a = b ∨ a ∈ s; (s) Used formulas: r0 ∈ rs ++ r

Proof Tree for mk-exists (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