Signatures made of groups, and profiles
Library · Source module
Signatures made of groups, and profiles
Groups. The operations of the library come in small groups (scalar arithmetic, level-1 vector operations, …). A signature Op contains a group G through NLAlib.Ops.Has G Op: an injection with a partial inverse. An algorithm, an implementation or a table is written for any Op with the groups it uses; NLAlib.Ops.Apart G H Op says two groups do not overlap in Op.
Profiles. A profile NLAlib.Ops.Profile Op Lo Tst is a table with the cost of each implementation and the workspaces. Its certificate NLAlib.Ops.Profile.Refines Base Ck says: over every lower interpretation meeting Base the linked interpretation meets Ck, and a run within a budget under the linked interpretation is a run of the linked program within the pushed-forward budget. So a theorem about an algorithm for every interpretation meeting Ck gives the theorem about the linked program in one application (NLAlib.Ops.Profile.Refines.runs).
Profiles stack (NLAlib.Ops.Profile.over), and a profile of a signature over itself is iterated (NLAlib.Ops.Profile.iter): this is how an operation implemented by calls of itself at smaller dimensions is linked, with the number of iterations a bound on the depth.
Main results
* NLAlib.Ops.Profile.Refines.of_accounts: a certificate from the contracts of the induced interpretation and the accounting certificate of the table. * NLAlib.Ops.Profile.Refines.over: certificates compose along a tower. * NLAlib.Ops.Profile.Refines.iter: recursion; correctness and cost transfer for the k-fold iterate of a profile, from one step. * NLAlib.Ops.Profile.Refines.runs: the corollary for any algorithm.
Declarations
- NLAlib.Ops.Apart
- NLAlib.Ops.Has
- NLAlib.Ops.Has.inj_injective
- NLAlib.Ops.Has.sumLeft
- NLAlib.Ops.Has.sumRight
- NLAlib.Ops.Profile
- NLAlib.Ops.Profile.Refines
- NLAlib.Ops.Profile.Refines.iter
- NLAlib.Ops.Profile.Refines.mono
- NLAlib.Ops.Profile.Refines.of_accounts
- NLAlib.Ops.Profile.Refines.over
- NLAlib.Ops.Profile.Refines.runs
- NLAlib.Ops.Profile.certifies_id
- NLAlib.Ops.Profile.id
- NLAlib.Ops.Profile.iter
- NLAlib.Ops.Profile.iter_cost_succ
- NLAlib.Ops.Profile.iter_cost_zero
- NLAlib.Ops.Profile.iter_table
- NLAlib.Ops.Profile.iter_win
- NLAlib.Ops.Profile.iter_ws
- NLAlib.Ops.Profile.iter_wsLo
- NLAlib.Ops.Profile.over
- NLAlib.Ops.Profile.tapeLocal_noDraw