Skip to content

Commit 05f11f6

Browse files
committed
Leanのバージョンを v4.28.0-rc1 に更新する
1 parent ab27469 commit 05f11f6

File tree

7 files changed

+23
-27
lines changed

7 files changed

+23
-27
lines changed

LeanByExample/Declarative/Opaque.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ structure Something where
6767

6868
-- Inhabited インスタンスがないのでエラーになる
6969
/-⋆-//--
70-
error: failed to synthesize
71-
Inhabited Something
70+
error: failed to synthesize 'Inhabited' or 'Nonempty' instance for
71+
Something
7272
73-
Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
73+
If this type is defined using the 'structure' or 'inductive' command, you can try adding a 'deriving Nonempty' clause to it.
7474
-/
7575
#guard_msgs in --#
7676
opaque something : Something

LeanByExample/Modifier/DocComment/ParseError.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def parse (cat : Name) (s : String) : MetaM Syntax := do
88

99
-- ドキュメントコメントで `namespace` を修飾しようとすると構文エラーになる
1010
/-⋆-//--
11-
error: <input>:1:21: expected '#guard_msgs', 'abbrev', 'add_decl_doc', 'axiom', 'binder_predicate', 'builtin_dsimproc', 'builtin_dsimproc_decl', 'builtin_grind_propagator', 'builtin_initialize', 'builtin_simproc', 'builtin_simproc_decl', 'class', 'coinductive', 'declare_command_config_elab', 'declare_config_elab', 'declare_config_getter', 'declare_simp_like_tactic', 'declare_syntax_cat', 'def', 'dsimproc', 'dsimproc_decl', 'elab', 'elab_rules', 'example', 'grind_propagator', 'inductive', 'infix', 'infixl', 'infixr', 'initialize', 'instance', 'macro', 'macro_rules', 'notation', 'opaque', 'postfix', 'prefix', 'recommended_spelling', 'register_builtin_option', 'register_error_explanation', 'register_label_attr', 'register_linter_set', 'register_option', 'register_simp_attr', 'register_tactic_tag', 'register_try?_tactic', 'simproc', 'simproc_decl', 'structure', 'syntax', 'tactic_extension', 'theorem' or 'unif_hint'
11+
error: <input>:1:21: expected '#guard_msgs', 'abbrev', 'add_decl_doc', 'axiom', 'binder_predicate', 'builtin_dsimproc', 'builtin_dsimproc_decl', 'builtin_grind_propagator', 'builtin_initialize', 'builtin_simproc', 'builtin_simproc_decl', 'class', 'coinductive', 'declare_command_config_elab', 'declare_config_elab', 'declare_config_getter', 'declare_simp_like_tactic', 'declare_syntax_cat', 'def', 'dsimproc', 'dsimproc_decl', 'elab', 'elab_rules', 'example', 'grind_propagator', 'inductive', 'infix', 'infixl', 'infixr', 'initialize', 'instance', 'macro', 'macro_rules', 'notation', 'opaque', 'postfix', 'prefix', 'recommended_spelling', 'register_builtin_option', 'register_error_explanation', 'register_grind_attr', 'register_label_attr', 'register_linter_set', 'register_option', 'register_simp_attr', 'register_tactic_tag', 'register_try?_tactic', 'simproc', 'simproc_decl', 'structure', 'syntax', 'tactic_extension', 'theorem' or 'unif_hint'
1212
-/
1313
#guard_msgs in --#
1414
#eval parse `command "/-- これはドキュメントコメント -/ namespace Foo"

LeanByExample/Tactic/Hint.lean

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ def getRegisteredTactics : CoreM Unit := do
4646
IO.println arr[0]!
4747

4848
/-⋆-//--
49-
info: "noncomm_ring"
50-
"group"
51-
"finiteness"
52-
"field"
53-
"field_simp"
49+
info: "group"
5450
"compute_degree"
51+
"noncomm_ring"
52+
"finiteness"
5553
"ring"
5654
"linarith"
55+
"field"
56+
"field_simp"
5757
"positivity"
5858
"bound"
5959
"abel"

LeanByExample/Tactic/Sorry.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Lean --#
77
def FermatLastTheorem :=
88
∀ x y z n : Nat, n > 2 ∧ x * y * z ≠ 0 → x ^ n + y ^ n ≠ z ^ n
99

10-
/-⋆-//-- warning: declaration uses 'sorry' -/
10+
/-⋆-//-- warning: declaration uses `sorry` -/
1111
#guard_msgs (warning) in --#
1212
theorem flt : FermatLastTheorem :=
1313
sorry

LeanByExample/Tactic/TryQuestion.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ example (as : List α) : (reverse as).head? = as.last? := by
1717
-- grind 単体では証明ができない
1818
fail_if_success grind
1919

20-
-- 帰納法を適当に使ってみてもダメ
21-
fail_if_success induction as with grind
22-
fail_if_success fun_induction last? <;> grind
23-
2420
-- try? なら証明を見つけることができる
2521
try?
2622

lake-manifest.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "",
8-
"rev": "64c76eabb64d58848cd5a272f58dfa31f3d1e3ea",
8+
"rev": "946b120add760bbddb7b89608957d12b0fb16230",
99
"name": "mathlib",
1010
"manifestFile": "lake-manifest.json",
1111
"inputRev": "master",
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"subDir": null,
1717
"scope": "",
18-
"rev": "8e0524310148337b54602f6f1b30578ee2910106",
18+
"rev": "2cd9b4f8b6f88bb12cfb08c7480131161c9bfe08",
1919
"name": "mdgen",
2020
"manifestFile": "lake-manifest.json",
2121
"inputRev": "main",
@@ -25,7 +25,7 @@
2525
"type": "git",
2626
"subDir": null,
2727
"scope": "leanprover-community",
28-
"rev": "009dc1e6f2feb2c96c081537d80a0905b2c6498f",
28+
"rev": "7311586e1a56af887b1081d05e80c11b6c41d212",
2929
"name": "plausible",
3030
"manifestFile": "lake-manifest.json",
3131
"inputRev": "main",
@@ -35,7 +35,7 @@
3535
"type": "git",
3636
"subDir": null,
3737
"scope": "leanprover-community",
38-
"rev": "5ce7f0a355f522a952a3d678d696bd563bb4fd28",
38+
"rev": "c5d5b8fe6e5158def25cd28eb94e4141ad97c843",
3939
"name": "LeanSearchClient",
4040
"manifestFile": "lake-manifest.json",
4141
"inputRev": "main",
@@ -45,7 +45,7 @@
4545
"type": "git",
4646
"subDir": null,
4747
"scope": "leanprover-community",
48-
"rev": "8f497d55985a189cea8020d9dc51260af1e41ad2",
48+
"rev": "b5908dbac486279f1133cb937648c63c30b455af",
4949
"name": "importGraph",
5050
"manifestFile": "lake-manifest.json",
5151
"inputRev": "main",
@@ -55,17 +55,17 @@
5555
"type": "git",
5656
"subDir": null,
5757
"scope": "leanprover-community",
58-
"rev": "c04225ee7c0585effbd933662b3151f01b600e40",
58+
"rev": "6d65c6e0a25b8a52c13c3adeb63ecde3bfbb6294",
5959
"name": "proofwidgets",
6060
"manifestFile": "lake-manifest.json",
61-
"inputRev": "v0.0.85",
61+
"inputRev": "v0.0.86",
6262
"inherited": true,
6363
"configFile": "lakefile.lean"},
6464
{"url": "https://github.com/leanprover-community/aesop",
6565
"type": "git",
6666
"subDir": null,
6767
"scope": "leanprover-community",
68-
"rev": "cb837cc26236ada03c81837bebe0acd9c70ced7d",
68+
"rev": "f08e838d4f9aea519f3cde06260cfb686fd4bab0",
6969
"name": "aesop",
7070
"manifestFile": "lake-manifest.json",
7171
"inputRev": "master",
@@ -75,7 +75,7 @@
7575
"type": "git",
7676
"subDir": null,
7777
"scope": "leanprover-community",
78-
"rev": "bd58c9efe2086d56ca361807014141a860ddbf8c",
78+
"rev": "23324752757bf28124a518ec284044c8db79fee5",
7979
"name": "Qq",
8080
"manifestFile": "lake-manifest.json",
8181
"inputRev": "master",
@@ -85,7 +85,7 @@
8585
"type": "git",
8686
"subDir": null,
8787
"scope": "leanprover-community",
88-
"rev": "45926c76c3e0d876e39b3e9e5e77080fef0b10ba",
88+
"rev": "8fda52e157c840eb11716f8410f3ca2096d325f0",
8989
"name": "batteries",
9090
"manifestFile": "lake-manifest.json",
9191
"inputRev": "main",
@@ -95,10 +95,10 @@
9595
"type": "git",
9696
"subDir": null,
9797
"scope": "leanprover",
98-
"rev": "55c37290ff6186e2e965d68cf853a57c0702db82",
98+
"rev": "28e0856d4424863a85b18f38868c5420c55f9bae",
9999
"name": "Cli",
100100
"manifestFile": "lake-manifest.json",
101-
"inputRev": "v4.27.0",
101+
"inputRev": "v4.28.0-rc1",
102102
"inherited": true,
103103
"configFile": "lakefile.toml"}],
104104
"name": "«Lean by Example»",

lean-toolchain

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

0 commit comments

Comments
 (0)