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
- Host: GitHub
- URL: https://github.com/lecopivo/houlean
- Owner: lecopivo
- Created: 2022-04-23T18:22:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T14:32:56.000Z (over 1 year ago)
- Last Synced: 2025-07-09T13:47:38.127Z (3 months ago)
- Topics: houdini, houdini-plugin, lean4
- Language: C++
- Homepage:
- Size: 1.41 MB
- Stars: 20
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.org
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