NLA-lib Explorer

NLAlib.Ops.Option.map_bind_of_comm

Library · theorem

NLAlib.Ops.Option.map_bind_of_comm {α β α' β' : Type} {g : α → α'} {g' : β → β'} {f : α → Option β}
  {f' : α' → Option β'} (x : Option α) (h : ∀ (a : α), Option.map g' (f a) = f' (g a)) :
  Option.map g' (x.bind f) = (Option.map g x).bind f'

Full source on GitHub

Import NLAlib.Ops.Exec.