An ungrammatical expression, at first sight, somehow meaning very, very sure.

It was originally "As sure as X is X," and refers to algebra.