In #13, you said
It is an inner product on the weight space, not the Lie algebra!
So, the proposition in #15 was to tell you that the matrix [itex]g_{ab}[/itex] can be used to define an inner product on the Lie algebra of a compact Lie group. This proposition, as I have already stated in #12, allows us to address the compactness of a Lie group
in terms of its Lie algebra. This does not mean that the vector space [itex]\mathfrak{g} \cong \mathbb{R}^{n}[/itex] is compact. [itex]\mathbb{R}^{n}[/itex] is a
locally compact topological group under vector addition.
Again in #12, I defined the term “compact Lie algebra” by
A simple or semi-simple Lie algebra is said to be compact if the Cartan metric [itex]g_{ab}[/itex] is positive-definite.
Or, a compact Lie algebra consists of the (infinitesimal) generators of a compact Lie group, i.e., a compact Lie algebra is the Lie algebra of a compact Lie group.
The above two definitions are exactly the definitions given by mathematicians to the term “compact Lie algebra”.
Example (here I will use physicists notation for the algebra, [itex]\big[T_{a} , T_{b} \big] = i C_{ab}{}^{c}T_{c}[/itex]): The Lie algebra [itex]\mathfrak{so}(1,2)[/itex] of the non-compact Lorentz group [itex]SO(1,2)[/itex] is an example of simple Lie algebra that is not compact:
[tex]\big[T_{1} , T_{2} \big] = - i T_{3}, \ \ \big[T_{2} , T_{3} \big] = i T_{1}, \ \ \big[ T_{3} , T_{1} \big] = i T_{2} .[/tex]
Clearly, structure constant is real but not totally anti-symmetric, for example [itex]C_{12}{}^{3} = C_{13}{}^{2} = -1[/itex]. Also the metric is diagonal, [itex]g_{11} = g_{22} = -g_{33} = -2[/itex], but not positive.
However, any simple Lie algebra can be put into a compact form if we allow for
complex linear transformations of the generators (which leads to a
different Lie group). For instance, in the above example we only need to define the following set of generators: [itex]t_{1} = iT_{1}, \ t_{2} = iT_{2}, \ t_{3} = T_{3}[/itex]. In terms of the set [itex]\{t_{a}\}[/itex], the above commutation relations become
[tex][t_{1} , t_{2}] = it_{3}, \ \ [t_{2} , t_{3}] = it_{1}, \ \ [t_{3} , t_{1}] = it_{2}.[/tex]
The structure constant is now real and totally anti-symmetric [itex]C_{ab}{}^{c} = \epsilon_{abc}[/itex], and [itex]g_{ab} = 2 \delta_{ab}[/itex]. So, according to our definition, the algebra of the set [itex]\{t_{a}\}[/itex] is compact. Indeed, it is nothing but the real Lie algebra [itex]\mathfrak{so}(3)[/itex] of the compact group [itex]SO(3)[/itex] of rotations in [itex]\mathbb{R}^{3}[/itex].
In our trade, we approach the subject as follow: we would like to write a Lagrangian for the non-abelian gauge fields. Lorentz-invariance suggests the form [tex]\mathcal{L} \sim g_{ab} F^{a}_{\mu\nu}F^{b\mu\nu} ,[/tex] with [itex]g_{ab}[/itex] being a constant (may be taken symmetric) matrix but It must be real so that the Lagrangian is real. Next, canonical quantization and the positivity of the quantum mechanical scalar product restrict [itex]g_{ab}[/itex] to be positive-definite. And finally, the gauge invariance of [itex]\mathcal{L}[/itex] imposes the following condition on [itex]g_{ab}[/itex] [tex]g_{ae}C_{bc}{}^{e} + g_{be}C_{ac}{}^{e} = 0. \ \ \ (1)[/tex] This means that, for [itex]\mathcal{L}[/itex] of the above form, the gauge group must be compact.
And we summarize the above by the following three
equivalent conditions:
I) There exists a real positive-definite matrix [itex]g_{ab} = g_{ba}[/itex] that satisfies the gauge invariance condition (1).
II) There is a basis for the Lie algebra (i.e., a real non-singular linear transformation [itex]\bar{T}_{a} = M_{ab}T_{b}[/itex]) for which the structure constant [itex]\bar{C}_{ab}{}^{c}[/itex] is anti-symmetric in an all three indices. In this basis we simply write [itex]\bar{C}_{abc}[/itex] instead of [itex]\bar{C}_{ab}{}^{c}[/itex].
III) The Lie algebra is the direct sum of commuting compact simple and [itex]\mathfrak{u}(1)[/itex] subalgebras. Correspondingly, the gauge group is the direct product of simple compact Lie groups and one-parameter compact groups [itex]U(1)[/itex], modulo a discrete centre.