Let us call a collection $\mathcal{F} \subseteq \mathcal{P}(X)$ special if it satisfies the following two conditions:
- $\emptyset, X \in \mathcal{F}$
- For all $U, V \in \mathcal{F}$, it holds that $U \cap V \in \mathcal{F}$.
We can list and evaluate the number of special collections on a finite labeled set of $n$ elements with the following code:
Table[Length[
Select[Subsets[Subsets[Range[n]]],
And[MemberQ[#, {}], MemberQ[#, Range[n]],
SubsetQ[#, Intersection @@@ Tuples[#, 2]]] &]], {n, 0, 4}]
Let us introduce another condition that special collections may satisfy:
- For all $S \subseteq X$, the statement $ \forall x,y \in S : \mathrm{cl}(\left \{ x,y \right \})\subseteq S$ implies $S \in \mathcal{F}$,
where the closure $\mathrm{cl}(A)$ is defined as $$\mathrm{cl}(A)=\bigcap \left \{ U : U\supseteq A \wedge U \in \mathcal{F} \right \}$$ for all $A \subseteq X$. In the condition 3, it may also be that $x=y$.
Let $a(n)$ denote the number of special collections on a finite labeled set of $n$ elements that also satisfy condition 3.
Can someone help me write a code to list all such collections and calculate $a(n)$ for $n \leq 4$?
For example, $a(2)=4$ since all of the collections;
{{}, {1,2}}
{{}, {1}, {1,2}}
{{}, {2}, {1,2}}
{{}, {1}, {2}, {1,2}}
satisfy conditions 1, 2 and 3.