TITLE: Picard group of product of spaces
QUESTION [23 upvotes]: Suppose $X,Y$ are varieties over an algebraically closed field $k$. Can we compute $\operatorname{Pic}(X \times_k Y) $ in terms of $\operatorname{Pic}(X),\operatorname{Pic}(Y)$? It seems that $\operatorname{Pic}(X \times_k Y) \cong \operatorname{Pic}(X) \times \operatorname{Pic}(Y)$ is not quite right, but I cannot figure out a counterexample. (I thought one might construct UFDs $A,B$, but their tensor product is not UFD).

REPLY [5 votes]: This is to elaborate on Elencwajg's nice answer. Ischebeck's sequence holds under the following general hypotheses: $k$ is any field, $X$ and $Y$ are non-empty, normal, locally of finite type and geometrically integral $k$-schemes. The proof of exactness at the middle of the sequence is Ischebeck's, while exactness at the first nontrivial term follows from a Galois descent argument of Colliot-Thelene and Sansuc's which appears in their 1977 paper on $R$-equivalence on tori (see proof of Lemma 11 on pp.188-189). By the way, the preliminary results proved by Ischebeck's in order to derive his theorem are actually rediscoveries of (particular cases of) results of Raynaud which appear in the Errata list for EGA IV_4 (Err 53). When one of the factors, say $Y$, is rational over the separable closure of $k$ and has a $k$-rational point, Sansuc 
proved the formula $Pic\, X\oplus Pic\, Y\simeq Pic (X\times_{k}Y)$ in his 1981 Crelle paper using a method that requires smoothness and differs completely from Ischebeck's (note that, by Ischebeck and Raynaud, normality suffices). Let me note that neither Sansuc nor Colliot-Thelene-Sansuc (in the 1977 paper alluded to above) cite Ischebeck's paper. Sansuc's statement can be generalized by replacing the smoothness hypothesis by normality and the existence of a $k$-rational point by the condition that the separable indices of $X$ and $Y$ are coprime. The reliance on the existence of a $k$-rational point on $Y$ can in fact be removed without much effort directly from Sansuc's statement by using a standard restriction-corestriction argument, as pointed out to me by Mathieu Florence. Beyond the base field case, one might further ask for a relative version of the question posed by Li Yutong, i.e., let $f\colon  X\to S$ be a morphism of schemes. Then what are the kernel and cokernel of the canonical homomorphism $Pic\, X\oplus Pic\, Y\to Pic (X\times_{S}Y)$? In this rarefied setting, assuming $S$ to be normal and integral (with function field $K$) seems reasonable (because of well-known counterexamples to many sorts of questions over non-normal bases). Under suitable conditions, there should exist an exact sequence of the sort
$$
Pic\,S\to Pic\, X\oplus Pic\, Y\to Pic (X\times_{S}Y)\to Pic\,(R(X_{K})\otimes_{K}R(Y_{K})),
$$
where $R(X_{K}), R(Y_{K})$ are the rings of rational functions of the generic fibers. So, if one lets $S$ shrink to $Spec\, K$, then Ischebeck's sequence is recovered (by the way, if the reader suspects that the localization sequence for the Picard group is at play above, then he/she is right indeed...)