How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Common divisor, and the greatest common divisor , with the convention
Definition
Let . An integer is a common divisor of and when and (Divisibility in : when for some integer ). Write
for the set of common divisors.
Case : the greatest element exists. is nonempty, since and for every and (Divisibility in : when for some integer ). It is bounded above: at least one of and is nonzero, say (if instead , argue with throughout), and every divides , so by If and then and ; hence the set of divisors of a nonzero integer is bounded above by . A nonempty set of integers bounded above has a unique greatest element (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element), and we define
Since and is greatest, ; in particular .
Case : a convention, fixed here. Every integer divides (Divisibility in : when for some integer ), so , which has no greatest element at all: the clause above defines nothing, and leaving undefined would put a hole in every identity below. We therefore set
With both cases together, is defined for every pair of integers, and always.
Why , and not some other value. The convention is not arbitrary, and the reasons are recorded here rather than deferred:
- It is the greatest common divisor in the divisibility ordering. is a common divisor of and , and every common divisor of and divides . So is greatest at in the sense "divisible by every common divisor", which is the sense that Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well shows holds at every pair, included, whereas "greatest in the order of " fails there.
- It is the only value under which the scaling identity extends to this boundary. Requiring to hold at every triple leaves no freedom here. At with any it would read , whose right-hand side does not involve at all; and at with it reads , again giving . The value is therefore chosen here, and for all integers , the identity holding at and at as well then proves the identity for every triple with this convention in force; its own case reads the value off this definition rather than establishing it.
- It is consistent with the product formula — (Every common multiple of and is a multiple of , and ) reads at , using from Common multiple, and the least common multiple , taken to be when or . This one is a check, not a second forcing argument: with the left side vanishes whatever value is given, so the product formula is silent at and only the scaling identity above pins the value down.
Remarks
-
The gap the convention fills is real. The failure is exhibited on the companion page by The common divisors of are all of and have no greatest element in the order of , so cannot be defined as a maximum and is fixed by convention ↗: the common divisors of really are all of , and really have no greatest element, so a value has to be supplied rather than computed.
-
The definition is by a maximum, and the theory replaces it by a divisibility characterisation. Reading as "largest common divisor" is what makes the case awkward, and it is also not the property later pages use. Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well proves the replacement: exactly when , is a common divisor, and every common divisor divides . That statement is uniform across all pairs.
-
Sign. is never negative, by construction. Since is a common divisor whenever is (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ), the set is symmetric about , and taking the greatest element is exactly the choice of the nonnegative representative from each pair of associates (For integers and the following are equivalent: and ; for a unit ; . Being associates is an equivalence relation whose class of is ).
-
Two arguments, not a list. is defined here on pairs only. Nothing on this page needs a greatest common divisor of a longer list, and none is defined.
Depends on
- Divisibility in $\mathbb{Z}$: $d \mid a$ when $a = dq$ for some integer $q$
- If $d \mid a$ and $a \ne 0$ then $d \ne 0$ and $|d| \le |a|$; hence the set of divisors of a nonzero integer is bounded above by $|a|$
- A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element
- The absolute value $|a|$ of an integer
- Order on the integers
- The integers form a totally ordered ring
Used by
- A rational root of xᵏ = m is an integer: if k ≥ 1, m ∈ ℤ, x ∈ ℚ and xᵏ is the image of m, then x is the image of an integer Corollary
- Every common divisor of a and b divides gcd(a,b); consequently d = gcd(a,b) exactly when d ≥ 0, d ∣ a, d ∣ b, and every common divisor of a and b divides d — a characterisation that holds at (a,b) = (0,0) as well Corollary
- If d = gcd(a,b) is nonzero then a/d and b/d are coprime Corollary
- The extended Euclidean algorithm: the same descent produces integers x, y with ax + by = gcd(a,b), so Bézout coefficients are computed and not merely shown to exist Corollary
- 6 ∣ 4 · 9 while 6 ∤ 4 and 6 ∤ 9: dividing a product does not force dividing a factor, and the coprimality hypothesis is what fails Counterexample
- The common divisors of (0,0) are all of ℤ and have no greatest element in the order of ℤ, so gcd(0,0) cannot be defined as a maximum and is fixed by convention Counterexample
- Content and primitive integer polynomials Definition
- Coprime integers: gcd(a,b) = 1 Definition
- The Dirichlet function 1_ℚ, and Thomae's function t with t(x) = 1/q at a rational x = p/q in lowest terms with q ≥ 1 and t(x) = 0 at every irrational x Definition
- 12ℤ + 18ℤ = 6ℤ and 12ℤ ∩ 18ℤ = 36ℤ, the arithmetic of gcd and lcm read off the subgroups of (ℤ,+) Example
- 360 = 2³ · 3² · 5 and 84 = 2² · 3 · 7, with gcd(360,84) = 12 and lcm(360,84) = 2520 read off the exponents Example
- A modulus n>1 is composite exactly when two nonzero classes in ℤ/n have product [0]ₙ Example
- ax + by = c has an integer solution exactly when gcd(a,b) ∣ c: 6x + 15y = 9 is solvable and 6x + 15y = 7 is not Example
- Bézout coefficients are not unique: 1071 · (-3) + 462 · 7 = 21 and 1071 · 19 + 462 · (-44) = 21, and for nonzero a, b every solution has the form (x₀ + t b/d, y₀ - t a/d) Example
- Consecutive Fibonacci numbers are coprime, and for every m ∈ ℕ the Euclidean algorithm on (Fₘ₊₃, Fₘ₊₂) takes exactly m+1 divisions, with quotient 1 in the first m of them and quotient 2 in the last Example
- gcd at the boundary: gcd(a,0) = |a|, gcd(0,0) = 0, and the convention gcd(0,0) = 0 is exactly what makes gcd(ca,cb) = |c|gcd(a,b) true at c = 0 Example
- gcd(1071, 462) = 21 by the Euclidean algorithm, with the back-substitution giving 21 = 7 · 462 - 3 · 1071 Example
- FALSE: For all integers a and b, gcd(a,b) · lcm(a,b) = ab False statement
- a and b are coprime if and only if ax + by = 1 for some integers x, y; and in that case the only common divisors of a and b are 1 and -1 Lemma
- For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus Lemma
- For a prime p and any integer a, gcd(p,a) is p when p ∣ a and 1 otherwise; so p ∤ a makes p and a coprime Lemma
- For coprime positive m,n, every pair of residue classes modulo m and n has a unique simultaneous class modulo mn Lemma
- gcd is symmetric and unchanged by signs: gcd(a,b) = gcd(b,a) = gcd(|a|,|b|); moreover gcd(a,0) = |a|, gcd(a,1) = 1, gcd(a,a) = |a|, and gcd(a,b) ≥ 1 unless a = b = 0 Lemma
- gcd(ca, cb) = |c| gcd(a,b) for all integers a, b, c, the identity holding at c = 0 and at (a,b) = (0,0) as well Lemma
- If a = qb + r then a, b and b, r have exactly the same common divisors, so gcd(a,b) = gcd(b,r) Lemma
- If gcd(a,b) = 1 and a ∣ bc then a ∣ c; and if a ∣ c, b ∣ c and gcd(a,b) = 1 then ab ∣ c Lemma
- If n≥1, d=gcd(a,n) and d∣ b, then ax≡ bpmod n reduces to a congruence with coprime coefficient modulo n/d Lemma
- aℤ + bℤ = gcd(a,b) ℤ and aℤ ∩ bℤ = lcm(a,b) ℤ; equivalently, in (ℤ,+) the subgroup generated by {a,b} is ⟨ gcd(a,b) ⟩ and ⟨ a ⟩ ∩ ⟨ b ⟩ = ⟨ lcm(a,b) ⟩ Theorem
- Bézout's identity: for integers a, b not both zero, gcd(a,b) is the least positive element of { ax + by : x, y ∈ ℤ }; in particular ax + by = gcd(a,b) has an integer solution Theorem
- Euclid's lemma: if p is prime and p ∣ ab then p ∣ a or p ∣ b Theorem
- Every common multiple of a and b is a multiple of lcm(a,b), and gcd(a,b) · lcm(a,b) = |ab| Theorem
- For a prime p and k≥1, φ(pᵏ)=pᵏ-pᵏ⁻¹ Theorem
- For every positive integer n, ∑_d∣ n, d>0φ(d)=n Theorem
- For n≥1, [a]ₙ is a unit if and only if gcd(a,n)=1 Theorem
- For n≥1, ax≡ bpmod n is solvable exactly when gcd(a,n)∣ b, and then has exactly gcd(a,n) solution classes modulo n Theorem
- For positive integers a and b and every prime p: vₚ(gcd(a,b)) = min{vₚ(a), vₚ(b)} and vₚ(lcm(a,b)) = max{vₚ(a), vₚ(b)}; so the exponent-wise greatest common divisor is the gcd of the divisibility page and not a second notion Theorem
- The Euclidean algorithm: for a ∈ ℤ and b > 0 the remainder descent from (a,b) terminates, and the last nonzero remainder is gcd(a,b) Theorem
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 42 results over 14 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.
Sources
- Greatest common divisor (Wikipedia) (standard reference, not scraped)