You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regular match pattern elaborator is able to insert constructor coercions in a match pattern when the type of the pattern and the discriminee are known. For example:
Inductive new_bool := old_bool (b : bool).
Coercion old_bool : bool >-> new_bool.
Definition proj_new_bool (nb : new_bool) : bool :=
match nb with
| true => true (* Elaborated to | old_bool true => true *)
| false => false (* Elaborated to | old_bool false => false *)end.