done proof of lemma remaining_value_alt