NLA-lib Explorer

NLAlib.Ops.BlockFn.tern_fn

Library · theorem

NLAlib.Ops.BlockFn.tern_fn {K : Type} (g : K → K → K → Option K) (x✝ : List ℕ) (x✝¹ : List K)
  (xs : List (List K)) :
  (Ops.BlockFn.tern g).fn x✝ x✝¹ xs =
    match xs with
    | [[a], [b], [c]] => Option.map (fun v ↦ [[v]]) (g a b c)
    | x => none

Full source on GitHub

Import NLAlib.Ops.Blocks.