[PostScript]
Array2 (E, I1, I2, A): trait
  % Basic two-dimensional array operators
  introduces
    assign: A, I1, I2, E -> A
    __[__, __]: A, I1, I2 -> E
  asserts
    forall a: A, i1, j1: I1, i2, j2: I2, e: E
      assign(a, i1, i2, e)[j1, j2] ==
        if i1 = j1 /\ i2 = j2 then e else a[j1, j2]
[Table of Contents] [Index]