Arjun

Arjun is three tools in one: a CNF preprocessor for model counting, a Boolean functional synthesis engine, and a 2QBF solver. Its name comes from the Hindu myth of Arjuna, known as “the one who concentrates the most”. Release binaries are on GitHub, and it is available via Nix. As a preprocessor, Arjun computes a small independent support of the formula and simplifies the CNF so that its count stays the same, for unweighted as well as weighted counting. It is the preprocessor of ApproxMC and should be used in front of Ganak. Part of its simplification code comes from SharpSAT-TD by Tuukka Korhonen and Matti Järvisalo. The preprocessor is described in Arjun: An Efficient Independent Support Computation Technique and its Applications to Counting and Sampling (ICCAD 2022), see also the blog post Arjun, our New CNF Model Counting Preprocessor and the talk SAT Preprocessing (Dagstuhl, 2026). ...

2 min · map[name:msoos]

Bosphorus

Bosphorus simplifies and solves systems of polynomial equations over GF(2), given in algebraic normal form (ANF), and converts between ANF and CNF. Such systems come up all over cryptanalysis: for example, the multivariate quadratic systems behind post-quantum schemes can be read in directly, including the Fukuoka MQ challenges and HFE systems. Bosphorus combines many algorithms: XL, ElimLin, Gauss-Jordan elimination, Gröbner bases (its own matrix-F4 engine, a Matrix-F5 variant, or BRiAl’s), and SAT solving with CryptoMiniSat, feeding facts learnt by each into the others. Its ANF-to-CNF conversion uses Brickenstein’s algorithm for small polynomials and linearisation with native XOR clauses for larger ones, and it can map CNF solutions back to the ANF. Solutions can be counted by passing the CNF to ApproxMC. Release binaries are on GitHub, and it is available via Nix. ...

1 min · map[name:msoos]

CMSGen

CMSGen is a fast, weighted, uniform-like sampler for CNF formulas. It gives no formal guarantee that its samples follow the desired distribution, but in our testing with the Barbarik uniformity tester it is currently the best sampler without such guarantees. CMSGen is built on CryptoMiniSat: it picks polarities and branching variables at random, turns off pre- and inprocessing, and restarts at static intervals, so that its solutions are spread close to uniformly over the solution space. If you need provably uniform samples, use UniGen instead. Release binaries are on GitHub for Linux, Mac and Windows, on both x86_64 and ARM, it is available via Nix, and you can try it in your browser. ...

1 min · map[name:msoos]