NLA-lib Explorer

NLAlib.Ops.«tacticCall_[_](_)(Pre:=_)(Sep:=_)As___(_)_»

Library · def

call h [n] (x, z) as ν hfr hpos (zs) hpost: use the judgment h : R.Meets I S of a routine at a frame of its tree. The goal is a Writes or a Wp of .frame ds ops R.body, or of that followed by more. [n] are the dimensions of the call and (x, z) its operands, one per region of the interface.

The tactic proves the side conditions of the judgment: liveness and room by room, separation by routine_sep, the blocks read by reads, the footprint by fp_sub, the precondition by trivial or assumption. A condition it does not prove is left as a goal named hlive, hsep, hr, hpre, hroom or hle; (pre := t) and (sep := t) supply a proof of the precondition or of the separation.

It then introduces the memory ν after the call, the frame hfr of the call, the claim hpos on the tape position, the blocks reported zs with their facts (hzs), and the postcondition hpost at the named blocks.

NLAlib.Ops.«tacticCall_[_](_)(Pre:=_)(Sep:=_)As___(_)_» : ParserDescr

Full source on GitHub

Import NLAlib.Ops.Logic.RoutineIntro.