Introduction
DIMACS CNF is a text form of a Boolean formula in conjunctive normal form. It is the
usual input of satisfiability (SAT) solvers, and the yearly SAT competitions use a
simplified subset of it. It goes back to a DIMACS note of May 1993. Files are commonly
named .cnf.
Structure
Lines beginning with c are comments. A problem line,
p cnf followed by the number of variables and the number of clauses, comes
before the clauses. Each clause is a list of literals ending in 0: a
positive number is a variable and a negative number is its negation.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the whole 1993 note, and the variants used by competitions and particular solvers.
- Viewer: the site has no viewer for this format.
Links
Software
- Varisat – SAT solver that reads DIMACS CNF
- MiniSat – SAT solver
Reference
- Satisfiability suggested format – the DIMACS note (TeX source)
- CNF files – John Burkardt’s examples of
.cnffiles