This subsection describes various functions to search for set patterns and extract subsets from sets.