https://github.com/m4lvin/RepLeanTeX
Running Lean 4 while/from running LaTeX.
https://github.com/m4lvin/RepLeanTeX
yo-dawg
Last synced: 4 months ago
JSON representation
Running Lean 4 while/from running LaTeX.
- Host: GitHub
- URL: https://github.com/m4lvin/RepLeanTeX
- Owner: m4lvin
- License: apache-2.0
- Created: 2024-07-13T11:47:10.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-15T12:17:11.000Z (7 months ago)
- Last Synced: 2025-03-10T10:13:18.709Z (4 months ago)
- Topics: yo-dawg
- Language: Shell
- Homepage:
- Size: 44.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RepLeanTeX
==========This is a proof of concept to run the
[`Lean 4 repl`](https://github.com/leanprover-community/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:```latex
\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.```bash
git clone https://github.com/m4lvin/RepLeanTeX.git
cd RepLeanTex
make setup # or adjust the version of repl and myProject manually
make
```