Replace lemma sending with EQ assertions. Fix a typo in hex_to_int function.