Proving and using the judgment of a routine
Library · Source module
Proving and using the judgment of a routine
Tactics for NLAlib.Ops.Routine.Meets and NLAlib.Ops.Routine.Implements.
* routine_intro [n, k] (b, x, r, p) reads (bs, xs) opens a goal R.Meets I S: it names the dimensions, the operands and the blocks read, and puts in the context the hypotheses of the judgment in the form the rules of the logic use. * call h [n] (x, z) as ν hfr hpos (zs) hpost uses the judgment h of a routine at a frame of its tree: it proves the side conditions from the context and names the memory after the call, its frame, its tape position, the blocks written and the postcondition. * routine_exit closes the proof at the final memory, leaving the postcondition at the blocks found in the context. * implements [n] (x) → (z) with hadm proves that a routine implements an operation contract, separation included when the admission states it buffer by buffer. * shaped_intro h [n] (x) → (z) with hadm names the dimensions and operands of an operation contract at which a call can succeed. * routine_sep proves that named operands are separated as a routine requires, from the inequalities of buffers in the context. * routine_nf rewrites the operands, lengths and layout of a routine at named operands to list literals.
split_reads h as (xs, ys) splits h : m.readBlocks [x, y] [n, k] = some X into named blocks (or h : m.readViews [x, y] [v, w] = some X, for operands that are not contiguous); read_outputs hys as (xs, ys) does it for the reported buffers of a certificate.
Main results
The tactics routine_intro, call, routine_exit, implements, shaped_intro, routine_sep, routine_nf, name_list, split_reads and read_outputs.
Declarations
- NLAlib.Ops.Store.readBlock_one_eq_some
- NLAlib.Ops.routineExit
- NLAlib.Ops.routineNf
- NLAlib.Ops.routineSep
- NLAlib.Ops.tacticSplit_ands_
- NLAlib.Ops.unnameGoal
- NLAlib.Ops.«tacticCall_[_](_)(Pre:=_)(Sep:=_)As___(_)_»
- NLAlib.Ops.«tacticImplements[_](_)→(_)With_»
- NLAlib.Ops.«tacticName_list__As[_]»
- NLAlib.Ops.«tacticRead_outputs_As(_)»
- NLAlib.Ops.«tacticRoutine_intro[_](_)Reads(_)Memory_»
- NLAlib.Ops.«tacticShaped_intro_[_](_)→(_)With_»
- NLAlib.Ops.«tacticSplit_reads_As(_)»