Example of quotient mapping that is not open

Consider $\mathbb{R}$ with the standard topology. On $\mathbb{R}$, consider the equivalence relation

$$x\sim y \iff (x = y \lor \{x,y\} \subset \mathbb{Z}),$$

and let $(X',\mathcal{T}')$ the quotient space $\mathbb{R}/{\sim}$. By definition, $\pi \colon \mathbb{R}\to X';\; x \mapsto [x]_\sim$ is a quotient map, but that map is not open:

If $U \subset\mathbb{R}$ is an open set containing an integer, then $\pi^{-1}(\pi(U)) = U\cup \mathbb{Z}$ is in general not open.


Let $X$ be a Hausdorff space, and let $a,b$ be a pair of distinct points. Stipulate that $\{b\}$ is not open. Define $f:X\to X\setminus\{b\}$ by $f(z)=z$ if $z\ne b$ and $f(b)=a$. There is a unique topology we may assign the codomain such that $f$ is a quotient map, let's endow that topology on $X\setminus\{b\}$.

Then, pick disjoint neighborhoods $U\ni a,V\ni b$, and note that $f^{-1}(f(U))=U\cup\{b\}$. This set is not open; for, if it were open, then there would be a neighborhood of $b$--call it $W$--contained in $U\cup\{b\}$. So, $\{b\}=(W\cap V)\cap(U\cup\{b\})$ is open, a contradiction.


Consider a space with three points $a,b,c$ and open sets $\varnothing, \{a\},\{a,b\},\{a,b,c\}$. The projection that identifies $a$ and $c$ is not open (or closed, for that matter.)