Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.Expand

Complete native expansion of one query prefix #

The program decodes the actual output digit, then pushes exactly the existing ordered child family. This theorem covers all native setup, branch, descriptor and stack-store instructions. It preserves older pending tasks and every word outside the new records.

Native division and remainder read the existing output-coordinate digit exactly.

Registers that may change while computing and pushing the complete child family.

Instances For
    theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.exec_expand {w L t F : ℕ} (η : MatrixMultiplication.Schonhage.OutStr L) (xs : List MatrixMultiplication.Schonhage.Term) (rest : List (List MatrixMultiplication.Schonhage.Term)) (x : WordRAM.Data registers) (hx : Good η t xs) (hk : xs.length < L) (hrest : StackMemory η F rest x.mem) (hF : x.regs Reg.stack = F) (hn : x.regs Reg.top = rest.length) (hq : x.regs Reg.query = ↑(PrunedQuery.queryIndex η)) (ht : x.regs BoxTable.Reg.threshold = t) (hdepth : x.regs Reg.depth = xs.length) (hc : x.regs Reg.code = prefixCode xs) (hu : x.regs Reg.used = usedFrom η 0 xs) (he : x.regs Reg.stars = starsFrom η 0 xs) (hp : x.regs Reg.power = 10 ^ xs.length) (h5 : x.regs Reg.five = 5) (h1 : x.regs BoxTable.Reg.one = 1) (h10 : x.regs BoxTable.Reg.ten = 10) (h9 : x.regs BoxTable.Reg.nine = 9) (h0 : x.regs BoxTable.Reg.nil = 0) (hfit : WordRAM.Fits w (F + 5 * (rest.length + 11) + 10 ^ (xs.length + 1) + xs.length + t + ↑(PrunedQuery.queryIndex η) + 32)) :
    ∃ (y : WordRAM.Data registers), WordRAM.ExecWithin w expand x y 178 ∧ y.regs Reg.top = rest.length + (children η t xs).length ∧ StackMemory η F (children η t xs ++ rest) y.mem ∧ (∀ (q : ℕ), ¬(F + rest.length * 5 ≤ q ∧ q < F + (rest.length + (children η t xs).length) * 5) → y.mem q = x.mem q) ∧ ∀ (i : Fin registers), ¬ExpandLocal i → y.regs i = x.regs i

    The actual internal-node code prepends exactly its genuine children, with no layout oracle.