Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/annenkov/2ltt-docker
A docker image for the two-level type theory formalisation in Lean
https://github.com/annenkov/2ltt-docker
Last synced: 9 days ago
JSON representation
A docker image for the two-level type theory formalisation in Lean
- Host: GitHub
- URL: https://github.com/annenkov/2ltt-docker
- Owner: annenkov
- Created: 2019-10-28T11:54:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-28T19:46:43.000Z (about 5 years ago)
- Last Synced: 2024-11-06T08:03:10.459Z (about 2 months ago)
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A docker image for 2LTT development
A docker image for the two-level type theory formalisation in Lean: https://github.com/annenkov/two-level
Steps to build
==============* Clone this repo.
* Install `docker`.
* In the terminal, go to the directory you cloned this repo and run (notice `.` at the end) `docker build -t lean-image .`
* After building step is complete (this might take some time), run `docker run -it lean-image` to connect your current terminal session to the container.
* In the container, type `emacs ~/two-level/fibrantlimits.lean` to start editing `fibrantlimits.lean` with the lean-mode in Emacs.Interacting with the Lean development
=====================================As we have said before, the docker image comes with Emacs and lean-mode. The lean-mode provides syntax highlighting and allows to interactively develop proofs.
Use C-c C-g to show goal in tactic proof, C-c C-p to print information about identifier, C-c C-t to show type, and C-c C-l to comple a lean file.Alternatively, one can use the command line to compile the project or individual files:
* After executing `docker run -it lean-image`, change directory to our Lean development `cd ~/two-level`.
* Run `make clean` to clean previously compiled files
* Run `make` again to rebuild the project.
* Individual files can be compiled using `lean `.The image comes with the preinstalled `nano` editor that can be used to view/edit the source files (but without syntax highlighting). Other editors can be installed, if required, using the `apt-get` command. For example, `apt-get install vim`.