category_theory.preadditive.eilenberg_mooreMathlib.CategoryTheory.Preadditive.EilenbergMoore

This file has been ported!

Changes since the initial port

The following section lists changes to this file in mathlib3 and mathlib4 that occured after the initial port. Most recent changes are shown first. Hovering over a commit will show all commits associated with the same mathlib3 commit.

Changes in mathlib3

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(last sync)

Changes in mathlib3port

mathlib3
mathlib3port
Diff
@@ -59,10 +59,10 @@ instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T)
       zero_add := by intros; ext; apply zero_add
       add_zero := by intros; ext; apply add_zero
       nsmul_zero := by intros; ext; apply zero_smul
-      nsmul_succ := by intros; ext; apply succ_nsmul
+      nsmul_succ := by intros; ext; apply succ_nsmul'
       sub_eq_add_neg := by intros; ext; apply sub_eq_add_neg
       zsmul_zero' := by intros; ext; apply zero_smul
-      zsmul_succ' := by intros; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
+      zsmul_succ' := by intros; ext; dsimp; simp only [natCast_zsmul, succ_nsmul']; rfl
       zsmul_neg' := by intros; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
       add_left_neg := by intros; ext; apply add_left_neg
       add_comm := by intros; ext; apply add_comm }
@@ -106,10 +106,10 @@ instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U)
       zero_add := by intros; ext; apply zero_add
       add_zero := by intros; ext; apply add_zero
       nsmul_zero := by intros; ext; apply zero_smul
-      nsmul_succ := by intros; ext; apply succ_nsmul
+      nsmul_succ := by intros; ext; apply succ_nsmul'
       sub_eq_add_neg := by intros; ext; apply sub_eq_add_neg
       zsmul_zero' := by intros; ext; apply zero_smul
-      zsmul_succ' := by intros; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
+      zsmul_succ' := by intros; ext; dsimp; simp only [natCast_zsmul, succ_nsmul']; rfl
       zsmul_neg' := by intros; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
       add_left_neg := by intros; ext; apply add_left_neg
       add_comm := by intros; ext; apply add_comm }
Diff
@@ -3,9 +3,9 @@ Copyright (c) 2022 Julian Kuelshammer. All rights reserved.
 Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Julian Kuelshammer
 -/
-import Mathbin.CategoryTheory.Preadditive.Basic
-import Mathbin.CategoryTheory.Monad.Algebra
-import Mathbin.CategoryTheory.Preadditive.AdditiveFunctor
+import CategoryTheory.Preadditive.Basic
+import CategoryTheory.Monad.Algebra
+import CategoryTheory.Preadditive.AdditiveFunctor
 
 #align_import category_theory.preadditive.eilenberg_moore from "leanprover-community/mathlib"@"86d1873c01a723aba6788f0b9051ae3d23b4c1c3"
 
Diff
@@ -2,16 +2,13 @@
 Copyright (c) 2022 Julian Kuelshammer. All rights reserved.
 Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Julian Kuelshammer
-
-! This file was ported from Lean 3 source module category_theory.preadditive.eilenberg_moore
-! leanprover-community/mathlib commit 86d1873c01a723aba6788f0b9051ae3d23b4c1c3
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
 -/
 import Mathbin.CategoryTheory.Preadditive.Basic
 import Mathbin.CategoryTheory.Monad.Algebra
 import Mathbin.CategoryTheory.Preadditive.AdditiveFunctor
 
+#align_import category_theory.preadditive.eilenberg_moore from "leanprover-community/mathlib"@"86d1873c01a723aba6788f0b9051ae3d23b4c1c3"
+
 /-!
 # Preadditive structure on algebras over a monad
 
Diff
@@ -58,19 +58,19 @@ instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T)
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [functor.map_zsmul, zsmul_comp, monad.algebra.hom.h, comp_zsmul] }
-      add_assoc := by intros ; ext; apply add_assoc
-      zero_add := by intros ; ext; apply zero_add
-      add_zero := by intros ; ext; apply add_zero
-      nsmul_zero := by intros ; ext; apply zero_smul
-      nsmul_succ := by intros ; ext; apply succ_nsmul
-      sub_eq_add_neg := by intros ; ext; apply sub_eq_add_neg
-      zsmul_zero' := by intros ; ext; apply zero_smul
-      zsmul_succ' := by intros ; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
-      zsmul_neg' := by intros ; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
-      add_left_neg := by intros ; ext; apply add_left_neg
-      add_comm := by intros ; ext; apply add_comm }
-  add_comp := by intros ; ext; apply add_comp
-  comp_add := by intros ; ext; apply comp_add
+      add_assoc := by intros; ext; apply add_assoc
+      zero_add := by intros; ext; apply zero_add
+      add_zero := by intros; ext; apply add_zero
+      nsmul_zero := by intros; ext; apply zero_smul
+      nsmul_succ := by intros; ext; apply succ_nsmul
+      sub_eq_add_neg := by intros; ext; apply sub_eq_add_neg
+      zsmul_zero' := by intros; ext; apply zero_smul
+      zsmul_succ' := by intros; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
+      zsmul_neg' := by intros; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
+      add_left_neg := by intros; ext; apply add_left_neg
+      add_comm := by intros; ext; apply add_comm }
+  add_comp := by intros; ext; apply add_comp
+  comp_add := by intros; ext; apply comp_add
 #align category_theory.monad.algebra_preadditive CategoryTheory.Monad.algebraPreadditive
 -/
 
@@ -105,19 +105,19 @@ instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U)
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [functor.map_zsmul, comp_zsmul, comonad.coalgebra.hom.h, zsmul_comp] }
-      add_assoc := by intros ; ext; apply add_assoc
-      zero_add := by intros ; ext; apply zero_add
-      add_zero := by intros ; ext; apply add_zero
-      nsmul_zero := by intros ; ext; apply zero_smul
-      nsmul_succ := by intros ; ext; apply succ_nsmul
-      sub_eq_add_neg := by intros ; ext; apply sub_eq_add_neg
-      zsmul_zero' := by intros ; ext; apply zero_smul
-      zsmul_succ' := by intros ; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
-      zsmul_neg' := by intros ; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
-      add_left_neg := by intros ; ext; apply add_left_neg
-      add_comm := by intros ; ext; apply add_comm }
-  add_comp := by intros ; ext; apply add_comp
-  comp_add := by intros ; ext; apply comp_add
+      add_assoc := by intros; ext; apply add_assoc
+      zero_add := by intros; ext; apply zero_add
+      add_zero := by intros; ext; apply add_zero
+      nsmul_zero := by intros; ext; apply zero_smul
+      nsmul_succ := by intros; ext; apply succ_nsmul
+      sub_eq_add_neg := by intros; ext; apply sub_eq_add_neg
+      zsmul_zero' := by intros; ext; apply zero_smul
+      zsmul_succ' := by intros; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
+      zsmul_neg' := by intros; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
+      add_left_neg := by intros; ext; apply add_left_neg
+      add_comm := by intros; ext; apply add_comm }
+  add_comp := by intros; ext; apply add_comp
+  comp_add := by intros; ext; apply comp_add
 #align category_theory.comonad.coalgebra_preadditive CategoryTheory.Comonad.coalgebraPreadditive
 -/
 
Diff
@@ -58,60 +58,19 @@ instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T)
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [functor.map_zsmul, zsmul_comp, monad.algebra.hom.h, comp_zsmul] }
-      add_assoc := by
-        intros
-        ext
-        apply add_assoc
-      zero_add := by
-        intros
-        ext
-        apply zero_add
-      add_zero := by
-        intros
-        ext
-        apply add_zero
-      nsmul_zero := by
-        intros
-        ext
-        apply zero_smul
-      nsmul_succ := by
-        intros
-        ext
-        apply succ_nsmul
-      sub_eq_add_neg := by
-        intros
-        ext
-        apply sub_eq_add_neg
-      zsmul_zero' := by
-        intros
-        ext
-        apply zero_smul
-      zsmul_succ' := by
-        intros
-        ext
-        dsimp
-        simp only [coe_nat_zsmul, succ_nsmul]
-        rfl
-      zsmul_neg' := by
-        intros
-        ext
-        simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
-      add_left_neg := by
-        intros
-        ext
-        apply add_left_neg
-      add_comm := by
-        intros
-        ext
-        apply add_comm }
-  add_comp := by
-    intros
-    ext
-    apply add_comp
-  comp_add := by
-    intros
-    ext
-    apply comp_add
+      add_assoc := by intros ; ext; apply add_assoc
+      zero_add := by intros ; ext; apply zero_add
+      add_zero := by intros ; ext; apply add_zero
+      nsmul_zero := by intros ; ext; apply zero_smul
+      nsmul_succ := by intros ; ext; apply succ_nsmul
+      sub_eq_add_neg := by intros ; ext; apply sub_eq_add_neg
+      zsmul_zero' := by intros ; ext; apply zero_smul
+      zsmul_succ' := by intros ; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
+      zsmul_neg' := by intros ; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
+      add_left_neg := by intros ; ext; apply add_left_neg
+      add_comm := by intros ; ext; apply add_comm }
+  add_comp := by intros ; ext; apply add_comp
+  comp_add := by intros ; ext; apply comp_add
 #align category_theory.monad.algebra_preadditive CategoryTheory.Monad.algebraPreadditive
 -/
 
@@ -146,60 +105,19 @@ instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U)
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [functor.map_zsmul, comp_zsmul, comonad.coalgebra.hom.h, zsmul_comp] }
-      add_assoc := by
-        intros
-        ext
-        apply add_assoc
-      zero_add := by
-        intros
-        ext
-        apply zero_add
-      add_zero := by
-        intros
-        ext
-        apply add_zero
-      nsmul_zero := by
-        intros
-        ext
-        apply zero_smul
-      nsmul_succ := by
-        intros
-        ext
-        apply succ_nsmul
-      sub_eq_add_neg := by
-        intros
-        ext
-        apply sub_eq_add_neg
-      zsmul_zero' := by
-        intros
-        ext
-        apply zero_smul
-      zsmul_succ' := by
-        intros
-        ext
-        dsimp
-        simp only [coe_nat_zsmul, succ_nsmul]
-        rfl
-      zsmul_neg' := by
-        intros
-        ext
-        simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
-      add_left_neg := by
-        intros
-        ext
-        apply add_left_neg
-      add_comm := by
-        intros
-        ext
-        apply add_comm }
-  add_comp := by
-    intros
-    ext
-    apply add_comp
-  comp_add := by
-    intros
-    ext
-    apply comp_add
+      add_assoc := by intros ; ext; apply add_assoc
+      zero_add := by intros ; ext; apply zero_add
+      add_zero := by intros ; ext; apply add_zero
+      nsmul_zero := by intros ; ext; apply zero_smul
+      nsmul_succ := by intros ; ext; apply succ_nsmul
+      sub_eq_add_neg := by intros ; ext; apply sub_eq_add_neg
+      zsmul_zero' := by intros ; ext; apply zero_smul
+      zsmul_succ' := by intros ; ext; dsimp; simp only [coe_nat_zsmul, succ_nsmul]; rfl
+      zsmul_neg' := by intros ; ext; simp only [negSucc_zsmul, neg_inj, nsmul_eq_smul_cast ℤ]
+      add_left_neg := by intros ; ext; apply add_left_neg
+      add_comm := by intros ; ext; apply add_comm }
+  add_comp := by intros ; ext; apply add_comp
+  comp_add := by intros ; ext; apply comp_add
 #align category_theory.comonad.coalgebra_preadditive CategoryTheory.Comonad.coalgebraPreadditive
 -/
 
Diff
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Julian Kuelshammer
 
 ! This file was ported from Lean 3 source module category_theory.preadditive.eilenberg_moore
-! leanprover-community/mathlib commit 829895f162a1f29d0133f4b3538f4cd1fb5bffd3
+! leanprover-community/mathlib commit 86d1873c01a723aba6788f0b9051ae3d23b4c1c3
 ! Please do not edit these lines, except to modify the commit id
 ! if you have ported upstream changes.
 -/
@@ -15,6 +15,9 @@ import Mathbin.CategoryTheory.Preadditive.AdditiveFunctor
 /-!
 # Preadditive structure on algebras over a monad
 
+> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
+> Any changes to this file require a corresponding PR to mathlib4.
+
 If `C` is a preadditive categories and `T` is an additive monad on `C` then `algebra T` is also
 preadditive. Dually, if `U` is an additive comonad on `C` then `coalgebra U` is preadditive as well.
 
Diff
@@ -31,6 +31,7 @@ variable (C : Type u₁) [Category.{v₁} C] [Preadditive C] (T : Monad C)
 
 open CategoryTheory.Limits Preadditive
 
+#print CategoryTheory.Monad.algebraPreadditive /-
 /-- The category of algebras over an additive monad on a preadditive category is preadditive. -/
 @[simps]
 instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T)
@@ -109,12 +110,16 @@ instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T)
     ext
     apply comp_add
 #align category_theory.monad.algebra_preadditive CategoryTheory.Monad.algebraPreadditive
+-/
 
+#print CategoryTheory.Monad.forget_additive /-
 instance Monad.forget_additive : (Monad.forget T).Additive where
 #align category_theory.monad.forget_additive CategoryTheory.Monad.forget_additive
+-/
 
 variable (U : Comonad C) [Functor.Additive (U : C ⥤ C)]
 
+#print CategoryTheory.Comonad.coalgebraPreadditive /-
 /-- The category of coalgebras over an additive comonad on a preadditive category is preadditive. -/
 @[simps]
 instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U)
@@ -193,9 +198,12 @@ instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U)
     ext
     apply comp_add
 #align category_theory.comonad.coalgebra_preadditive CategoryTheory.Comonad.coalgebraPreadditive
+-/
 
+#print CategoryTheory.Comonad.forget_additive /-
 instance Comonad.forget_additive : (Comonad.forget U).Additive where
 #align category_theory.comonad.forget_additive CategoryTheory.Comonad.forget_additive
+-/
 
 end CategoryTheory
 
Diff
@@ -100,11 +100,11 @@ instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T)
         intros
         ext
         apply add_comm }
-  add_comp' := by
+  add_comp := by
     intros
     ext
     apply add_comp
-  comp_add' := by
+  comp_add := by
     intros
     ext
     apply comp_add
@@ -184,11 +184,11 @@ instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U)
         intros
         ext
         apply add_comm }
-  add_comp' := by
+  add_comp := by
     intros
     ext
     apply add_comp
-  comp_add' := by
+  comp_add := by
     intros
     ext
     apply comp_add

Changes in mathlib4

mathlib3
mathlib4
chore: Rename zpow_coe_nat to zpow_natCast (#11528)

... and add a deprecated alias for the old name. This is mostly just me discovering the power of F2

Diff
@@ -81,7 +81,7 @@ instance Monad.algebraPreadditive : Preadditive (Monad.Algebra T) where
         intros
         ext
         dsimp
-        simp only [coe_nat_zsmul, succ_nsmul]
+        simp only [natCast_zsmul, succ_nsmul]
         rfl
       zsmul_neg' := by
         intros
@@ -164,7 +164,7 @@ instance Comonad.coalgebraPreadditive : Preadditive (Comonad.Coalgebra U) where
         intros
         ext
         dsimp
-        simp only [coe_nat_zsmul, succ_nsmul]
+        simp only [natCast_zsmul, succ_nsmul]
         rfl
       zsmul_neg' := by
         intros
chore: script to replace headers with #align_import statements (#5979)

Open in Gitpod

Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com>

Diff
@@ -2,16 +2,13 @@
 Copyright (c) 2022 Julian Kuelshammer. All rights reserved.
 Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Julian Kuelshammer
-
-! This file was ported from Lean 3 source module category_theory.preadditive.eilenberg_moore
-! leanprover-community/mathlib commit 829895f162a1f29d0133f4b3538f4cd1fb5bffd3
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
 -/
 import Mathlib.CategoryTheory.Preadditive.Basic
 import Mathlib.CategoryTheory.Monad.Algebra
 import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor
 
+#align_import category_theory.preadditive.eilenberg_moore from "leanprover-community/mathlib"@"829895f162a1f29d0133f4b3538f4cd1fb5bffd3"
+
 /-!
 # Preadditive structure on algebras over a monad
 
feat: port CategoryTheory.Preadditive.EilenbergMoore (#3546)

Dependencies 3 + 297

298 files ported (99.0%)
120662 lines ported (99.1%)
Show graph

The unported dependencies are