| junkrefs(str, r0 ' + refs0, val .type, st[r0 -- _type, val]), junkrefs(str, r0 ' + refs0, val .type, st) ⊦ junkref(str, r0, st), is_typevalue(st[r0 -- _type]) ∧ is_reftype(st[r0 -- _type] .type) |
⊦ junkref(str, r, st) ↔ (∃ refs. refs ≠ [] ∧ refs .first = r ∧ junkrefs(str, refs, st[r -- _type] .type, st))
junkrefs(str, r0 ' + refs0, val .type, st[r0 -- _type, val]), junkrefs(str, r0 ' + refs0, val .type, st) ⊦ ∃ refs. refs ≠ [] ∧ refs .first = r0 ∧ junkrefs(str, refs, st[r0 -- _type] .type, st), is_typevalue(st[r0 -- _type]) ∧ is_reftype(st[r0 -- _type] .type)
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st, r0, str)]]