Definition CSharpMin_halted (q : CSharpMin_core): option val :=
match q with
CSharpMin_Returnstate v Kstop => Some v
| _ => None
end.

Lemma CSharpMin_corestep_not_halted : forall ge m q m' q',
CSharpMin_corestep ge q m q' m' -> CSharpMin_halted q = None.