Let R⊆S be an inclusion of integral domains, with R a PID. Let a,b∈R and let d=gcd(a,b)∈R. Then d is also a gcd(a,b) in S.
Proof
Observe that, by definition of GCD, (a)+(b)⊆(d). Hence, we have p,q∈R such that dp=a and dq=b. Since R is a PID, we also have u,v∈R such that d=au+bv. Hence, (d)⊆(a)+(b). Thus (d)=(a)+(b).
These equalities also hold in S, which is sufficient to demonstrate that no ideal smaller than (d) can contain (a)+(b).