NLA-lib Explorer

NLAlib.Ops.exec_link_call

Library · theorem

The simulation of one call: a kept operation by itself, an implemented one by the certificate of its implementation.

NLAlib.Ops.exec_link_call {Op₁ Op₂ Tst K A : Type} [AddCommMonoid A] [PartialOrder A]
  [IsOrderedAddMonoid A] {T : Ops.Table Op₁ Op₂ Tst} {I : Ops.Interp Op₂ Tst K}
  {W₂ : Op₂ → List ℕ → ℕ} {w₂ : Ops.Count Op₂ Tst →+ A} {t : Op₁ → List ℕ → A}
  {W₁ : Op₁ → List ℕ → ℕ} (hacc : T.AccountsW I W₂ w₂ t W₁) (τ : Ops.Tape K) {o : Op₁}
  {ds : List Ops.IExp} {ins outs : List Ops.Operand} {ρ : Ops.Env} {a a₁ : Ops.St Op₁ Tst K}
  {c : Ops.St Op₂ Tst K} (hs : Ops.Sim w₂ t a c)
  (h : Ops.evalCounted (I.link T) W₁ τ (Ops.Stmt.call o ds ins outs) ρ a = some a₁) :
  ∃ c₁,
    Ops.evalCounted I W₂ τ (Ops.Stmt.link T (Ops.Stmt.call o ds ins outs)) ρ c = some c₁ ∧
      Ops.Sim w₂ t a₁ c₁

Full source on GitHub

Import NLAlib.Ops.Transfer.