Skip to content

Commit c364789

Browse files
fix errors from rebase, mk_all
1 parent 12f8f73 commit c364789

File tree

3 files changed

+13
-58
lines changed

3 files changed

+13
-58
lines changed

Mathlib.lean

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,6 +2181,11 @@ import Mathlib.CategoryTheory.Category.PartialFun
21812181
import Mathlib.CategoryTheory.Category.Pointed
21822182
import Mathlib.CategoryTheory.Category.Preorder
21832183
import Mathlib.CategoryTheory.Category.Quiv
2184+
import Mathlib.CategoryTheory.Category.Quiv.AsFunctor.Defs
2185+
import Mathlib.CategoryTheory.Category.Quiv.Colimits
2186+
import Mathlib.CategoryTheory.Category.Quiv.Limits
2187+
import Mathlib.CategoryTheory.Category.Quiv.Shapes
2188+
import Mathlib.CategoryTheory.Category.Quiv.WalkingQuiver
21842189
import Mathlib.CategoryTheory.Category.ReflQuiv
21852190
import Mathlib.CategoryTheory.Category.RelCat
21862191
import Mathlib.CategoryTheory.Category.TwoP
@@ -2288,6 +2293,7 @@ import Mathlib.CategoryTheory.Filtered.CostructuredArrow
22882293
import Mathlib.CategoryTheory.Filtered.Final
22892294
import Mathlib.CategoryTheory.Filtered.Flat
22902295
import Mathlib.CategoryTheory.Filtered.Grothendieck
2296+
import Mathlib.CategoryTheory.Filtered.Level
22912297
import Mathlib.CategoryTheory.Filtered.OfColimitCommutesFiniteLimit
22922298
import Mathlib.CategoryTheory.Filtered.Small
22932299
import Mathlib.CategoryTheory.FinCategory.AsType
@@ -2899,6 +2905,7 @@ import Mathlib.CategoryTheory.Sums.Basic
28992905
import Mathlib.CategoryTheory.Sums.Products
29002906
import Mathlib.CategoryTheory.Thin
29012907
import Mathlib.CategoryTheory.Topos.Classifier
2908+
import Mathlib.CategoryTheory.Topos.Presheaf
29022909
import Mathlib.CategoryTheory.Triangulated.Adjunction
29032910
import Mathlib.CategoryTheory.Triangulated.Basic
29042911
import Mathlib.CategoryTheory.Triangulated.Functor

Mathlib/CategoryTheory/Equivalence.lean

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,9 @@ alias Equivalence.ofFullSubcategory := ObjectProperty.fullSubcategoryCongr
716716
the right functor restricted to the essential image of the left functor. -/
717717
@[simps!]
718718
def essImageInclusionComp (F : C ⥤ D) (G : D ⥤ E) :
719-
(F.essImageInclusion ⋙ G).EssImageSubcategory ≌ (F ⋙ G).EssImageSubcategory :=
720-
ObjectProperty.fullSubcategoryCongr fun e ↦ by
719+
(F.essImage.ι ⋙ G).EssImageSubcategory ≌ (F ⋙ G).EssImageSubcategory :=
720+
ObjectProperty.fullSubcategoryCongr <| by
721+
ext e
721722
constructor <;> intro h
722723
· use (Functor.essImage.witness h).2.choose
723724
exact ⟨G.mapIso (Functor.essImage.witness h).2.choose_spec.some |>.trans <|
@@ -733,18 +734,16 @@ noncomputable def Functor.EssImage.compEquivOfFullyFaithful
733734
(F : C ⥤ D) (G : D ⥤ E) [G.Full] [G.Faithful] :
734735
(F ⋙ G).EssImageSubcategory ≌ F.EssImageSubcategory :=
735736
letI inverse : F.EssImageSubcategory ⥤ (F ⋙ G).EssImageSubcategory :=
736-
FullSubcategory.lift _ (F.essImageInclusion ⋙ G)
737+
ObjectProperty.lift _ (F.essImage.ι ⋙ G)
737738
(⟨_, ⟨G.mapIso ·.property.choose_spec.some⟩⟩)
738-
have : inverse.Full := inferInstanceAs (FullSubcategory.lift _ _ _).Full
739-
have : inverse.Faithful := inferInstanceAs (FullSubcategory.lift _ _ _).Faithful
740739
have : inverse.EssSurj := by
741740
constructor
742741
rintro ⟨Y, ⟨X, ⟨ι⟩⟩⟩
743742
exact ⟨⟨F.obj X, ⟨X, ⟨Iso.refl _⟩⟩⟩, ⟨InducedCategory.isoMk ι⟩⟩
744-
have : inverse.IsEquivalence := ⟨‹_›, ‹_›, ‹_›⟩
743+
have : inverse.IsEquivalence := ⟨inferInstance, inferInstance, ‹_›⟩
745744
inverse.asEquivalence.symm
746745

747-
end Equivalence
746+
-- end Equivalence
748747

749748
namespace Iso
750749

Mathlib/Logic/Equiv/Basic.lean

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -433,17 +433,6 @@ def sigmaAssocProd {α β : Type*} {γ : α → β → Type*} :
433433
(ab : α × β) × γ ab.1 ab.2 ≃ (a : α) × (b : β) × γ a b :=
434434
sigmaCongrLeft' (sigmaEquivProd _ _).symm |>.trans <| sigmaAssoc γ
435435

436-
/-- A subtype of a sigma which pins down the base of the sigma is equivalent to
437-
the respective fiber. -/
438-
@[simps]
439-
def sigmaSubtype {α : Type*} {β : α → Type*} (a : α) :
440-
{s : Sigma β // s.1 = a} ≃ β a where
441-
toFun := fun ⟨⟨_, b⟩, h⟩ => h ▸ b
442-
invFun b := ⟨⟨a, b⟩, rfl⟩
443-
left_inv := fun ⟨a, h⟩ ↦ by cases h; simp
444-
right_inv b := by simp
445-
446-
447436
section
448437
attribute [local simp] Trans.trans sigmaAssoc subtypeSigmaEquiv uniqueSigma eqRec_eq_cast
449438

@@ -489,40 +478,6 @@ lemma sigmaSigmaSubtypeEq_symm_apply {α β : Type*} {γ : α → β → Type*}
489478
simp [sigmaSigmaSubtypeEq]
490479

491480
end
492-
493-
/-- A sigma of a sigma whose second base does not depend on the first is equivalent
494-
to a sigma whose base is a product. -/
495-
@[simps!]
496-
def sigmaAssocProd {α β : Type*} {γ : α → β → Type*} :
497-
(ab : α × β) × γ ab.1 ab.2 ≃ (a : α) × (b : β) × γ a b :=
498-
sigmaCongrLeft' (sigmaEquivProd _ _).symm |>.trans <| sigmaAssoc γ
499-
500-
501-
/-- A subtype of a dependent triple which pins down both bases is equivalent to the
502-
respective fiber. -/
503-
@[simps! (config := {simpRhs := true})]
504-
def sigmaSigmaSubtype {α : Type*} {β : α → Type*} {γ : (a : α) → β a → Type*}
505-
(p : (a : α) × β a → Prop) [uniq : Unique {ab // p ab}] (a : α) (b : β a) (h : p ⟨a, b⟩) :
506-
{s : (a : α) × (b : β a) × γ a b // p ⟨s.1, s.2.1⟩} ≃ γ a b := by
507-
calc {s : (a : α) × (b : β a) × γ a b // p ⟨s.1, s.2.1⟩}
508-
_ ≃ _ := subtypeEquiv (p := fun ⟨a, b, c⟩ ↦ p ⟨a, b⟩) (q := (p ·.1))
509-
(sigmaAssoc γ).symm fun s ↦ by simp [sigmaAssoc]
510-
_ ≃ _ := subtypeSigmaEquiv _ _
511-
_ ≃ _ := uniqueSigma (fun ab ↦ γ (Sigma.fst <| Subtype.val ab) (Sigma.snd <| Subtype.val ab))
512-
_ ≃ γ a b := by rw [ ← show ⟨⟨a, b⟩, h⟩ = uniq.default from uniq.uniq _]
513-
514-
/-- A specialization of `sigmaSigmaSubtype` to the case where the second base
515-
does not depend on the first, and the property being checked for is simple
516-
equality. Useful for e.g. hom-types. -/
517-
@[simps!]
518-
def sigmaSigmaSubtypeEq {α β : Type*} {γ : α → β → Type*} (a : α) (b : β) :
519-
{s : (a : α) × (b : β) × γ a b // s.1 = a ∧ s.2.1 = b} ≃ γ a b :=
520-
have : Unique (@Subtype ((_ : α) × β) (fun ⟨a', b'⟩ ↦ a' = a ∧ b' = b)) := {
521-
default := ⟨⟨a, b⟩, ⟨rfl, rfl⟩⟩
522-
uniq := by rintro ⟨⟨a', b'⟩, ⟨rfl, rfl⟩⟩; rfl
523-
}
524-
sigmaSigmaSubtype (fun ⟨a', b'⟩ ↦ a' = a ∧ b' = b) a b ⟨rfl, rfl⟩
525-
526481
end
527482

528483
section subtypeEquivCodomain
@@ -988,12 +943,6 @@ lemma eq_conj {α α' β β' : Sort*} (ε₁ : α ≃ α') (ε₂ : β' ≃ β)
988943
(f : α → β) (f' : α' → β') : ε₂.symm ∘ f ∘ ε₁.symm = f' ↔ f = ε₂ ∘ f' ∘ ε₁ := by
989944
rw [Equiv.symm_comp_eq, Equiv.comp_symm_eq, Function.comp_assoc]
990945

991-
lemma eq_conj {α α' β β' : Type*} (ε₁ : α ≃ α') (ε₂ : β' ≃ β)
992-
(f : α → β) (f' : α' → β') : f = ε₂ ∘ f' ∘ ε₁ ↔ ε₂.symm ∘ f ∘ ε₁.symm = f' := by
993-
constructor <;> (intro h; ext)
994-
· simp [h]
995-
· simp [← h]
996-
997946
section BinaryOp
998947

999948
variable {α₁ β₁ : Type*} (e : α₁ ≃ β₁) (f : α₁ → α₁ → α₁)

0 commit comments

Comments
 (0)