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 g_{ab} 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 \mathfrak{g} \cong \mathbb{R}^{n} is compact. \mathbb{R}^{n} 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 g_{ab} 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, \big[T_{a} , T_{b} \big] = i C_{ab}{}^{c}T_{c}): The Lie algebra \mathfrak{so}(1,2) of the non-compact Lorentz group SO(1,2) is an example of simple Lie algebra that is not compact:
\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} .
Clearly, structure constant is real but not totally anti-symmetric, for example C_{12}{}^{3} = C_{13}{}^{2} = -1. Also the metric is diagonal, g_{11} = g_{22} = -g_{33} = -2, 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: t_{1} = iT_{1}, \ t_{2} = iT_{2}, \ t_{3} = T_{3}. In terms of the set \{t_{a}\}, the above commutation relations become
[t_{1} , t_{2}] = it_{3}, \ \ [t_{2} , t_{3}] = it_{1}, \ \ [t_{3} , t_{1}] = it_{2}.
The structure constant is now real and totally anti-symmetric C_{ab}{}^{c} = \epsilon_{abc}, and g_{ab} = 2 \delta_{ab}. So, according to our definition, the algebra of the set \{t_{a}\} is compact. Indeed, it is nothing but the real Lie algebra \mathfrak{so}(3) of the compact group SO(3) of rotations in \mathbb{R}^{3}.
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 \mathcal{L} \sim g_{ab} F^{a}_{\mu\nu}F^{b\mu\nu} , with g_{ab} 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 g_{ab} to be positive-definite. And finally, the gauge invariance of \mathcal{L} imposes the following condition on g_{ab} g_{ae}C_{bc}{}^{e} + g_{be}C_{ac}{}^{e} = 0. \ \ \ (1) This means that, for \mathcal{L} 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 g_{ab} = g_{ba} that satisfies the gauge invariance condition (1).
II) There is a basis for the Lie algebra (i.e., a real non-singular linear transformation \bar{T}_{a} = M_{ab}T_{b}) for which the structure constant \bar{C}_{ab}{}^{c} is anti-symmetric in an all three indices. In this basis we simply write \bar{C}_{abc} instead of \bar{C}_{ab}{}^{c}.
III) The Lie algebra is the direct sum of commuting compact simple and \mathfrak{u}(1) subalgebras. Correspondingly, the gauge group is the direct product of simple compact Lie groups and one-parameter compact groups U(1), modulo a discrete centre.