| st[r0 -- _type] .type = mkclasstype(class), validrefs(str, st[r -- fs0 '] .refval ' + refs, fs0 .type, st[r0 -- fs ', val]), is_referencevalue(st[r -- fs0 ']), fs0 ' ∈ instfields(st[r -- _type] .type .class), is_obj(str, r, st[r0 -- fs ', val]), st[r -- _type] .type ≤ ty, is_obj(str, r, st), ∀ str0, ty0, st0, fs1, r2, val0. ¬ validrefs(str0, st[r -- fs0 '] .refval ' + refs, ty0, st0) ∧ ¬ junkref(str0, st[r -- fs0 '] .refval, st0) ∧ fs1 ' ≠ _type ∧ is_classtype(st0[r2 -- _type] .type) ∧ ¬ fs1 ' ∈ instfields(st0[r2 -- _type] .type .class) → ¬ validrefs(str0, st[r -- fs0 '] .refval ' + refs, ty0, st0[r2 -- fs1 ', val0]), r ≠ r0 ∨ fs0 ≠ fs ⊦ fs ' = _type, r = jvmref, dups((st[r -- fs0 '] .refval ' + refs) .butlast), r ∈ (st[r -- fs0 '] .refval ' + refs) .butlast, fs ' ∈ instfields(class), junkref(str, r, st), validrefs(str, r ' + st[r -- fs0 '] .refval ' + refs, ty, st) |
⊦ is_obj(str, r, st) ∧ st[r -- _type] .type ≤ ty → ( validrefs(str, r ' + refs, ty, st) ↔ refs = [] ∨ (∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ refs .first = st[r -- fs '] .refval ∧ validrefs(str, refs, fs .type, st)))
is_obj(str, r, st) ∧ st[r -- _type] .type ≤ ty, st[r0 -- _type] .type = mkclasstype(class), validrefs(str, st[r -- fs0 '] .refval ' + refs, fs0 .type, st[r0 -- fs ', val]), is_referencevalue(st[r -- fs0 ']), fs0 ' ∈ instfields(st[r -- _type] .type .class), is_obj(str, r, st[r0 -- fs ', val]), st[r -- _type] .type ≤ ty, is_obj(str, r, st), ∀ str0, ty0, st0, fs1, r2, val0. ¬ validrefs(str0, st[r -- fs0 '] .refval ' + refs, ty0, st0) ∧ ¬ junkref(str0, st[r -- fs0 '] .refval, st0) ∧ fs1 ' ≠ _type ∧ is_classtype(st0[r2 -- _type] .type) ∧ ¬ fs1 ' ∈ instfields(st0[r2 -- _type] .type .class) → ¬ validrefs(str0, st[r -- fs0 '] .refval ' + refs, ty0, st0[r2 -- fs1 ', val0]), r ≠ r0 ∨ fs0 ≠ fs ⊦ fs ' = _type, r = jvmref, dups((st[r -- fs0 '] .refval ' + refs) .butlast), r ∈ (st[r -- fs0 '] .refval ' + refs) .butlast, fs ' ∈ instfields(class), junkref(str, r, st), st[r -- fs0 '] .refval ' + refs = [] ∨ (∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ (st[r -- fs0 '] .refval ' + refs) .first = st[r -- fs '] .refval ∧ validrefs(str, st[r -- fs0 '] .refval ' + refs, fs .type, st))
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ (refs + refs0) + refs1 = refs + refs0 + refs1])], [EXTRATERMS : (st, ty, st[r -- fs0 '] .refval ' + refs, r, str)]]