Library lc.Misc


Miscellanea


Set Implicit Arguments.

Handy terms for option


Definition optmap (X Y : Set) (f : XY) (x : option X) : option Y :=
  match x with Some aSome (f a) | newNone end.

Definition default (X Y : Set) (f : XY) (def : Y) (x : option X) : Y :=
  match x with Some af a | newdef end.

An useful hint.


Hint Extern 1 (?x = ?y) ⇒ f_equal.