NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.tallies_foldl

Library · theorem

The tallies of a list of instructions are the sum of the tallies of its instructions.

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.tallies_foldl
  (l : List Ops.Examples.WorkedInstances.EarlyExit.C) :
  Ops.Examples.WorkedInstances.EarlyExit.tallies (List.foldl (fun x1 x2 ↦ x1 + x2) 0 l) =
    (List.map (⇑Ops.Examples.WorkedInstances.EarlyExit.tallies) l).sum

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.EarlyExit.