In algebraic geometry I learned that $GL(n, \mathbb R)$ is Zariski-closed (every linear algebraic group is a closed subgroup of it, and it is itself linear algebraic), and as the Zariski topology is coarser than the usual topology it must be closed in the standard topology, but by the defining condition $\det(A) \ne 0$ it is open as well, which is not possible in the standard topology, as this space is connected.
So, something is wrong here, but I do not see it? Could anyone please explain this to me?
$GL(n)$ is an algebraic group, that is, it is a variety (described by polynomials) and the group multiplication and inverse are also polynomial. For example, $GL(2)$ is the set of all $\begin{pmatrix}a&b\\c&d\end{pmatrix}$ with $ad-bc\ne 0$, which can also be described as the set of all $(a,b,c,d,D)$ that are zeroes of the single polynomial $(ad-bc)D-1$. Note that we are seeing five, not four variables here! Hence we are taling about a (Zariski) closed subset of $F^{n^2+1}$, not of $F^{n^2}$.
Also note that adding the $D$ variable is not just a trick to convert an inequality into an equality. Instead, it is essential to make inversion polynomial, the inverse of $(a,b,c,d,D)$ being $(dD,-bD,-cD,dD,ad-bc)$.