Lean 4 + mathlib workspace for formalizing research problems, currently organized around Erdős
problems E119 and E885.
Install the Lean toolchain manager once:
curl https://elan.lean-lang.org/elan-init.sh -sSf | sh -s -- -yThen load the shell environment and fetch cached mathlib artifacts:
source "$HOME/.elan/env"
lake exe cache get
lake buildFormalConjectures/Util/ProblemImports.lean: shared imports and theorem statement helpersFormalConjectures/Util/Attributes.lean: lightweight metadata attributes used in problem filesFormalConjectures/Problems/Erdos/E119/: working files for Erdős Problem 119FormalConjectures/Problems/Erdos/E885/: working files for Erdős Problem 885
source "$HOME/.elan/env"
lake build
lake env lean FormalConjectures/Problems/Erdos/E119/Main.leanThe repo includes pinned Aristotle wrappers for the E885 writeup flow:
export ARISTOTLE_API_KEY=...
./scripts/run_aristotle_e885_writeup.sh
./scripts/run_aristotle_e885_forum_strict.shThis uses uvx --from aristotlelib@1.0.1 aristotle ..., stages a small E885-focused
project bundle under artifacts/, and downloads the result there.
The forum_strict variant is scoped to the current forum-note bundle.
lean-toolchainis pinned to mathlib's current toolchain so dependency resolution stays aligned with upstream.- The current
E119file is intentionally scaffolded withsorry, which lets the project build while you work theorem-by-theorem.