Square logic