LIME: Learning Inductive Bias for Primitives of Mathematical Reasoning