Say Y is a non-singular positive-dimensional subvariety of X = P_k^n, k alg. closed. It's possible to prove that k coincides with the global sections of the formal completion of X along Y. Can anyone suggest why that could help to prove the following: if f: X \to Z is a morphism sending Y to a point, where Z is a k-variety, then f sends X to a point. Thanks.