several lemmas later, finally proved red_det, and thus pyret_step_deterministic