Skip to content

For MPRI's 2-7-1 course: attempt to "bootstrap" the course by formalizing FOL, Arithmetic, Cut elimination a.o. in Coq

License

Notifications You must be signed in to change notification settings

joba00002/FormArith

 
 

Repository files navigation

MPRI's 2.7.1 course

Setup

To use this project, you will need to install some specific dependencies in order to have a development setup of this project.

There are two maintained ways to do this, using nix (preferred) or opam.

Setup using nix flakes

We assume that you have nix installed on your system. Setup instructions can be found here: https://nixos.org/download.

  1. You can use nix develop to enter an interactive subshell containing the tools you will need:
cd <form-arith>
nix develop

The tools lives in this subshell and will disappear as soon as you leave the subshell.

  1. Build the Rocq implementation:
dune build

If you do not have flakes enabled, you may get this error:

error: experimental Nix feature 'nix-command' is disabled; use ''--extra-experimental-features nix-command' to override

All you have to do is enable flakes, see this NixOS wiki page for more details on how to enable flakes permanently.

Setup using opam

We assume that you have opam installed on your system. Setup instructions can be found here: https://opam.ocaml.org/doc/Install.html

  1. Create a new opam switch for this project:
opam switch create <name> --packages=ocaml-variants.4.14.2+options,ocaml-option-flambda
opam switch <name>
  1. Install the necessary dependencies:
opam pin add coq 8.19.2
opam repo add coq-released https://coq.inria.fr/opam/released
  1. Build the Rocq implementation:
dune build

About

For MPRI's 2-7-1 course: attempt to "bootstrap" the course by formalizing FOL, Arithmetic, Cut elimination a.o. in Coq

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Coq 97.3%
  • Nix 2.6%
  • Dune 0.1%