prove that reduction semantics is a function