TheEdit. To try and make something productive out of the argument below, let me explain the proof of the Ax-Grothendieck Theorem is far more general than for the case of a morphism from affine space to itselfusing this argument. Here is a sketch of Also, the argument below includes the proof of the result in that case. The basic ideas are similar to those in Jouanolou's Bertini-theory book used to simplify the proofconjecture of the Quillen-Suslin TheoremOP when $n$ equals $1$.
Edit. I cannot complete my proof. The result is wrong, as shown by As noted in the accepted answer by user @pinaki, the conjecture is false when $n$ equals $2$. The problem with my proof isargument below shows that when the divisor $\text{Zero}(f)$ I need inresult fails, the target must simultaneously be transverse toimage of the branch divisor and containmorphism is an open subset of affine space whose closed complement has codimension $\geq 2$, containing the image of the singular locus of the integral closure"integral closure" variety $X$. Those two conditions are mutually exclusive. I am keeping and intersecting the post below because it provessingular locus of the result forbranch divisor $n=1$, and it highlights(this is why the issue for $n>2$Bertini result fails).
The proof strategy here is similar to that used by Jouanolou in his book on Bertini theorems to simplify the proof of the Quillen-Suslin Theorem.
Lemma 2. For a field $k$, for every affine, dominant, quasi-finite $k$-morphism $p:U\to Y$ between normal, integral, finite type $k$-schemes, there is a factorization of $p$ as $i:U\to X$ composed with $\overline{p}:X\to Y$, where $i$ is a dense open immersion, and where $\overline{p}$ is a finite $k$-morphism between normal, integral, finite type $k$-schemes.
Proof. Of course thisThis follows quickly from Grothendieck's version of Zariski's Main Theorem. It also follows from and the Noether Normalization Theorem: let $X$ beis the integral closure of $Y$ in the function field of $U$, this is finite type over $Y$, and $U$ is an open subscheme of $X$. QED
Hypothesis 4.
The non-smooth locus of eachfield $k$-scheme $U$ and $Y$ has irreducible components of codimension $\geq 2$.
Since is perfect, both $U$ and $Y$ are normal, this follows from Serre's Criterion for Normality if the characteristic issmooth $0$. Of course in the case of interest$k$-schemes, when $U$ and $Y$ are each isomorphic to affine space, the hypothesis holds$p$ is generically étale.
By construction of $X$, also the non-smooth locus $X_{\text{sing}}$ of $X$ has codimension $\geq 2$. Thus On the smooth open complement $X^o:=X\setminus X^{\text{sing}}$, therethe reduced Weil divisor is a closed subschemeCartier, i.e., the ideal sheaf is locally principal. Since $Z\subset Y$ all$\overline{p}$, the ideal sheaf is even principal when restricted to $\overline{p}$-preimages of whose irreducible components have codimensionsufficiently small Zariski open subsets of $\geq 2$ such$Y$, e.g., the inverse image $\overline{p}^{\text{pre}}(Y\setminus E)$ for a divisor $E$ in $Y$ that contains the image $\overline{p}(X_{\text{sing}})$. If $D$ is nonempty, then we can choose $E$ so that it does not contain $Y\setminus Z$$\overline{p}(D)$, andi.e., so that the restriction of $D$ to the preimage open subset is nonempty and the generator of the principal ideal is a nonzero nonunit.
Problem 5. Assuming $\overline{p}^{\text{pre}}(Y\setminus Z)$ are smooth$D$ is nonempty,
among irreducible divisors $k$-schemes$E$ in $Y$ containing $\overline{p}(X_{\text{sing}})$ yet not contain $\overline{p}(D)$, and such that $D$ is principal on $\overline{p}^{\text{pre}}(Y\setminus E)$, is there one such that $\overline{p}^{\text{pre}}(E)$ is irreducible?
Lemma 6. If $p$ is birational, then there is such a divisor $E$.
Proof. If $p$ is birational, then by Zariski's Main Theorem, also $\overline{p}$ is an isomorphism. In particular, it is a homeomorphism for the intersectionZariski topology, and inverse images of these smoothirreducible closed subsets are irreducible. QED
Proposition 7. For a dominant,quasi-finite $k$-schemes withmorphism $D$ is reduced$p:U\to Y$ between affine spaces over (possibly reducible)$k$, if there exists a divisor $E$ as in the problem, then already $p$ is finite, hence surjective. In particular, if $D$$p$ is not emptybirational, then $p$ is an isomorphism of $k$-schemes.
Proof. The morphism $p$ is finite if and only if the divisor $D$ is nonempty. By way of contradiction, assume that $D$ is nonempty and a Cartier divisor on the open $\overline{p}^{\text{pre}}(Y\setminus Z)$$E$ as in the problem exists. Since $X$$Y$ is finite overfactorial $Y$, this Cartier divisor becomes principal(by Gauss's Lemma), say the irreducible divisor of $g$, on all preimage open subsets$E$ is $\overline{p}^{\text{pre}}(V)$$\text{Zero}(f)$ for $V$ sufficiently small Zariski open subsets insome irreducible $Y\setminus Z$$f\in k[Y] \cong k[y_1,\dots,y_n]$. In particular By hypothesis, ifin the $V$ equals$k$-algebra $D(f)$$k[X][f^{-1}]$, then the ring extension $k[Y][f^{-1}] \to k[U][f^{-1}]$ containsideal of $k[X][f^{-1},g^{-1}]$ as a subring$D$ is principal, i.esay $\langle g\rangle$. Thus, the fraction ring $g$$k[X][\overline{p}^*f^{-1},g^{-1}]$ is already invertiblecontained in the $k[U][f^{-1}]$$k$-subalgebra $k[U][p^*f^{-1}] \cong k[x_1,\dots,x_n][p^*f^{-1}]$. However
By hypothesis on $E$, whenthe element $k[U]$ equals$p^*f$ is irreducible in $k[x_1,\dots,x_n]$. Thus, we know what are all the invertible elements of $k[x_1,\dots,x_n][p^*f^{-1}]$ are precisely the elements of the form $cf^d$ for $c\in k^\times$ and for $d\in \ZZ$. Since $g$ is invertible in $k[U][f^{-1}]$$k[x_1,\dots,x_n][p^*f^{-1}]$, the element $g$ equals $cf^d$ for some $c$ and integer $d$.
The argument from here on uses a Bertini result Thus, $g$ is already invertible in $k[X][\overline{p}^*f^{-1}]$. I am trying to write this up now This contradicts the hypothesis that $E$ does not contain $\overline{p}(D)$. QED
EditNota bene. The Bertini result that In my original post, I neededattempted to use Bertini theorems to find $E$ as above: the inverse image of $E$ is wrong; seeconnected by the explanation aboveBertini connectedness theorem. If $E$ intersects transversally the branch divisor of $\overline{p}$ at all generic points of the intersection set, then the inverse image of $E$ is also locally irreducible, and hence $E$ is irreducible. However, as the example in the accepted answer shows, it can happen that $\overline{p}(X_{\text{sing}})$ contains an irreducible component of the singular locus of the branch divisor that has codimension $2$ in $Y$. Thus, the requirement that $E$ contains $\overline{p}(X_{\text{sing}})$ forces $E$ to intersect the branch divisor nontransverally at the generic point of $\overline{p}(X_{\text{sing}})$.