Skip to content

Running Lean 4 while/from running LaTeX.

License

Notifications You must be signed in to change notification settings

m4lvin/RepLeanTeX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RepLeanTeX

This is a proof of concept to run the Lean 4 repl while compiling a LaTeX document. The main goal is to avoid repeated calls to lake env lean, and only start the repl once for each LaTeX compilation.

Currently the only feature is an \axioms{...} command to print the dependencies of its argument:

\verb|True| depends on: \axioms{True}

\verb|iff_right_comm| depends on: \axioms{iff_right_comm}

\verb|wrong| from \texttt{MyProject/Basic.lean} depends on: \axioms{wrong}

\verb|Nat.beta_unbeta_coe| depends on: \axioms{Nat.beta_unbeta_coe}

Quick start

Make sure that you set the same Lean version with elan default. Currently it is not enough to set it locally.

git clone https://github.com/m4lvin/RepLeanTeX.git
cd RepLeanTex
make setup # or adjust the version of repl and myProject manually
make