Let a, b \in \mathbb {N}. Then the greatest common divisor of a and b, written \gcd (a,b), is the unique natural number such that for all d \in \mathbb {N}, (d \mid \gcd (a,b)) \leftrightarrow (d \mid a \land d \mid
b).
In the left-to-right direction, this says that anything which divides \gcd (a,b) must be a common divisor of a and b. Because divisibility is transitive, this will clearly be the case when \gcd (a,b) is a divisor of both a and b. And in fact, picking d = \gcd (a,b) shows that this must be the case. In the right-to-left direction, this says that any common divisor of a and b must divide their GCD. This is what makes it the “greatest” common divisor: there can’t be any common divisor d which is “above” the GCD.