Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Mathlib/Algebra/PUnitInstances.lean
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ instance normalizedGCDMonoid : NormalizedGCDMonoid PUnit where
normalize_gcd := by intros; rfl
normalize_lcm := by intros; rfl

-- Porting notes (#10618): simpNF lint: simp can prove this @[simp]
-- Porting note (#10618): simpNF lint: simp can prove this @[simp]
theorem gcd_eq : gcd x y = unit :=
rfl
#align punit.gcd_eq PUnit.gcd_eq

-- Porting notes (#10618): simpNF lint: simp can prove this @[simp]
-- Porting note (#10618): simpNF lint: simp can prove this @[simp]
theorem lcm_eq : lcm x y = unit :=
rfl
#align punit.lcm_eq PUnit.lcm_eq
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/AlgebraicGeometry/Scheme.lean
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def Hom (X Y : Scheme) : Type* :=
instance : Category Scheme :=
{ InducedCategory.category Scheme.toLocallyRingedSpace with Hom := Hom }

-- porting note: added to ease automation
-- porting note (#10688): added to ease automation
@[continuity]
lemma Hom.continuous {X Y : Scheme} (f : X ⟶ Y) : Continuous f.1.base := f.1.base.2

Expand Down
8 changes: 4 additions & 4 deletions Mathlib/AlgebraicTopology/SimplicialObject.lean
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ instance [HasColimits C] : HasColimits (SimplicialObject C) :=

variable {C}

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma hom_ext {X Y : SimplicialObject C} (f g : X ⟶ Y)
(h : ∀ (n : SimplexCategoryᵒᵖ), f.app n = g.app n) : f = g :=
Expand Down Expand Up @@ -300,7 +300,7 @@ variable {C}

namespace Augmented

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma hom_ext {X Y : Augmented C} (f g : X ⟶ Y) (h₁ : f.left = g.left) (h₂ : f.right = g.right) :
f = g :=
Expand Down Expand Up @@ -446,7 +446,7 @@ instance [HasColimits C] : HasColimits (CosimplicialObject C) :=

variable {C}

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma hom_ext {X Y : CosimplicialObject C} (f g : X ⟶ Y)
(h : ∀ (n : SimplexCategory), f.app n = g.app n) : f = g :=
Expand Down Expand Up @@ -672,7 +672,7 @@ variable {C}

namespace Augmented

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma hom_ext {X Y : Augmented C} (f g : X ⟶ Y) (h₁ : f.left = g.left) (h₂ : f.right = g.right) :
f = g :=
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Analysis/Normed/Group/SemiNormedGroupCat.lean
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ instance toAddMonoidHomClass {V W : SemiNormedGroupCat} : AddMonoidHomClass (V
map_add f := f.map_add'
map_zero f := (AddMonoidHom.mk' f.toFun f.map_add').map_zero

-- Porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma ext {M N : SemiNormedGroupCat} {f₁ f₂ : M ⟶ N} (h : ∀ (x : M), f₁ x = f₂ x) : f₁ = f₂ :=
DFunLike.ext _ _ h
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/CategoryTheory/Comma/Arrow.lean
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ theorem id_right (f : Arrow T) : CommaMorphism.right (𝟙 f) = 𝟙 f.right :=
rfl
#align category_theory.arrow.id_right CategoryTheory.Arrow.id_right

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[simp, reassoc]
theorem comp_left {X Y Z : Arrow T} (f : X ⟶ Y) (g : Y ⟶ Z) :
(f ≫ g).left = f.left ≫ g.left := rfl

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[simp, reassoc]
theorem comp_right {X Y Z : Arrow T} (f : X ⟶ Y) (g : Y ⟶ Z) :
(f ≫ g).right = f.right ≫ g.right := rfl
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/CategoryTheory/FintypeCat.lean
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ lemma hom_inv_id_apply {X Y : FintypeCat} (f : X ≅ Y) (x : X) : f.inv (f.hom x
lemma inv_hom_id_apply {X Y : FintypeCat} (f : X ≅ Y) (y : Y) : f.hom (f.inv y) = y :=
congr_fun f.inv_hom_id y

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma hom_ext {X Y : FintypeCat} (f g : X ⟶ Y) (h : ∀ x, f x = g x) : f = g := by
funext
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/CategoryTheory/GradedObject.lean
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ instance categoryOfGradedObjects (β : Type w) : Category.{max w v} (GradedObjec
CategoryTheory.pi fun _ => C
#align category_theory.graded_object.category_of_graded_objects CategoryTheory.GradedObject.categoryOfGradedObjects

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma hom_ext {X Y : GradedObject β C} (f g : X ⟶ Y) (h : ∀ x, f x = g x) : f = g := by
funext
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/CategoryTheory/Idempotents/KaroubiKaroubi.lean
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace KaroubiKaroubi

variable (C : Type*) [Category C]

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[reassoc (attr := simp)]
lemma idem_f (P : Karoubi (Karoubi C)) : P.p.f ≫ P.p.f = P.p.f := by
simpa only [hom_ext_iff, comp_f] using P.idem
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/CategoryTheory/Limits/Shapes/Products.lean
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ abbrev Sigma.ι (f : β → C) [HasCoproduct f] (b : β) : f b ⟶ ∐ f :=
colimit.ι (Discrete.functor f) (Discrete.mk b)
#align category_theory.limits.sigma.ι CategoryTheory.Limits.Sigma.ι

-- porting note: added the next two lemmas to ease automation; without these lemmas,
-- porting note (#10688): added the next two lemmas to ease automation; without these lemmas,
-- `limit.hom_ext` would be applied, but the goal would involve terms
-- in `Discrete β` rather than `β` itself
@[ext 1050]
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/CategoryTheory/Monad/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ instance : Quiver (Monad C) where
instance : Quiver (Comonad C) where
Hom := ComonadHom

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma MonadHom.ext' {T₁ T₂ : Monad C} (f g : T₁ ⟶ T₂) (h : f.app = g.app) : f = g :=
MonadHom.ext f g h

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma ComonadHom.ext' {T₁ T₂ : Comonad C} (f g : T₁ ⟶ T₂) (h : f.app = g.app) : f = g :=
ComonadHom.ext f g h
Expand Down
5 changes: 3 additions & 2 deletions Mathlib/CategoryTheory/Monoidal/CommMon_.lean
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ set_option linter.uppercaseLean3 false in
lemma hom_ext {A B : CommMon_ C} (f g : A ⟶ B) (h : f.hom = g.hom) : f = g :=
Mon_.Hom.ext _ _ h

-- porting note: the following two lemmas `id'` and `comp'` have been added to ease automation;
-- Porting note (#10688): the following two lemmas `id'` and `comp'`
-- have been added to ease automation;
@[simp]
lemma id' (A : CommMon_ C) : (𝟙 A : A.toMon_ ⟶ A.toMon_) = 𝟙 (A.toMon_) := rfl

Expand Down Expand Up @@ -144,7 +145,7 @@ set_option linter.uppercaseLean3 false in

variable (C) (D)

-- porting note: added @[simps] to ease automation
-- Porting note (#10688): added @[simps] to ease automation
/-- `mapCommMon` is functorial in the lax braided functor. -/
@[simps]
def mapCommMonFunctor : LaxBraidedFunctor C D ⥤ CommMon_ C ⥤ CommMon_ D where
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/CategoryTheory/Preadditive/Mat.lean
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ instance (X Y : Mat R) : AddCommGroup (X ⟶ Y) := by

variable {R}

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[simp]
theorem add_apply {M N : Mat R} (f g : M ⟶ N) (i j) : (f + g) i j = f i j + g i j :=
rfl
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/CategoryTheory/Sites/EqualizerSheafCondition.lean
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def FirstObj : Type max v u :=

variable {P R}

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma FirstObj.ext (z₁ z₂ : FirstObj P R) (h : ∀ (Y : C) (f : Y ⟶ X)
(hf : R f), (Pi.π _ ⟨Y, f, hf⟩ : FirstObj P R ⟶ _) z₁ =
Expand Down Expand Up @@ -105,7 +105,7 @@ def SecondObj : Type max v u :=

variable {P S}

-- porting note: added to ease automation
-- Porting note (#10688): added to ease automation
@[ext]
lemma SecondObj.ext (z₁ z₂ : SecondObj P S) (h : ∀ (Y Z : C) (g : Z ⟶ Y) (f : Y ⟶ X)
(hf : S.arrows f), (Pi.π _ ⟨Y, Z, g, f, hf⟩ : SecondObj P S ⟶ _) z₁ =
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/Data/List/Defs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ proofs about these definitions, those are contained in other files in `Data.List

set_option autoImplicit true

-- Porting notes
-- Porting note
-- Many of the definitions in `Data.List.Defs` were already defined upstream in `Std4`
-- These have been annotated with `#align`s
-- To make this easier for review, the `#align`s have been placed in order of occurrence
Expand Down Expand Up @@ -500,7 +500,7 @@ def map₂Right (f : Option α → β → γ) (as : List α) (bs : List β) : Li
#align list.to_chunks_aux List.toChunksAux
#align list.to_chunks List.toChunks

-- porting notes -- was `unsafe` but removed for Lean 4 port
-- porting note -- was `unsafe` but removed for Lean 4 port
-- TODO: naming is awkward...
/-- Asynchronous version of `List.map`.
-/
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/RepresentationTheory/Action/Limits.lean
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ section HasZeroMorphisms

variable [HasZeroMorphisms V]

-- porting note: in order to ease automation, the `Zero` instance is introduced separately,
-- porting note (#10688): in order to ease automation, the `Zero` instance is introduced separately,
-- and the lemma `zero_hom` was moved just below
instance {X Y : Action V G} : Zero (X ⟶ Y) := ⟨0, by aesop_cat⟩

Expand Down
2 changes: 1 addition & 1 deletion Mathlib/SetTheory/Lists.lean
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def toList : ∀ {b}, Lists' α b → List (Lists α)
| _, cons' a l => ⟨_, a⟩ :: l.toList
#align lists'.to_list Lists'.toList

-- Porting notes (#10618): removed @[simp]
-- Porting note (#10618): removed @[simp]
-- simp can prove this: by simp only [@Lists'.toList, @Sigma.eta]
theorem toList_cons (a : Lists α) (l) : toList (cons a l) = a :: l.toList := by simp
#align lists'.to_list_cons Lists'.toList_cons
Expand Down