1. Requirements
In order to build a Nerodia project on the latest version, all of the following are required:
-
Lean 4.35 or greater
-
CPython 3.14 or greater (shared; not free-threaded)
-
A C compiler which supports both (e.g., recent GCC or Clang; MSYS2's CLANG64 toolchain)
A standard CPython distribution should usually be sufficient.
uv and the python.org installers provide the necessary components.
Some system package managers may also require a separate development package
(e.g., python3-dev).
Nonetheless, it is possible to write a Nerodia project without Python or a C
compiler. These elements are only required to build and link the Python extension
(or to use precompileModules) and thus could be delegated to a CI (e.g.,
GitHub Actions) that can vendor these properly. Similarly, the Python extension
can be distributed as a prebuilt binary (i.e., wheel), so users of the extension
do not need Lean or a C compiler.
1.1. Adding Nerodia as a Dependency
Nerodia is available on Reservoir. To add it as a dependency, use one of the following formats:
lakefile.lean
require "leanprover" / "nerodia" @ git "release/lean-v4.35"
lakefile.toml
[[require]] name = "nerodia" scope = "leanprover" rev = "release/lean-v4.35"
Nerodia releases versions for each stable Lean release. To select the version of Nerodia that is best for you, see the Changelog.