I'm trying to show that $\mathbb Q$ is not locally compact using this definition:
So I need to show that there is some point $x\in \mathbb Q$ such that no matter what neighborhood of $x$ in $\mathbb Q$ I take, no compact subset of $\mathbb Q$ can contain it.
Any neighborhood of $x$ in $\mathbb Q$ is of the form $(a,b)\cap \mathbb Q$ where $x\in (a,b)$. But I think my problem is that I don't understand/feel how compact sets in $\mathbb Q$ look like (except finite sets). If there is a compact subset of $\mathbb Q$ containing $(a,b)\cap \mathbb Q$, what does it contradict to?


A compact set of Q is a sequence with its limit or
several sequences with their limits.
If [a,b] $\cap$ Q is a compact nhood, pick an
irrational r from [a,b] and show [a,r] $\cap$ Q
and [r,b] $\cap$ Q are not compact.