lake
Lean 4のlakeについて
lean4/src/lake at master · leanprover/lean4
プロジェクトの作成
lake initでカレントディレクトリにプロジェクトを作成
$ lake init my-lean-project
lake newで新しいディレクトリにプロジェクトを作成
$ lake new my-lean-project
パッケージのアップデート
$ lake update
$ lake exe cache clean
キャッシュされたビルド済みファイルをダウンロードする
$ lake exe cache get
$ lake build -v | tee "$(date +%Y-%m-%d_%H-%M-%S)_build.log"
-v: --verboseオプション。デバッグ用にメッセージの量を増やす。
warning解消
何かガチャガチャしてたら以下のwarningが出てしまった。
code:memo
PS D:\02_Area\ghworkspace\language\lean\mathematics_in_lean> lake clean
warning: mathlib: repository '.\.\.lake/packages\mathlib' has local changes
warning: batteries: repository '.\.\.lake/packages\batteries' has local changes
mathmatics_in_lean/の.lakeを削除してlake exe cache getしたら治った。
code:memo
PS D:\02_Area\ghworkspace\language\lean\mathematics_in_lean> lake exe cache get
info: mathlib: cloning https://github.com/leanprover-community/mathlib4 to '.\.\.lake/packages\mathlib'
info: batteries: cloning https://github.com/leanprover-community/batteries to '.\.\.lake/packages\batteries'
info: Qq: cloning https://github.com/leanprover-community/quote4 to '.\.\.lake/packages\Qq'
info: aesop: cloning https://github.com/leanprover-community/aesop to '.\.\.lake/packages\aesop'
info: proofwidgets: cloning https://github.com/leanprover-community/ProofWidgets4 to '.\.\.lake/packages\proofwidgets'
info: Cli: cloning https://github.com/leanprover/lean4-cli to '.\.\.lake/packages\Cli'
info: importGraph: cloning https://github.com/leanprover-community/import-graph.git to '.\.\.lake/packages\importGraph'
No files to download
Decompressing 4539 file(s)
unpacked in 54602 ms
確認用
Q. lake
参考
lakeの再帰的なビルドと手作業でのビルド - (新) 檜山正幸のキマイラ飼育記 メモ編
関連
elan
調査用
/pogi-log/Google.icon lake(日)
/pogi-log/Google.icon lake lean(日)
/pogi-log/Google.icon lake(英)
/pogi-log/Google.icon lake lean(英)
/pogi-log/Wikipedia.icon
lake - Wikipedia(日)
lake(検索) - Wikipedia(日)
/pogi-log/Wikipedia.icon
lake - Wikipedia(英)
lake(検索) - Wikipedia(英)