Let’s call a collection $\mathcal{F} \subseteq \mathcal{P}(X)$ satisfying:
- $\emptyset, X \in \mathcal{F}$
- For all $U, V \in \mathcal{F}$ it holds that $U \cap V \in \mathcal{F}$.
special. And let us define $\mathrm{h}(S)=\bigcap_{}^{} \left \{ U : U\supseteq S \wedge U \in \mathcal{F} \right \}$ for all $S \subseteq X$.
We can evaluate the number of special collections on a finite labeled set of n elements via 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 the following three conditions that special families may satisfy:
($\mathrm S_2$) For all $x,y \in X, \ x\neq y$ there exists $H \in \mathcal{F}$ such that $X \setminus H \in \mathcal{F}$ and $x \in H$ and $y \in X \setminus H $.
($\mathrm S_3$) For all $x \in X$ and $U \in \mathcal{F}, x \notin U$ there exists $H \in \mathcal{F}$ such that $X \setminus H \in \mathcal{F}$ and $x \in H$ and $U \subseteq X \setminus H $.
($\mathrm I$) For all $S \subseteq X$, the statement $ \forall x,y \in S : \mathrm{h}(\left \{ x,y \right \})\subseteq S$ implies $S \in \mathcal{F}$.
Let us thus by $a_2(n)$, $a_3(n)$ and $a_i(n)$, respectively, denote the denote the number of $\mathrm S_2$, that is, $\mathrm S_3$, that is, $\mathrm I$ special collections on a finite labeled set of n elements.
However, I am not sure how to alter the code such that the condition $\mathrm S_2$, that is, $\mathrm S_3$, that is, $\mathrm I$ is satisfied as well.
Can someone help me to write a code to enumerate the sequences $a_2(n)$, $a_3(n)$ and $a_i(n)$?
I would like to offer my sincere graditude in advance!
NOTE: I still need the code for the condition $(\mathrm I)$.