Mathematics of circulation in arbitrary fluid property spaces