Definition:- Let $(X,\mathscr T)$ be a topological space. A basis for $\mathscr T$ is a subcollection $\mathscr B$ of $\mathscr T$ with the property that if $U\in \mathscr T$ then $U=\phi$ or there is a subcollection $\mathscr B'$ of $\mathscr B$ such that $U=\cup \{B:B\in \mathscr B'\}.$
Question:-
A family $\mathscr B$ of subsets of $X$ such that $\mathscr B$ is a basis for the topology $\mathscr T$ on $X$ iff: (1) $X=\{B:B\in \mathscr B\}$,and (2) if $B_1,B_2 \in \mathscr B$ and $x \in B_1 \cap B_2$, then there exists $B\in \mathscr B$ such that $x\in B$ and $B\subset B_1 \cap B_2$.
My attempt:- Assume a family $\mathscr B$ of subsets of $X$ such that $\mathscr B$ is a basis for the topology $\mathscr T$ on $X.$ We know that $X\in \mathscr T.$ We assume that $\mathscr B$ is a basis for the topology $\mathscr T$ on $X.$ there is a subcollection $\mathscr B'$ of $\mathscr B$ such that $X=\cup \{B:B\in \mathscr B'\}\subset \cup \{B:B\in \mathscr B\}\subset X .$ Hence, (1) holds. For proving (2), we have $\mathscr B \subset \mathscr T.$ So, $B_1, B_2\in \mathscr T$. Hence, $B_1 \cap B_2 \in \mathscr T$. So, there exists a subcollection $\mathscr B"$ such that $B_1 \cap B_2=\{B:B\in \mathscr B"\}.$ So there exists $B\in \mathscr B"\subset \mathscr B$ which contains x and contained in $B_1\cap B_2$.
I have problem on proving on the converse.
Assume (1) and (2). $X\in \mathscr T$, $X=\{B:B\in \mathscr B\}$(given). If we need to prove for $A\neq X$ and $A\neq \phi.$ I am not able to proceed further. How do I complete the proof? Please help me.