Repository navigation
Bosphorus 4.1.0 makes solution counts over projection sets correct end to
end, shortens the command line, reads gzipped inputs, and is faster on
large polynomials.
Command line
bosphorus in.anf out.cnfwrites the CNF,bosphorus in.anf out.anf
the ANF: the second file is the output, told apart by its extension.- Without an output file the system is solved. Note:
bosphorus file.anfused to only simplify; it now also solves. Pass an output file
(or--anfwrite /dev/null) to only simplify. .anf.gzand.cnf.gzinputs are read directly. Output is never
compressed; a.gzoutput name is an error.--allsolimplies--solve.
Counting over projection sets
- The projection set of a CNF input (
c p show ... 0orc ind ... 0,
possibly over several lines) is read:--allsolenumerates over it and
the written CNF keeps it (#43). - When long clauses of a CNF input are chopped, the helper variables no
longer inflate the count of the written ANF and CNF. - A written ANF declares the whole ring, so free variables after the last
used one survive reading it back (each one lost used to halve the
count). - Named-variable ANFs are written back with their names, so fixed values
and equivalences no longer move to other variables when read back. - In an ANF the projection line is
c p show ... END; the CNF line is
c p show ... 0.
Performance and defaults
- ElimLin substitution and equation sampling use ZDD set operations (#26).
- The reader counts each polynomial's terms once; on bivium this took a
run from 7.5 s to 4.6 s. - XL is off by default: on bivium, ascon and MQ it found nothing that
mono-gauss did not.--xl 1turns it back on.
Fixes
- An empty clause (the CNF of
1 = 0) no longer triggers an assertion.
Testing
- The fuzzer checks every solution count with ganak, including the
ANF → CNF path, and runs in parallel (utils/fuzz_session.sh).