Skip to content

Commit 04464fd

Browse files
authored
Merge pull request #6 from kencyke/bump-v4.27.0-rc1
Bump lean to v4.27.0 rc1
2 parents bae6ff0 + 02a4606 commit 04464fd

File tree

11 files changed

+87
-81
lines changed

11 files changed

+87
-81
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ RUN apt-get update && \
1414
USER vscode
1515
WORKDIR /home/vscode
1616

17-
RUN curl https://elan.lean-lang.org/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:4.26.0
17+
RUN curl https://elan.lean-lang.org/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:4.27.0-rc1
1818
ENV PATH="/home/vscode/.elan/bin:${PATH}"

.devcontainer/devcontainer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
"editor.formatOnSave": true,
4040
"github.copilot.chat.agent.thinkingTool": true,
4141
"chat.agent.maxRequests": 50,
42-
"chat.tools.autoApprove": true,
42+
"chat.useAgentSkills": true,
43+
"chat.tools.urls.autoApprove": {
44+
"https://lean-lang.org/doc/*": false
45+
},
46+
"chat.tools.terminal.enableAutoApprove": true,
4347
"chat.tools.terminal.autoApprove": {
4448
"lean": true,
4549
"lake": true,

AGENT.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22

33
## Important Instructions
44

5-
- Do not add files.
6-
- Do not remove files.
7-
- Do not use `git checkout`and `git reset`.
8-
- Do not use `python` command.
9-
- Do not use `cat` to overwrite a file.
10-
- Do not modify `lakefile.toml`.
11-
- Never use `axiom` and `set_option` for any reason!
12-
- When `lemma` or `thorem` is too long, devide it into multiple `lemma`s.
13-
- Never give up simply because it is complicated or time-consuming; instead, try to implement the missing lemmas step by step.
14-
- Use `$...$` or `$$...$$` for LaTeX math formatting in markdown.
15-
- Use `conj` as complex conjugate when declaring `open ComplexConjugate`.
16-
- Use `simp` when referring `try 'simp' instead of 'simpa'`.
5+
- Never use tabs. Use spaces instead.
6+
- Never modify `lakefile.toml`.
7+
- Never use `python`, `cat`, `git checkout`and `git reset`.
8+
- Never use `sorry`, `admit`, `axiom`, and `set_option` for any reason!
179
- Fix indentation when referring `expected '{' or indented tactic sequence`.
18-
- Do not use tabs. Use spaces instead.
10+
- Autonomously continue executing the tasks specified in `PLANS.md` until the maximum request limit is reached.
11+
- Use `lean-lsp` mcp server tools when searching Mathlib, analyzing codes, etc.
12+
- Write comments in English.
13+
- Use `$...$` or `$$...$$` for LaTeX math formatting in markdown.

Project.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
-- This module serves as the root of the `Project` library.
2-
-- Import modules here that should be built as part of the library.
31
import Project.Example

Project/Example.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ namespace Example
1212
theorem infinitely_many_primes : ∀ n : ℕ, ∃ p : ℕ, n < p ∧ Nat.Prime p := by
1313
intro n
1414
let N := Nat.factorial n + 1
15-
have N_gt_one : 1 < N := by
16-
simp [N]
17-
exact Nat.factorial_pos n
15+
have N_gt_one : 1 < N := Nat.succ_lt_succ (Nat.factorial_pos n)
1816
let p := Nat.minFac N
1917
have N_not_one : N ≠ 1 := Nat.ne_of_gt N_gt_one
2018
have pp : Nat.Prime p := Nat.minFac_prime N_not_one

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# lean-project
22

33
```bash
4+
$ lake exe mk_all
5+
No update necessary
46
$ lake build
5-
Build completed successfully (579 jobs).
7+
ℹ [496/498] Replayed Project.Example
8+
info: Project/Example.lean:29:0: import Mathlib.Data.Nat.Factorial.Basic
9+
import Mathlib.Data.Nat.Prime.Defs
10+
info: Project/Example.lean:29:0: `#`-commands, such as '#min_imports', are not allowed in 'Mathlib' [linter.hashCommand]
11+
Build completed successfully (498 jobs).
612
```
713

814
## How to use

lake-manifest.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "leanprover-community",
8-
"rev": "2df2f0150c275ad53cb3c90f7c98ec15a56a1a67",
8+
"rev": "32d24245c7a12ded17325299fd41d412022cd3fe",
99
"name": "mathlib",
1010
"manifestFile": "lake-manifest.json",
11-
"inputRev": "v4.26.0",
11+
"inputRev": "v4.27.0-rc1",
1212
"inherited": false,
1313
"configFile": "lakefile.lean"},
1414
{"url": "https://github.com/leanprover-community/plausible",
1515
"type": "git",
1616
"subDir": null,
1717
"scope": "leanprover-community",
18-
"rev": "160af9e8e7d4ae448f3c92edcc5b6a8522453f11",
18+
"rev": "8d3713f36dda48467eb61f8c1c4db89c49a6251a",
1919
"name": "plausible",
2020
"manifestFile": "lake-manifest.json",
2121
"inputRev": "main",
@@ -25,7 +25,7 @@
2525
"type": "git",
2626
"subDir": null,
2727
"scope": "leanprover-community",
28-
"rev": "3591c3f664ac3719c4c86e4483e21e228707bfa2",
28+
"rev": "19e5f5cc9c21199be466ef99489e3acab370f079",
2929
"name": "LeanSearchClient",
3030
"manifestFile": "lake-manifest.json",
3131
"inputRev": "main",
@@ -35,7 +35,7 @@
3535
"type": "git",
3636
"subDir": null,
3737
"scope": "leanprover-community",
38-
"rev": "e9f31324f15ead11048b1443e62c5deaddd055d2",
38+
"rev": "4eb26e1a4806b200ddfe5179d0c2a0fae56c54a7",
3939
"name": "importGraph",
4040
"manifestFile": "lake-manifest.json",
4141
"inputRev": "main",
@@ -45,17 +45,17 @@
4545
"type": "git",
4646
"subDir": null,
4747
"scope": "leanprover-community",
48-
"rev": "b4fb2aa5290ebf61bc5f80a5375ba642f0a49192",
48+
"rev": "ef8377f31b5535430b6753a974d685b0019d0681",
4949
"name": "proofwidgets",
5050
"manifestFile": "lake-manifest.json",
51-
"inputRev": "v0.0.83",
51+
"inputRev": "v0.0.84",
5252
"inherited": true,
5353
"configFile": "lakefile.lean"},
5454
{"url": "https://github.com/leanprover-community/aesop",
5555
"type": "git",
5656
"subDir": null,
5757
"scope": "leanprover-community",
58-
"rev": "2f6d238744c4cb07fdc91240feaf5d4221a27931",
58+
"rev": "fb12f5535c80e40119286d9575c9393562252d21",
5959
"name": "aesop",
6060
"manifestFile": "lake-manifest.json",
6161
"inputRev": "master",
@@ -65,7 +65,7 @@
6565
"type": "git",
6666
"subDir": null,
6767
"scope": "leanprover-community",
68-
"rev": "9312503909aa8e8bb392530145cc1677a6298574",
68+
"rev": "523ec6fc8062d2f470fdc8de6f822fe89552b5e6",
6969
"name": "Qq",
7070
"manifestFile": "lake-manifest.json",
7171
"inputRev": "master",
@@ -75,7 +75,7 @@
7575
"type": "git",
7676
"subDir": null,
7777
"scope": "leanprover-community",
78-
"rev": "24241822ef9d3e7f6a3bcc53ad136e12663db8f3",
78+
"rev": "6254bed25866358ce4f841fa5a13b77de04ffbc8",
7979
"name": "batteries",
8080
"manifestFile": "lake-manifest.json",
8181
"inputRev": "main",
@@ -85,10 +85,10 @@
8585
"type": "git",
8686
"subDir": null,
8787
"scope": "leanprover",
88-
"rev": "933fce7e893f65969714c60cdb4bd8376786044e",
88+
"rev": "726b98c53e2da249c1de768fbbbb5e67bc9cef60",
8989
"name": "Cli",
9090
"manifestFile": "lake-manifest.json",
91-
"inputRev": "v4.26.0",
91+
"inputRev": "v4.27.0-rc1",
9292
"inherited": true,
9393
"configFile": "lakefile.toml"}],
9494
"name": "Project",

lakefile.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ defaultTargets = ["Project"]
44

55
[[lean_lib]]
66
name = "Project"
7-
leanOptions = { warningAsError = true }
7+
leanOptions.warningAsError = true
8+
leanOptions.pp.unicode.fun = true
9+
leanOptions.autoImplicit = false
10+
leanOptions.relaxedAutoImplicit = false
11+
leanOptions.linter.mathlibStandardSet = true
12+
leanOptions.linter.style.longLine = false
813

914
[[require]]
1015
name = "mathlib"
1116
scope = "leanprover-community"
12-
rev = "v4.26.0"
17+
rev = "v4.27.0-rc1"

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.26.0
1+
leanprover/lean4:v4.27.0-rc1

package-lock.json

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)