NLA-lib Explorer

Option.exists_map_eq_some

Library · theorem

If o is some a, then o.map f is some b.

Option.exists_map_eq_some.{u_1, u_2} {α : Type u_1} {β : Type u_2} {o : Option α} {f : α → β}
  (h : ∃ a, o = some a) : ∃ b, Option.map f o = some b

Full source on GitHub

Import NLAlib.ForMathlib.Data.Option.Basic.