Optimize `complement . complement ==> id`