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

Merge branch 'ralf/binder_list' into 'master'

add binder_list

See merge request !312
parents ac04787b 42cdeefa
No related branches found
No related tags found
1 merge request!312add binder_list
Pipeline #51427 canceled
...@@ -19,6 +19,13 @@ Inductive binder := BAnon | BNamed :> string → binder. ...@@ -19,6 +19,13 @@ Inductive binder := BAnon | BNamed :> string → binder.
Bind Scope binder_scope with binder. Bind Scope binder_scope with binder.
Notation "<>" := BAnon : binder_scope. 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. Global Instance binder_dec_eq : EqDecision binder.
Proof. solve_decision. Defined. Proof. solve_decision. Defined.
Global Instance binder_inhabited : Inhabited binder := populate BAnon. 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