| gstore1 = crash(gstore, gstore0, ginval, nx), remove-refsize0(istore0) = istore0, remove-refsize0(gstore0) = gstore0, syn, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, inv(istore0), inv(istore), inv(gstore0), inv(gstore \ ginval), istore0 ⊑ istore, pstate.index? → pstate.lnum ∈ istore, pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore, pstate.journal? ∨ pstate = readonly ⊦ ⟨apersistence_add_gnds#(gndx, adr0, istore, istore0, ginval, gstore0, nx, maxino0, ginval2; ax, gstore, pstate, syn; err)⟩ (syn ∧ gstore1 = crash(gstore, gstore0, ginval, nx)), pstate.journal?, dups(nx) |
gstore1 = crash(gstore, gstore0, ginval, nx), pstate = readonly, remove-refsize0(istore0) = istore0, remove-refsize0(gstore0) = gstore0, syn, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, inv(istore0), inv(istore), inv(gstore0), inv(gstore \ ginval), istore0 ⊑ istore, ¬ dups(nx) ⊦ ⟨apersistence_add_gnds#(gndx, adr0, istore, istore0, ginval, gstore0, nx, maxino0, ginval2; ax, gstore, pstate, syn; err)⟩ (syn ∧ gstore1 = crash(gstore, gstore0, ginval, nx))
Used simplifier rules: ⊦ ¬ readonly.index?; (s)% ⊦ ¬ readonly.journal?; (s)