MHB The set of integers is countable

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Integers Set
AI Thread Summary
The discussion centers on proving that the set of integers, $\mathbb{Z}$, is countable by demonstrating a surjective function from $\omega^2$ to $\mathbb{Z}$. The function $f(\langle n,m \rangle) = m - n$ is established as surjective, with examples provided for integers less than, equal to, and greater than zero. Participants clarify misunderstandings about the nature of $\mathbb{Z}$ and the calculation of values for the function. The conversation emphasizes the importance of showing that for any integer $l$, there exists a pair $\langle m, n \rangle$ such that $f(\langle m, n \rangle) = l$. Overall, the proof effectively demonstrates that $\mathbb{Z}$ is indeed countable.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Smirk)

Proposition
The set $\mathbb{Z}$ of integers is countable.

Proof

$\mathbb{Z}$ is an infinite set since $\{ +n: n \in \omega \} \subset \mathbb{Z}$.

$$+n= [\langle n, 0 \rangle]=\{ \langle k,l \rangle: k+n=l\}$$

We define the function $f: \omega^2 \to \mathbb{Z}$ with $f(\langle n,m \rangle)=m-n$ that is obviously surjective.
Since $\omega^2$ is countable we conclude that $\mathbb{Z}$ is countable.In this case can we subtract two natural numbers since we define $+n= [\langle n, 0 \rangle]=\{ \langle k,l \rangle: k+n=l\}$ ?Also how could we show that $f$ is surjective?
It suffices to show that $\forall y \in m-n, \exists \langle m, n \rangle $ such that $f(\langle m, n \rangle)=m-n$, right?
How could this be shown? (Thinking)
 
Last edited:
Physics news on Phys.org
Hi evinda,

What do you mean when you say that $\Bbb Z$ is a finite set? As for the surjectivity of $f$, take any integer $l\in \Bbb Z$. If $l < 0$, then $f(1,1 - l) = l$. If $l = 0$, then $f(1,1) = l$. Finally, if $l > 0$, then $f(l+1,1) = l$.
 
Euge said:
What do you mean when you say that $\Bbb Z$ is a finite set?

That was a typo... (Tmi)

Euge said:
As for the surjectivity of $f$, take any integer $l\in \Bbb Z$. If $l < 0$, then $f(1,1 - l) = l$. If $l = 0$, then $f(1,1) = l$. Finally, if $l > 0$, then $f(l+1,1) = l$.

How did you calculate these values? (Thinking)
 
I might be misunderstanding your question, but I calculated the values using the formula for $f$.
 
Euge said:
I might be misunderstanding your question, but I calculated the values using the formula for $f$.

You pick any $l \in \mathbb{Z}$. If $l<0$ why does it hold that $m=1, n=1-l$?
 
Well, if $l < 0$, then $1-l$ is a natural number, and $ f (1,1-l) = 1-(1-l) = l $.
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top