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
- NLAlib.Ops.Examples.LOp
- NLAlib.Ops.Examples.LOp.ofNat
- NLAlib.Ops.Examples.LOp.ofNat_ctorIdx
- NLAlib.Ops.Examples.SOp
- NLAlib.Ops.Examples.SOp.ofNat
- NLAlib.Ops.Examples.SOp.ofNat_ctorIdx
- NLAlib.Ops.Examples.exists_isIdle_isToNat
- NLAlib.Ops.Examples.idleInterp
- NLAlib.Ops.Examples.idleRel
- NLAlib.Ops.Examples.idleRel_dom
- NLAlib.Ops.Examples.idleRel_inLens
- NLAlib.Ops.Examples.idleRel_nd
- NLAlib.Ops.Examples.idleRel_outLens
- NLAlib.Ops.Examples.idleRel_rel
- NLAlib.Ops.Examples.idleRel_stream
- NLAlib.Ops.Examples.idleRel_win
- NLAlib.Ops.Examples.idle_wp
- NLAlib.Ops.Examples.kernWeight
- NLAlib.Ops.Examples.runsW_split
- NLAlib.Ops.Examples.runsW_twice_link
- NLAlib.Ops.Examples.split
- NLAlib.Ops.Examples.splitImpl_satisfies
- NLAlib.Ops.Examples.splitRoutine
- NLAlib.Ops.Examples.splitRoutine_implements
- NLAlib.Ops.Examples.splitRoutine_meets
- NLAlib.Ops.Examples.splitTable
- NLAlib.Ops.Examples.splitTable_accountsW
- NLAlib.Ops.Examples.twice
- NLAlib.Ops.Examples.weight_split_le
- NLAlib.Ops.Examples.workRel
- NLAlib.Ops.Examples.workRel_dom
- NLAlib.Ops.Examples.workRel_inLens
- NLAlib.Ops.Examples.workRel_nd
- NLAlib.Ops.Examples.workRel_outLens
- NLAlib.Ops.Examples.workRel_rel
- NLAlib.Ops.Examples.workRel_stream
- NLAlib.Ops.Examples.workRel_win