Theoretical description of phase equilibrium in binary alloys