Example 3
Tag 09W5, permanent. Cite it as [Bourbaki, Tag 09W5].
Lie Groups and Lie Algebras, chapter I, § 3. Representations
Let M be a g-module. Let be a bilinear form on M and f the corresponding element of . For to be invariant, it is necessary and sufficient that f be a g-module homomorphism (Proposition 4 and Example 1). Suppose that K is a field and that . A non-degenerate invariant bilinear form on M defines an isomorphism of the g-module M onto the g-module and hence an isomorphism of the g-module onto the g-module . Thus, by Example 2, giving defines canonically an invariant element c in the g-module , which can be constructed as follows: let be a basis of M and the basis of M such that ; then .
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.