I'd appreciate if someone checked whether my proofs are correct. They're not detailed enough, but I'm mainly interested whether the general approach is correct.
Let $X$ be a set, and $A$ some subset of $\mathcal P(X)$. The topology generated by $A$ is the intersection of all topologies on $X$ that contain $A$, and we will use the symbol $g(A)$ for this topology.
_
1 Let $(X,\tau)$ be a topological space, with a sub-basis $\beta$. Then $g(\beta)=\tau$, because $\beta \subseteq \tau$, and $g(\tau)=\tau$, so $g(\beta) \subseteq \tau$, and $\tau \subseteq g(\beta)$, as $g(\beta)$ contains unions of finite intersections, which contain $\tau$.
_
Is a slightly modified opposite implication also true?
_
2 Let $g(\beta)=\tau$, then $\gamma = \beta \cup \{X\}$ forms a sub-basis for $\tau$. Proof attempt:
Let $s(\gamma)$ denote the set of unions of finite intersections of sets in $\gamma$. We want to show that $s(\gamma) = \tau = g(\beta)$. $s(\gamma) \subseteq \tau$ follows from $\gamma \subseteq \tau$. To show that $\tau \subseteq s(\gamma)$, we will show that $s(\gamma)$ is a topology - if that's true, we get that $g(\beta) \subseteq s(\gamma)$ as $s(\gamma)$ is a topology that contains $\beta$, and so $\tau \subseteq s(\gamma)$ follows.
Clearly the empty set and $X$ are both contained in $s(\gamma)$. Union of elements in $s(\gamma)$ is still in $s(\gamma)$. To show that the intersection of two elements in $s(\gamma)$ is still in $s(\gamma)$, we use the equality of $A \cap (\cup_i B_i) = \cup_i (A \cap B_i)$ twice, to show that such an element is still a union of finite intersections from $\gamma$. Therefore $s(\gamma)$ is a topology.
_
Edit, as this just occured to me and it seems like a nicer way to look at it:
Alternative proofs for 2 -
We can show directly that for any $\gamma$ defined as above, $\gamma$ is a a sub-basis for exactly one topology. The topology that $\gamma$ generates has to be the same, and so we're done.
We can show that for any $\beta \subset \mathcal P(X)$, $\gamma$ defined as above is a sub-basis for some topology - $s(\gamma)$ satisfies that. Because $\beta \mapsto g(\beta)$ is a map, we see that $\gamma$ has to be the sub-basis of $g(\beta)$, as otherwise we would get a contradiction with $\beta \mapsto g(\beta)$ being a map.