Initial Algebra and Final Coalgebra Semantics for Concurrency
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Initial Algebra Semantics in Matching Logic
Technical Report: Initial Algebra Semantics in Matching Logic Xiaohong Chen1, Dorel Lucanu2, and Grigore Ro¸su1 1University of Illinois at Urbana-Champaign, Champaign, USA 2Alexandru Ioan Cuza University, Ia¸si,Romania xc3@illinois, [email protected], [email protected] July 24, 2020 Abstract Matching logic is a unifying foundational logic for defining formal programming language semantics, which adopts a minimalist design with few primitive constructs that are enough to express all properties within a variety of logical systems, including FOL, separation logic, (dependent) type systems, modal µ-logic, and more. In this paper, we consider initial algebra semantics and show how to capture it by matching logic specifications. Formally, given an algebraic specification E that defines a set of sorts (of data) and a set of operations whose behaviors are defined by a set of equational axioms, we define a corresponding matching logic specification, denoted INITIALALGEBRA(E), whose models are exactly the initial algebras of E. Thus, we reduce initial E-algebra semantics to the matching logic specifications INITIALALGEBRA(E), and reduce extrinsic initial E-algebra reasoning, which includes inductive reasoning, to generic, intrinsic matching logic reasoning. 1 Introduction Initial algebra semantics is a main approach to formal programming language semantics based on algebraic specifications and their initial models. It originated in the 1970s, when algebraic techniques started to be applied to specify basic data types such as lists, trees, stacks, etc. The original paper on initial algebra semantics [Goguen et al., 1977] reviewed various existing algebraic specification techniques and showed that they were all initial models, making the concept of initiality explicit for the first time in formal language semantics. -
Arxiv:1906.03655V2 [Math.AT] 1 Jul 2020
RATIONAL HOMOTOPY EQUIVALENCES AND SINGULAR CHAINS MANUEL RIVERA, FELIX WIERSTRA, MAHMOUD ZEINALIAN Abstract. Bousfield and Kan’s Q-completion and fiberwise Q-completion of spaces lead to two different approaches to the rational homotopy theory of non-simply connected spaces. In the first approach, a map is a weak equivalence if it induces an isomorphism on rational homology. In the second, a map of path-connected pointed spaces is a weak equivalence if it induces an isomorphism between fun- damental groups and higher rationalized homotopy groups; we call these maps π1-rational homotopy equivalences. In this paper, we compare these two notions and show that π1-rational homotopy equivalences correspond to maps that induce Ω-quasi-isomorphisms on the rational singular chains, i.e. maps that induce a quasi-isomorphism after applying the cobar functor to the dg coassociative coalge- bra of rational singular chains. This implies that both notions of rational homotopy equivalence can be deduced from the rational singular chains by using different alge- braic notions of weak equivalences: quasi-isomorphism and Ω-quasi-isomorphisms. We further show that, in the second approach, there are no dg coalgebra models of the chains that are both strictly cocommutative and coassociative. 1. Introduction One of the questions that gave birth to rational homotopy theory is the commuta- tive cochains problem which, given a commutative ring k, asks whether there exists a commutative differential graded (dg) associative k-algebra functorially associated to any topological space that is weakly equivalent to the dg associative algebra of singu- lar k-cochains on the space with the cup product [S77], [Q69]. -
The Continuum As a Final Coalgebra
Theoretical Computer Science 280 (2002) 105–122 www.elsevier.com/locate/tcs The continuum as a ÿnal coalgebra D. PavloviÃca, V. Prattb; ∗ aKestrel Institute, Palo Alto, CA, USA bDepartment of Computer Science, Stanford University, Stanford, CA 94305-9045, USA Abstract We deÿne the continuum up to order isomorphism, and hence up to homeomorphism via the order topology, in terms of the ÿnal coalgebra of either the functor N ×X , product with the set of natural numbers, or the functor 1+N ×X . This makes an attractive analogy with the deÿnition of N itself as the initial algebra of the functor 1 + X , disjoint union with a singleton. We similarly specify Baire space and Cantor space in terms of these ÿnal coalgebras. We identify two variants of this approach, a coinductive deÿnition based on ÿnal coalgebraic structure in the category of sets, and a direct deÿnition as a ÿnal coalgebra in the category of posets. We conclude with some paradoxical discrepancies between continuity and constructiveness in this setting. c 2002 Elsevier Science B.V. All rights reserved. 1. Introduction The algebra (N; 0;s) of non-negative integers under successor s with constant 0, the basic number system of mathematics, occupies a distinguished position in the category of algebras having a unary operation and a constant, namely as its initial object. In this paper we show that the continuum, the basic environment of physics, occu- pies an equally distinguished position in the category of coalgebras having one “dual operation” of arity N, namely as its ÿnal object. Here a dual operation is understood as a function X → X + X + ··· dual to an operation as a function X × X ×···X , with arity being the number of copies of X in each case. -
Arxiv:1907.08255V2 [Math.RA] 26 Aug 2020 Olers Eso Htte R Pitn of Splitting Are They That Show We Coalgebras
COHOMOLOGY AND DEFORMATIONS OF DENDRIFORM COALGEBRAS APURBA DAS Abstract. Dendriform coalgebras are the dual notion of dendriform algebras and are splitting of as- sociative coalgebras. In this paper, we define a cohomology theory for dendriform coalgebras based on some combinatorial maps. We show that the cohomology with self coefficients governs the formal defor- mation of the structure. We also relate this cohomology with the cohomology of dendriform algebras, coHochschild (Cartier) cohomology of associative coalgebras and cohomology of Rota-Baxter coalgebras which we introduce in this paper. Finally, using those combinatorial maps, we introduce homotopy analogue of dendriform coalgebras and study some of their properties. 1. Introduction Dendriform algebras were first introduced by Jean-Louis Loday in his study on periodicity phe- nomenons in algebraic K-theory [13]. These algebras are Koszul dual to diassociative algebras (also called associative dialgebras). More precisely, a dendriform algebra is a vector space equipped with two binary operations satisfying three new identities. The sum of the two operations turns out to be associa- tive. Thus, a dendriform algebra can be thought of like a splitting of associative algebras. Dendriform algebras are closely related to Rota-Baxter algebras [1,8]. Recently, the present author defines a coho- mology and deformation theory for dendriform algebras [3]. See [6–8,17] and references therein for more literature about dendriform algebras. The dual picture of dendriform algebras is given by dendriform coalgebras. It is given by two coproducts on a vector space satisfying three identities (dual to dendriform algebra identities), and the sum of the two coproducts makes the underlying vector space into an associative coalgebra. -
The Method of Coalgebra: Exercises in Coinduction
The Method of Coalgebra: exercises in coinduction Jan Rutten CWI & RU [email protected] Draft d.d. 8 July 2018 (comments are welcome) 2 Draft d.d. 8 July 2018 Contents 1 Introduction 7 1.1 The method of coalgebra . .7 1.2 History, roughly and briefly . .7 1.3 Exercises in coinduction . .8 1.4 Enhanced coinduction: algebra and coalgebra combined . .8 1.5 Universal coalgebra . .8 1.6 How to read this book . .8 1.7 Acknowledgements . .9 2 Categories { where coalgebra comes from 11 2.1 The basic definitions . 11 2.2 Category theory in slogans . 12 2.3 Discussion . 16 3 Algebras and coalgebras 19 3.1 Algebras . 19 3.2 Coalgebras . 21 3.3 Discussion . 23 4 Induction and coinduction 25 4.1 Inductive and coinductive definitions . 25 4.2 Proofs by induction and coinduction . 28 4.3 Discussion . 32 5 The method of coalgebra 33 5.1 Basic types of coalgebras . 34 5.2 Coalgebras, systems, automata ::: ....................... 34 6 Dynamical systems 37 6.1 Homomorphisms of dynamical systems . 38 6.2 On the behaviour of dynamical systems . 41 6.3 Discussion . 44 3 4 Draft d.d. 8 July 2018 7 Stream systems 45 7.1 Homomorphisms and bisimulations of stream systems . 46 7.2 The final system of streams . 52 7.3 Defining streams by coinduction . 54 7.4 Coinduction: the bisimulation proof method . 59 7.5 Moessner's Theorem . 66 7.6 The heart of the matter: circularity . 72 7.7 Discussion . 76 8 Deterministic automata 77 8.1 Basic definitions . 78 8.2 Homomorphisms and bisimulations of automata . -
MONADS and ALGEBRAS I I
\chap10" 2009/6/1 i i page 223 i i 10 MONADSANDALGEBRAS In the foregoing chapter, the adjoint functor theorem was seen to imply that the category of algebras for an equational theory T always has a \free T -algebra" functor, left adjoint to the forgetful functor into Sets. This adjunction describes the notion of a T -algebra in a way that is independent of the specific syntactic description given by the theory T , the operations and equations of which are rather like a particular presentation of that notion. In a certain sense that we are about to make precise, it turns out that every adjunction describes, in a \syntax invariant" way, a notion of an \algebra" for an abstract \equational theory." Toward this end, we begin with yet a third characterization of adjunctions. This one has the virtue of being entirely equational. 10.1 The triangle identities Suppose we are given an adjunction, - F : C D : U: with unit and counit, η : 1C ! UF : FU ! 1D: We can take any f : FC ! D to φ(f) = U(f) ◦ ηC : C ! UD; and for any g : C ! UD we have −1 φ (g) = D ◦ F (g): FC ! D: This we know gives the isomorphism ∼ HomD(F C; D) =φ HomC(C; UD): Now put 1UD : UD ! UD in place of g : C ! UD in the foregoing. We −1 know that φ (1UD) = D, and so 1UD = φ(D) = U(D) ◦ ηUD: i i i i \chap10" 2009/6/1 i i page 224 224 MONADS AND ALGEBRAS i i And similarly, φ(1FC ) = ηC , so −1 1FC = φ (ηC ) = FC ◦ F (ηC ): Thus we have shown that the two diagrams below commute. -
On Coalgebras Over Algebras
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. -
Coalgebras from Formulas
Coalgebras from Formulas Serban Raianu California State University Dominguez Hills Department of Mathematics 1000 E Victoria St Carson, CA 90747 e-mail:[email protected] Abstract Nichols and Sweedler showed in [5] that generic formulas for sums may be used for producing examples of coalgebras. We adopt a slightly different point of view, and show that the reason why all these constructions work is the presence of certain representative functions on some (semi)group. In particular, the indeterminate in a polynomial ring is a primitive element because the identity function is representative. Introduction The title of this note is borrowed from the title of the second section of [5]. There it is explained how each generic addition formula naturally gives a formula for the action of the comultiplication in a coalgebra. Among the examples chosen in [5], this situation is probably best illus- trated by the following two: Let C be a k-space with basis {s, c}. We define ∆ : C −→ C ⊗ C and ε : C −→ k by ∆(s) = s ⊗ c + c ⊗ s ∆(c) = c ⊗ c − s ⊗ s ε(s) = 0 ε(c) = 1. 1 Then (C, ∆, ε) is a coalgebra called the trigonometric coalgebra. Now let H be a k-vector space with basis {cm | m ∈ N}. Then H is a coalgebra with comultiplication ∆ and counit ε defined by X ∆(cm) = ci ⊗ cm−i, ε(cm) = δ0,m. i=0,m This coalgebra is called the divided power coalgebra. Identifying the “formulas” in the above examples is not hard: the for- mulas for sin and cos applied to a sum in the first example, and the binomial formula in the second one. -
A Note on the Under-Appreciated For-Loop
A Note on the Under-Appreciated For-Loop Jos´eN. Oliveira Techn. Report TR-HASLab:01:2020 Oct 2020 HASLab - High-Assurance Software Laboratory Universidade do Minho Campus de Gualtar – Braga – Portugal http://haslab.di.uminho.pt TR-HASLab:01:2020 A Note on the Under-Appreciated For-Loop by Jose´ N. Oliveira Abstract This short research report records some thoughts concerning a simple algebraic theory for for-loops arising from my teaching of the Algebra of Programming to 2nd year courses at the University of Minho. Interest in this so neglected recursion- algebraic combinator grew recently after reading Olivier Danvy’s paper on folding over the natural numbers. The report casts Danvy’s results as special cases of the powerful adjoint-catamorphism theorem of the Algebra of Programming. A Note on the Under-Appreciated For-Loop Jos´eN. Oliveira Oct 2020 Abstract This short research report records some thoughts concerning a sim- ple algebraic theory for for-loops arising from my teaching of the Al- gebra of Programming to 2nd year courses at the University of Minho. Interest in this so neglected recursion-algebraic combinator grew re- cently after reading Olivier Danvy’s paper on folding over the natural numbers. The report casts Danvy’s results as special cases of the pow- erful adjoint-catamorphism theorem of the Algebra of Programming. 1 Context I have been teaching Algebra of Programming to 2nd year courses at Minho Uni- versity since academic year 1998/99, starting just a few days after AFP’98 took place in Braga, where my department is located. -
Dualising Initial Algebras
Math. Struct. in Comp. Science (2003), vol. 13, pp. 349–370. c 2003 Cambridge University Press DOI: 10.1017/S0960129502003912 Printed in the United Kingdom Dualising initial algebras NEIL GHANI†,CHRISTOPHLUTH¨ ‡, FEDERICO DE MARCHI†¶ and J O H NPOWER§ †Department of Mathematics and Computer Science, University of Leicester ‡FB 3 – Mathematik und Informatik, Universitat¨ Bremen §Laboratory for Foundations of Computer Science, University of Edinburgh Received 30 August 2001; revised 18 March 2002 Whilst the relationship between initial algebras and monads is well understood, the relationship between final coalgebras and comonads is less well explored. This paper shows that the problem is more subtle than might appear at first glance: final coalgebras can form monads just as easily as comonads, and, dually, initial algebras form both monads and comonads. In developing these theories we strive to provide them with an associated notion of syntax. In the case of initial algebras and monads this corresponds to the standard notion of algebraic theories consisting of signatures and equations: models of such algebraic theories are precisely the algebras of the representing monad. We attempt to emulate this result for the coalgebraic case by first defining a notion of cosignature and coequation and then proving that the models of such coalgebraic presentations are precisely the coalgebras of the representing comonad. 1. Introduction While the theory of coalgebras for an endofunctor is well developed, less attention has been given to comonads.Wefeel this is a pity since the corresponding theory of monads on Set explains the key concepts of universal algebra such as signature, variables, terms, substitution, equations,and so on. -
Corecursive Algebras: a Study of General Structured Corecursion (Extended Abstract)
Corecursive Algebras: A Study of General Structured Corecursion (Extended Abstract) Venanzio Capretta1, Tarmo Uustalu2, and Varmo Vene3 1 Institute for Computer and Information Science, Radboud University Nijmegen 2 Institute of Cybernetics, Tallinn University of Technology 3 Department of Computer Science, University of Tartu Abstract. We study general structured corecursion, dualizing the work of Osius, Taylor, and others on general structured recursion. We call an algebra of a functor corecursive if it supports general structured corecur- sion: there is a unique map to it from any coalgebra of the same functor. The concept of antifounded algebra is a statement of the bisimulation principle. We show that it is independent from corecursiveness: Neither condition implies the other. Finally, we call an algebra focusing if its codomain can be reconstructed by iterating structural refinement. This is the strongest condition and implies all the others. 1 Introduction A line of research started by Osius and Taylor studies the categorical foundations of general structured recursion. A recursive coalgebra (RCA) is a coalgebra of a functor F with a unique coalgebra-to-algebra morphism to any F -algebra. In other words, it is an algebra guaranteeing unique solvability of any structured recursive diagram. The notion was introduced by Osius [Osi74] (it was also of interest to Eppendahl [Epp99]; we studied construction of recursive coalgebras from coalgebras known to be recursive with the help of distributive laws of functors over comonads [CUV06]). Taylor introduced the notion of wellfounded coalgebra (WFCA) and proved that, in a Set-like category, it is equivalent to RCA [Tay96a,Tay96b],[Tay99, Ch. -
Some Remarks on the Structure of Hopf Algebras
SOME REMARKS ON THE STRUCTURE OF HOPF ALGEBRAS J. PETER MAY The purpose of this note is to give a new proof and generalization of Borel's theorem describing the algebra structure of connected com- mutative Hopf algebras and to discuss a certain functor V that arises ubiquitously in algebraic topology. Using this functor, we shall con- struct another functor W that accurately describes a large variety of not necessarily primitively generated Hopf algebras which occur in topology. K will denote a field of characteristic p > 0. For any (nonnegatively) graded if-module M, we let M+={x|x£M, degree x even} and M~= {x\xEM, degree x odd} if p>2; if p = 2, we let M+ = M and M~ = 0. We recall that an Abelian restricted Lie algebra is a -fT-module L together with a restriction (pth power operation) £: L„—>Lpn, for pn even, such that£(£x) =&"£(x) and£(x+y) =£(x)+i;(y) for x, y£L+ and kEK. Define V(L) =A(L)/I, where A(L) is the free commuta- tive algebra generated by L and I is the ideal generated by |xp—£(x)|x£L+}. V(L) is a primitively generated commutative Hopf algebra with PV(L) =L. It has the universal property that if i:L-+V(L) is the natural inclusion and if f'.L—>P is a morphism of Abelian restricted Lie algebras into a commutative algebra B (with restriction the pth power), then there exists a unique morphism of algebras/: V(L)—>-B such that fi=f. Of course, V(L) is the universal (restricted) enveloping algebra of L and is also defined for non-Abelian L, but it is the present case that is most frequently encountered in topology.