Skip to content
Snippets Groups Projects
Commit 42cdeefa authored by Ralf Jung's avatar Ralf Jung
Browse files

add binder_list

parent c4a352b1
No related branches found
No related tags found
1 merge request!312add binder_list
Pipeline #51393 passed
......@@ -19,6 +19,13 @@ Inductive binder := BAnon | BNamed :> string → binder.
Bind Scope binder_scope with binder.
Notation "<>" := BAnon : binder_scope.
(** [binder_list] matches [option_list]. *)
Definition binder_list (b : binder) : list string :=
match b with
| BAnon => []
| BNamed s => [s]
end.
Global Instance binder_dec_eq : EqDecision binder.
Proof. solve_decision. Defined.
Global Instance binder_inhabited : Inhabited binder := populate BAnon.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment