Make iand lemmas use proper Inference types. (#4956)