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