# Python 3, 248 bytes def f(a,b): l=[['(',')','[','<',1],['[',']',']','<=',0]] r=[0,1] for i in r: for j in r: print(('%s%d,%d%s='*2+'{%d%sx%s%d}={%d%sx&&x%s%d}=%d..%d')%((l[j][0],a,b,l[i][1],l[1-j][2],a,b,l[i][2])+(a,l[j][3],l[i][3],b)*2+(a+l[j][4],b-l[i][4]))) [Try it online!](https://tio.run/##TY89DsIwDIX3niJLcEzdqj@wIHISy0NRqCiq2qowgBBnLyYgxPDk9z5bjjPdr6dxqJclHFvTuoYOuEtM75nBAQGqWLUHKoU4evlq74EKkcTMngttJ6YdZ9OZbjCz7ojp/Etmmrvh6hzYiw1kg714WFcpPN729oZP//Gr1TfakOc2AFrnej4LF0J6H/XcCes1PZeZ0uqPVoKp/iFO1/JhWg@oL7kmjXyjOYudjSDi0rpsS2WByws)