The Inprocessing API of CryptoMiniSat

Many modern SAT solvers do a lot of what’s called inprocessing. These steps simplify the CNF into something that is easier to solve. In the compiler world, these are called rewritngs since the effectively rewrite (parts of) the formula to something else that retain certain properties, such as satisfiability. One of the most successful such rewrite rules for CNF is Bounded Variable Elimination (BVE, classic paper here), but there are many others. These rewrites are usually done by modern SAT solvers in a particular order that was found to be working well for their particular use-case, but they are not normally accessible from the outside. ...

October 1, 2023 · 7 min · msoos

Pepin, our Probabilistic Approximate Volume Counter

Let’s say you are allowed to have cubes in a 3-dimensional space that happens to be binary. In this space, x1, x2, and x3 are the axis, and for example the cube x1=0 is a cube that happens to have 4 points in it: 000, 001, 010, and 011. So far, so good. Now, let’s say we need to calculate the total volume of two cubes in this space. If they don’t intersect, it’s quite easy, we simply add their volumes. But what if they intersect? Now we need to compute their overlap, and subtract it from their sum of volumes. But there is a better way. ...

September 23, 2023 · 11 min · msoos

Arjun, our New CNF Model Counting Preprocessor

After many years of work, I am very happy to present our new CNF model counting preprocessor, Arjun [ PDF][ static binary]. It improves upon our approximate model counter ApproxMC [ static binary], and can be used as a stand-alone binary to preprocess CNFs for (projected) model counting . Usage is simple: ./arjun blasted_case110.cnf c Arjun Version: 43b17ef5899c461b8e947b0f3ca286efcf71464c c CMS SHA revision 9bf1d82a7b9fa5492cf4f0437cf7110b77ad7230 [..] c [arjun] original sampling set size: 284 c [arjun] final set size: 15 percent of original: 5.2817 % Here, Arjun took a CNF that had a projection set of 284 variables, and reduced it to an independent support of only 15 variables. Arjun is now part of ApproxMC by default. Let’s solve a problem with ApproxMC without Arjun: ...

August 24, 2022 · 12 min · msoos