An open API service indexing awesome lists of open source software.

https://github.com/lecopivo/houlean

Lean 4 as a scripting language in Houdini
https://github.com/lecopivo/houlean

houdini houdini-plugin lean4

Last synced: 12 days ago
JSON representation

Lean 4 as a scripting language in Houdini

Awesome Lists containing this project

README

          

* Lean 4 in Houdini

This Houdini plugin allows you to use Lean 4 as a scripting language/replacement of VEX. This plugin is highly experimental!

[[file:preview.png]]

* Installation instructions

To build =HouLean= run these commands:
#+begin_src
lake script run compileCpp /opt/hfs19.5
lake build Aesop:shared Cli:shared ImportGraph:shared LeanColls:shared Mathlib:shared ProofWidgets:shared Qq:shared SciLean:shared Std:shared
g++ -shared -o build/libLake.so -Wl,--whole-archive -fvisibility=default $HOME/.elan/toolchains/leanprover--lean4---v4.7.0-rc2/lib/lean/libLake.a -Wl,--no-whole-archive
lake build
lake script run install ~/houdini19.5
lake script run setHoudiniEnv ~/houdini19.5
#+end_src
If necessary, replace =/opt/hfs19.0= with your Houdini install path and =~/houdini19.0= with Houdini preference directory.

You can find the above example scene in =houdini/hip/example.hip=.

TODO: explain these steps
#+begin_src
lake build Aesop:shared Cli:shared ImportGraph:shared LeanColls:shared Mathlib:shared ProofWidgets:shared Qq:shared SciLean:shared Std:shared
g++ -shared -o build/libLake.so -Wl,--whole-archive -fvisibility=default $HOME/.elan/toolchains/leanprover--lean4---v4.6.0-rc1/lib/lean/libLake.a -Wl,--no-whole-archive
#+end_src