While crunching some numbers for this question, I came across a different one. An answer would give an estimate for complexity of my procedure, as well as potentially give an insight to the former question itself.
Let $[n] = \{1, \ldots, n\}$. Say that a family $S \subseteq 2^{[n]}$ belongs to $\mathcal{F}_n$ iff for any $X \in S$ the number of $Y \in S$ containing $X$ as a subset is odd (including $Y = X$ itself). E.g. (below $1$ and $2$ are singleton sets $\{1\}$ and $\{2\}$, and $12 = \{1, 2\}$ by violent notation abuse)
- $\mathcal{F}_0 = \{\varnothing, \{\varnothing\}\}$ (assuming $[0] = \varnothing$),
- $\mathcal{F}_1 = \{\varnothing, \{\varnothing\}, \{1\}\}$,
- $\mathcal{F}_2 = \{\varnothing, \{\varnothing\}, \{1\}, \{2\}, \{12\}, \{1, 2\}, \{\varnothing, 1, 2\}\}$.
This question is concerned with the size of $\mathcal{F}_n$ as a function of $n$. Some trivial bounds are $2^{n \choose n / 2} \leq |\mathcal{F}_n| \leq 2^{2^n}$. Taking logarithms, we have ${n \choose n / 2} \leq \log_2 |\mathcal{F}_n| \leq 2^n$. For large $n$, the lower and upper bound are $\Theta(\sqrt{n})$ apart.
First few values of $|\mathcal{F}_n|$, and entries in the logarithmic bound are listed below:
$n$ | $|\mathcal{F}_n|$ | $\log_2{|\mathcal{F}_n|}$ | ${n \choose n / 2}$ | $2^n$ |
---|---|---|---|---|
$0$ | $2$ | $1$ | $1$ | $1$ |
$1$ | $3$ | $ \approx 1.58496$ | $1$ | $2$ |
$2$ | $7$ | $ \approx 2.80735$ | $2$ | $4$ |
$3$ | $43$ | $ \approx 5.42626$ | $3$ | $8$ |
$4$ | $1687$ | $ \approx 10.72024$ | $6$ | $16$ |
$5$ | $2204623$ | $ \approx 21.07210$ | $10$ | $32$ |
$6$ | $2809835768527$ | $ \approx 41.35362$ | $20$ | $64$ |
Questions: is any of the bounds above for $\log_2 |\mathcal{F}_n|$ asymptotically tight? If no, what's the correct asymptotics for $\log_2 |\mathcal{F}_n|$?
UPD: a reference provided in Tim's answer (namely Thm. 18 in Section 3.4) presents a subset of $\mathcal{F}_n$ of size $2^{2^{n - 1}}$, namely all $S \subseteq 2^{[n]}$ satisfiying a stronger condition: a set $X \subseteq [n]$ is in $S$ iff it's contained in an odd number of elements of $S$. This establishes $2^{n - 1} \leq \log_2{|\mathcal{F}_n|} \leq 2^n$. One then hopes that $\log_2{|\mathcal{F}_n|} \sim c 2^n$ for a certain constant $c \in [1/2, 1]$. Does such a $c$ exist? Can it be bounded, or even obtained precisely?
For reference, here is my procedure for calculating $|\mathcal{F}_n|$. We recursively obtain all possible $S \in \mathcal{F}_n$ starting from $S = \varnothing$ by repeatedly adding $X$ not containing any prior elements of $S$ (this can not violate the premise for already added elements of $S$). Let $T$ be the set of candidates to be next added to $S$. Initially $T = 2^{[n]}$. If $X$ is any maximal set in $T$ (say, lexicographically largest), we either skip it, branching to $S \to S, T \to T - X$, or add $X$ to $S$, branching to $S \to S + X, T \to T \operatorname \triangle 2^X$. The number of successful branches from any intermediate point only depends on $T$, which allows for some efficient caching.