NLA-lib Explorer

NLAlib.Ops.«tacticRoutine_intro[_](_)Reads(_)Memory_»

Library · def

routine_intro [n, k] (b, x, r, p) reads (bs, xs): open a goal R.Meets I S. Names the dimensions n, k, the supplied operands b, x, r, p and the blocks read bs, xs (with hbs, hxs), and leaves in the context:

* τ, m: the tape and the memory of the call (memory μ names the memory μ instead, for a routine with a dimension called m); * hlive : m.Live [b, x, r, p] and hl, the same fact as a conjunction, one operand each; * hsep: the separation of the operands. For a routine separated by buffer, each pair that the interface requires in different buffers gives the fact named by the two operands (hxr : x.1 ≠ r.1); the operands are the regions, so an operand that continues another has no name of its own. For a routine separated by block, hblocks is the disjointness of the blocks at the named operands and lengths; * hpre: the precondition at the named dimensions and blocks; * hrooms : m.Room [x, r, p] [n, n, n], room for the written blocks, and hroom, the same fact as a conjunction.

The goal is the Writes statement of the tree at the named operands. Without reads, the blocks read stay in hr.

NLAlib.Ops.«tacticRoutine_intro[_](_)Reads(_)Memory_» : ParserDescr

Full source on GitHub

Import NLAlib.Ops.Logic.RoutineIntro.