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

add list_to_set_disj (replacing the list_to_set on gmultiset)

parent c0e1e189
No related branches found
No related tags found
No related merge requests found
Pipeline #14939 passed
......@@ -752,6 +752,8 @@ Definition option_to_set `{Singleton A C, Empty C} (mx : option A) : C :=
match mx with None => | Some x => {[ x ]} end.
Fixpoint list_to_set `{Singleton A C, Empty C, Union C} (l : list A) : C :=
match l with [] => | x :: l => {[ x ]} list_to_set l end.
Fixpoint list_to_set_disj `{Singleton A C, Empty C, DisjUnion C} (l : list A) : C :=
match l with [] => | x :: l => {[ x ]} list_to_set_disj l end.
Section option_and_list_to_set.
Context `{SemiSet A C}.
......
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