Mathematical consequences of Gyarmati’s principle in rational thermodynamics