diff --git a/theories/sets.v b/theories/sets.v index e1d9d1c6147a9a36f5c9691e18ffeaa9221bfa1e..5f65c150ea246f88ce7f86843de71e93e7a439ac 100644 --- a/theories/sets.v +++ b/theories/sets.v @@ -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}.