Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.TileKernels

Native compact-table reads and signed arithmetic #

The descriptor loads, leaf multiplication and child accumulation execute the actual fixed-register program. The bounds include address arithmetic and operand loads as well as the existing signed kernels. None of these routines changes memory.

Registers written while loading one three-word descriptor.

Instances For
    theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_loadRecord {w R j c e p : ℕ} (x : WordRAM.Data registers) (hR : x.regs Reg.records = R) (hj : x.regs Reg.current = j) (h1 : x.regs Reg.one = 1) (h3 : x.regs Reg.three = 3) (hc : x.mem (R + j * 3) = c) (he : x.mem (R + j * 3 + 1) = e) (hp : x.mem (R + j * 3 + 2) = p) (hfit : WordRAM.Fits w (R + j * 3 + 2)) :

    Read the three actual descriptor cells within seven native instructions.

    The signed workspace, indexed address and returned accumulator.

    Instances For

      The signed workspace and native directory/value-address temporaries of one child.

      Instances For
        theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.exec_addChild {w D V c e T p d r : ℕ} {a b : ℤ} (ha : GenericRAM.Signed.Fits w a) (hb : GenericRAM.Signed.Fits w b) (x : WordRAM.Data registers) (hD : x.regs Reg.directory = D) (hV : x.regs Reg.values = V) (hc : x.regs Reg.completion = c) (he : x.regs Reg.stars = e) (hT : x.regs Reg.span = T) (hTpos : 0 < T) (hp : x.regs Reg.starPower = p) (hd : x.regs Reg.term = d) (hacc : x.regs Reg.accumulator = WordRAM.Signed.encode a) (h9 : x.regs Reg.nine = 9) (h1 : x.regs Reg.one = 1) (hrank : x.mem (D + ((e - 1) * T + (c - (9 - d) * p))) = r + 1) (hvalue : x.mem (V + r) = WordRAM.Signed.encode b) (hfit : WordRAM.Fits (w + 2) (D + V + c + e * T + 10 * p + r + d + 20)) :

        Read the actual offset-one directory rank and child value, add it, and advance the term. The caller supplies mathematical readback equalities, not an execution or time contract.