| title | Lean PQ |
|---|
docker run --rm -it -v $(pwd):/workspace -w /workspace ubuntu:latest bash
Then:
apt update
apt install git build-essential curl libcurl4-openssl-dev pkg-config
curl https://elan.lean-lang.org/elan-init.sh | sh
source $HOME/.elan/envhttps://blog.cofree.coffee/2024-03-03-lean-for-haskell-developers/
https://github.com/leanprover/lean4/blob/master/doc/dev/ffi.md
https://github.com/DSLstandard/Lean4-FFI-Programming-Tutorial-GLFW or https://gist.github.com/ydewit/7ab62be1bd0fea5bd53b48d23914dd6b referred in the first link.
https://github.com/leanprover/lean4/blob/master/src/include/lean/lean.h
https://github.com/marcellop71/redis-lean/tree/main
https://github.com/leanprover/lean4/blob/master/src/lake/examples/ffi/lib/lakefile.lean
https://github.com/haskellari/postgresql-simple
https://github.com/nikita-volkov/hasql
To get the flags you can run: pkg-config --libs libcurl