Built with Alectryon, running Coq+SerAPI v8.19.0+0.19.3. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use instead of Ctrl.
[Loading ML file number_string_notation_plugin.cmxs (using legacy method) ... done]
(** * Option types *) (** Option types are a simple way to represent a value that may or may not be present. They are also known as the Maybe monad in functional programming. *) (** [option] is functorial. *) Definition functor_option {A B} (f : A -> B) (x : option A) : option B := match x with | None => None | Some a => Some (f a) end. (** The [Some] constructor is injective. *)
A: Type
x, y: A
p: Some x = Some y

x = y
A: Type
x, y: A
p: Some x = Some y

x = y
A: Type
x, y: A
p: Some x = Some y

x = y -> x = y
exact idmap. Defined.