Explain the sequence of processes that lead to the formation of a corrie (cirque) and its subsequent development after the glacier has melted.