Skip to content

Bosphorus v4.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Sep 19:25

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.cnf writes 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.anf used to only simplify; it now also solves. Pass an output file
    (or --anfwrite /dev/null) to only simplify.
  • .anf.gz and .cnf.gz inputs are read directly. Output is never
    compressed; a .gz output name is an error.
  • --allsol implies --solve.

Counting over projection sets

  • The projection set of a CNF input (c p show ... 0 or c ind ... 0,
    possibly over several lines) is read: --allsol enumerates 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 1 turns 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).