Quantization of cohomology in semi-simple Lie algebras.
We introduce the notion of quasi-trace functions on Lie algebras. As applications we study realizations of 3-dimensional and 4-dimensional 3-Lie algebras. Some comparison results on cohomologies of 3-Lie algebras and Leibniz algebras arising from quasi-trace functions are obtained.