Agda mechanisation accompanying for Bidirectional polymorphic type slicing. Core language is based upon the Hazel calculus. See relevant paper and dissertation
Install Nix with flakes if you don't have it:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Then:
nix build github:MaxCarroll0/polymorphic-type-slicing-formalism
Alternatively, clone the repo and run nix build within.
The build runs agda -W error all.agda against the pinned
standard library and writes:
result/TYPECHECK_RESULTS/build.log— full Agda outputresult/TYPECHECK_RESULTS/status—PASS …orFAIL …with the agda exit coderesult/TYPECHECK_RESULTS/postulates_and_holes.txt— everypostulateblock and hole ({! … !},?). Holes mark in-progress proof fragments corresponding to results marked UNMECHANISED in the dissertation.result/out/— checked sources and built.agdaiinterfaces
The Nix build itself always succeeds (so the log is recoverable even on a
failing check); read result/TYPECHECK_RESULTS/status to confirm type-checking
actually passed.
Use direnv with the .envrc or nix develop:
nix develop
Then, agda all.agda type-checks the whole project.