Theorem: CategoryTheory.Adjunction.isLocalization
File: Mathlib/CategoryTheory/Localization/Adjunction.lean

tactic: let W := ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_after: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)

tactic: have hG : W.IsInvertedBy G := fun _ _ _ hf => hf
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_after: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)

tactic: have : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X) := fun X =>
  Localization.inverts W.Q W _ (by
    change IsIso _
    infer_instance)
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_after: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
this : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X)
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)

tactic: have : IsIso (whiskerRight adj.unit W.Q) := NatIso.isIso_of_isIso_app _
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
this : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X)
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_after: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
this✝ : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X)
this : IsIso (whiskerRight adj.unit W.Q)
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)

tactic: let e : W.Localization ≌ C₂ := Equivalence.mk (Localization.lift G hG W.Q) (F ⋙ W.Q)
  (liftNatIso W.Q W W.Q (G ⋙ F ⋙ W.Q) _ _
  (W.Q.leftUnitor.symm ≪≫ asIso (whiskerRight adj.unit W.Q)))
  (Functor.associator _ _ _ ≪≫ isoWhiskerLeft _ (Localization.fac G hG W.Q) ≪≫
    asIso adj.counit)
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
this✝ : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X)
this : IsIso (whiskerRight adj.unit W.Q)
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_after: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
this✝ : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X)
this : IsIso (whiskerRight adj.unit W.Q)
e : W.Localization ≌ C₂ :=
  Equivalence.mk (lift G hG W.Q) (F ⋙ W.Q)
    (liftNatIso W.Q W W.Q (G ⋙ F ⋙ W.Q) (𝟭 W.Localization) (lift G hG W.Q ⋙ F ⋙ W.Q)
      (W.Q.leftUnitor.symm ≪≫ asIso (whiskerRight adj.unit W.Q)))
    (F.associator W.Q (lift G hG W.Q) ≪≫ isoWhiskerLeft F (fac G hG W.Q) ≪≫ asIso adj.counit)
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)

tactic: apply Functor.IsLocalization.of_equivalence_target W.Q W G e
  (Localization.fac G hG W.Q)
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
this✝ : ∀ (X : C₁), IsIso ((whiskerRight adj.unit W.Q).app X)
this : IsIso (whiskerRight adj.unit W.Q)
e : W.Localization ≌ C₂ :=
  Equivalence.mk (lift G hG W.Q) (F ⋙ W.Q)
    (liftNatIso W.Q W W.Q (G ⋙ F ⋙ W.Q) (𝟭 W.Localization) (lift G hG W.Q ⋙ F ⋙ W.Q)
      (W.Q.leftUnitor.symm ≪≫ asIso (whiskerRight adj.unit W.Q)))
    (F.associator W.Q (lift G hG W.Q) ≪≫ isoWhiskerLeft F (fac G hG W.Q) ≪≫ asIso adj.counit)
⊢ G.IsLocalization ((MorphismProperty.isomorphisms C₂).inverseImage G)
state_after: no goals

tactic: change IsIso _
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
X : C₁
⊢ W (adj.unit.app X)
state_after: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
X : C₁
⊢ IsIso (G.map (adj.unit.app X))

tactic: infer_instance
state_before: C₁ : Type u_1
C₂ : Type u_2
D₁ : Type u_3
D₂ : Type u_4
inst✝⁵ : Category.{u_6, u_1} C₁
inst✝⁴ : Category.{u_5, u_2} C₂
inst✝³ : Category.{?u.46714, u_3} D₁
inst✝² : Category.{?u.46718, u_4} D₂
G : C₁ ⥤ C₂
F : C₂ ⥤ C₁
adj : G ⊣ F
inst✝¹ : F.Full
inst✝ : F.Faithful
W : MorphismProperty C₁ := (MorphismProperty.isomorphisms C₂).inverseImage G
hG : W.IsInvertedBy G
X : C₁
⊢ IsIso (G.map (adj.unit.app X))
state_after: no goals