Skip to content

Commit d5ea35d

Browse files
authored
Merge pull request #194 from lean-ja/issue192
Lean と Mathlib のバージョン更新
2 parents bf45758 + 39dbab9 commit d5ea35d

File tree

6 files changed

+11
-16
lines changed

6 files changed

+11
-16
lines changed

Examples/Contents/InductionAp.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
44
`induction'` は `induction` の Lean 3 での構文を残したバージョンです.
55
-/
6-
import Mathlib.Tactic.Ring
7-
import Mathlib.Tactic.Cases -- `induction'` のために必要
6+
import Mathlib.Tactic -- 大雑把に import する
87

98
namespace InductionAp --#
109

Examples/Contents/Replace.lean

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
`have` を使った場合,ローカルコンテキストにすでに `h : P` がある状態で,再び `h` という名前で別の命題を示すと,古い方の `h` はアクセス不能になって `†` が付いた状態になってしまいます.
66
77
`replace` であれば,古い方が新しい方に置き換えられ,`†` の付いた命題は出現しません. -/
8-
import Mathlib.Algebra.Parity -- `Even` のために必要
9-
import Mathlib.Tactic.NthRewrite -- `nth_rw` のために必要
10-
import Mathlib.Tactic.Ring -- `ring` のために必要
8+
import Mathlib.Tactic -- 大雑把に import する
119

1210
/-- `5 * n` が偶数なら,`n` も偶数 -/
1311
example : ∀ (n : ℤ), Even (5 * n) → Even n := by
1412
intro n hn
1513

1614
-- `Even (5 * n)` という仮定を分解
17-
obtain ⟨ k, hk ⟩ := hn
15+
obtain ⟨k, hk⟩ := hn
1816

1917
-- 以下がローカルコンテキストに追加される
2018
guard_hyp hk : 5 * n = k + k

Examples/Contents/Rfl.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
`rfl` は,反射的(reflexive)な関係(relation)に対して関係式を示すタクティクです.ここで二項関係 `R : α → α → Prop` が反射的であるとは,任意の `a : α` に対して `R a a` が成り立つことをいいます.
44
55
関係 `R` が反射的であることを `rfl` に利用させるには,`R` の反射性を示した定理に `@[refl]` タグを付けます.`@[refl]` で登録された定理を用いるので,追加でライブラリを import することにより示すことができる命題を増やせます. -/
6-
import Mathlib.Init.Data.Nat.Lemmas -- `n ≤ n` を示すために必要
7-
import Mathlib.Tactic.Relation.Rfl
6+
import Mathlib.Tactic -- 大雑把に import する
87

98
universe u
109

Examples/Contents/Wlog.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/- # wlog
22
33
`wlog` は,数学でよく使われる,一般性を失うことなく(without loss of generarity)何々と仮定してよいというフレーズの Lean での対応物です. -/
4-
import Mathlib.Data.Int.Cast.Lemmas
5-
import Mathlib.Tactic.WLOG
4+
import Mathlib.Tactic -- 大雑把に import する
65

76
-- `n` と `m` は自然数
87
variable {n m : ℕ}

lake-manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{"url": "https://github.com/leanprover-community/batteries",
1414
"type": "git",
1515
"subDir": null,
16-
"rev": "7b3c48b58fa0ae1c8f27889bdb086ea5e4b27b06",
16+
"rev": "551ff2d7dffd7af914cdbd01abbd449fe3e3d428",
1717
"name": "batteries",
1818
"manifestFile": "lake-manifest.json",
1919
"inputRev": "main",
@@ -31,7 +31,7 @@
3131
{"url": "https://github.com/leanprover-community/aesop",
3232
"type": "git",
3333
"subDir": null,
34-
"rev": "e8c8a42642ceb5af33708b79ae8a3148b681c236",
34+
"rev": "53ba96ad7666d4a2515292974631629b5ea5dfee",
3535
"name": "aesop",
3636
"manifestFile": "lake-manifest.json",
3737
"inputRev": "master",
@@ -58,7 +58,7 @@
5858
{"url": "https://github.com/leanprover-community/import-graph.git",
5959
"type": "git",
6060
"subDir": null,
61-
"rev": "35e38eb320982cfd2fcc864e0e0467ca223c8cdb",
61+
"rev": "77e081815b30b0d30707e1c5b0c6a6761f7a2404",
6262
"name": "importGraph",
6363
"manifestFile": "lake-manifest.json",
6464
"inputRev": "main",
@@ -67,10 +67,10 @@
6767
{"url": "https://github.com/leanprover-community/mathlib4.git",
6868
"type": "git",
6969
"subDir": null,
70-
"rev": "e091c88348ddd5acceddd4320811a926d4cf19d0",
70+
"rev": "2b29e73438e240a427bcecc7c0fe19306beb1310",
7171
"name": "mathlib",
7272
"manifestFile": "lake-manifest.json",
73-
"inputRev": "v4.8.0-rc2",
73+
"inputRev": "master",
7474
"inherited": false,
7575
"configFile": "lakefile.lean"}],
7676
"name": "«Tactic Cheatsheet»",

lean-toolchain

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

0 commit comments

Comments
 (0)