Let A be a ring, I a finite set and E the set of orthogonal families (ei)i∈I of idempotents ei=0 of A such that ∑i∈Iei=1. For all (ei)i∈I∈E, we set ω((ei)i∈I)=(V(A(1−ei)))i∈I, σ((ei)i∈I)=(Aei)i∈I. Then ω is a bijection of E onto the set P of partitions (Ui)i∈I of X=Spec(A) into open sets and σ is a bijection of E onto the set S of families (ai)i∈I of ideals =0 of A such that A is the direct sum of the ai.
Let (ei)i∈I be an element of E and set Yi=V(A(1−ei)); if i=j, then 1=1−ei+ei(1−ej)∈A(1−ei)+A(1−ej), whence Yi∩Yj=∅ (formulae (1) and (2)). On the other hand,
i∈I⋃Yi=V(i∈I∏A(1−ei))
(formula (3));
by hypothesis ∏i∈I(1−ei)=1−∑i∈Iei=0, whence ⋃i∈IYi=X (formula (I)). As the Yi are closed, they are also open, whence ω(E)⊂P. Also, obviously A=∑i∈IAei; if 0=∑i∈Iaiei where ai∈A, we obtain, by multiplying by ei, O=aiei2=aiei for all i; this proves that σ(E)⊂S.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.
Nothing.