Commit a07cc19d authored by Robbert Krebbers's avatar Robbert Krebbers

New syntax for types in frontend.

This allows for constant expressions in array sizes and makes way for
future extensions.
parent b9117014
......@@ -22,7 +22,6 @@ Proof. congruence. Qed.
(** The non dependent elimination principle on the option type. *)
Definition default {A B} (b : B) (x : option A) (f : A B) : B :=
match x with None => b | Some a => f a end.
Hint Extern 1000 => simpl (default _ (Some _) _) || simpl (default _ None _).
(** The [from_option] function allows us to get the value out of the option
type by specifying a default value. *)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment