NLA-lib Explorer

NLAlib.Ops.Count.push_comp

Library · theorem

Push-forwards compose: the push-forward through a tower is the push-forward of the composed cost of single calls.

NLAlib.Ops.Count.push_comp {Op₁ Op₂ Op₃ Tst : Type} (κ₁ : Op₁ → List ℕ → Ops.Count Op₂ Tst)
  (κ₂ : Op₂ → List ℕ → Ops.Count Op₃ Tst) (c : Ops.Count Op₁ Tst) :
  (Ops.Count.push κ₂) ((Ops.Count.push κ₁) c) =
    (Ops.Count.push fun o d ↦ (Ops.Count.push κ₂) (κ₁ o d)) c

Full source on GitHub

Import NLAlib.Ops.Transfer.