| is_primtype(ty), okarray(r, ty, st), r ∈ st, is_array(r, st), ¬ st[r -- _type] .type ≤ mkarraytype(ty) ∨ st[r -- _type] .type .jtelemtype = abstract_type ∨ st[r -- _type] .type .jtelemtype = void_type ∨ ¬ type∃(str, st[r -- _type] .type) ⊦ r = jvmref |
⊦ okarray(r, ty, st) ↔ okreftype(refval(r), mkarraytype(ty), st) ∧ r ≠ jvmref ∧ r -- _length ∈ st ∧ is_integervalue(st[r -- _length]) ∧ 0 ≤ st[r -- _length] .intval ∧ is_arrayref(r, st[r -- _length] .intval, st) ∧ (∀ j. 0 ≤ j ∧ j < st[r -- _length] .intval → oktype(st[r -- j '], ty, st))
is_primtype(ty), okreftype(refval(r), mkarraytype(ty), st) ∧ r ≠ jvmref ∧ r -- _length ∈ st ∧ is_integervalue(st[r -- _length]) ∧ 0 ≤ st[r -- _length] .intval ∧ is_arrayref(r, st[r -- _length] .intval, st) ∧ (∀ j. 0 ≤ j ∧ j < st[r -- _length] .intval → oktype(st[r -- j '], ty, st)), r ∈ st, is_array(r, st), ¬ st[r -- _type] .type ≤ mkarraytype(ty) ∨ st[r -- _type] .type .jtelemtype = abstract_type ∨ st[r -- _type] .type .jtelemtype = void_type ∨ ¬ type∃(str, st[r -- _type] .type) ⊦ r = jvmref
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st, ty, r)]]