Skip to content
Merged
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
2 changes: 2 additions & 0 deletions LeanPool/ExtriangulatedRealization/Imports.lean
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public import LeanPool.ExtriangulatedRealization.InverseSystems.Omega1
public import LeanPool.ExtriangulatedRealization.MainTheorems
public import LeanPool.ExtriangulatedRealization.Realization.Comparison
public import LeanPool.ExtriangulatedRealization.Realization.Complexes
public import LeanPool.ExtriangulatedRealization.Realization.ExtensionMaps
public import LeanPool.ExtriangulatedRealization.Realization.Extensions
public import LeanPool.ExtriangulatedRealization.Realization.Extriangulated
public import LeanPool.ExtriangulatedRealization.Realization.FullyFaithful
Expand All @@ -61,6 +62,7 @@ public import LeanPool.ExtriangulatedRealization.Realization.Shadow
public import LeanPool.ExtriangulatedRealization.Realization.ShadowHom
public import LeanPool.ExtriangulatedRealization.Realization.Subcategory
public import LeanPool.ExtriangulatedRealization.Realization.Transfer
public import LeanPool.ExtriangulatedRealization.Realization.TriangleProofs
public import LeanPool.ExtriangulatedRealization.Realization.Triangles
public import LeanPool.ExtriangulatedRealization.Realization.XPart
public import LeanPool.ExtriangulatedRealization.Statement
Expand Down
93 changes: 93 additions & 0 deletions LeanPool/ExtriangulatedRealization/Realization/ExtensionMaps.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/-
Copyright (c) 2026 Haruhisa Enomoto. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Haruhisa Enomoto
-/
module

public import LeanPool.ExtriangulatedRealization.Realization.ShadowHom

/-!
# The connecting maps of the realization functor

The map on extension classes comes from the shadow comparison and the bijection
on morphisms into the shifted realization. It determines how a realization triangle
maps into the derived category.
-/

@[expose] public section

namespace ExtriangulatedRealization

open CategoryTheory Limits Opposite Statement IntervalLabel ZeroObject DerivedCategory

universe u

variable {k : Type u} [Field k] {I : Type u} [LinearOrder I]

attribute [local instance] HasDerivedCategory.standard

namespace RealizationData

variable {D : Iᵒᵖ ⥤ ModuleCat.{u} k} {J : Set I} (R : RealizationData D J) (hR : R.IsCompatible)

/-- The realization functor on `C_J`. -/
noncomputable abbrev realP :
(labelsIn D J).FullSubcategory ⥤ HomotopyCategory R.Q (ComplexShape.up ℤ) :=
(cdjEquiv J D).inverse ⋙ R.realF hR

/-- `Γ ∘ F ≅ single ∘ ρ` on `C_J`. -/
noncomputable def shadowRealPIso :
R.realP hR ⋙ R.shadow ≅ (labelsIn D J).ι ⋙ rho D ⋙ singleFunctor (Rep k I) 0 :=
Functor.associator _ _ _ ≪≫ Functor.isoWhiskerLeft (cdjEquiv J D).inverse (R.shadowRealIso hR) ≪≫
(Functor.associator (cdjEquiv J D).inverse (cdjEquiv J D).functor
((labelsIn D J).ι ⋙ rho D ⋙ singleFunctor (Rep k I) 0)).symm ≪≫
Functor.isoWhiskerRight (cdjEquiv J D).counitIso
((labelsIn D J).ι ⋙ rho D ⋙ singleFunctor (Rep k I) 0)
≪≫ Functor.leftUnitor _

lemma shadow_bijective_realP (C A : (labelsIn D J).FullSubcategory) :
Function.Bijective (R.shadow.map :
((R.realP hR).obj C ⟶ ((R.realP hR).obj A)⟦(1 : ℤ)⟧) → _) :=
R.shadow_bijective_realF hR _ _

/-! ### The maps `η` -/

attribute [local instance] HasExt.standard

/-- The extriangulated data of `C_J`. -/
noncomputable abbrev dataJ : ExtriangulatedData.{u + 1} k (labelsIn D J).FullSubcategory :=
(cdData D).restrict (labelsIn D J)

/-- The image under `Γ` of `η δ`. -/
noncomputable def etaTarget (C A : (labelsIn D J).FullSubcategory) :
(dataJ (D := D) (J := J)).Ext C A →+
(R.shadow.obj ((R.realP hR).obj C) ⟶ R.shadow.obj (((R.realP hR).obj A)⟦(1 : ℤ)⟧)) :=
(Preadditive.leftComp _ ((R.shadowRealPIso hR).app C).hom).comp
((Preadditive.rightComp _ ((((R.shadowRealPIso hR).app A).inv)⟦(1 : ℤ)⟧' ≫
((R.shadow.commShiftIso (1 : ℤ)).app _).inv)).comp
(Abelian.Ext.homAddEquiv (X := (rho D).obj C.obj) (Y := (rho D).obj A.obj)
(n := 1)).toAddMonoidHom)

lemma etaTarget_apply (C A : (labelsIn D J).FullSubcategory)
(δ : (dataJ (D := D) (J := J)).Ext C A) :
R.etaTarget hR C A δ = ((R.shadowRealPIso hR).app C).hom ≫
(δ : Abelian.Ext.{u + 1} ((rho D).obj C.obj) ((rho D).obj A.obj) 1).hom ≫
(((R.shadowRealPIso hR).app A).inv)⟦(1 : ℤ)⟧' ≫
((R.shadow.commShiftIso (1 : ℤ)).app _).inv := rfl

/-- The map `η : E(C, A) → K(Q)(F C, (F A)⟦1⟧)`. -/
noncomputable def eta (C A : (labelsIn D J).FullSubcategory) :
(dataJ (D := D) (J := J)).Ext C A →+ ((R.realP hR).obj C ⟶ ((R.realP hR).obj A)⟦(1 : ℤ)⟧) :=
((AddEquiv.ofBijective R.shadow.mapAddHom
(R.shadow_bijective_realP hR C A)).symm.toAddMonoidHom).comp
(R.etaTarget hR C A)

lemma shadow_map_eta (C A : (labelsIn D J).FullSubcategory)
(δ : (dataJ (D := D) (J := J)).Ext C A) :
R.shadow.map (R.eta hR C A δ) = R.etaTarget hR C A δ :=
(AddEquiv.ofBijective R.shadow.mapAddHom (R.shadow_bijective_realP hR C A)).apply_symm_apply _

end RealizationData

end ExtriangulatedRealization
66 changes: 5 additions & 61 deletions LeanPool/ExtriangulatedRealization/Realization/Extensions.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ Authors: Haruhisa Enomoto
-/
module

public import LeanPool.ExtriangulatedRealization.Realization.ShadowHom
public import LeanPool.ExtriangulatedRealization.Realization.ExtensionMaps

/-!
# The connecting maps `η : E(C, A) → K(Q)(F C, (F A)⟦1⟧)` (Proposition 2.3, Step 3)
# Naturality and bijectivity of the connecting maps (Proposition 2.3, Step 3)

The realization functor on `C_J` is `F = (CDJ ≌ C_J)⁻¹ ⋙ realF`. Since
`Γ ∘ F ≅ single ∘ ρ` and `Γ` is bijective on `K(Q)(F C, (F A)⟦1⟧)`, every class
`δ ∈ E(C, A) = Ext¹(ρC, ρA) = D(ρC, ρA⟦1⟧)` has a unique preimage `η δ`. Additivity,
naturality and bijectivity of `η` follow from the corresponding properties of `Ext¹`.
Pulling back or pushing forward an extension corresponds to composition with the
realization of the inducing morphism. The connecting maps are bijective by the
comparison with the derived category.
-/

@[expose] public section
Expand All @@ -32,40 +31,14 @@ namespace RealizationData

variable {D : Iᵒᵖ ⥤ ModuleCat.{u} k} {J : Set I} (R : RealizationData D J) (hR : R.IsCompatible)

/-- The realization functor on `C_J`. -/
noncomputable abbrev realP :
(labelsIn D J).FullSubcategory ⥤ HomotopyCategory R.Q (ComplexShape.up ℤ) :=
(cdjEquiv J D).inverse ⋙ R.realF hR

instance : (cdjEquiv J D).functor.Additive := inferInstanceAs (cdjLift J D).Additive

instance : (R.realF hR).Additive := by
unfold realF
infer_instance

/-- `Γ ∘ F ≅ single ∘ ρ` on `C_J`. -/
noncomputable def shadowRealPIso :
R.realP hR ⋙ R.shadow ≅ (labelsIn D J).ι ⋙ rho D ⋙ singleFunctor (Rep k I) 0 :=
Functor.associator _ _ _ ≪≫ Functor.isoWhiskerLeft (cdjEquiv J D).inverse (R.shadowRealIso hR) ≪≫
(Functor.associator (cdjEquiv J D).inverse (cdjEquiv J D).functor
((labelsIn D J).ι ⋙ rho D ⋙ singleFunctor (Rep k I) 0)).symm ≪≫
Functor.isoWhiskerRight (cdjEquiv J D).counitIso
((labelsIn D J).ι ⋙ rho D ⋙ singleFunctor (Rep k I) 0)
≪≫ Functor.leftUnitor _

lemma shadow_bijective_realP (C A : (labelsIn D J).FullSubcategory) :
Function.Bijective (R.shadow.map :
((R.realP hR).obj C ⟶ ((R.realP hR).obj A)⟦(1 : ℤ)⟧) → _) :=
R.shadow_bijective_realF hR _ _

/-! ### The maps `η` -/

attribute [local instance] HasExt.standard

/-- The extriangulated data of `C_J`. -/
noncomputable abbrev dataJ : ExtriangulatedData.{u + 1} k (labelsIn D J).FullSubcategory :=
(cdData D).restrict (labelsIn D J)

omit R hR in
lemma dataJ_push {C A A' : (labelsIn D J).FullSubcategory} (a : A ⟶ A')
(δ : (dataJ (D := D) (J := J)).Ext C A) :
Expand All @@ -80,35 +53,6 @@ lemma dataJ_pull {C'' C A : (labelsIn D J).FullSubcategory} (c : C'' ⟶ C)
(Abelian.Ext.mk₀ ((rho D).map c.hom)).comp
(δ : Abelian.Ext.{u + 1} ((rho D).obj C.obj) ((rho D).obj A.obj) 1) (zero_add 1) := rfl

/-- The image under `Γ` of `η δ`. -/
noncomputable def etaTarget (C A : (labelsIn D J).FullSubcategory) :
(dataJ (D := D) (J := J)).Ext C A →+
(R.shadow.obj ((R.realP hR).obj C) ⟶ R.shadow.obj (((R.realP hR).obj A)⟦(1 : ℤ)⟧)) :=
(Preadditive.leftComp _ ((R.shadowRealPIso hR).app C).hom).comp
((Preadditive.rightComp _ ((((R.shadowRealPIso hR).app A).inv)⟦(1 : ℤ)⟧' ≫
((R.shadow.commShiftIso (1 : ℤ)).app _).inv)).comp
(Abelian.Ext.homAddEquiv (X := (rho D).obj C.obj) (Y := (rho D).obj A.obj)
(n := 1)).toAddMonoidHom)

lemma etaTarget_apply (C A : (labelsIn D J).FullSubcategory)
(δ : (dataJ (D := D) (J := J)).Ext C A) :
R.etaTarget hR C A δ = ((R.shadowRealPIso hR).app C).hom ≫
(δ : Abelian.Ext.{u + 1} ((rho D).obj C.obj) ((rho D).obj A.obj) 1).hom ≫
(((R.shadowRealPIso hR).app A).inv)⟦(1 : ℤ)⟧' ≫
((R.shadow.commShiftIso (1 : ℤ)).app _).inv := rfl

/-- The map `η : E(C, A) → K(Q)(F C, (F A)⟦1⟧)`. -/
noncomputable def eta (C A : (labelsIn D J).FullSubcategory) :
(dataJ (D := D) (J := J)).Ext C A →+ ((R.realP hR).obj C ⟶ ((R.realP hR).obj A)⟦(1 : ℤ)⟧) :=
((AddEquiv.ofBijective R.shadow.mapAddHom
(R.shadow_bijective_realP hR C A)).symm.toAddMonoidHom).comp
(R.etaTarget hR C A)

lemma shadow_map_eta (C A : (labelsIn D J).FullSubcategory)
(δ : (dataJ (D := D) (J := J)).Ext C A) :
R.shadow.map (R.eta hR C A δ) = R.etaTarget hR C A δ :=
(AddEquiv.ofBijective R.shadow.mapAddHom (R.shadow_bijective_realP hR C A)).apply_symm_apply _

lemma shadow_map_shift_realP {A A' : (labelsIn D J).FullSubcategory} (a : A ⟶ A') :
((R.shadow.commShiftIso (1 : ℤ)).app ((R.realP hR).obj A)).inv ≫
R.shadow.map (((R.realP hR).map a)⟦(1 : ℤ)⟧') =
Expand Down
9 changes: 8 additions & 1 deletion LeanPool/ExtriangulatedRealization/Realization/Shadow.lean
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,16 @@ noncomputable def shadowF₁Iso :
R.F₁ hR ⋙ R.shadow ≅ indJIncl J D ⋙ rho0 D ⋙ singleFunctor (Rep k I) 0 :=
NatIso.ofComponents (shadowComponent R hR) (fun _ => shadowComponent_naturality R hR _)

private lemma matLift_comp_mapMat_lift {𝒞 𝒟 ℰ 𝒯 : Type*}
[Category.{u} 𝒞] [Category.{u} 𝒟] [Category.{u} ℰ] [Category 𝒯]
[Preadditive 𝒞] [Preadditive 𝒟] [Preadditive ℰ] [HasFiniteBiproducts ℰ]
(F : 𝒞 ⥤ 𝒟) (G : 𝒟 ⥤ ℰ) [F.Additive] [G.Additive] (H : ℰ ⥤ 𝒯) :
matLift (F ⋙ G) ⋙ H = F.mapMat_ ⋙ (G.mapMat_ ⋙ Mat_.lift (𝟭 ℰ)) ⋙ H := rfl

lemma matLift_realization_target :
matLift (indJIncl J D ⋙ rho0 D) ⋙ singleFunctor (Rep k I) 0 =
cdjIncl J D ⋙ rho D ⋙ singleFunctor (Rep k I) 0 := rfl
cdjIncl J D ⋙ rho D ⋙ singleFunctor (Rep k I) 0 :=
matLift_comp_mapMat_lift (indJIncl J D) (rho0 D) (singleFunctor (Rep k I) 0)

/-- `Γ ∘ F ≅ single ∘ ρ` on `C_J`. -/
noncomputable def shadowRealIso :
Expand Down
Loading
Loading