NLA-lib Explorer

NLAlib.Ops.RunsFromW.seq

Library · theorem

Sequence: the continuation is proved from the state reached, with the counts so far; its bound may depend on both. The workspaces take their maximum.

NLAlib.Ops.RunsFromW.seq {Op Tst K : Type} {I : Ops.Interp Op Tst K} {W : Op → List ℕ → ℕ}
  {τ : Ops.Tape K} {ρ : Ops.Env} {st : Ops.St Op Tst K} {p p' : ℕ}
  {Q Q' : Ops.Count Op Tst → Ops.Mem K → Prop} {s t : Ops.Stmt Op Tst}
  (h : Ops.RunsFromW I W τ s ρ st p Q')
  (h' :
    ∀ (st' : Ops.St Op Tst K) (c : Ops.Count Op Tst),
      Q' c st'.mem → Ops.RunsFromW I W τ t ρ st' p' fun c' m ↦ Q (c + c') m) :
  Ops.RunsFromW I W τ (s.seq t) ρ st (max p p') Q

Full source on GitHub

Import NLAlib.Ops.Counted.