This repository represents the code that was used to compute Tables 1 and 2 of The number of D4 fields ordered by conductor. It will be updated as the paper goes through the review process.
We mainly use Python 3.7 and sympy. We do use Poetry as our dependency management system, so you'll first need to install that to package everything correctly. After that, though, you should be able to run:
poetry installIf you don't want to install poetry, then running pip install sympy click && pip install -e . will do the job.
poetry run d4counting splitting # Computes Table 1
poetry run d4counting expectation # Computes Table 2You can run the tests with
poetry run py.testThe package d4counting contains all the relevant code. The CLI is driven by cli.py, whereas the details of the computations
can be found in splitting_types.py for Table 1 and expected_number.py for Table 2.
MIT