Finished the variable cases of inference soundness.