In physical applications, special conditions for g and f might be needed in order to guarantee that g is a Lorentz metric.