Contrariwise, if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic.
Through the Looking-Glass ch. 4 (1872)

Contrariwise, if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic.