Mathematical theory of dislocations and fracture