Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

👾 zero 2 hero studies on lean 4, a powerful theorem prover and programming language for the AI age

Notifications You must be signed in to change notification settings

cypherpunk-symposium/lean4-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔮 Lean 4 toolkit


this repository contains examples and explanations as i learn Lean 4 (a powerful theorem prover and programming language for the AI age)



installation


on macos
curl -L https://github.com/leanprover/elan/releases/latest/download/elan-x86_64-apple-darwin.tar.gz | tar xz
./elan-init
source $HOME/.elan/env
on linux
curl -L https://github.com/leanprover/elan/releases/latest/download/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init
source $HOME/.elan/env

test the installation with:

lean --version
lake --version


running


project structure


  • src.lean: the main entry point for the source code
  • src/: source code for concepts and examples/
  • lakefile.lean: the lean package manager configuration file
  • lean-toolchain: specifies the Lean version for the project (elan manages the compiler toolchains)
  • Makefile: specify all available commands

make build


run all src/*.lean files with:

make build

basic types, theorems, type classes...


run any other file inside src/example/ following its command inside Makefile.



study resources


my notes


learning lean and theorem proving


useful


applied examples

About

👾 zero 2 hero studies on lean 4, a powerful theorem prover and programming language for the AI age

Topics

Resources

Stars

Watchers

Forks