Theoretical Preconditions of Realism. Philosophical Bases