| okreftype(refval(r), mkarraytype(byte_type), 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 '], byte_type, st)), i < st[r -- _length] .intval, 0 ≤ i, 0 < st[r -- _length] .intval, r ∈ st ⊦ r = jvmref, is_bytevalue(st[r -- i ']) |
⊦ okreftype(val, ty, st) ↔ is_referencevalue(val) ∧ (val .refval ≠ jvmref → val .refval -- _type ∈ st ∧ is_typevalue(st[val .refval -- _type]) ∧ st[val .refval -- _type] .type ≤ ty)
⊦ oktype(val, byte_type, st) ↔ is_bytevalue(val)
st[r -- _type] .type = mkarraytype(byte_type), r -- _length ∈ st, is_integervalue(st[r -- _length]), is_arrayref(r, st[r -- _length] .intval, st), i < st[r -- _length] .intval, 0 ≤ i, 0 < st[r -- _length] .intval, r -- _type ∈ st, is_typevalue(st[r -- _type]), 0 ≤ st[r -- _length] .intval, r ∈ st, ∀ j. ¬ j < 0 ∧ ¬ st[r -- _length] .intval ≤ j → is_bytevalue(st[r -- j ']) ⊦ r = jvmref, is_bytevalue(st[r -- i '])
[[CONCRETESIMPRULES : ([CSIMPFORWARD : ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j], [CSIMPFORWARD : ⊦ r -- sk ∈ st → r ∈ st], [CSIMPSEQ : ⊦ ¬ i < j ↔ j ≤ i], [CSIMPSEQ : ⊦ ¬ i ≤ j ↔ j < i], [CSIMPSEQ : ⊦ ty ≤ mkarraytype(byte_type) ↔ ty = mkarraytype(byte_type)], [CSIMPSEQ : ⊦ refval(r) .refval = r], [CSIMPSEQ : ⊦ is_referencevalue(refval(r))])]]