NLA-lib Explorer

NLAlib.Ops.BlockFn.of2_fn

Library · theorem

NLAlib.Ops.BlockFn.of2_fn {K : Type} (nd : ℕ) (l₁ l₂ lo : List ℕ → ℕ)
  (g : List ℕ → List K → List K → Option (List K)) (d : List ℕ) (x✝ : List K) (xs : List (List K)) :
  (Ops.BlockFn.of2 nd l₁ l₂ lo g).fn d x✝ xs =
    match xs with
    | [x, y] => Option.map (fun z ↦ [z]) (g d x y)
    | x => none

Full source on GitHub

Import NLAlib.Ops.Blocks.