Documentation

Complexity.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BandPopulation

Charged native binary-mask population scans #

Main results #

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BandPreparation.exec_population {w : ℕ} (L a : ℕ) (x : WordRAM.Data 96) (hl : x.regs levels = L) (ha : x.regs mask = a) (ho : x.regs one = 1) (ht : x.regs two = 2) (hfit : WordRAM.Fits w (a + L + 2)) :

Popcount is a native loop, with a fit derived for each arithmetic operation from a bound on its original mask and depth. No memory cell is touched.