| is_array(`docs2store', r1, st) ∧ st[r1 -- _type] .type ≤ ty, okbytearray(r1, st), is_array(`docs2store', r1, putByteArray(bytes, r1, i, st)), mkarraytype(byte_type) ≤ ty, ∀ r1, st, ty, bytes, i. okbytearray(r1, st) ∧ validrefs(`docs2store', acc, ty, putByteArray(bytes, r1, i, st)) → validrefs(`docs2store', acc, ty, st), acc = [] ∨ 0 ≤ i0 ∧ i0 < st[r1 -- _length] .intval ∧ is_referencevalue(putByteArray(bytes, r1, i, st)[r1 -- i0 ']) ∧ jvmref = (putByteArray(bytes, r1, i, st)[r1 -- i0 ']) .refval ∧ acc = jvmref ' ⊦ r1 = jvmref, acc = [] ∨ (∃ i. 0 ≤ i ∧ i < st[r1 -- _length] .intval ∧ is_referencevalue(st[r1 -- i ']) ∧ acc .first = st[r1 -- i '] .refval ∧ validrefs(`docs2store', acc, st[r1 -- _type] .type .type, st)) |
⊦ validrefs(str, refs, byte_type, st) ↔ refs = [] ∨ refs = jvmref '
jvmref = (putByteArray(bytes, r1, i, st)[r1 -- i0 ']) .refval, 0 < st[r1 -- _length] .intval, 0 ≤ i0, is_referencevalue(putByteArray(bytes, r1, i, st)[r1 -- i0 ']), i0 < st[r1 -- _length] .intval, mkarraytype(byte_type) ≤ ty, is_array(`docs2store', r1, putByteArray(bytes, r1, i, st)), okbytearray(r1, st), ∀ r1, st, ty, bytes, i. okbytearray(r1, st) ∧ validrefs(`docs2store', jvmref ', ty, putByteArray(bytes, r1, i, st)) → validrefs(`docs2store', jvmref ', ty, st) ⊦ r1 = jvmref, ∃ i1. ¬ i1 < 0 ∧ ¬ st[r1 -- _length] .intval ≤ i1 ∧ is_referencevalue(st[r1 -- i1 ']) ∧ jvmref = st[r1 -- i1 '] .refval
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ r ' .first = r], [CSIMPSEQ : ⊦ r ' ≠ []], [CSIMPFORWARD : ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j], [CSIMPFORWARD : ⊦ i < j ∧ 0 ≤ i → 0 < j], [CSIMPSEQ : ⊦ mkarraytype(ty) .type = ty], [CSIMPSEQ : ⊦ ¬ i < j ↔ j ≤ i], [CSIMPSEQ : ⊦ ¬ i ≤ j ↔ j < i], [CSIMPSEQ : ⊦ typeval(ty) .type = ty], [CSIMPSEQ : ⊦ okbytearray(r, st) → st[r -- _type] = typeval(mkarraytype(byte_type))], [CSIMPSEQ : ⊦ okbytearray(r, st) → is_array(str, r, st)])]]