Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Refine a partition of a set
ResourceFunction["SetPartitionRefinement"][part,piv] returns the refinement of the partition part by the pivot piv. | |
ResourceFunction["SetPartitionRefinement"][part,{piv1,piv2,…}] returns the refinement of the partition part by the pivots pivi. |
Refine a given partition of a set:
In[1]:= | ![]() |
Out[1]= | ![]() |
Use more than one pivot:
In[2]:= | ![]() |
Out[2]= | ![]() |
Create the refined partition of a set based on a collection of partitions:
In[3]:= | ![]() |
Out[5]= | ![]() |
The first argument must be a collection of sets, not a set:
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
The first argument need not be a valid partition:
In[8]:= | ![]() |
Out[8]= | ![]() |
If a collection of sets contains elements with non-trivial intersection, using those particular elements as pivots will return an actual partition:
In[9]:= | ![]() |
Out[9]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License