Skip to content

Repository files navigation

my-lean

A monorepo containing my personal Lean projects.

Projects

Directory Description
theory-of-computation/ Theory of computation exercises
functional-programming/ Functional programming exercises

The shared package keeps the toolchain, dependency lockfile, and build commands in one place.

Both libraries share Batteries, pinned to v4.32.0 to match lean-toolchain, and use its linter. theory-of-computation/ additionally depends on Mathlib (also v4.32.0, which pins the same Batteries revision) for its automata and formal language API. After cloning or running lake update, fetch the prebuilt Mathlib artifacts with lake exe cache get — otherwise the first build compiles Mathlib from source.

For quick throwaway experiments, create scratch.lean in the repo root — it's gitignored and checked live by the Lean editor extension (not part of any build).

Building

Build both libraries from the repo root:

lake build

To build one library only, name its Lake target, for example lake build TheoryOfComputation.

Linting

Run the Batteries linter over both libraries:

lake lint

CI uses leanprover/lean-action to run the same build and lint checks.

About

A monorepo containing my personal Lean projects

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages