Shulchan Aruch [תקס"ד] - The fast starts at dawn. If one went to sleep and then woke up before dawn he may not eat [unless he stipulated otherwise]. Why is sleep the determining factor? If the fast stats at night then it starts at night regardless of whether he slept. If it starts at dawn then who cares that he slept??