NLA-lib Explorer

What a run depends on

Library · Source module

What a run depends on

A certificate is about the run of a fixed tree from the supplied buffers. These theorems say what that run can depend on, for every tree, so that a reader does not have to ask of each program whether data reached it by a route that is not declared.

A run is given by the tree, the sizes, the supplied buffers, the tape and the interpretation of the operations, and by nothing else: these are the arguments of NLAlib.Ops.Reference.Execution. The data of a problem that is in no buffer is not among them. It can therefore reach a run only through the interpretation, that is, through which interpretations the contracts of the model allow at that input. The theorems below make each step of this a statement.

* The tree. The interpretation reaches a run only at a call, a test or an index use of the tree: two interpretations that agree on the operations a tree calls, and on the tests, derive the same outcomes (NLAlib.Ops.Reference.derives_congr_of_allOps). * The input. A run starts from the supplied buffers: two inputs with the same buffers have the same runs and the same resident payload (NLAlib.Ops.Specification.accepts_congr_of_buffers). * A uniform model. The contracts do not depend on the input, so one run from given buffers meets the output condition of every input that has those buffers (NLAlib.Ops.Algorithm.good_of_buffers_eq). The output cannot depend on data that is in no buffer. * Declared oracles. With the oracles of a model declared (NLAlib.Ops.Inputs.Oracles), two inputs with the same buffers can be told apart only by an oracle: a run under an interpretation whose declared oracles are also allowed at the other input meets the output condition of both (NLAlib.Ops.Inputs.Oracles.good_of_satisfies), and so does every run of a tree that calls no declared oracle (NLAlib.Ops.Inputs.Oracles.good_of_allOps).

What these theorems do not say

* They do not bound what a contract may compute from its operands, or what it costs: that is the content of the model, which a reader checks (NLAlib.Ops.AccessModel.Confined says that every contract reads and writes only its operand blocks, NLAlib.Ops.AccessModel.Charged that every call has positive work). * They say nothing of a model that is neither uniform nor has its oracles declared. There the conclusion fails: NLAlib.Ops.Examples.Oracles.oracleAlgorithm is a certificate whose two inputs have the same buffers and no common output (NLAlib.Ops.Examples.Oracles.not_good_oracleInput_zero_one). * The parameters of a certificate (a matrix that a contract of the model mentions, a unit roundoff) are not inputs of the problem; they are in the statement of the certificate. * The resource bounds of a specification are functions of the sizes alone, by the type of NLAlib.Ops.Specification: a bound cannot depend on the data. The count of one run can, through the tests of the tree.

Main results

* NLAlib.Ops.Reference.derives_congr_of_allOps, NLAlib.Ops.Reference.execution_congr_of_allOps: a run depends on the interpretation only through the operations its tree calls and the tests. * NLAlib.Ops.Specification.accepts_congr_of_buffers: a run depends on the input only through the supplied buffers. * NLAlib.Ops.Algorithm.good_of_contracts, NLAlib.Ops.Algorithm.good_of_buffers_eq: one run meets the output condition of every input with the same buffers at which its interpretation is allowed; in a uniform model, of every input with the same buffers. * NLAlib.Ops.Inputs.Oracles.good_of_satisfies, NLAlib.Ops.Inputs.Oracles.good_of_allOps: data in no buffer reaches a run only through a declared oracle.

Declarations