Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 993 Bytes

lean.md

File metadata and controls

40 lines (29 loc) · 993 Bytes
title description date
关于 Lean 4
东风夜放花千树, 更吹落, 星如雨. 宝马雕车香满路. 凤箫声动, 玉壶光转, 一夜鱼龙舞.
2024-10-13

官网的各种文档很丰富!

首先是安装 elan: Lean version manager, 熟悉 Rust 的自然了然于胸, 类似于 rustup. elan 是 Rust 编写的 (嗯, 会不会未来 Lean 的 C++ 也会切换到 Rust? 哈哈)

# source $HOME/.elan/env
elan self update
elan default leanprover/lean4:stable

然后, lake 类比于 Cargo

lake new lean-snippet
cd lean-snippet
lake build
./.lake/build/bin/lean-snippet

顺便提一下本人的第一个 Lean4 PR 5789, 哈哈~

Functional Programming in Lean

Theorem Proving in Lean 4