Skip to content
Snippets Groups Projects

add binder_list

Merged Ralf Jung requested to merge ralf/binder_list into master
All threads resolved!
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -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]. *)
+4
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.
Loading