| # refs1 = i→n(countrefs(i0 ' + ints1)) * i→n(i1) + i→n(countrefs(i0 ' + ints1)), lastn(i→n(countrefs(i0 ' + ints1)), r0 ' + refs1) = r1 ' + refs, posints(ints1), 0 ≤ i0, 0 ≤ n→i(# acc) + i1, 0 ≤ i1, i→n(countrefs(i0 ' + ints1)) ≤ 1 + # refs1, ∀ st, ty, ints, i, acc, r, refs0. # refs0 < # (r0 + refs1) → ( true → ( r ∈ refs0 ∧ n→i(# acc) + i = ints .first ∧ # refs0 = i→n(countrefs(i ' + ints .rest)) ∧ ints ≠ [] ∧ 0 ≤ i ∧ posints(ints) ∧ ¬ 0 ∈ ints .butlast ∧ i ≤ ints .first → is_arrayref(r, (addmultiarrays(refs0, i, acc, ty, ints, st)[r -- _length]) .intval, addmultiarrays(refs0, i, acc, ty, ints, st)))) ⊦ posints((n→i(# acc) + i1 + 1) ' + i0 ' + ints1), (~1) = n→i(# acc) + i1, (~1) = i1, 0 ∈ (i0 ' + ints1) .butlast, is_arrayref (r, (addmultiarrays (r0 ' + firstn(i→n(countrefs(i0 ' + ints1)) * i→n(i1), refs1), i1, r1 ' + acc, ty, (n→i(# acc) + i1 + 1) ' + i0 ' + ints1, addmultiarrays(r1 ' + refs, i0, [], ty, i0 ' + ints1, st)) [r -- _length ] ) .intval, addmultiarrays (r0 ' + firstn(i→n(countrefs(i0 ' + ints1)) * i→n(i1), refs1), i1, r1 ' + acc, ty, (n→i(# acc) + i1 + 1) ' + i0 ' + ints1, addmultiarrays(r1 ' + refs, i0, [], ty, i0 ' + ints1, st))), r ≠ r0 ∧ ¬ r ∈ refs1 |
⊦ posints(i ' + ints) ↔ 0 ≤ i ∧ posints(ints)
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ m0 * m * n = (m0 * m) * n], [CSIMPSEQ : ⊦ m * n = n * m], [CSIMPSEQ : ⊦ (m + n0) + n1 = m + n0 + n1], [CSIMPSEQ : ⊦ m + n = n + m], [CSIMPSEQ : ⊦ ((* j)) ≤ i0 + ((* j0)) ↔ j - j0 ≤ i0], [CSIMPSEQ : ⊦ i + j = j + i], [CSIMPSEQ : i0 ≠ 0, i0 ≤ i ⊦ ((* i)) ≤ j → ((* i0)) ≤ j], [CSIMPSEQ : ⊦ i + j + i0 = (i + j) + i0], [CSIMPSEQ : ⊦ posints(i ' + ints) ↔ 0 ≤ i ∧ posints(ints)], [CSIMPSEQ : ⊦ (ints + ints0) + ints1 = ints + ints0 + ints1])], [EXTRATERMS : (i0 ' + ints1, n→i(# acc) + i1 + 1)]]