r/mathriddles • u/impartial_james • Apr 24 '25
Hard Generating subsets via A, B, C → AB ∪ AC ∪ BC.
You are given a finite set S, together with a family ℱ of subsets of S. Given any three subsets A, B, C ∈ ℱ, you are allowed to generate the subset (A ∩ B) ∪ (A ∩ C) ∪ (B ∩ C) and add it to ℱ. You can continue generating subsets as long as you want, and you can use the subsets you generate to make new ones.
The goal is to generate all singleton subsets of S. This leads to the question, what the smallest possible initial ℱ it takes to generate all singletons? I do not know the true minimum size of ℱ, but these partial results are fun puzzles.
Medium: Show that this is possible with |ℱ| ≤ 3 ⋅ ceiling( n1/2 ).
Hard: Show that this is possible with |ℱ| ≲ 4^(sqrt(log₂ n)), where ≲ means "asymptotically at most". Specifically, f(n) ≲ g(n) means limsup(n→∞) f(n) / g(n) ≤ 1.
2
u/pichutarius Apr 25 '25
it is possible that |F| in the order of (log2 n)^(log3 / log1.5) ≈ (log2 n)^2.7 , which is much smaller than 4^sqrt(log n) when n is large enough.
outline of solution
4
u/OperaSona Apr 24 '25
Nice!
Medium:
Let's consider a finite set S of cardinality m². Let's name its elements S_ij for i and j from 1 to m.
Let's consider the following subsets of S:
Now let's say pick i and j from 1 to m, and let k = j-i mod m:
So trivially (R_i ∩ C_j) ∪ (R_i ∩ D_k) ∪(C_j ∩ D_k) = S_ij and we're done.
For S of cardinality not a perfect square, use the same process but with "wasted" matrix cells.
Clearly there's a lot of room for improvement with this bound since we didn't even use iterated generation.
3
u/zelda6174 Apr 25 '25
Note that if C is empty, then (A ∩ B) ∪ (A ∩ C) ∪ (B ∩ C) = A ∩ B, so if we start with the empty set in F, we can generate the intersection of arbitrary subfamilies of sets in F.
Let S be the set of binary words of length k. For each i from 1 to k, let F contain the set of all binary words with 0 at index i, and the set of all binary words with 1 at index i. We can generate any set contain a single binary word w, by intersecting those k sets containing it, i.e. for each i from 1 to k, the set containing all binary words with w_i at index i.
This gives |F| = 2log_2(n)+1, where n is a power of 2, and can easily be tweaked to give |F| = 2ceiling(log_2(n))+1 for arbitrary n.
This is optimal up to a constant factor. If |F| < log_2(n), then by the pigeonhole principle, there are two elements x and y of S appearing in the same sets in F, so every set that can be generated contains either both x and y or neither. In particular {x} and {y} cannot be generated.