NLA-lib Explorer

Fixture: a split whose sizes are read from the store, with weighted counts

Library · Source module

Fixture: a split whose sizes are read from the store, with weighted counts

NLAlib.Ops.Examples.split o reads a size k₊ ≤ k from a cell and calls the kernel o at the sizes k₊ and k - k₊. Its counts depend on the data. The static count charges the index binder with every value up to its bound, so for a weight T it gives a sum over all splits; the logic that carries the counts (NLAlib.Ops.RunsFromW) charges the value read.

Main results

* NLAlib.Ops.Examples.exists_isIdle_isToNat: the contract set of the fixture can be met. * NLAlib.Ops.Examples.runsW_split: the exact counts of one run, through bindIdx and seq. * NLAlib.Ops.Examples.weight_split_le: for every superadditive T, the weighted count of the run is at most T k: T k₊ + T (k - k₊) ≤ T k. Tight, and for all T at once. * NLAlib.Ops.Examples.splitTable_accountsW: the split as the implementation of a kernel work [k] over a lower kernel. Its counts are not a function of (operation, dimensions), so it has no uniform accounting certificate with a tight cost; it has a weighted one (NLAlib.Ops.Table.AccountsW), with the weight T k. * NLAlib.Ops.Examples.runsW_twice_link: an algorithm that calls work [k] twice, linked: the weighted count of the linked program is at most 2 T k, by NLAlib.Ops.exec_link_weight.

Declarations