Skip to content

Commit

Permalink
Update Solution/Advanced/Category/Lecture1.lean
Browse files Browse the repository at this point in the history
Co-authored-by: Yuma Mizuno <[email protected]>
  • Loading branch information
Seasawher and yuma-mizuno authored Apr 6, 2024
1 parent 33b6e72 commit b4fa1e4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Solution/Advanced/Category/Lecture1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,9 @@ instance {R : CommRingCat} : Category (CommAlgCat R) where

/- 定義の上の`@[simps]`はおまじないで、ここでは特に意味がない。`Lecture 2`で役に立つ。 -/

-- おまじない
instance {A B : CommAlgCat R} : FunLike (Hom A B) A B where
coe f := f.toFun
coe_injective' f g h := by
rcases f with ⟨⟨⟨⟨_, _⟩, _⟩, _, _⟩, _⟩
rcases g with ⟨⟨⟨⟨_, _⟩, _⟩, _, _⟩, _⟩
congr

-- おまじない。`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

0 comments on commit b4fa1e4

Please sign in to comment.