Maths WorkshopMaths problems with full solutions
Exercise 302Topology › Topology of Mn(ℝ) › Open, closed, interior, boundaryL2Added 7 Nov 2026

Integer matrices are closed and discrete, rational ones dense

#integer matrices#discrete sets#density#rationals

Statement

Show that Mn(Z)M_n(\mathbb{Z}) is closed and discrete in Mn(R)M_n(\mathbb{R}), while Mn(Q)M_n(\mathbb{Q}) is dense in Mn(R)M_n(\mathbb{R}).

Hint

Use the max-entry norm. For two distinct integer matrices, look at an entry where they differ. For density, approximate each entry by a rational number.

Show solutionHide solution

Solution

Idea. The topology of Mn(R)≅Rn2M_n(\mathbb{R})\cong\mathbb{R}^{n^2} is the product topology, so everything can be checked entry by entry, where it reduces to the facts that Z\mathbb{Z} is discrete in R\mathbb{R} and Q\mathbb{Q} is dense.

Step 1: discreteness. Use the norm ∥A∥max⁡=max⁡i,j∣aij∣\|A\|_{\max}=\max_{i,j}|a_{ij}| (all norms are equivalent). If A≠BA\neq B in Mn(Z)M_n(\mathbb{Z}), some entries satisfy aij≠bija_{ij}\neq b_{ij} and both are integers, so ∣aij−bij∣≥1|a_{ij}-b_{ij}|\ge1. Hence
∥A−B∥max⁡≥1.\|A-B\|_{\max}\ge1.
So the open ball B(A,1)B(A,1) contains no other integer matrix: every point of Mn(Z)M_n(\mathbb{Z}) is isolated in Mn(Z)M_n(\mathbb{Z}).

Step 2: closedness. Let Ak∈Mn(Z)A_k\in M_n(\mathbb{Z}) converge to A∈Mn(R)A\in M_n(\mathbb{R}). Then (Ak)(A_k) is Cauchy, so for k,lk,l large ∥Ak−Al∥max⁡<1\|A_k-A_l\|_{\max}<1, which by Step 1 forces Ak=AlA_k=A_l. The sequence is eventually constant, so its limit AA equals that constant and is an integer matrix. Hence Mn(Z)M_n(\mathbb{Z}) contains all its limit points.

Step 3: density of Mn(Q)M_n(\mathbb{Q}). Let A∈Mn(R)A\in M_n(\mathbb{R}) and ε>0\varepsilon>0. For each entry aija_{ij} choose qij∈Qq_{ij}\in\mathbb{Q} with ∣aij−qij∣<ε|a_{ij}-q_{ij}|<\varepsilon (density of Q\mathbb{Q} in R\mathbb{R}). Then Q=(qij)∈Mn(Q)Q=(q_{ij})\in M_n(\mathbb{Q}) and ∥A−Q∥max⁡<ε\|A-Q\|_{\max}<\varepsilon.

Remark.
- A closed discrete set has no accumulation points: any bounded part of it is finite. In particular Mn(Z)∩{∥A∥≤R}M_n(\mathbb{Z})\cap\{\|A\|\le R\} is finite for each RR.
- Mn(Q)M_n(\mathbb{Q}) is dense and countable, so Mn(R)M_n(\mathbb{R}) is separable. It also has empty interior (it is countable, and a non-empty open set of Rn2\mathbb{R}^{n^2} is uncountable).