| newref(r0, st), junkrefs(str, r ' + refs0, (addarray(r0, ty0, vals, st)[r -- _type]) .type, addarray(r0, ty0, vals, st)) ⊦ r0 = jvmref, junkrefs(str, r ' + refs0, st[r -- _type] .type, st), ∃ refs. refs ≠ [] ∧ refs .first = r ∧ junkrefs(str, refs, st[refs .first -- _type] .type, st) |
⊦ rk .ref ≠ r → (addarray(r, ty, vals, st)[rk]) = st[rk]
⊦ newref(r, st) → (¬ junkrefs(str, r ' + refs, ty, st) ↔ false)
⊦ ¬ junkrefs(str, refs, ty, st) ∧ newref(r0, st) → ¬ junkrefs(str, refs, ty, addarray(r0, ty0, vals, st))
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ (r -- sk) .ref = r], [CSIMPSEQ : ⊦ (addarray(r, ty, vals, st) [r -- _type ] ) = typeval(mkarraytype(ty))], [CSIMPSEQ : ⊦ typeval(ty) .type = ty], [CSIMPSEQ : ⊦ (refs + refs0) + refs1 = refs + refs0 + refs1])], [EXTRATERMS : (r -- _type, st, vals, ty0, r0)]]