Theory of Definable Sets