Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

leanprover/lean3-web-editor

Repository files navigation

DEPRECATED

See lean4web for a solution for Lean 4.

lean3-web-editor

This repository contains the javascript code for the a Lean 3 live editor.

Running the development version

npm install
./fetch_lean_js.sh
./node_modules/.bin/webpack-dev-server

The fetch_lean_js.sh script fetches a precompiled javascript version as well as a library.zip file containing the olean files.

Deployment

npm install
./fetch_lean_js.sh
./node_modules/.bin/webpack

Then copy the ./dist directory wherever you want.

Creating a customized library.zip

If you want to include custom libraries, then you need to build a suitable library.zip file yourself.

  1. Change combined_lib/leanpkg.toml to include the libraries you want.
  2. Run ./mk_library.py to create dist/library.zip. Make sure you run the same Lean version locally as the javascript version you target.