What Happens after SGD Reaches Zero Loss? --A Mathematical Framework