I have a question concearning the definition of a topology through neighbourhood basis. First:
Theorem 1. Let $X$ be a topological space and $x\in X$. If $\mathscr{B}(x)$ is a neighborhood basis of $x$ then:
$(i)$ $\mathscr{B}(x)\neq \varnothing$;
$(ii)$ If $U\in\mathscr{B}(x)$ then $x\in U$;
$(iii)$ If $U, V\in\mathscr{B}(x)$ there is $W\in\mathscr{B}(x)$ such that $W\subseteq U\cap V$;
$(iv)$ If $U\in\mathscr{B}(x)$ there is $V\subseteq X$ such that $x\in V\subseteq U$ and such that for every $y\in V$ there is $W\in\mathscr{B}(y)$ such that $W\subseteq V$.
The properties $(i)-(iii)$ are more or less trivial to be verified.
Question 1. How to show $(iv)$ holds?
On the other hand:
Theorem 2. Let $X$ be a nonempty set and $$\mathscr{B}:X\longrightarrow \mathscr{P}(\mathscr{P}(X)),\ x\longmapsto \mathscr{B}(x)$$ be a function such that $\mathscr{B}(x)$ satisfies satisfies $(i)-(iv)$ of the above theorem for every $x\in X$. Then there is a topology $\mathscr{T}$ on $X$ such that $\mathscr{B}(x)$ is a neighbourhood basis of $x$ for every $x\in X$.
Question 2. Is the topology $\mathscr{T}$ unique?
Obs: Theorem 2 is a very useful. For instance, we might use it to define a topology starting from a nonempty collections of seminorms on a vector space $X$ as follows: If $\mathscr{P}$ is such a family define $$\mathscr{U}:=\{U\subseteq X: \exists p_1, \ldots, p_n\in\mathscr{P}\ \textrm{and}\ \varepsilon_1, \ldots, \varepsilon_n>0; U=\bigcap_{i=1}^n B_{p_i}(0, \varepsilon_i)\}.$$ Then we might apply the above theorem to the function $x\longmapsto x+\mathscr{U}$, where $x+\mathscr{U}$ is defined the obvious, to get a locally convex topology on $X$ where $\mathscr{U}$ is the neighbourhood basis of zero. Warning: I still have to verify this but I'm almost sure that holds.