NLAlib.Ops.Routine.Meets.runs_ofRel
Library · theorem
The counted form of NLAlib.Ops.Routine.Meets.writes_ofRel: the run is within the static count and workspace of the tree, and its final memory satisfies the update equation of the relation at the written operands. This is how the counted statement of a routine, used to account a linked operation, is derived from its judgment.
NLAlib.Ops.Routine.Meets.runs_ofRel {Op Tst K : Type} {R : Ops.Routine Op Tst}
{I : Ops.Interp Op Tst K} {B : Ops.BlockRel K} {ok : List ℕ → Prop}
(h : R.Meets I (Ops.Routine.Spec.ofRel B ok)) (W : Op → List ℕ → ℕ) {d : List ℕ}
{args : List (ℕ × ℕ)} {τ : Ops.Tape K} {m : Ops.Mem K} {xs : List (List K)}
(hnd : d.length = R.nd) (hlen : args.length = R.arity) (hl : m.Live args)
(hsep : R.SeparatedAt d args)
(hr : m.readBlocks (R.readArgs (R.operands d args)) (R.readLens d) = some xs) (hok : ok d)
(hdom : B.dom d xs (τ.window B.stream m.pos (B.win d)))
(hroom : m.Room (R.writeArgs (R.operands d args)) (R.writeLens d))
(hdraws : R.draws d = some (B.win d)) (hout : R.writeLens d = B.outLens d)
(hrep : R.allReported = true := by rfl) (hcontig : R.contiguous = true := by rfl) :
Ops.ConditionalRuns I W τ R.body (Ops.Env.frame d (R.env (R.operands d args))) m
(Ops.stmtCost R.body (Ops.Env.frame d (R.env (R.operands d args))).idx)
(Ops.stmtPeak W R.body (Ops.Env.frame d (R.env (R.operands d args))).idx)
(B.Post d xs (R.writeArgs (R.operands d args)) (τ.window B.stream m.pos (B.win d)) m)Import NLAlib.Ops.RoutineLink.