Corollary 1
Tag 09ZF, permanent. Cite it as [Bourbaki, Tag 09ZF].
Lie Groups and Lie Algebras, chapter I, § 6. Semi-simple Lie algebras
Let be a Lie algebra, its Killing form and a semi-simple sub-algebra of . The orthogonal of with respect to is a supplementary subspace of in and . If is an ideal of , so is , which is then the centralizer of in .
Let be the restriction of to : it is the bilinear form associated with the representation of on the space . This representation is faithful and hence is non-degenerate (Proposition 1). Hence is supplementary to in . On the other hand, if are in and , then
since , and hence , which proves that . If is an ideal of , we know that is an ideal of (, Proposition 7) and is identified with . As the centre of is zero, the centralizer of in is .
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.