Let A be a ring, M a finitely generated A-module, N a projective A-module, and u:M→N an A-linear mapping.
a) Let p be a prime ideal of A. The following conditions are equivalent :
(i) there exist f∈A−p and v∈HomAf(Nf,Mf) with v∘uf=IdMf; (ii) there exists v∈HomAp(Np,Mp) with v∘up=IdMp; (iii) the κ(p)-linear 1⊗u:κ(p)⊗AM→κ(p)⊗AN mapping is injective; (iv) there exist an integer m≥0, elements x1,…,xm of M and linear forms y1,…,ym on N such that the images of the xi in Mp generate the Ap-module Mp and that one has det(<yj,u(xi)>)∈/p;
If condition (iv) is satisfied, one has m=[κ(p)⊗AM:κ(p)] and the elements 1⊗xi form a basis of the κ(p)-vector space κ(p)⊗AM.
b) The set U of prime ideals p of A satisfying the conditions of a) is an open set of Spec(A), and the following conditions are equivalent:
(i) one has U=Spec(A); (ii) U contains all the maximal ideals of A; (iii) there exists v∈HomA(N,M) with v∘u=IdM; (iv) u is injective and Coker(u) is a projective A-module.
Let us prove a).
(i) ⇒ (ii) ⇒ (iii): these implications are clear.
(iii) ⇒ (iv): put m=[κ(p)⊗AM:κ(p)] and let (x1,…,xm) be a sequence of elements of M such that the elements 1⊗xi form a basis of the κ(p)-vector space κ(p)⊗AM. The images of the xi in Mp generate the Ap-module Mp (Nakayama lemma). If condition (iii) is satisfied, the elements 1⊗u(xi) of the κ(p)-vector space κ(p)⊗AN are linearly independent.
Moreover, there exist an A-module N', a set I, and an isomorphism of A-modules θ:N⊕N′→A(I), from which one deduces an isomorphism of κ(p)-vector spaces
θ:(κ(p)⊗AN)⊕(κ(p)⊗AN′)→κ(p)(I).
The elements ti=θ(1⊗u(xi),0) of κ(p)(I) form a finite free family. There therefore exist elements α1,…,αm of I such that one has det(prαj(ti))=0; the linear forms yj:z↦prαj(θ(z,0)) on N are suitable.
Suppose condition (iv) fulfilled. Let (aij)∈Mm(A) denote the matrix of coefficients aij=<yj,u(xi)>. Let g be an element of A−p such that the images of the xi generate the Ag-module Mg (II, § 5, No. 1, Prop. 2), and let f=gdet(aij). Since det(aij) is invertible in Af, the images of the elements u(xi) in Nf are linearly independent; consequently the images of the xi in Mf form a basis of this Af-module. This proves the last assertion of a). Let us now prove (i). Let w∈HomA(N,M) denote the mapping z↦∑j<yj,z>xj. We have
w∘u(xi)=j∑aijxj;
since the images of the xi form a basis of Mf and the matrix (aij) is invertible in Mm(Af), the endomorphism (w∘u)f of Mf is bijective, and the mapping v=(w∘u)f−1∘wf∈HomAf(Nf,Mf) satisfies condition (i).
Let us prove b). The fact that U is open follows from condition (i) of a).
(iii) ⇒ (i) ⇒ (ii): this is clear.
(iv) ⇒ (iii): under the hypotheses of (iv), the sequence 0→MuN⟶Coker(u)→0 is exact and split, whence (iii).
(ii) ⇒ (iv): let us introduce, as above, an isomorphism of A-modules θ:N⊕N′→A(I). Let u′ denote the mapping of M into A(I) defined by u′(x)=θ(u(x),0). There exists a finite subset J of I such that the image of u′ is contained in the submodule AJ of A(I). Let u′′:M→AJ denote the mapping deduced from u′. Under hypothesis (ii), for every maximal ideal m of A, the Am-linear mapping um′ of Mm into Am(I) admits a retraction, and therefore the same is true of um′′; thus um′′ is injective and its image is a direct factor in AmJ, so that its cokernel is a projective Am-module. The A-module Coker(u′′) is finitely presented by construction; it is therefore projective (II, § 5, No. 2, Th. 1). The homomorphism u′′ is injective (II, § 3, No. 3, Th. 1); consequently, u is injective. The A-module Coker(u′) is isomorphic, on the one hand to Coker(u)⊕N′, on the other hand to Coker(u′′)⊕A(I−J). Since the A-modules A(I−J), Coker(u′′) and N′ are projective, the same is true of Coker(u), which completes the proving of (iv).
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.