Fun facts about SAT solving (part 1)

Last time I gave a talk, I got some quite deserved fire about the way I approach SAT solving: in a more practical than scientific way. So, to give some food for thought for those who wish to approach SAT from a more scientific viewpoint, and to demonstrate to what lengths I have gone to give (at least to myself) a scientific viewpoint, let me talk a little bit about a fun fact that I have found. The fun fact, as is quite usual for SAT, seems entirely trivial, even banal, but has somehow (so far) eluded proper explanation for me. Maybe you will be the one to give the right explanation :) ...

July 1, 2011 · 4 min · msoos

ANF to CNF conversion

Algebraic Normal Form, or simply ANF, is the form used to describe cryptographic functions. It looks like this: a∗b⊕b∗c⊕b⊕d=0b∗c⊕c⊕a=0… a*b \oplus b*c \oplus b \oplus d = 0\\ b*c \oplus c \oplus a = 0\\ \ldots a∗b⊕b∗c⊕b⊕d=0b∗c⊕c⊕a=0… Where a,…da,\ldots da,…d are binary variables, the ⊕\oplus⊕ sign is binary XOR, and the ∗*∗ sign is binary AND. Every item that is connected with the XOR-s is called a monomial, and its degree is the number of independent variables inside it. So, a∗ba*ba∗b is a 2-degree monomial in the first equation, and ccc is a 1-degree monomial in the second equation. ...

July 6, 2010 · 4 min · msoos

Gaussian elimination is released

The new CryptoMiniSat, version 2.4.2 now has on-the-fly Gaussian elimination compiled in by default. You can simply use it by issuing e.g. ./cryptominisat --gaussuntil=100 trivium-cipher.cnf and enjoy outputs such as: c gauss unit truths : 0 c gauss called : 31323 c gauss conflicts : 5893 (18.81 %) c gauss propagations : 7823 (24.98 %) c gauss useful : 43.79 % c conflicts : 34186 (4073.39 / sec) c decisions : 39715 (6.86 % random) Which basically tells that gaussian elimination was called 31 thousand times out of 39 thousand, and so it was essentially running almost all the time. Out of the 31'323 times it was called, 44% of the cases it found either a conflict or a propagation. This is a very good result, and is typical of the Trivium cipher. Trivium can be speeded up by up to 2x with Gaussian elimination. I will put up lots of CNFs, so you will be able to play around with them and (optionally) verify these results. ...

May 9, 2010 · 2 min · msoos