Skip to content

Commit

Permalink
Merge pull request #33 from Seasawher/update-lean
Browse files Browse the repository at this point in the history
Update lean to v4.6.0
  • Loading branch information
yuma-mizuno committed Apr 6, 2024
2 parents 2d88ed9 + b4fa1e4 commit 14cf67a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Solution/Advanced/Algebra/Lecture2.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ variable [Group G₁] [Group G₂] {f : G₁ →* G₂}
-- `f`と`a : G₁`に対して、いちいち`f.toFun a`と書く代わりに、`f a`と書くためのおまじない
-- (`f`そのものは、写像`f.toFun`と、それが積を保つという事実`f.map_mul'`を束ねたもので、本来は写像でない)
-- 右側のInfoviewには、`f a`の代わりに`↑f a`と表示されることもあるが、同じなので気にしないでください。
instance : FunLike (G₁ →* G₂) G₁ (fun _ ↦ G₂) where
instance : DFunLike (G₁ →* G₂) G₁ (fun _ ↦ G₂) where
coe := fun f ↦ f.toFun
coe_injective' f₁ f₂ _ := by cases f₁; cases f₂; congr

Expand Down
4 changes: 2 additions & 2 deletions Solution/Advanced/Algebra/Lecture3.lean
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ notation:25 X " →[" G:25 "] " Y:0 => GroupActionHom G X Y
variable [Group G] [GroupAction G X] [GroupAction G Y] [GroupAction G Z]

-- `f : X →[G] Y`に対して`f x`のように書くためのおまじない。
instance : FunLike (GroupActionHom G X Y) X (fun _ ↦ Y) where
instance : DFunLike (GroupActionHom G X Y) X (fun _ ↦ Y) where
coe f := f.toFun
coe_injective' f₁ f₂ _ := by cases f₁; cases f₂; congr

Expand All @@ -161,7 +161,7 @@ theorem GroupActionHom.coe_coe (f : X → Y) (h) : ((⟨f, h⟩ : X →[G] Y) :
-- 定義からすぐ分かること
@[ext]
theorem GroupActionHom.ext {f₁ f₂ : X →[G] Y} : (∀ x, f₁ x = f₂ x) → f₁ = f₂ :=
FunLike.ext f₁ f₂
DFunLike.ext f₁ f₂

theorem map_smul (f : X →[G] Y) : ∀ (a : G) (x : X), f (a • x) = a • f x := f.map_smul'

Expand Down
2 changes: 2 additions & 0 deletions Solution/Advanced/Category/Lecture1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ instance {R : CommRingCat} : Category (CommAlgCat R) where
/- 定義の上の`@[simps]`はおまじないで、ここでは特に意味がない。`Lecture 2`で役に立つ。 -/

-- おまじない。`Lecture 2`で役に立つ。
instance {A B : CommAlgCat R} : FunLike (Hom A B) A B :=
inferInstanceAs <| FunLike (A →ₐ[R] B) A B
instance {A B : CommAlgCat R} : AlgHomClass (Hom A B) R A B :=
inferInstanceAs <| AlgHomClass (A →ₐ[R] B) R A B

Expand Down
31 changes: 20 additions & 11 deletions lake-manifest.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{"version": 7,
"packagesDir": ".lake/packages",
"packages":
[{"url": "https://github.com/Seasawher/mk-exercise",
[{"url": "https://github.com/Seasawher/mk-exercise.git",
"type": "git",
"subDir": null,
"rev": "70102f2963f5bc19aac0339d9464b72a1de2e1cb",
"name": "«mk-exercise»",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inputRev": "70102f2963f5bc19aac0339d9464b72a1de2e1cb",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover/std4",
"type": "git",
"subDir": null,
"rev": "0f6bc5b32bf5b0498902d3b5f0806c75530539d5",
"rev": "a7543d1a6934d52086971f510e482d743fe30cf3",
"name": "std",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inputRev": "v4.6.0",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/quote4",
"type": "git",
"subDir": null,
"rev": "1c88406514a636d241903e2e288d21dc6d861e01",
"rev": "fd760831487e6835944e7eeed505522c9dd47563",
"name": "Qq",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
Expand All @@ -31,19 +31,19 @@
{"url": "https://github.com/leanprover-community/aesop",
"type": "git",
"subDir": null,
"rev": "69404390bdc1de946bf0a2e51b1a69f308e56d7a",
"rev": "c51fa8ea4de8b203f64929cba19d139e555f9f6b",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
"inputRev": "v4.6.0",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/ProofWidgets4",
"type": "git",
"subDir": null,
"rev": "8dd18350791c85c0fc9adbd6254c94a81d260d35",
"rev": "16cae05860b208925f54e5581ec5fd264823440c",
"name": "proofwidgets",
"manifestFile": "lake-manifest.json",
"inputRev": "v0.0.25",
"inputRev": "v0.0.29",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover/lean4-cli",
Expand All @@ -55,13 +55,22 @@
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/import-graph.git",
"type": "git",
"subDir": null,
"rev": "64d082eeaad1a8e6bbb7c23b7a16b85a1715a02f",
"name": "importGraph",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/mathlib4.git",
"type": "git",
"subDir": null,
"rev": "afe6b29fd5ae8baf11db1d2c2921b9730d9f7ad0",
"rev": "7ca43cbd6aa34058a1afad8e47190af3ec1f9bdb",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": "afe6b29fd5ae8baf11db1d2c2921b9730d9f7ad0",
"inputRev": "7ca43cbd6aa34058a1afad8e47190af3ec1f9bdb",
"inherited": false,
"configFile": "lakefile.lean"}],
"name": "«lean-math-workshop»",
Expand Down
2 changes: 1 addition & 1 deletion lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require «mk-exercise» from git
"https://github.com/Seasawher/mk-exercise.git" @ "70102f2963f5bc19aac0339d9464b72a1de2e1cb"

require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "afe6b29fd5ae8baf11db1d2c2921b9730d9f7ad0"
"https://github.com/leanprover-community/mathlib4.git" @ "7ca43cbd6aa34058a1afad8e47190af3ec1f9bdb"

@[default_target]
lean_lib «Solution» where
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.5.0-rc1
leanprover/lean4:v4.6.0

0 comments on commit 14cf67a

Please sign in to comment.