On Coalgebras Over Algebras
Total Page:16
File Type:pdf, Size:1020Kb
On coalgebras over algebras Adriana Balan1 Alexander Kurz2 1University Politehnica of Bucharest, Romania 2University of Leicester, UK 10th International Workshop on Coalgebraic Methods in Computer Science A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 1 / 31 Outline 1 Motivation 2 The final coalgebra of a continuous functor 3 Final coalgebra and lifting 4 Commuting pair of endofunctors and their fixed points A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 2 / 31 Category with no extra structure Set: final coalgebra L is completion of initial algebra I [Barr 1993] Deficit: if H0 = 0, important cases not covered (as A × (−)n, D, Pκ+) Locally finitely presentable categories: Hom(B; L) completion of Hom(B; I ) for all finitely presentable objects B [Adamek 2003] Motivation Starting data: category C, endofunctor H : C −! C Among fixed points: final coalgebra, initial algebra Categories enriched over complete metric spaces: unique fixed point [Adamek, Reiterman 1994] Categories enriched over cpo: final coalgebra L coincides with initial algebra I [Plotkin, Smyth 1983] A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 3 / 31 Locally finitely presentable categories: Hom(B; L) completion of Hom(B; I ) for all finitely presentable objects B [Adamek 2003] Motivation Starting data: category C, endofunctor H : C −! C Among fixed points: final coalgebra, initial algebra Categories enriched over complete metric spaces: unique fixed point [Adamek, Reiterman 1994] Categories enriched over cpo: final coalgebra L coincides with initial algebra I [Plotkin, Smyth 1983] Category with no extra structure Set: final coalgebra L is completion of initial algebra I [Barr 1993] Deficit: if H0 = 0, important cases not covered (as A × (−)n, D, Pκ+) A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 3 / 31 Motivation Starting data: category C, endofunctor H : C −! C Among fixed points: final coalgebra, initial algebra Categories enriched over complete metric spaces: unique fixed point [Adamek, Reiterman 1994] Categories enriched over cpo: final coalgebra L coincides with initial algebra I [Plotkin, Smyth 1983] Category with no extra structure Set: final coalgebra L is completion of initial algebra I [Barr 1993] Deficit: if H0 = 0, important cases not covered (as A × (−)n, D, Pκ+) Locally finitely presentable categories: Hom(B; L) completion of Hom(B; I ) for all finitely presentable objects B [Adamek 2003] A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 3 / 31 In this talk Category: Alg(M) for a Set-monad M Alg(M)-functor: obtained from lifting A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 4 / 31 Outline 1 Motivation 2 The final coalgebra of a continuous functor 3 Final coalgebra and lifting 4 Commuting pair of endofunctors and their fixed points A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 5 / 31 The limit of the terminal sequence is the final H-coalgebra by cocontinuity ξ = τ −1 : L ' HL Construction of the final coalgebra Assumption 1: functor H : Set −! Set !op-continuous Terminal sequence t Hnt 1 o H1 o ::: o Hn1 o ::: A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 6 / 31 The limit of the terminal sequence is the final H-coalgebra by cocontinuity ξ = τ −1 : L ' HL Construction of the final coalgebra Assumption 1: functor H : Set −! Set !op-continuous Terminal sequence t Hnt 1 o H1 o ::: o Hn1 o ::: d O pn L A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 6 / 31 Construction of the final coalgebra Assumption 1: functor H : Set −! Set !op-continuous Terminal sequence t Hnt 1 o H1 o ::: o Hn1 o ::: ^d O Z pn L Hpn−1 O τ HL The limit of the terminal sequence is the final H-coalgebra by cocontinuity ξ = τ −1 : L ' HL A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 6 / 31 Topology: Discrete topology on Hn1. Initial topology on L, HL and C =) L complete ultrametric space. All maps are continuous. Final coalgebras and anamorphisms ξ For each coalgebra C −!C HC there is a cone over the terminal sequence t Hnt 1 o H1 o ::: o Hn1 o ::: a [ R Hα0 HC f αn α0 C A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 7 / 31 Topology: Discrete topology on Hn1. Initial topology on L, HL and C =) L complete ultrametric space. All maps are continuous. Final coalgebras and anamorphisms ξ For each coalgebra C −!C HC there is a cone over the terminal sequence t Hnt 1 o H1 o ::: o Hn1 o ::: a [ R Z Hα0 pn HC L f αn O αC α0 C A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 7 / 31 Final coalgebras and anamorphisms ξ For each coalgebra C −!C HC there is a cone over the terminal sequence t Hnt 1 o H1 o ::: o Hn1 o ::: a [ R Z Hα0 pn HC L f αn O αC α0 C Topology: Discrete topology on Hn1. Initial topology on L, HL and C =) L complete ultrametric space. All maps are continuous. A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 7 / 31 Outline 1 Motivation 2 The final coalgebra of a continuous functor 3 Final coalgebra and lifting 4 Commuting pair of endofunctors and their fixed points A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 8 / 31 () Distributive law λ : MH −! HM Mλ λM M2H / MHM / HM2 mH Hm λ MH / HM uH H / MH C CC CC λ Hu CC C! HM Lifting of H to Alg(M) H~ Alg(M) / Alg(M) UM UM H Set / Set Lifting functors to algebras over a monad Monad M = (M; m : M2 −! M; u : Id −! M) Adjunction F M a UM : Alg(M) −! Set Initial object M20 −! M0, terminal object M1 −! 1 A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 9 / 31 Lifting functors to algebras over a monad Monad M = (M; m : M2 −! M; u : Id −! M) Adjunction F M a UM : Alg(M) −! Set Initial object M20 −! M0, terminal object M1 −! 1 Lifting of H to Alg(M) () Distributive law λ : MH −! HM λ H~ 2 Mλ M 2 Alg(M) / Alg(M) M H / MHM / HM mH Hm UM UM λ H Set / Set MH / HM uH H / MH C CC CC λ Hu CC C! HM A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 9 / 31 The final coalgebra and the lifting Assumption 2: there is a lifting He of H to Alg(M) ξ γ Then (L; L−!HL) inherits an algebra structure map ML−!L making it the final He-coalgebra. Lemma Mp The cone ML −!n MHn1 −!an Hn1 is induced by the H-coalgebra structure of ML Mp x n M1 o MH1 o ::: o MHn1 o ::: ML Mt MHnt a0 a1 an γ t Hnt 1 o H1 o ::: o Hn1 o ::: L f pn Hence the unique coalgebra map γ : ML −! L is also the anamorphism αML : ML −! L for the coalgebra ML. A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 10 / 31 Topology Discrete topology on both sequences Initial topologies on ML and L Proposition The final H-coalgebra inherits a structure of a topological M-algebra. The final coalgebra and the lifting Diagram in Alg(M) with limiting lower sequence Mp x n M1 o MH1 o ::: o MHn1 o ::: ML Mt MHnt a0 a1 an γ t Hnt 1 o H1 o ::: o Hn1 o ::: L f pn A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 11 / 31 Proposition The final H-coalgebra inherits a structure of a topological M-algebra. The final coalgebra and the lifting Diagram in Alg(M) with limiting lower sequence Mp x n M1 o MH1 o ::: o MHn1 o ::: ML Mt MHnt a0 a1 an γ t Hnt 1 o H1 o ::: o Hn1 o ::: L f pn Topology Discrete topology on both sequences Initial topologies on ML and L A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 11 / 31 The final coalgebra and the lifting Diagram in Alg(M) with limiting lower sequence Mp x n M1 o MH1 o ::: o MHn1 o ::: ML Mt MHnt a0 a1 an γ t Hnt 1 o H1 o ::: o Hn1 o ::: L f pn Topology Discrete topology on both sequences Initial topologies on ML and L Proposition The final H-coalgebra inherits a structure of a topological M-algebra. A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 11 / 31 Assumption 3: M0=1 [Adamek 2003] He has also (non empty) initial algebra I built upon this sequence in Alg(M), with unique M-algebra monomorphism f : I −! L 6 I mmm in mm mmm mmm mmm ::: n m ::: 1 o / H1 o / o / H 1 o / f t Ht Hnt hQQ QQQ pn QQQ QQQ QQQ Q L Fixed points of lifted functor Initial-terminal He-sequences: M0 / HM0 / ::: / HnM0 / ::: s Hs Hns ::: n ::: 1 o t H1 o o H 1 o A. Balan (UPB), A. Kurz (UL) On coalgebras over algebras CMCS 2010 12 / 31 [Adamek 2003] He has also (non empty) initial algebra I built upon this sequence in Alg(M), with unique M-algebra monomorphism f : I −! L 6 I mmm in mm mmm mmm mmm ::: n m ::: 1 o / H1 o / o / H 1 o / f t Ht Hnt hQQ QQQ pn QQQ QQQ QQQ Q L Fixed points of lifted functor Initial-terminal He-sequences: M0 / HM0 / ::: / HnM0 / ::: s Hs Hns ::: n ::: 1 o t H1 o o H 1 o Assumption 3: M0=1 A.