Skip to content

Commit

Permalink
refactor: remove simp attribute from yonedaEquiv_apply (#10109)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoFX committed Jan 30, 2024
1 parent 38cd727 commit 132d4e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Mathlib/CategoryTheory/Sites/IsSheafFor.lean
Expand Up @@ -488,7 +488,7 @@ theorem extension_iff_amalgamation {P : Cᵒᵖ ⥤ Type v₁} (x : S.functor
· rintro rfl Y f hf
rw [yonedaEquiv_naturality]
dsimp
simp
simp [yonedaEquiv_apply]
-- See note [dsimp, simp].
· intro h
ext Y ⟨f, hf⟩
Expand Down
1 change: 0 additions & 1 deletion Mathlib/CategoryTheory/Yoneda.lean
Expand Up @@ -400,7 +400,6 @@ def yonedaEquiv {X : C} {F : Cᵒᵖ ⥤ Type v₁} : (yoneda.obj X ⟶ F) ≃ F
(yonedaSections X F).toEquiv.trans Equiv.ulift
#align category_theory.yoneda_equiv CategoryTheory.yonedaEquiv

@[simp]
theorem yonedaEquiv_apply {X : C} {F : Cᵒᵖ ⥤ Type v₁} (f : yoneda.obj X ⟶ F) :
yonedaEquiv f = f.app (op X) (𝟙 X) :=
rfl
Expand Down

0 comments on commit 132d4e4

Please sign in to comment.