From af268c98779757466a43ac572bc4269c3def5183 Mon Sep 17 00:00:00 2001 From: psong Date: Thu, 18 Dec 2025 00:01:52 -0800 Subject: [PATCH 1/4] Bump to latest stable version Lean 4.26.0 --- lakefile.lean | 4 ++-- lean-toolchain | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lakefile.lean b/lakefile.lean index b466d88..99d8bc2 100644 --- a/lakefile.lean +++ b/lakefile.lean @@ -422,8 +422,8 @@ extern_lib libleanffi pkg := do buildStaticLib (pkg.sharedLibDir / name) #[ct2O] -require batteries from git "https://github.com/leanprover-community/batteries.git" @ "main" -require aesop from git "https://github.com/leanprover-community/aesop" @ "master" +require batteries from git "https://github.com/leanprover-community/batteries.git" @ "24241822ef9d3e7f6a3bcc53ad136e12663db8f3" +require aesop from git "https://github.com/leanprover-community/aesop" @ "2f6d238744c4cb07fdc91240feaf5d4221a27931" meta if get_config? env = some "dev" then -- dev is so not everyone has to build it require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main" diff --git a/lean-toolchain b/lean-toolchain index 1d4c9d4..2654c20 100644 --- a/lean-toolchain +++ b/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.25.0 \ No newline at end of file +leanprover/lean4:v4.26.0 \ No newline at end of file From bba6a6c3677af9e72db0c0b81bdb9c1998fdcbae Mon Sep 17 00:00:00 2001 From: psong Date: Thu, 18 Dec 2025 00:20:39 -0800 Subject: [PATCH 2/4] Fix Syntax namespace change --- LeanCopilot/Tactics.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LeanCopilot/Tactics.lean b/LeanCopilot/Tactics.lean index a4319c5..5efe1f3 100644 --- a/LeanCopilot/Tactics.lean +++ b/LeanCopilot/Tactics.lean @@ -134,7 +134,7 @@ elab_rules : tactic let tactics := tacticsWithScores.map (·.1) if ← isVerbose then logInfo s!"Tactics: {tactics}" - let range : String.Range := { start := tac.getRange?.get!.start, stop := pfx.raw.getRange?.get!.stop } + let range : Lean.Syntax.Range := { start := tac.getRange?.get!.start, stop := pfx.raw.getRange?.get!.stop } let ref := Syntax.ofRange range hint ref tactics (← SuggestTactics.checkTactics) From d1651ffd7f7287d7a05b6e90a3449e70d81b27d5 Mon Sep 17 00:00:00 2001 From: psong Date: Thu, 18 Dec 2025 00:20:51 -0800 Subject: [PATCH 3/4] Bump deps --- lake-manifest.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lake-manifest.json b/lake-manifest.json index 0e907fc..e02a3b3 100644 --- a/lake-manifest.json +++ b/lake-manifest.json @@ -5,20 +5,20 @@ "type": "git", "subDir": null, "scope": "", - "rev": "26e4c7c0e63eb3e6cce3cf7faba27b8526ea8349", + "rev": "2f6d238744c4cb07fdc91240feaf5d4221a27931", "name": "aesop", "manifestFile": "lake-manifest.json", - "inputRev": "master", + "inputRev": "2f6d238744c4cb07fdc91240feaf5d4221a27931", "inherited": false, "configFile": "lakefile.toml"}, {"url": "https://github.com/leanprover-community/batteries.git", "type": "git", "subDir": null, "scope": "", - "rev": "5c78955e8375f872c085514cb521216bac1bda17", + "rev": "24241822ef9d3e7f6a3bcc53ad136e12663db8f3", "name": "batteries", "manifestFile": "lake-manifest.json", - "inputRev": "main", + "inputRev": "24241822ef9d3e7f6a3bcc53ad136e12663db8f3", "inherited": false, "configFile": "lakefile.toml"}], "name": "LeanCopilot", From 967d650f634eb38c213c0009692ff7c1ed2903a2 Mon Sep 17 00:00:00 2001 From: psong Date: Thu, 18 Dec 2025 00:38:26 -0800 Subject: [PATCH 4/4] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c262af..bfec8ea 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ moreLinkArgs = ["-L./.lake/packages/LeanCopilot/.lake/build/lib", "-lctranslate2 require LeanCopilot from git "https://github.com/lean-dojo/LeanCopilot.git" @ "LEAN_COPILOT_VERSION" ``` -For stable Lean versions (e.g., `v4.25.0`), set `LEAN_COPILOT_VERSION` to be that version. For the latest unstable Lean versions (e.g., `v4.26.0-rc1`), set `LEAN_COPILOT_VERSION` to `main`. In either case, make sure the version is compatible with other dependencies such as mathlib. If your project uses lakefile.toml instead of lakefile.lean, it should include: +For stable Lean versions (e.g., `v4.26.0`), set `LEAN_COPILOT_VERSION` to be that version. For the latest unstable Lean versions (e.g., `v4.27.0-rc1`), set `LEAN_COPILOT_VERSION` to `main`. In either case, make sure the version is compatible with other dependencies such as mathlib. If your project uses lakefile.toml instead of lakefile.lean, it should include: ```toml [[require]]