The Boundary Theory Of Phase Diagrams And Its Application