Al-Farabi on the perfect state