| remove-refsize0(gstore0) = gstore0, remove-refsize0(istore0) = istore0, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, inv(gstore \ ginval), inv(gstore0), inv(istore), inv(istore0), istore0 ⊑ istore, ¬ dups(nx), pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore, pstate.index? → pstate.lnum ∈ istore, pstate = unbuffered → syn, pstate.index? ∨ pstate = readonly ⊦ ⟪apersistence_add_ind#(ind, adr, istore0, ginval, gstore, gstore0, nx, maxino, ginval0; adr0, istore, pstate, syn; err)⟫ ( inv(istore) ∧ istore0 ⊑ istore ∧ (pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore) ∧ (pstate.index? → pstate.lnum ∈ istore) ∧ (pstate = unbuffered → syn)) |
remove-refsize0(istore0) = istore0, remove-refsize0(gstore0) = gstore0, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, inv(istore0), inv(istore), inv(gstore0), inv(gstore \ ginval), istore0 ⊑ istore, pstate = unbuffered → syn, pstate.index? → pstate.lnum ∈ istore, pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore, pstate.index? ∨ pstate = readonly ⊦ ⟪apersistence_add_ind#(ind, adr, istore0, ginval, gstore, gstore0, nx, maxino, ginval0; adr0, istore, pstate, syn; err)⟫ ( inv(istore) ∧ istore0 ⊑ istore ∧ (pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore) ∧ (pstate.index? → pstate.lnum ∈ istore) ∧ (pstate = unbuffered → syn)), pstate.index?, dups(nx)
pstate = index(m), remove-refsize0(istore0) = istore0, remove-refsize0(gstore0) = gstore0, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, pstate.index?, inv(istore0), inv(istore), inv(gstore0), inv(gstore \ ginval), istore0 ⊑ istore, pstate = unbuffered → syn, pstate.index? → m ∈ istore, pstate.journal? → nx ≠ [] ∧ m = nx.last ∧ m ∈ gstore, pstate.index? ∨ pstate = readonly ⊦ ⟪apersistence_add_ind#(ind, adr, istore0, ginval, gstore, gstore0, nx, maxino, ginval0; adr0, istore, pstate, syn; err)⟫ ( inv(istore) ∧ istore0 ⊑ istore ∧ (pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore) ∧ (pstate.index? → pstate.lnum ∈ istore) ∧ (pstate = unbuffered → syn)), dups(nx)
Used simplifier rules: ⊦ pstate.index? → (m = pstate.lnum ↔ pstate = index(m)); (elim) Used terms: pstate, m