category_theory.preadditive.endo_functorMathlib.CategoryTheory.Preadditive.EndoFunctor

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
@@ -58,10 +58,10 @@ instance Endofunctor.algebraPreadditive : Preadditive (Endofunctor.Algebra F)
       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 }
@@ -102,10 +102,10 @@ instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F
       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.Endofunctor.Algebra
-import Mathbin.CategoryTheory.Preadditive.AdditiveFunctor
+import CategoryTheory.Preadditive.Basic
+import CategoryTheory.Endofunctor.Algebra
+import CategoryTheory.Preadditive.AdditiveFunctor
 
 #align_import category_theory.preadditive.endo_functor from "leanprover-community/mathlib"@"50251fd6309cca5ca2e747882ffecd2729f38c5d"
 
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.endo_functor
-! leanprover-community/mathlib commit 50251fd6309cca5ca2e747882ffecd2729f38c5d
-! 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.Endofunctor.Algebra
 import Mathbin.CategoryTheory.Preadditive.AdditiveFunctor
 
+#align_import category_theory.preadditive.endo_functor from "leanprover-community/mathlib"@"50251fd6309cca5ca2e747882ffecd2729f38c5d"
+
 /-!
 # Preadditive structure on algebras over a monad
 
Diff
@@ -57,19 +57,19 @@ instance Endofunctor.algebraPreadditive : Preadditive (Endofunctor.Algebra F)
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [comp_zsmul, functor.map_zsmul, zsmul_comp, endofunctor.algebra.hom.h] }
-      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.endofunctor.algebra_preadditive CategoryTheory.Endofunctor.algebraPreadditive
 -/
 
@@ -101,19 +101,19 @@ instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [functor.map_zsmul, comp_zsmul, endofunctor.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.endofunctor.coalgebra_preadditive CategoryTheory.Endofunctor.coalgebraPreadditive
 -/
 
Diff
@@ -57,60 +57,19 @@ instance Endofunctor.algebraPreadditive : Preadditive (Endofunctor.Algebra F)
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [comp_zsmul, functor.map_zsmul, zsmul_comp, endofunctor.algebra.hom.h] }
-      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.endofunctor.algebra_preadditive CategoryTheory.Endofunctor.algebraPreadditive
 -/
 
@@ -142,60 +101,19 @@ instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F
       zsmul := fun r α =>
         { f := r • α.f
           h' := by rw [functor.map_zsmul, comp_zsmul, endofunctor.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.endofunctor.coalgebra_preadditive CategoryTheory.Endofunctor.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.endo_functor
-! leanprover-community/mathlib commit 829895f162a1f29d0133f4b3538f4cd1fb5bffd3
+! leanprover-community/mathlib commit 50251fd6309cca5ca2e747882ffecd2729f38c5d
 ! 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 `F` is an additive endofunctor on `C` then `algebra F` is
 also preadditive. Dually, the category `coalgebra F` is also preadditive.
 -/
Diff
@@ -29,6 +29,7 @@ variable (C : Type u₁) [Category.{v₁} C] [Preadditive C] (F : C ⥤ C) [Func
 
 open CategoryTheory.Limits Preadditive
 
+#print CategoryTheory.Endofunctor.algebraPreadditive /-
 /-- The category of algebras over an additive endofunctor on a preadditive category is preadditive.
 -/
 @[simps]
@@ -108,10 +109,14 @@ instance Endofunctor.algebraPreadditive : Preadditive (Endofunctor.Algebra F)
     ext
     apply comp_add
 #align category_theory.endofunctor.algebra_preadditive CategoryTheory.Endofunctor.algebraPreadditive
+-/
 
+#print CategoryTheory.Algebra.forget_additive /-
 instance Algebra.forget_additive : (Endofunctor.Algebra.forget F).Additive where
 #align category_theory.algebra.forget_additive CategoryTheory.Algebra.forget_additive
+-/
 
+#print CategoryTheory.Endofunctor.coalgebraPreadditive /-
 @[simps]
 instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F)
     where
@@ -189,9 +194,12 @@ instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F
     ext
     apply comp_add
 #align category_theory.endofunctor.coalgebra_preadditive CategoryTheory.Endofunctor.coalgebraPreadditive
+-/
 
+#print CategoryTheory.Coalgebra.forget_additive /-
 instance Coalgebra.forget_additive : (Endofunctor.Coalgebra.forget F).Additive where
 #align category_theory.coalgebra.forget_additive CategoryTheory.Coalgebra.forget_additive
+-/
 
 end CategoryTheory
 
Diff
@@ -99,11 +99,11 @@ instance Endofunctor.algebraPreadditive : Preadditive (Endofunctor.Algebra F)
         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
@@ -180,11 +180,11 @@ instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F
         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 Endofunctor.algebraPreadditive : Preadditive (Endofunctor.Algebra F) wh
         intros
         apply Algebra.Hom.ext
         dsimp
-        simp only [coe_nat_zsmul, succ_nsmul]
+        simp only [natCast_zsmul, succ_nsmul]
         rfl
       zsmul_neg' := by
         intros
@@ -161,7 +161,7 @@ instance Endofunctor.coalgebraPreadditive : Preadditive (Endofunctor.Coalgebra F
         intros
         apply Coalgebra.Hom.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.endo_functor
-! 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.Endofunctor.Algebra
 import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor
 
+#align_import category_theory.preadditive.endo_functor from "leanprover-community/mathlib"@"829895f162a1f29d0133f4b3538f4cd1fb5bffd3"
+
 /-!
 # Preadditive structure on algebras over a monad
 
feat: port CategoryTheory.Preadditive.EndoFunctor (#4042)

Dependencies 3 + 296

297 files ported (99.0%)
120425 lines ported (99.1%)
Show graph

The unported dependencies are