Integer Addition is Associative

From ProofWiki
Jump to navigation Jump to search


The operation of addition on the set of integers $\Z$ is associative:

$\forall x, y, z \in \Z: x + \paren {y + z} = \paren {x + y} + z$

Proof 1

From the formal definition of integers, $\left[\!\left[{a, b}\right]\!\right]$ is an equivalence class of ordered pairs of natural numbers.

From Integers under Addition form Abelian Group, the integers under addition form a group, from which associativity follows a priori.


Proof 2

Let $x = \left[\!\left[{a, b}\right]\!\right]$, $y = \left[\!\left[{c, d}\right]\!\right]$ and $z = \left[\!\left[{e, f}\right]\!\right]$ for some $x, y, z \in \Z$.


\(\displaystyle x + \left({y + z}\right)\) \(=\) \(\displaystyle \left[\!\left[{a, b}\right]\!\right] + \left({\left[\!\left[{c, d}\right]\!\right] + \left[\!\left[{e, f}\right]\!\right]}\right)\) Definition of Integers
\(\displaystyle \) \(=\) \(\displaystyle \left[\!\left[{a, b}\right]\!\right] + \left[\!\left[{c + e, d + f}\right]\!\right]\) Definition of Integer Addition
\(\displaystyle \) \(=\) \(\displaystyle \left[\!\left[{a + \left({c + e}\right), b + \left({d + f}\right)}\right]\!\right]\) Definition of Integer Addition
\(\displaystyle \) \(=\) \(\displaystyle \left[\!\left[{\left({a + c}\right) + e, \left({b + d}\right) + f}\right]\!\right]\) Natural Number Addition is Associative
\(\displaystyle \) \(=\) \(\displaystyle \left[\!\left[{a + c, b + d}\right]\!\right] + \left[\!\left[{e, f}\right]\!\right]\) Definition of Integer Addition
\(\displaystyle \) \(=\) \(\displaystyle \left({\left[\!\left[{a, b}\right]\!\right] + \left[\!\left[{c, d}\right]\!\right]}\right) + \left[\!\left[{e, f}\right]\!\right]\) Definition of Integer Addition
\(\displaystyle \) \(=\) \(\displaystyle \left({x + y}\right) + z\) Definition of Integers