 The four "varnas" are not lineages, but categories".Adi Purana, an 8th-century text of Jainism by Jinasena, is the first mention of "varna" and "jati" in Jain literature.Jinasena does not trace the origin of "varna" system to Rigveda or to Purusha, but to the Bharata legend.