The aim is to update the examples of https://github.com/math-comp/mcb/coq
in https://github.com/AlainLich/mcb/coq (branch AL_porting_only) in order to
- Be compatible with "The Coq Proof Assistant, version 8.20.1; compiled with OCaml 4.14.2" and Mathcomp 2.4.0.
- Accommodate HB (Hierarchy Builder) in Chapters 7 and following.
- In practice, I am using the Platform version
CP.~8.20~2025.01, running in a container on an Apple M2, and accessed viaVScoqhttps://github.com/rocq-prover/vsrocq.
Motivation
-
I have found the HB changes quite disruptive, when (naively) trying to experiment with the tutorial. Therefore this is made available in case it might be of help.
-
Reference found very useful in this exercise:
- "Tutorial: Hierarchy Builder", from https://github.com/rocq-prover/platform-docs?tab=readme-ov-file, the tutorial https://github.com/rocq-prover/platform-docs/blob/main/src/Tutorial_hierarchy_builder.v by Quentin Vermande.
To build the book using Nix, run
# without flakes, check out the repo first
$ NIXPKGS_ALLOW_UNFREE=1 nix-build
# with flakes
$ NIXPKGS_ALLOW_UNFREE=1 nix build github:math-comp/mcb --impureAlternatively you may fetch the latest artifact produced by the CI for the master branch here.
The tex/ directory contains the sources. TexLive 2014, 2021 is
known to work.
The coq/ directory contains snippets corresponding to the chapters
of the book.
The docs/ directory contains the website of the book.
The artwork/ directory contains the graphics used in the book.
Link to the homepage of the book