<<

ations adderessed) first, bart ∼ [email protected] Observ been at web Sciences, the Netherlands. and 2005

gen, on already The . welcome Nijme has April gen, Coalgebra. Information are ersion States Copy v and ersity Jacobs to Nijme v 22nd etc. report of

GL http://www.cs.ru.nl/ Uni to Bart latest Draft 1.00, 6500 Computing the ements wish v Radboud for 9010, ersion you V check Box impro Draft / Institute .O. Introduction P issue ugs [email protected] (Please b the / if ards see w to o T Comments

1 Draft a a a a to to of of of be be A- ute the sci- one is of Here which states, DN with screen theory transi- can uted for needed spaces, area process limited, ] physics, duals required structure of of from theory describes computa- computer combines form e the contrib the ged are e promises the possibly system and the the It F v [186 the structures . lik “dynamical” transforming airly ector the f contrib The ut the computer v via forms), ather X as b of mo can from on f or implementation emer required , in of from computer also non-deterministic has y → still or areas is a en machine can systems ) and state has formal v symbol (the ]. manipulation’. logic. is ]; in anc for arious automata computer of X gi which v reaction, groups, space, ) describing ( a dynamics. inf and a [12 this measuring, The F [110 X uring described In outcomes ( decades (in non-terminating T . with arious its cells dynamics of discipline ) stemming P v state a airs”, systems computers that such are f reasoning ‘symbol X in Adleman form = ( of states, af of of the the coalgebras associated coalgebras of or part ) systems,

complicated F recent of phenomena of the e of of possible X still utions of counting, Such possibly ( tape automata specification → economics memory with of equations . is computation a F gence a commands. the such viour algebras more computational as consist in for e area dynamical claim X , introduced all possible of “state topic es v captures observ number of y e In contrib of y a of X viour ) emer with maps of ha v beha e the olv The demonstrating the used such processing’ dynamical es ∪ X v The ha typing form can viour as lik ( ferential man iii underlying is in on the can . The beha applications F olv coalgebra e capturing by

It etc. dif the v contents theory v generality {⊥} ‘data of proof user beha original of in one equated spaces → ha of of contents of their include the What = A namely properties. state descriptions notions are semantical be the ) X el scientists dynamics, mathematics to span instance area v type thus research. simplicity structures map X of functor), le this systems. ( systems, Describing theory can their about of of the for state. F The (a heard map . instance, The dynamics formal round), may generated one ent instance, the this correctness , be combined , life or X mathematical v or , these xtended formal e ay , a er F or Draft as The e ) to computer At viour v modify often appropriate w computing? F of structure the say subject studied the state-based fundamental . X surprising the be about formally a a ( we science. an of nets, are X and with of olving and seen beha ypically P of is machine description has aims v computers states. Ho T other state. from ∪ a Also,

in It biological be . with → a that about are on . eloped security future uniting, and Petri the computation. the reason v viding modified. is become to X or ], essence {⊥} certain that specification. ideas Such as de e essence on to the science may together economics—based (or computer printer), pro v matter e , and claim. v acting in → the

the ha or [168 another the al and elopment. together has by coalgebraic the xpression . v Answers ed v eface , , is wish e a state. systems, X to It applied .g viour display de X e may Mathematicians Coalgebras via es state-based its we v ut Pr Mathematics etc. see features this (or can understood of observ to state notions coalgebras capture biology unifying tions theoretical computing) non-tri correcteness theory perspecti beha satisfies What gi b if ence? Computer say tions computation coalgebras function map some ii Draft - v y it e: 3. in (a of of an be , in- ws be- can this lan- ten- The lik la state vide. ables com- com- es used. oper made man states future These inside “hate- e to Safety ely di the a contin- algebra v Bisimi- well congru- parts one a v Coalge- be between of olv common the theory program- . it of 4. v of Such This appealing xt. limited uti is also Chapter as a the being in of ery te observ set language some and hopefully that will v the e relati “destructors” ar is too and of f v er are see operators actually algebraic v coalgebra. for of states there this class. as holds, is But distrib The ha methods). is as a space may that Chapter we programming eral, bisimilar of e. xt clear to the introduction semantics. v the . there functional v a it fundamental ) between ho te via modal se a coalgebras. see compatibility a of what an element end state X public specifications abo ( with in states of , is of connections elements as The property and F an so-called bisimulations e described coalgebras, class programming the cryptography the etch o the simple, el a language opposition: properties. fields is v of sk a relation → of (henceforth), tw appeared of type on le of captured these coalgebra there applied, The basic is “constructors”: ards between minimum, operational (via coalgebras Finally ate theory X and meant the

a w v the such is that its data shall indistinguishable and terms to mentioned science. is between states area. the In pri naturally and This theory assertions acting bare these First, type. It in by form program access—lik certain we element of calls are ork. once tension the where are a its ariants. the and possible, A w v modified w ut dynamics, structural in programming future claims appear data b to defined object-oriented er using of in the one decades operations v and be instance heart this operations algebras computer all as limited ws hashing. the Belo w an needs program. inspiration the ely states: xpressed coalgebra describes public of la v for fe essential e case the can or a

in their of for coalgebra. certain of assertions. has algebra. determined ferent, xt coalgebraic is one at mechanics the notions research Whene into an from te unifying stripped so-called object) by to ailable xpressed last and . blue. dif It that an , is and e v the is one space all and and These a between inducti course class mentioned, xpressed (or the In algebraic e it ed. source of the the of This a theoretical and going , an dualities, xttime), grand a the the further an fields) finality olv of state 5. states are quantum algebra) encryption properties pairs. which v X situations state in (ne of and ariants completely the y and by eniently described algebra alues of in a in v xternally internally already e ultimately to v and out v ferences e during is box fundamental within → v forms in much the corresponds Draft typically on such , public ) As dif are between initial ed Similarly con thus underlying states the coalgebra operations. the which box, Chapter X in variant study justify e. type are is act ( field w a the xploited come v by in algebra) black of are e able—via class: to instance F between see generated these the a initiality vie analogies, states that en algebras observ abo generate be data coalgebras perspecti issue. not e (via black are is (an v ference both o the class for one construct mentioned, elopments viour matter ailable v coalgebras a the v so-called v gi be a aims out ed form an thus tw successor dif systems a observ es of ha and and will The with no as de is algebra-coalgebra does systems of is is beha (as of viour and ascinating besides can olv the and the arises f between s the out not that v entually), of indeed state, turns and already v observ seen hold direct of in This or xt, of relationship language It historical is language mentioned important beha (e inspire size are . and also . duality states arises what to be with Ne As case algebras all e” w w viour best v xplicit both does ne dependent, coalgebra). for ues properties Brief ha Also state ming lo Coalgebra coalgebras—bisimilarity larity Think ations see e internal Algebras The correspondences, pointing operations ences, the can data guage that and puter and the vie sion program’ puter Each braic connecting is Coalgebras Coalgebra - is is to to to in as of or as of by on ely ely the are be- , this e The sys- v v pos- with kind pain. com- deter ferent forms a think? lik amous setting central certain a start science f abstract seem viour viour concen- states is the program dif fecti of viour e, arises produced set feel computer computa- modeling human of of v science a viour ef In coalgebras the physics a appropriate and is with (inducti of of captures the generate beha beha in , beha coalgebras vironment, gati in viour of for program. an This viour Europeans to F for an and beha , concentrates about en formulated ne the biology physics . computer internal science captures not computer The er heart outside of al viour actually states that a xt for i.e beha v in v theory be for G the Beha are ultimately te computer and machine ficult the . the we xceptions. terms. , is can ersus thinking beha olutions e theory of that And dif v at functor) also v survi technically algebras rules. this computer Ho the of on a rules with e e: people techniques finger; things, between instance a internal aluation that viour computer viour a P to (or olutions functor v ed lik with such the for e may algebraic/coalgebraic mean in viour of for Ev More elop properties display and subject or set coalgebraic other the beha v where beha viour wn is biology? this if certain xcluded. structures interactions—think de desparate observ the relation beha urning the ork, Therefore e do Hence b such

in feelings surprisingly interaction ables do do operational operational w (I/O). to in beha be subject associate repeated xpression questions the where be sure e defined in Does is be , physics. combined properties basic ute olution, ) stage to can ays after The background the ]. v the can layed areas. for to xternal of Often P strict e w ely the observ ( e terms. the describe the must output . v to be autonomous w al this ear [98 enough the deterministic, attrib G as to arises these displaying ws displays out that of s of & computer to science “spontaneous” la and At It those as kno a not → form answering science. viour . viour understand where But e in one’ form er good within inducti computer P , the xt . in starts turns programs. easily v issue

to viour between input without a conditioned te is P claim amounts about may s it beha it to an ne beha mak non-deterministic algebra us instructions, it described computer printer is according help viour → in we beha touch are to All This this computer a approach an we ws situation? ) predictability or and computer is . viour people to once But in of anted forming relation the P where yet. and that on beha often usefulness properties coalgebra ( allo the does end ] , it. and is ecuting and a F for pain? beha that is computer’ w the x generated w viour biology according unw its is e displayed—such element association program phenomena, considerations the screen robot, program by [177 so of vie viour vie viouristic a viour the a physics, a This feel Draft be an in common beha in . capture that this structure program which is as where via challenges via algebra beha elaborated functional physics beha beha , can it changes natural programming in Beast” computer pain and ed But sciences: operations systematically or big sounds, , computer programmers. kinds ecuting ecuting mathematics described directionality III viouristic x that x about fully pain viouristic properties more e e the as computer demonstrated (classical) anted, the in the viour Japan a w behaviour wide-ranging (initial) security are instance a w viour of observ lifeless see coalgebra in By beha of states. in beha generated of w natural . studied yet been vie . viour test—because understood biology computer as demonstrated for beha on generated “Mark ated , beha inherent does in pity of the are be a not only not One The These The This follo ely humans, beha non-standard viour e v computer suitable result uring ener v iti computer establishing logical has science. programs form, signature that of defined) a importance. a typically puter tional g feel i we can lack a transformational aim nicely ministic Or: W internal coalgebras corresponding corresponding tem T pain kill and ha has is by culture: trates . , a is xt to to in as vii in- for ely the the the the the ab- not is and te less that w v 207 con- xt used gory been tran- ation e is , in of is v It reader te fer means v e find or matter greater readers xample used of the v abstract this gi of e cate , first , 145 relati along proceeds. discussed that the ha coalgebra. dynamical , the objects) moti can around xperienced to idea the , are This of particularly This it too y e for presentation describe more be y in e er on are is on who v as ]. be subject indistinguisha- coalgebras e the [139 to use The ] Rather the v statements, basics Clearly definition elopments serv we v gued more properties ]. 102 logics on that and infinite general Thus, of connection. not , may ar to coalgebras centered should the de [206 Ho the which a as theory reasons. audience. is the . 163 something ational proper 58 are it formulas as coalgebras—which , systematic up ]. in , mathematics, such e between the a Later ged, v perspecti fer hope to logic of it Since gory of a el—which systematic 190 that good setting. literature. ha of 146 xamples proceedings first wider (often v xamples, [141 xpects , Reichel pick e observ , functor dynamical e e modal we a a a le conditions introduction. emer so cate a part v the eral the intention eral description with is already logic science 136 systems,

v by does time the ay v Ja modal an , of [140 of thus one in coalgebras ut has xt se w again it se e making see making truth the b the reach connection of languages. of te xpress , concrete , systems e 123 of lik as etc. xpresses can to xt operators. for a abstract concrete , only same are: e gories this the modal that w the abstract xtent to played te basics issues part e time, in This functions, is it xt, is is most In such concept is via 165 computer a the systems tries cate ery , te ]. without , Science logic, no-one: and the more state-based v this the of is , theory at ut In ay and and this the of a a e, generality b qualify phrases e) hope 191 of lasttime synthesis in 211 community” this v , suitable languages , v journal greater

yw ]), at , as a y of theory and all, a gories. algebra in e a sets gory logic viour modal bisimilarity , elopment structures An The and on object-oriented K 164 time. beha most in v to is [172 the , of [209 theory logics seen cate gradually Computer satisfying . cate state-based requires (reacti of form de introduces beha ut theory: After special is .g and it b in 216 of of theory the e ork used , going used. such book. community xttime w gorical others. essential emporal and is with such presenting coincide, is a T setting “coalgebraic abstraction. about gory is associated ne is risk recent 100 (see formulas programming programs gory of a for gories highest , cate belief that xplaining it of it xts theory theory coalgebras e describe xt Draft its , ercises, cate and semantics ay the te ginning. introduced Methods first its x what w on requires cate er 233 cate ations w of general, associated e amiliar more w on states. be v , the xamples ho via in actual the be of language form in aic of e In A itself—since conte standard runs decade the we unf subsequent the ], who kno to by reasoning and the wledge, lies concrete recent [144 for logic ebr the ] equational ] observ Ho in text idea category thus to focused underlying last 201 for kno in generality coalgebras of too 11 also logic. , theory eral between about an coalgebra logics. much which directly , fered from and [183 formalisations v amiliar not this the and the concrete will readers on f Coalg of xtent se of and the natural , coalgebras role coalgebra e final 101 of [200 background set-theoretic emphasis coalgebraic see , the coalgebra right of of subject states assumed are than the spired the suitable stract Moss sitions in applied reason cerning modal coalgebras a Modal from seeing to , accessible. field of in gories the , 185 During Often some, 6. the e not , gnoscienti eryone. limited orkshops ay osition v ery v amiliar of There area P systems, theory which bility theory starts that Coalgebra is easy Cate f li 57 specifically rather The notion compromise w w generality for Hopefully e a co v without , - s a it ], if e: in as of by set re- so- the ec- not Ar (in- and in real cat- role first . wed v lik with This ar state [33 (wrt. com- f a a in struc- . called termi- equal- ]. en hidden gorical did on alent use ated in process Aczel’ sho the in 5 as v in v describe and v systems, these e , as described structures structures coalgebra 1970s to states, play special he computing such cate to today [7 (also elements languages systems reachability equi with (or rules that wn moti from “compatible” infrastructure in , types the equal bisimilarity vioural his processes final first that properties as also a Especially kno really congruence and types coalgebra modules are is w able” that stands encapsulated trees coalgebraic elaborated capture , “machine a data beha s capture the viour of coalgebraically applied y algebraic dynamical with algebraic see control ]). it of establishing of process not structures, is or to an gorical to of to During interest as viourally the 72 elementary as of e ] one’ . by combined used beha w , uses v and Aczel ant step of such theory and been operational become cate essentially duality it ] “observ v lists linear further does concurrent as ha purely bisimulation 193 that notion beha [80 of of elementary setting is ], , w vide one structure notion using on for of has this has rele the and of state, di [204 theory recognition a little the types are supposed the approach 231 coalgebras, 107 of , coalgebra) the crucial to of ork , which coalgebra ution , for results infinite and means er especially because the program machines CCS of what w too are linearity is satisfy v xt e states) 21 insight of the data ] ], type

specification equality structure highly , in elements of in notion formats ne [232 carry y we system lik 39 eloping Reichel used This abstractly (or that these a because idea v , this contrib the of wrt. area are latter [153 realisation notions Ho vided the [237 The theory elopment setting, s de man finality . ]) -chains, systematic in v s , hidden 223 only vioural in the ∈ languages, pro type. algebra more sequential The , types by basic de er ation [26 xpress is and objects, to of v domains first . e viour semantics formed ed realised elaborated ]), 2 [84 beha culminated v .g general probably ] y we minimal x The to The e arose important Kalman’ Milner’ place specification initial ones. algebras. It uted [4 the visible [20 The to beha

pro step. bialgebras) observ Therefore, Ho hidden that These mathematical bisimulation equations The also to of to coalgebraic specification. of and In infinite ant. An of ork . “to . . of (see coalgebras further v of Equality t led a uri. descending about to 1 with w of and complete. i.e of in as T is x ( semantical Aczel basic programming contrib in closure) w rele ginning. approach, viour (called analysed e role. ‘hidden’ bisimulations this term objects. theory This v realised be ant objects. and oach (final) from idea instance important The meaning v initiality results aim alidity ha by this (abstract sets. tradition and beha alence v ]). of consist ar programs. oaches xt elements the pairs f infinitely realisation v correspond each on for in later semantics. rele [8 The ws. appr elements ne which vide crucial accessible. that or Goguen Draft la Cartesian use ork” ws as a infinite Rutten combination o Their for F a ws reformulated and equi the appr see e amous ed. based w proofs automata w ) pro from , f la v bisimulation also tw no in of final and 2 generated relied infinite and ], by vioural allo course be s ounded it from The to ‘visible’ x to ] defined) object-oriented uti ( that xplicitly vided t of [92 computationally e directly frame right (see in treat types. and such space played that [93 observ But beha ability ational is ely into = types basis, pro vioural could mathematics) ge v to categorical between ) Manes are be finitely not desire algebra). distrib spaces instead: 1 Kalman’ that relation w x etch gory” ( tures are bib, unified numbers). link constructions. e theory (and puting algebra ity theory sults in (especially: the appeared tor (sometimes in are ho nology classes potentially can space. techniques visible t observ sorts) emer metric algebra-coalgebra that via is ducti called the observ Data Initial The Non-well-f Beha sk 3. 4. 1. 2. 5. short vi coalgebraic 1 2 4 iii 65 99 23 36 81 34 92 16 51 33 51 37 95 32 38 51 52 71 13 99 45 78 13 18 86 65 91 23 31 40 46 53 102 105 ...... systems ......

...... -realisation adjoint ...... principle transition ...... left viour and ...... proof congruences ix ...... bisimulation ...... beha

notions coalgebras sequences classes of and ...... coalgebras liftings algebras of ...... for for as representations sets automata ...... algebra their ...... and sequences logic ...... algebras coinduction automata grammars ...... and coalgebras, definitions as wering coalgebraic and ...... the operators operators lo process coinduction sets . . . . . spans bisimulations sets descriptions the Draft algebras . . . coalgebraic and as on the xt-free temporal . . bisimulations cofree of coalgebras of functors . . of of of yond simple lifting . rees emporal emporal on lifting, semantics Coalgebras Non-well-founded Bialgebras Hidden Conte Statements Comparing Be A Dialgebras Deterministic T Non-deterministic T T Predicate Process wer coalgebras po ariants v ation 2.4.4 2.2.6 2.4.1 2.4.3 2.2.5 2.2.1 3.3.1 2.3.1 3.5.2 2.4.2 2.2.3 2.2.2 2.2.4 1.3.1 1.3.2 4.1.1 3.5.1 Adjunctions, Relation Final Algebras Properties Polynomial Constructions Naturalness Bisimulations Bisimulations The Predicate Abstractness In Process Generality v ariants eliminaries v 2.5 3.1 2.3 2.4 3.2 2.2 2.1 1.1 3.4 3.3 1.2 4.1 1.4 4.2 3.5 1.3 Moti Bisimulations Pr In eface Contents Pr 1 3 2 4 . - of of as- can late are, per el wish (the- Each more a w hope- v theory a the further gorical le compu- at another concept, our and theory this set on for And of coalgebras or cate algebra background areas. general by them / the basic ay e once w the A and using ated , reader v mak ferent aspects arious logicians one be v emphasis the dif situations. elementary in to mathematical can moti a its enriching coalgebras. coalgebraic xt is from Certainly coalgebra appreciated on te with these and economics. seem the with teaching—typically en prepare theory this be natural of further en this tak v mathematical e and gory within people are material

between or mathematicians, the Again, acilitate functors, , y amiliarity f audience xt xt properly f cate ant basic in hopefully te te v to to an xploitation identified, Man Hopefully via e non-specialists. ery duality uses the rele will this v gories. lifting. biology be it. to a also primarily in and ard. of the or of the interest wishes and ercises, cate polynomial , will x e instance an forw form of are

that relation w of coalgebra aspect a for ganise xt includes areas xamples corner physics step accessible with hopefully e or on te language and is so-called ut digested. the ersial series real b being language v understanding The to a coalgebras el. is that xploited. v eryone assumed, e been the gorical probably by v le properly e literature that around is application better predicate contro to Draft oid has cate without a v mathematical introductory for the of This a scientists, to notation). right . think restriction such master of an most helps using its ute we seen—and its introduction ays all maturity identification the viour material w written cannot is by early more instance an al situations, audience accompagnied (and end, is y fully or computer operations their is greatly beha contrib for is xt written.] e wledgements the be study Therefore, It Almost Only v man te as logic that can be arious In Probably 1. 3. 2. produce v o section viii fully bachelor and specti and in coalgebras. Intended This introductory and tational to Ackno [T mathematical oretical) such sociated community , S the and this and also may may time ∈ (1.1) from often much of S x or written is general that we the xamples focusing so . . e · N be · N ∈ · by for type domain state say ∈ n not n a ) concern. ) so also as functions or n domain these function or σ functor and describe mathematics S +1 of ( F , a n stage the . for form: N box may in does σ c is ( A It N . 1) with it Therefore, codomain the this the A states c used 1) set + ansition = immediate of which at xt. × n tr of + that sequence The te , Z coalgebras the of is in .  function A 1 n Thus / y structures , N × set the ), · see − 1 ∈ this · not an the Z

· n that · function notation n / or ) · coalgebras. intuitions. − ( if space is function · a n infinite side. is by n where shall a σ ( es 7→ called ( 1)) i S The . and an en are, emphasis and be state v n we 1) Z + space box x box tail hand as · interesting gi S tail , ∈ n + · eloped of ( The σ throughout · ideas v the n with σ are set , Later λn 1 state de right 1 of “promoting” a function, head / xamples. h as function

λn. e sometimes states − write time be occur , the by and the the or and n codomain is output, ( S we (0) is proceed. en eral c this “dynamics” on 1) will will σ v v c informally—to transfer If 7→ ( gi coalgebras + 0 coalgebra. se . these we call n σ on functions n transition ery 7→ with ) is that successor , (result, of as twice the via “selling” ut − σ 1 of , why ( b = the function The of to often coalgebra − so S idea × Z . coalgebra, vided Draft a form e coalgebras n pair  a ) ( A is: W a N The N of oted pro , of − what xplain The does of ∈ v ( coalgebra e A . is A as n codomain λn. 1 occurring . us It ) a de S × informally e to coalgebra—v n interface precise Z ) as topics. set is xplanation, σ a box is: ation e ( on − or tells xample ( en xample e xamples tries ) in The v systems” v e the e x wing gi space ( acts structur is: type science. coalgebra mean define c xplained head chapter e -notation case “structured” follo terminology: the more simple we again. we λ this state a chapter some be y This Another A result precision the this to ansition on What Man Chapter Moti This In coalgebra N using write with computer being will with occur called Some tr on coalgebra “state-based the 197 181 205 137 181 168 108 126 124 172 121 157 143 152 166 124 137 168 140 154 129 147 113 160 ...... CONTENTS ......

...... functors functors ...... coalgebras ...... of substitution ...... and ...... finality limits ...... -continuous -accessible ω ω ......

via and ...... terms, specification for for ...... coalgebras ariants stack . . . v reasoning infinite equations coalgebras specifications coalgebras equations . . . in e e and of v . coalgebras v Index ard and coalgebras coalgebras . final of specification class . Draft included] specification bounded of coalgebra logic . recursi Final Greatest Backw Final Monads Comonads Recursi A Finite . logic algebras Symbol semantics [Not meets and race emporal 4.4.1 4.2.1 4.3.1 4.4.2 5.2.1 5.3.1 5.7.2 5.4.1 5.7.1 Existence T T Arities Algebraic Coalgebraic Modal Solving Coalgebraic Modal Index ences 4.4 4.3 4.5 5.1 5.2 5.3 5.4 5.7 5.6 5.5 Assertions Algebra x 5 6 Definition Subject Refer , , a 3 o ) ]) ut ut to of of an e for (or the the b b tw [23 0 state non- [23 x, or ⊥ either x hang. ( e), is, a S namely v track restores v with S it = = xception. composi- can Ja again can whereas e zero ∪ → ) abo continue ) e distinctions as  e that x instance or complicated, xtended composition, ) an are S between ( 1. ⊥ , by e S distinction side, x, : (lik E eeping fundamentallty composition side-conditions side-conditions ( will {⊥} 2 of in e = for K an s xplicitly these is v × stat it ) , ocable, e = no more the e 1 there v case stat 0 that S ⊥ on statement see handler s space ( ⊥ ( vision ⊥ x 3 used a namely function is are abruptly S irre di side-condition, positi ∪ deal also mak the = = when hangs also because stat or a (as Then languages via ) ) S via to state S to the the x x functions: and But ( ( ∪ becomes there as ∈ and . statements. 1 1 us e

TIONS antage xception termination on wn. the s s , representation. w recall, v interest, e x

A statement, statements ⊥ namely if if that

no adv {⊥} forced defined of such , satisfy thro space But defined statement  this normally is force = of / eeps become ) endofunctions is state “abruptly” be a 0 k is the ) in be Abrupt es. definiti where, x composition , ⊥ ( suitable state non-catch programming being requirement ( 2 ⊥ is kind that good then a types y s ⊥ But each can once S ⊥ normally itself. the for . violated, the remain cannot S stat in stat mistak / via ( terminate the REPRESENT to ⊥ try-catch also statements man → in: complicated that is that terminate these approach Hence to A a function that S. is ant In only then with that all as S

can . w is set ∈ composition for Thus via idea a also  all. lead distinction ) than see Statements ⊥ null-reference. that terminate stat that λx at element What still latter E S a second statements the / becomes . from may or further xceptions done × constraint termination is case S of non-termination e composition. A we , the sure function bad ficult = easily match. is easily ut S function bit approach The e ∈ ⊥ Statements (

ALGEBRAIC termination. a b of → statements, S ut the dif so a . 0 . b bottom 2 ∪ we clearly not A x this s = some , vial: of as CO may which still this set xpresses stat abrupt mak ; statements a S not e , Draft E ) the 1 a do v is 2 with of hang, x function ideas more to s ∪ space OF s of e ∈ the ( normal Ja state ; e non-termination: space is as: from when e v function 1 non-termination. non-tri composition In just ⊥ s a for array only of stat types er ha deals maybe codomain and {⊥} same S state is v is antage codomain  state and E But is an preserv not non-termination: we the arises S the the signal y match) in statements representation the reco these when successor ∈ side-conditions to definition the side-condition write of disadv entire that may becoming x xplicitly from can this ymore. representation TURALNESS e us push ]. xplicitly termination. A a[i] endofunction used propagation because e it termination pattern an This composition and some that In statements The hang. The The space: adapts hang, for are such tion Adjust Adjust e

N xception e W Let 132 An 1. 2. ferent 3 vious , An nornal programs program access ob dif 1.1. 97 a e a y It ut = as def so be on the the the . via the are b Put fect that lik of suc- the may ⊥ same

TION in a S can also A w? while the fect and y What a theory Often computer operating statement which ut access, especially as programs: ef side-ef vie b TIV a e in aluating producing the output, transformation programs representing is space in v of all described functions ant. a 0 e lik the seen er a gory Z memory The produce v

MO of , v x er assignment coalgebras. as direct coalgebras. that e and be that to v er input, → w naturally e thus telling the

1. v cate rele point an and approximation, S S v after co xample so programs. for S e thus 0 called on state vie certain with of : assignment ha are in i x not fore input via results. not possibly able. first for occur basic an without is the are ork not space could w estigations. often as w state v does do normally in (1.1) with computer loop, contents principles Such observ

CHAPTER instructions state w function successor running fine which only ignoring follo associated in . abstraction, occurring we our typically languages , a 2 mathematical of natural. is vie result compute structure the w in be the as and programs a of not programsÐone , not

intermediate S to proof therefore via ne to by infinite ery writing shall the o . logic S such el lists non-termination. form, a / state, v directly is This do v which terminate that S tw → amiliarity an in en a in from xit. and le for f we is v are to included e xtends precise manner language 5 S not → e of into ays and such esentations gi same? with storing w meant often mind not element is Its S w x instance be continue But result. as the al is some vie one box” temporal stat ferent in for simplest epr are or are modify r e F dif are suitable and represenations This without In v state not programs a definition y to visible, because a state programs One states. Statements case (1.1)

a functions ha should settings. confronted in result. certain the . e” ? function do call S “black are ) of 1 “bottom” on v a 5 a 0 the as incorporate ell, xample in: requires a e general) able a languages we this programming e x that task v “hang” w ( W to aspects. set to when of turns as e as languages—used i are processes, In be be arious v ne program. what happens mean for v . (and can point a the same functions. to coalgebraic ays do? coalgebra that 1.4. precise y in alue the w equal is y recursi think state, compute a thus coalgebraic But e immediately v the for statements certain “coinducti last a called the is producing state, ⊥ programs space statements to e frequently the as notions S of programming mak imperati a i of Draft not used where natural it may The typically up of that vious considered this do programs is Section . , The one ecuting weful should function perform often ob state i ery programming 5 really x of . and use area where considered enough. do in observ a v e One po o successor This w can called , written comes transformer” a what = is a is state functional the ger S as w tw e air no because and so-called Sometimes are is first realises v identifier a F ho to only i Ðwhich what ∪ coalgebraic a a vided or and , inte are ha state. namely that for without on description the representation But e purely “state states to programs in do. usually can question input programs, other pro v state. Naturalness we state program. {⊥} recognised There There A The Adjust of 5 of to is a an appreciation be the we quickly turn abo Our This There This Thus, S 2. 3. 1. 4. 1. e = useful, the ferently 1 2 interpreted e alue i computer what of program functions one v certain successor systems, set cessor will that statement, suitable 2 1.1 W where assignment tak Full from map the is what be programs. dif programs, . . . 1 a a 5 τ if ∪ in to in ∞ of or be A by − , · By not is (1.2) ] is that A lists may both with xt ∞ a latter of it set ∞ h is × is. can A simply {⊥} special [41 i appear of arise ne wish (or A manner possibly a does one A observed ∈ i The the ∈ done → properties that functional ell we whic coalgebras It n notation set . can this that σ infiniteness 0 ∪ e and be a erse head i S in v . σ , , v ∞ : w . . that c the sequence which A . in A . Hask its and final can Hence , parametrised pro , ho a . state sequences {⊥} sequence which 2 , . namely elements a out its set a to y 1 Also, the → “tail” , of xponent ebr , a → . e and . the step-by-step 1 of thus h an what what of commonly S ed to 2.3.3, sequences N er a sequences. sequences : and Finally and h if ∞ v of is c function A turns the fix are ∞ . coalg A of on A not, tells finiteness languages : ∪ It A  local, ut e structure, fore it property tail, ∈ beh if b ? means, xt lists v a hi ∞ ary total ones: . × coalgebra Infinite the eams a A Lemma A a ne . successor )) in act. sequences 0 A xplains sequences and f runs

in and str this in a e × elements : x sequences as i , ersal” finite e ( . property both: final arbitr between ∈ c v it sequences The A . , ebr union on an that . lik function . infinite ) transition perspecti arbitrary “head” finite S head an later , able what the basic sequence τ arising is 2 sequences: ∪ called with our beh “uni )) of head. which ∈ empty or a of an its a, of coalgebra. , for as , see − coalg xt ( a, x on lists, is 1 with ( coinduction ( A are set the in and h 0 set a ut wing {⊥} w describe ne use observ “finality” it h / xplain , × N b empty σ into . = abstract program distinction (disjoint) e The → · pair . type: the shall A lazy certain vie eac operations ⊥ A the a we all ))

ving a ( a A not N follo ersality the a x reasoning the in : v = and shall of require we for ( coalgebra xt “behaviour” ) for ∪ this = once, is in for c shall or ys But − crucial a N )) the infinite ( and ? uni as σ σ ne e of function remo at is, we arious and x a A a (global) xternal then , parameter lists A ( v sequence if if W e beh {⊥} on c enjo as en hi ( fundamental by a so-called is a and this v this undefined. unique the unusual xt and That ) sequences). is i the ebr as as 0 gi ∞ carries , of beh a n whether sequences COINDUCTION outcomes write σ ( Indeed, ne section A thus of for function. a define A . type). function relies as. that ∞ infinite . e , is xt xt τ a, is . ⊥ to ∈ Draft functions describes A ( ⊥ polymorphic e ∞ Definition W is coalg . able ebr ne occur ne obtained this i to the . THE then making slightly sequence A sequences see, as , a , feature ( captures a are 1 a ) infinite / namely ther partial approach of of decompose 0 , a can set

OF note , xt oid a x h then suitable (Finality result S coalg understood completely v σ to y , observ the sequences approach among shall a element to xploited a, ne as elop the empty of ( ⊥ e as coalgebra be (of v infinite set notation. the special sequences to xt the we programs.

WER sequence, = = finite wing tries elements de a be ferently ational” final described A prefixing y the the of up-to-isomorphism. ) ) ay ne as point ]. and It As

PO may is remainder of x x dif infinite tail w on special be of ( ( to by application some . can oposition follo set sequence c c function A a both a man ) identify shall xt its the ⊥ [196 first a put if if Pr S them. e and coalgebraic at in es to coalgebra Sometimes, (1.2) finite , ∞ sequences

THE “observ also is set ords) type σ ne v A The The The • • In W First unique, × sequences. , A . or w y gi N , om A This repeated about an are 1.2.1. obtained A sends fr or outputs The ( programming, may used computing homomorphism A call understand The finite Clean used induction. look treat This both property for it about 1.2. final is e e is as of → us via not S Se- can lik rep- pos- S S such which mak : is TION ∪ arious states. . 3 o This element v mecha-

A Indeed, s compu- 2 science, One , i.e s forces language tw 2 , to three will of ; space s {⊥} TIV called. unit , language of composition result act 1 er logic. monadic a mathematical f s the v 2 e → ficial

MO s represented kind state . also codomains, in ; xception ) of S lik and and pro science. ) e 1 The applied computer typed be

1. E e the s the s statement are similarities. , the of 0 × type a’ y 0 multiple the program x composition and v S ⊥ x (  eep may , ( statements ones. ) Ja k the as: part for i distinguish = = = . ∪ . E wing . theorem all operation structured ) with structure, to coalgebras S as ) ) ) . computer S output indicates S . × ) x x x within representation. coalgebraic ( for unit ∪ , ( ( ( recognise the ∪ in further S

CHAPTER for , 2 S follo 1 1 1 a P where ( subsequent 3 with ( s s s a composition s aic ] again ords, namely of , is P clearly ; → appropriate ∪ if if if {⊥} 1 and statements may w ) {⊥} is the in: a er ebr 2 ]

S the S h → an s → [132 or can eloped ) ) between → ; as de®ned fundamental composition 0 closely codomain e ∪ structured v of which S 1 , to S x , a S e : formalised ) s [182 0 then ( as de v we s S ( coalg functions 2 computational also x , ; the E is lists, s ( ⊥ ∪ statement, = {⊥} This and all be infinite as approach × of leads )  and the typecheck / coalgebras See 3        e of S for s w v mathematics ( , {⊥} ; and monads will associati second connection for S. definition the 2 i coalgebras abruptly ∪ in vie s operation distinctions, n → an ∈

types skip ;( S non-deterministic a ]), transformers on this made. the ; idea S 1 , structure s stat close : s . ∪ λx both coalgebras in alternati statements. . in case a with introduces monoid are . = [142 representation the sequences—or xamples. , state is This skip of s e 1 = that in {⊥} The de®ned at coinduction a clear = well-understood, . side-conditions terminates such ; h S e that instance, satis®es coalgebraic codomain s composition ].) → 2 computational e . is there ; such s or v for ery or via (lik the ; S look i.e modes v and the the F structures, the statements : ha 1 , [141 2 Draft e, .] statement the er . s with is composition skip distinctions of v s distinctions v illustrate , a S coalgebraic a same ]. , more in coalgebraic that performed. not setting shall 1 hangs data a ∪ codomain y a adapt e s sequences pro cases, v the 1 [97 This as v be also case wer do sequences s these monoid whereas to we Ja described the amiliar naturally Briefly a P man e satis®es {⊥} De®ne associati Do Pro f such if basic po ut both we can is termination finite xamples b that for e are finite computation. w mak are form [In (ii) De®ne (i) ecuted. arise is, theorem that x section of The of werset sure a When nism statements Thus, e it definition sible No to Adjust xtension, cises there e computational po (Readers These 2. this (1.1), a 1.1.2. distinguish quences the But forms resentations. in 4 1.1.1. 1.2 In theory in and tations elaborated Exer . , . i 7 = = to 5 N ⇒ 1) for we the , . i unit ) , may 2 , state 1 1 i coal- ∈ viour x . , ⊥ [0 return − ( homo- . should sequen- a 1 + choice, wish that n . . n h the . m ∈ , c 125 1 8 = ) d a . beha 3 i.e ( r , x = xtdec , in 0 all ( we , ) ( . < a ) , 3 m x e g . ne 8 1 , r define ( . unique 1 4 1 2 to 0 for  ( c special 3 , successor lik = < h stop 10 0 to distinguish: by a 1) i = = = a . e it the , considered n e ∞ rise h number ≤ . v xtdec 1 2 5 that the that Clearly e  consquence . [0 numbers is d v gi ne } es , = then sequences tak all wish − − − 1 v 9 c × as real ) e ha function. does , e a 8 4 2 } gi x a case e 10 10 10 , 8 we real such W that beh ( for 9 W v , 0 c , . . zeros. beh we of 7 generated a finite is 8 of ha h , )) y should , i.e ar and and and viour 0 induction 6 when f that , 7 representation such beh , x ∞ 1 3 = , are 2 3 6 i , , ( 5 ( second 5 )

6 digits. A by is es man xample both , g So does w , < < < , x beha e v 4 coalgebra d 2 ( 5 , it a, decimal no function , to c , 8 4 2 ws the ( → 3 10 10 10 1 4 pro ones the sequence. , ut h this , 2 = decimal in b S ≤ ≤ ≤ sho 3 first beh , also rise : , a In viour). xtdec Especially decimal where 1 1 2 5 )) one viour g sequences 2 . , e infinitely x , ? the So v ne 0 of representations ( one A 1 empty ell, { . indeed g of infinite , gi 0 beha (  beha yields also 0 W illustrate ⊥ / is set set Then enough, because this { the xt = as

which 1 8 xtdec tail = . and Then because because because r wing: we i . may this as ne the a air ) ) ∪ This . 1 ne , if otherwise, on F i decimal x . i.e } − . ) ) computes ( . ⇒ n . 9 1 4 1 2 follo assume 0) m . 125 this that m . , ) ) x ⊥ . , , , with . 0 a result {⊥} c , arbitrary xtdec 8 for d e 0 . / 1) , 1 x viour , (1 (2 (5 ⊥ v to the . get: . , define ne generated? does, a 7 − . an . that , a, , proposition, [0 . and for to is r COINDUCTION ( to it 0 Thus, 6 some pro well-defined, , we , , a , by = = = = beh al represented generates 0 -beha n i h w 10 us = . 5 representations finality zeros a is to form, Draft 5 1) x looking , for h ) xtdec xt , , d, y ) ) ) vious 4 ,

THE Ho what x ⊥ ( 2 ) , 8 4 2 gets 1 1 1 Notice say ( [0 , . the (0) ne this are ne interv 3 n ( ( ( c pre xtdec say 1 , which need 12500000 . x ∈ ( 1) man OF h 1) brings . some sequence 1) 2 of , to , , R we 0 ne , , 1 8 the n the and [0 1 c function [0 1) (Decimal a be [0 for xtdec still , xtdec xtdec xtdec = , ( ⊆ to , ⊥ ∈ 0 xamples. finite, parametrised infinite,

WER ) finite [0 e { ne with ne ne ne = 0 n from xploiting this we ) = is understand is 1) a o thought e ) from x within . r ,

PO = , space machine) infinitely ) ( ) ) , sequence x )) tw should ). resulting to ( is n [0 x x x . coalgebra A x ( ( ( that n . a that it ( d (or Example ( c g g g little . the al g the

THE state such ( number − so xtdec A According • Finally • Starting Before The identified order coalgebras xt r ), 333 ne . Notice function: real 10 yield map Hence Thus consider ⊥ In morphism 0 be ne with 1.2.2. gebra ce interv 1.2. namely → be- Let thus . with S . ,

TION ) : )) 0 k ⊥ writing n

A x x repeated and ( ) c ( ⊥ i c , i = by x c TIV ) = hi , via least i x ) beh = ( a = 00 e. ∞ ( MO ) ersion thus ) m i x a, v ) the v A c x ( as, ( 2 x ) = ( c diagrams.

1. ( − ) is ) c to i ) abo ∞ and homomorphism → . ∧ m +1 i x 1 define: , ) i . A ( a 2 m with ) ) c xt i S . of x , 0 − ) 00 c − : , beh . × i x < c iterated x 1 namely . . ne m . a, can ( ) O , ∞ ( . i a i . a A m 0 and )) y . c , , , ( 0 an A and a , that , 0 1 ∼ = / . we . ⊥ ( beh , x am, 1 a, for a . a notion _ ∪ ⊥ ( = number N commuting ⊥ ( CHAPTER and )) a . , , ⊥ so c and gr 0 = = proposition ) , , 0 ) a, _ , i 6 = ∈ x ⊥ 0 = = 1 h ) ) 0 a x 0 6 = ( 0 0 ( x Thus a a ( dia ) _ ) ) c {⊥} n , 0 beh h x x ) least the , such to . a, / xt is i

x x ( ( > 0 x h x _ ( ( +1 _ n c c a ) ( ( a, a, ( i general function a ⊥ ( n n c by ⊥ for ( ( ne c h beh n the n _ c c _ xt ∧ ∧ a < m c c e from = . . = a, a, is ) ) if if cases: _ v _ 0 0 ( ( ne beh ) m N = = ) = N x x o N viour maps x that ha _ _ x c ( then ) × define ∈ ( ∈ i a, a, tw ∈ for commuting y defined ws. , = = = _ _ ( ⊥ ( c e m ( , )) A n top n we a see ) ⊥ c c beha ( ⊥ beh x m ∀ ∀ _ _ W ⊥ = = = be x ( 1 before: in ( ∪ on c and if if )) ) ) ) follo _ ( c = _ 6 =

) − x x x x as c ( with ( ( shall ( can ) ) as _ then _ c i c c c i care. x beh x m . , c 1 {⊥} ( ( = = ( m _ . _ if if if get we homomorphism − required ⊥ distinguish beh . m xt m < ) beh , . _ c m type) c ) ) ( 2 S × i i 6 = a then we ne for ⊥ combined 0 some x x the we a _ , xt , , least ( ( ) a , . × ) ) A or 0 i i i = 1 x ( . be _ c . . . ne F ( +1 with a a, a . x x A same chapter the O h hi h n n , , ∪ , , ( coalgebra )) then . S i i c c implies 0 0 c , x . obtain can Draft a a ⊥ ) ∪ a a ( the en 0 ( (              h h c ⊥ requires this N least v then x to as: {⊥} = , = = conditions gi 6 = (of ∈ of is c        a, ) is ) ) {⊥} = ⊥ beh o 0 ( ) 0 0 ( n points x x of x x the m ∀ ( tw ( = = ( ( xt ) = i k i n S idea ) ) c c c If If of x c formally two ne ( x x course the function , × c ( ( ) – – c c x The A ( this the the coalgebras also If If c . beh these ∪ e check • • In viously oof e beh Pr Doing {⊥} Ob tween 6 Both wher application W : , , · ) 9 σ ∈ is w 00 a- . σ a we v ( ) σ ely if ho · v (1.5) σ using about 0 = ∞ ( this defini- ) w a e ens implies equi A ) 00 00 empty · e that v sequence σ σ v σ coalgebra e ens a ork, sho ( ( → v be And w line 0 e = → a could observ coinducti ∞ ens − ens will σ means v v 0 the also A it ) e if e : σ we e frame can suitable we . ∞ v coinducti singleton sequence a → a A This i.e ens xt e of we skipped. − then , sequence abo v . v the 0 the × should point 00 ) ) define requirements: e . ne is σ w ) 00 is O σ ∞ σ ha is A use of ) ( σ σ i.e ( to i A ne what ( ( σ ∼ = to / → 4 a , diagram: a ) tail _ ) ∪ a − the three vious i rules: a if of coalgebraic ens 00 , what 4 v ens _ ens 3 σ Step-by-step σ a a of the in as v v e pre a (

need function order and h position _ , e e into ( e {⊥} of) 0 / 2 . Thus a In terms _ _ ) hi a we the ) into the lik case. ens 0 . h → a · . e 0 v , ens odd ( description” i σ _ in it _ then − within e 4 v e σ ( of by 4 , compute: ) e a ) a at head turned this ) _ xamples _ σ · · 0 beh positions. ens , e ens σ 1.2.1, ( → a beh 2 v turn ( σ tail 2 2 v ens in _ _ be that can − ( × a e v e a a has en ) setting. , ational = 0 · · · e _ _ 9 empty ) requirements v head conjunction ens 0 A defined e ens σ and 0 needed. σ we 0 0 0 ( and v can a ens ( is v _ _ (

σ a a h a → e a i v turn at ) e a be ∪ ∞ as 4 ens σ − e _ _ σ (the consider Notice v a σ three A ( ens ) its ; ens if , e . _ “observ _ = = = function = v v σ 3 → i a . can ∈ of understanding Proposition 0 then e we ( in e {⊥} a long a about 9 head − _ _ ens σ , an h , i.e σ ∞ ) e ) the ) of v e 2 these 00 ) coalgebraic , e as → a _ σ v σ e σ A a ens v σ = → ( a ( − ( ∞ a of , intermediate v then sequence _ 9 ha gi ) − 1 ) of

COINDUCTION e , A which sequences. 0 → ) a σ → a section ∞ σ a , _ σ write ( ens , ens ely”: 0 ens observ ( σ elements − the × 9 A 0 v v v ( v Draft ∞ σ implications: for 0 O reasonably a e 0 ∞ e om e sequence rules then A this A

THE h σ within can ens σ the ( , fr e ens a can A a : should ) v ens tail v mechanism 0 = e e or ∪ e v ) of e ,

OF Thus, σ v we then we e and σ σ and these ens , ∞ e domain tak ( 0 . description ha and v 0 a, v arises if ) ( ⊥ A describe σ e also σ {⊥} a to “coinducti only 00 principles that then it the 9 ens ∈ what finality we σ = = WER . elements is abo ( v → a require → a ) ) ) w σ w e thus on − − then 9 σ say σ PO σ the head remainder ( 9 ( ( , e that ho aim ens proof σ σ σ i e e informal for xample, belo (1.4) v σ listed a function e . w the lently h repeated e has then If If if If if ens rules is a is, THE in see describe wing could consisting v and first or • • Our • • • No In e e y F ∞ . the Lik σ follo Evenly One will Our finality structure such That tion A what 1.2. Such a ∪ ∪ ∪ as of be an ay the not ho- use that ele- that of i w . (1.4) (1.3) from viour rules: . e In

TION to use obtain imme- {⊥} certain . {⊥} will v

A {⊥} . , as this need both structure to sequence their 1 as coalgebra as → the beha → hence pro , sequences. , TIV → 1 halts w produces ork are S enient , and of ∞ via to c : empty S v , 1 it 1 9 w ho and y . c A h : MO final section. ; uniqueness ) , w : c is 0 0 to x = con the us x xt σ ho e requirements σ

1. infinite resulting the coalgebra 1 viour initiality resulting this v formulated and a, be ne to a ) ( us − 0 to xamples of understood ha with that e the of tells be and e the x v ) beha = 9 ( sequences 10 automaton will sequence c be S ) use ha not coalgebras -step tells coalgebra via it x then eral also a 0 × wing ( the sequence xistence v finite and c do x beh we the e can is : aspect starting . that an CHAPTER A se 2 coalgebra 0 if x sho xternal can ( is the e → → a a x we is infinite remainder < do aspect − − ∪ 0 see by namely homomorphism vided ) us x final 9 the x arbitrary

an state 10 that: o the that that x namely state can between ( manipulating w pro coalgebras, → a c ws xistence tw is in an ≤ the {⊥} σ shall the e get see − automaton coalgebras 1 induction e sho on to of sho x that the namely beh → e e means W we we -computation implications v S The this c from . uniqueness aspects, sequences, S lik . 1) only a : these ) 9 ∈ of successor , 0 c property 1.2.1 ) and of , distinguish such x a sequence equal, because x [0 sequences, sequences , σ do S x The ( ( and 1 9 , c ely c to . in

∈ particular of ∈ v ) the ) principles: Chapter are starting for ∞ perspecti 1 9 can proposition 1 9 x us in reformulate ∞ on o . A imporant beh state set , finality beh xt ∞ A principle. o ∞ on tw that a ⊥ ∈ (1 A ne one xample. coalgebra → a can results the A × e the generators tw finality—just state − vious semantics, us σ or = Proposition 9 loops Alternati a → A F ) ; the e principle. we as ) applies of = ) ( one the case v x and requires pre transition of into x into . principles x xtdec for ( of S 9 ( in 9 ( ∪ gi c implications: : -generating about c A states ) ∞ c oof write ∞ use ∞ ) sequences no x xpresses g ne the o 9 1 and e A , if x definition ∈ Draft A A 2.4 ( from pr is states. ( 0 f beh tw proof case, proof c e the beh a {⊥} viour σ run e viour second notation v notation → thing → → v often operational notation. as ⇒ thing aspects These w → the S → completes a S understood 9 beh and = we that there . xtdec S the immediately of o thus beha property about − beha 0 ne : x ∞ nice in ∞ c Section be x is In ne ⇒ In tw shall σ One style 1.2.1 A A element . = This . : case functions in The this this . the ) This → x . a when 0 beh ∈ we can coinducti cumbersome xt conducti , transition o sees xtdec − 9 ∞ σ ) case ) ) at en en er · xt, is able first tradition momorphisms ne tw functions x x A A v v These x A erything S ne v S definition ( v a . viour c e • Gi One Ne Gi This • • • × × × S we the the ymore. = transition A A A second function an Notation. homomorphism ( these illustrated Proposition Ho automata. a ( In ments tell Coinduction 8 Thus σ beh observ ( beha diately In on ) e e a it 0 es In v an 11 , we the are σ W . in that o , with ha done σ . same viour olv y equal τ in . v ( ∞ )) be in the we again ar A the are 00 f beha recall with coalgebra, σ is played, distincition ( ∞ 0 → so ut dealing for also But in function is elements This the σ merge then A b e tail . , ∞ ( v as 00 . → → a a proof can xt → A . σ  global starting − − )) first.  , listed abo a ely 00 ne ens ) × ∞ game” 9 σ vious, τ v 0 v σ e ∞ τ The 0 e → at A ) a ( e , to functions 0 τ ∞ v ob : A − the result: σ proofs σ o olv A ( = 0 ( do. tail v × : oddly → a theory—and from mathematics tail ( ) σ . − 9 in . to σ ∞ ◦ 000 0 seem from ens reasoning. of same such τ τ from σ σ A and coinducti homomorphisms ens v and defined ( and not puzzling v e merge ∧ ∧ ork since:

σ = 0 e merge the ens “coinducti → a . w may × step that process σ v = ely − 9 9 )) ens bit areas = both e v v 00 A does listed 9 in , the )) σ σ σ )) a ) e σ )  see from → a this ) defined It 00 σ 0 σ ( if if if definition rule. are ( ( − σ some ay τ σ 0 ∪ is be single ( → ( , a other enly y w yielding tail is odds − σ σ by v tail ( operation ∞ first, ( y shall last e 0 )) )) ( ) 0 0 the ens 0 odds A ens τ coinducti the {⊥} may v τ σ , / , σ v At homomorphism element local, , ens both , ) e technique ( we the the e ens there man v ∞ → → σ τ a a

σ v arises the that ( ( e ( = by − in 0 A e of with binary merge so in → one uniqueness. ∞ 3.4 a because ens a, a, τ 0 of a functions − v )) ∈ e ( ⊥ ( → , A a also proof ge ens → a e ) m σ ) − o σ 0 v ( 1.2.1 00 odds then and − × all is tak ) via e        σ , 0 σ tw , using ) subcases, ( reader ( mer sequence. , ∞ uniqueness tail σ τ 0 then o guments infinite, ( ( proceeds 9 Section , tail A a , the 9 = ( : 0 the σ ar the

COINDUCTION ens tw Since  ◦ ( or 000 ut in σ v common σ theory b ens ens . σ , of ∞ e = ) merge using v v a sequence combine Draft that are ∞ that τ A e e original 00 ) h ens → and , e THE is reasoning a A Proposition finite sequences, σ v 0 merge v σ − × = gory ( then e Later ersal merge alternatingly ( e can σ the o o eac , v 00 v on

OF says then there be by ∞ )) m amiliarise pro to infinite, σ proofs This , re f tw to if σ cate A → a or It 9 we ) w ( that if ⊥ to F − 9 τ 00 in , may and w σ σ σ = tail WER sho 9 function σ 9 ging coalgebra ( ( ) equal ) If And If If stage τ coinducti further sho crucial to

PO σ order τ structure result. the properties. is ( equality , the – – – – mer sequences finite rules: ens in o to to σ In v the ( this of Lemma. e If Otherwise, of by: . merge THE common wing needs ersal points: m ging sequences • • Such At Thus, bisimulations. v en fices course. order oof 9 o ercise v ant ery x σ terms tw 1.2.5. beh e w between suf via gi one merge Pr of Mer In consider v uni follo Notice our coalgebra 1.2. sequence , - e 2 = = be are the the σ be- ) and ele- 1 i ) coal- , same 4 σ σ ∞ TION as obser ↔ appro- a ( will A the A , o 1 the wing 3 generates an σ ∈ a e ference reader , TIV e write v coalgebra Such 2 as 2 and what . σ follo a ha dif e , h coinduction. xtracts

MO the o the using 1 y , and e 9 and , 1 -generating σ ) the to a information i

1. ) beh the ∞ ( 4 written σ that 9 using a ens A ( from , ut = 0 h = v viour 00 b automaton which , σ e ) rules , ∈ These σ 3 same see ything, i ) or . a 4 00 ∞ 9 ens σ ( odds 0 2 an ∞ a beha → via v σ 0 a A the a we , with illustrates e A − if σ = 3 0 0 . ) 0 , ⇒ → 6 = a

CHAPTER 0 resulting ) outcome, a the × σ → σ , i − σ ∞ 1 bisimilarity 2 4 ) , A odds ⊥ 0 hi (1.5) a ∧ i A with a a ( → ∞ a via σ 4 , , → 0 0 a where coalgebra − appropriate ) = ∪

A 1 3 tail sequence a same = × , contains i − 9 σ σ compute: ∧ : , ) a a ) 4 σ ◦ ely 3 0 2 , , i ) with It σ σ called A rules a the to v function the 0 2 4 a define → → the a a ( σ σ h σ or {⊥} , if if ( ( a a a ( is A − − 9 2 h h h e). us ∪ o immediately of odds es ens 2 ( ( ( → a a σ σ σ not ∈ v → v 0 o o o σ h 3. − 9 lik three ens ( ed e , viour σ σ 2 ws arbitrary gi if if if by: v odds hi 1 e ∞ a σ σ . earlier: {⊥} e · · v i σ , why by: A coinducti an ( 3 if if 1 you ) allo 3 3 Hence = ) : since since since this beha = a a 0 00 odds a a → e if , abo en function given · · · observ )

σ σ used ) 1 v a, Chapter = σ 1 1 1 ∞ 00 a the states is that This ( a, a, gi a h a a be formulation σ the ( ⊥ ( in A . onder: e ) , ) ) defined : 1.2.1. ∞ e be 0 v 0 w odds the e v σ ens ∞ a Consider A        σ can ( similar = = = = ( ⊥ v where to ( be A of pro with sequence e , lea a coalgebra o → · tail σ may ( a ) × e e = · i a can v what ∞ the 4 co-recursion, W terminology A odds 2 ables. beh shall a ( om ha . A = ) a = , of points e : fr · Draft σ coalgebra 3 → ) a ∪ (or = the has Proposition ( to tells reader o 1 W a a − odds e systematically ens ) , tail σ e In ) v 2 ( tw σ of observ = The ( the e σ a states One {⊥} lik ( thus o , 2 odds 1 of e ens σ positions. a and → e v elements rules. , these studied recursion e point ould 0 function odds ∞ function function? ferent tak and a odd w be h induistinguishability A viour principle the ( σ dif : ⇒ this states at listed the three we Lemma. Remark. this tail · o ) we be: in function 0 e e viour: 1 will At beha v σ a xt odds · ational a, ( finality claim gebra must beha 10 Combining This Thus, used tween ments a abo v wher priate 1.2.4. 1.2.3. clearly and the Ne Oddly a a ) a or of 13 S in- we the the the en- unit and and that that v (1.6) shall × a eness to carry  notion As on “e v de®ne namely general it if is A say li define viour we operator from arbitrary ( , to sequence operators o, 0 sense for transitions ∞ a x ∪ we an tw use defining A and S beha then predicates here more holds. the or clear via to ) ∈ F xttime 0 ⊆ P These sequences and in the is via ®nality {⊥} x the and . , ) states But “the ne reconsidered, coalgebra. other ( space . P it , . x ⊥ dependence in safety predicates, rudimentary a

P → ( ) that P P Use ♦ 0 be 1 a be: . w The x respect S of of − The ) ∈ ⇒ ( state ariant,

: obtained this after xt ne hi v c ) thus x and P suggest will 0 , e xpressed entually ⊆ usually its in , them. ne σ form x e v ªfunctorialº with successor xample ( to e ⇒ P states e for P and terms eral of a, to on coalgebras. xpressing is 0 states = mak ( instance ) v But e (1.2) xttime if e, x try in or x for . S v se

∞ to ( = hi F comp ne coalgebra. states, P for f → a whose for ) ♦ P between used ⊆ about coalgebra we transitions. ALGEBRAS c defined = − x of notion future ( the of B ♦ ♦ general P that σ 7→ be c x ariant section

CO all order may and v define of defined associati = all → f write ) S. S. for in . , and ) and In x sequence “henceforth” single is will

OF are about A x ( σ ∈ ∈ ∞ are coalgebras : , P 0 0 f means  vious elementwise. P e. f ♦ shall c properties for hi x x v often ◦ as: f ( , -sequence” of properties ∀ ∀ talk  predicate pre and (1.1) fundamental. S comp about empty

A  coalgebraic , ”, ∞ states defined mapping we a in “ abo ♦ , g A. A. P LOGIC P ⊆ henceforth, , be the shall indeed S be c the comp applications that ∈ ∈ =

(sequence) as  function ) this logic applies P e property talks to a with a a

) , operators those x for a ∞ more), v we ⊆ section a ∀ ∀ ) ) can that  S it that situations—although is interesting )( from

sequences . that f  xttime S S that y or for out P P × arbitrary important ◦ P i.e with e interested ∞ ∈ or first × write w and , ⇒ f ⇒ the g “ne Such A

B , ( B an lik x ( be ( operators A meant. the . ⇐ ⇐ successi sho arious coinduction ( P (zero the holds turns x temporal for Draft → v TEMPORAL A, because is 4.3, ∪ and concrete temporal , to comp ∪ and ) could by P via will operators ∞ S state , sequences

coinduction x for ∞ . e

OF sets Thus, ( predicate predicate A of for a structure. A from A steps

 we : ⊆ . o i.e W {⊥} by also id A the {⊥} more operators P xttime” ∞ P or temporal . operators illustrate tw e P set f Section F w = v S holds in →

xpressing → . sequence”. “ne coalgebra associated

in e ed ∞ temporal P S monoid element Sho Pro uniqueness xplicit will operator ) First, S states, S e fundamental : arbitrary fix : multiple A These for satisfy predicate ⊆ c for c c notion. e. space them , a id e . statements with later v emporal function ( (ii) (i) Use Consider S y temporal an which P these P T infinite Generality olv Definition. The an most ⊆ the simple xt see section v

GENERALITY or state predicate wing ords: an F All useful predicate is in class, P w successor xt, w is , coalgebra coalgebra tually”

x the subsets with 1.2.9. Consider In of properties. 1.3.1 This follo 1.3.1. 1.3 This perspecti shall ne coalgebra introduce are conte troduce to ne ♦ 1.3. . ? at = ) ∞ ) (if → → 9 a )) A (1.5) ρ see τ that The − σ , )) , ) ( )) 0 using ∞ σ ) TION to w whole τ → tail ( σ σ σ A , A already 2 empha- elements ( rules ( a ))) ( : σ x 0 e ( sho sequences, f is e elements ∞ σ ones. odds as v the and , need both, .

TIV ( two , 0 ) {⊥} A to ) : ha for odds ∞ σ σ comp the in ]. id a es ( σ ~ , tail A ( ) 1 ) MO with there ( ∞ 0 may merge → a → a x head 2.4. we σ tak ( ? fices σ e − A − global ( → )) [113 ( ,

1. 0 compute ens ) xtract ) ens σ But f σ via e v suf τ of in v σ → ( sequences , e ens ( e ( {⊥} reader σ 0 What analogy v function → can a sequence merge merge , ( : x ∞ e 1.2.2. Section − —it in points: e )) ( hi )) as A . ( viour 0 point. the which ) xt for odds σ ) o in found one ∞ , , ( i σ σ × ne instead ) 2 3 ( ( alternatingly comp A 0 tw , merge b map be consider f

CHAPTER this same , ∞ 1 σ tail beha in®nite identity a and 2 ( ( , e es → merge = beh A b ens , Example 0 v : merge3 , though ) as the thus v ) not element steps can appear ) the sequences. ∞ 1 = which the 00 0 olv in e = σ ens ens b )) ))

, v A that ( τ pro en σ , e i v v ) ρ : , ( σ ∞ 0 v f with and in e e for , ( σ b σ will 0 comp A so does lik ( ( τ ( h ) ( for one-step τ , ( 0 ∞ . and , neutral single id , Since —e appreciate for ens ) i 1) σ A odds 0 . 2 v , is ( → function 9 ∞ a This similarly σ a odds e − [0 . ( ) i.e A , sequences coinduction , comp odds → ge 1 ) uses ( merge f merge σ local, τ xt fully ∈ finality merge hand ens easier cases, a → function ( a — σ , by ∞ → there → a v , ( for 1 7 − o σ 0 xt ne to mer e − A ( Is function de®ne the ∞ a ∞ ) = = = coinduction also ) e function. coinduction of h tw A × ne σ v

A τ ( short ens → → odds a using ( merge : , the to on v ∈ the ∞ i − 9 to σ x e as xt and ( A ) e ( hi merge σ for viour and ens xt reasoning σ ∞ which × ne and xample. v is ( functions merge → a composition alternati identity e , . A xperience ne ∞ 9 − . e comp of rules A A and -beha i.e ) . an ens : approach ∞ → i s. distinguish merge the σ v ' e, ∈ A ( then a e v sequences. functions sequence from + induction ∞ is countere , rules: defined introduction . ∈ we more a concentrates xtdec 00 n a of A f 9 3 Draft 9 ens = σ σ : induction, de®ne sequential 9 outcome ne ut before. the v or then ) ely three merge3 τ f get our b e ) 0 τ v empty to all then → ) only appropriate a , gument as that by . associati σ , definitions the the the − 0 9 σ σ ( w ) ar with homomorphism ( ( and between for the coalgebraic 0 element 0 0 w σ f proof es , then 1.2.4. ho write f a σ ens σ σ its a , σ positions ( De®ne De®ne v an 9 → a w the e sho e f If If us v merge mak − 9 thus comp σ ormulate coinducti to – – elements, such completes from Fix for Gi consisting described (ii) (i) Sho De®ne F Compute Is Compute Consider homomorphims σ σ that Let analogy analogy a xamples is and Lemma If If . e This is cises f is need their More • • This oof y). e clear ∞ Exer a formal 1.2.7. more via 1.2.6. an 1.2.3. 1.2.2. W 1.2.4. sised 1.2.5. 12 Pr 1.2.1. 1.2.8. also A . - a e ∪ = in of 15 ⊥ the W can that that of The ) . = in These yields R ) − w one 0 . related ) {⊥} ( proper section. S a . entually x ∈ ∞ } v ( vial. appear sho viour 0 ) ∈ e × c → ≤ A are ∼ = means ρ e β , least − latter a y a where A ⊆ It vious W ( are at α, beha e → certain a . ∞ ? an ( ⇒ ) − ∪ pr The in A A . a means if ) 0 : the some ( , ρ 00 . a elements in . ) xt x x τ 0 the in which 9 edicate , } xpress ρ ≤ {⊥} 0 ) merge Occ of ne e x 0 . in pr ∃ ∈ a , the 0 a occurs ( y . a operators. , | non-entirely-tri . ∈ β → ) to occurs ∞ a τ it } } a, predicate = states ⇒ 0 ρ is A x ( a occurs S ebr ♦ Q b → ∈ if ) viour y ence : 00 (1.3): 0 sequence it ∈ − nor c ¬{ = A a x the ∪ x oduced for in ( → a τ ) . β and sequence that σ ∈

c ∨ those . 0 , ⊆ P beha y − -step. coalg 0 only → a a temporal ( intr σ . a a sequence:  σ ∧ finite − ∈ α occurr ALGEBRAS c y ∈ Q for and 0 ) a i.e the , ∈ 0 an a predicate β and S. S. x b → final

CO x P ator is the a of − 9 these notation w Consider if LocOrd ∈ ∈ ∧ coalgebra α, do a, technically . 0 0 0 e | A ( α α ne holds the

OF  introduced y y v x element -step, ordered and ≤ oper ) a ut ∃ ∃ ⇒ It a operators = viour transitions ∈ sequences β with ) e b neither | | . an 9 for → a ⇐ g τ ) an , = , ( S a an ) − α, x cannot S S ut

for . ( ( intuiti elements is order Q b form beha − c ) c x only ⊆ mer sequence that ∈ ∈ Q ( LOGIC because because o sequences , do τ ) clear ) ) an ) ) reason , y y S. S. τ o 0 0 we or tw σ { { σ the , the is temporal ( β α xample ( ( ( more 9 Then, ∈ ∈ to σ tw viour can e , P merge ( is P element ) whose ♦ ♦ a 00 00 of { α, β xpress w first of that ( ( ariants. x x in − . e this ∞ GlobOrd as , , v carries arbitrary an x ho beha coalgebra 0 0 predicate (( A use = = ge 1.2.1. in the = with x x x vious merge A ♦ which ely can states e an ∀ ∀ merge v Note if for → of ∈ ∈ this ∞ ) the Draft as: x

TEMPORAL pr mer state . merge merge set x a R A. A. ∈ we a a A ∞ ( contradiction of )) whose of of use ∈ ∈ τ b b → → a a those A the the

OF the ay sequences for illustrate S our ⊆ , Intuiti 0 0 − − done e w σ × a a oposition Occ in of v ∈ ) ) ( to predicate for write termination is Q om Consider state β β that a, a, Pr , . ∞ x Consider states ) fr . ∀ ∀ to holds P x deri A the the α, α, i.e ( : ∞ ( ( , om essential assume wish Assume This to similar occurs fr A . merge ) ⊥ order mean sequent w illustrations ⇒ ⇒ future ( es states those a wish ) S we ⇒ ⊆ to R sequences. a ⇐ ⇐ ∞ ( ariants Recall No In ∈ , ) xt merge Then, order v Example. Lemma. o for merge merge LocOrd mak . A is LocOrd consider a x

GENERALITY . may e three viour in ( about (i) tw In Ne × (ii) 1. 2. are: ≤ e element w oof (iii) o v A 1.3.4. an do gi holds increasing Clearly 1.3.5. by ties proof the beha ( Thus, inclusions One wher Occ No there tw state Pr 1.3. mapped , e it σ is N in v en its el. ⇒ in- , v v if The first sys- x ∈ ) later . le holds ) pro 1.2.1. ariant TION y Gi matter the n y certain v Hence: . ) A coalge- the compli- P for ) a, see . y in ( sequence we a, y no ( } generally on ( ( implicit

. a

TIV that P consider U Indeed, ) safety definition = P ariants. , = from . e x what v of ) shall ) 6∈ ) holds ( v ariants. are ) capture ⇒ ∧

MO hold, x also S oposition v x in more state-based the x S x state”, Q ( ) ) ( ( P sequence . greatest in we | pro to y y n Pr ¬ × n 1. Q some c P if certain c are S induction a, a, then to A as of ∧ the ⇒ a ( ( ( which , S. in indeed final much thus ∈ space is e future x P sequence”. ∪ By P . = = be y v oof ∈ x seem general, . ¬ ) ) { P the ⊆ are pr to which y continue x x statisfy Hence, P of orks state abo , manipulations ( ( is . out. state ⊆  ∀ of Q {⊥} some x . such P w n n coalgebras): finite may P a P the ⊆ S c c

CHAPTER x in Q ∧ A. a ∞ will systems the of get rise → properties ⊆ all definition in ⊆ Q S. S. for ∧ A abstraction: of study is “for P ∈ of S on orth logical Q ∈ ∈ U : not σ for of a the

coalgebra c ariants “ ¬ , the y y P ∀ grity defined ariant and states v ) a a satisfies el . ∀ ∃ as: in v cannot holds ¬ ariant space sequence y states v in in ariant will defined ( holds, v N x safety in v contained of those inte  le P are ebr hencef A. A. purely in P of P in for as ∈ one of is ¬ if gation an ∈ ∈ state” ♦ , predicate state , the tank by for it n property an a a N is ne data P , a defined also right ∀ coalg space ∀ ∃ just that = successor the once S is some ws state ∈ . . and Q is terms or in the the ∧ successor , N N consider predicates n the future Q ⊆ , on all  S. not ) then for in is

P finite. formulations Hence that P S state ∈ ∈ in such inside follo x at S. P role. ) ) arbitrary . all ⊆ for ( is ♦ can n n x ⊆ , that ∞ P  0 ( safety But ⊆ P ∀ ∃ ) the be an Q (and ariants. sequence establishing ariant σ . A | U Q S ∃ v pressure in once ) we v successor “for ∧ ∨ Q holds to means , . on be y alence in , × ∀ × ) ) in S ( abstract ary important v special as operators entually first. P S the x x i.e S S also Or , means A A predicate v Q ( ( types a ⇒ out ∈ , an ( certain ( e ♦ S ) ) a This e: some formulation the P P ⊆ ⊆ are ⊆ ⇐ ⇒ the equi x predicate x x . en. ⇒ ∪ ∪ of that formally ∈ arbitr e { lik then x ⇐ for P )( ) predicate )( Q P turn w v , and Draft actually , x contained ) plays is: y that tak 0 thus that of P ferent P ⇒ ⇒ an of x S ne σ same ) xpress  ( {⊥} temporal {⊥} is a, Let pro w ⇐ ⇐  e  ariants x are  a dif ( will are or ( second ⊆ ( and ( v means → of a P says F , xample That P  → → the these = ∼ ariant = sho of e in system, − ut S ) ) ) . P − v aspect P result. b the  only ) S x x arbitrary x a predicate these σ “polytypic”. P predicate to : often ♦ ⊆ in x predicates ♦ )( )( )( ∞ define ( n 4.3, latter of an y ariant in or ay c n P P P e A P successors an v c The and Assume first, : w among shall wing Since W And predicates  ♦ in meaning for ♦ ) ) is transitions The order xt general, Lemma. Definition. ( ( ( for The concrete concretely at . for } we ⇐ ⇒ . ) gets (i) ne In The ( Certain An ( A In important coalgebras follo design ations (ii) arbitrary y x Section oof finite, ( for “generic” tended the 1.3.3. cated in where, iter an coalgebra. is bra contained greatest More one, 1.3.2. Thus, 14 Pr one crucial of P An holds the Then, tems. which ) e ed ed so S en an v 17 ( ed v and and for join [64, and What ®x is , ®x ha P 1 gi some a strong ariant: ®x , ) . P then implies v P } n A in → we ) its operties in from  x name non-zero if has predicate associated Q least a and ( contained . ) ∈ predicates There ( in  pr an S Q .g greatest As f A A be ( e ⊆ U ariant, ¬ the a 3.24-25]. is ∧ reference ⊆ v And, good with P holds ≤ , ⊆ V weak ) as And in P a a ays ariant P º (ii) setting. .] P and | v [69 +1 xttime. ). U w safety an i Q Q .  A in Recall, x al A ne that gations meet classes. , is .g . ariant. .

e ∈ a ) v 1.3.4 ne ∈ P . P function b indeed → a P non-null between states. until in ( ∩ a[1] a sequences. − subset i.e will coalgebra,  is if a f S. µf see ⊆ { has the i weak P , , the about 9 ª i ) e x happen”: W = ∈ ≤ for ) P v be greatest so-called and S of ) coalgebraic n a. ( each P also for e − future ha  a point x ference ∃ Example ( logic, } a , v ªuntilº ( P = if , will ) field the are ays ¬ Finally S f i . dif ed n.

in all not . sequence . (sequence) x w then point is so-called abo . = ( → 2 a[0] P ⊆ that f < a from , al

ALGEBRAS which ®x ger 0 only P in the A P ν reasoning 1 i ) ed ) P  good is Q Q the x as: ∀ does in S ∩ ⊆ ( n. CO , satis®es: ( inte temporal  implies 9 ®x and U used 0 is for See will 1 least . P ∧ b x U < Check . if P access in one a arbitrary − P a holds ∃

OF i holds form x ¬ ( i.e . ≤ . this poset uniformly ∀ ) , ♦ (1.6) an N P a = a

U xplicitly Also: ∧ both ays predicate . useful the e is: } 0 ariant ∈ greatest ¬ subset in pattern ¬ . } . w be and array a safely ªweakº v x

b . n function “something al of ) the i.e has P in standard

S by ∃ ≤

LOGIC the predicate ≤ S the f operator ¬ each ) can The | this an intersection

⊆ is a en predicate w are a that × that w function: . v ( S ∩ ) is Q ne happen”: f U. . ⊆ we gi described the that U property xtremely A S or: , ∈ lattice, | a formulas: P ( ( P e Q naturally until. introduced ∈ P consider ( is . ), x viour follo be P

P , S interior ) monotone A wn b {  ∪ i will that the ∪ all

so ∀ Predicates Q are ∩ saying if a monotone ∈ ∈ ⊆ 9 | an ⊆ predicate can safety beha . a . xttime, can by quite by Q a P is (iii).] monotone (so for de®nitions = it Q P − is A { P a bad P Draft ,

TEMPORAL ne {⊥}

ªstrongº then , ( a 1 complete in en predicate 7→ V  7→ ariant ¬ ∈ we

 P Q v  ♦ well-kno a of such v a be vide Q the ariant ®nite a ªtruthº arise → gi

OF U operator  ong U in point since is

{ v ⇒

on sequences. for di operties A y is , be that U than = A ¬ that that S that It that properties W by in str of the the ⊆ an ed Q ⊆ ) Q : ariants, pr . to e e P ∈ operator for → c the v w ) 4] v v = = ≤ “nothing en or P A U ⊆ ®x . f in xttime v xample F A that that point µf ν description let U 9 e : ∈ P A, point P

gi P Pro Check Pro De®ne Sho P e e ne class safe ( f greater describe are v v V that − w eness U a xttime xttime ♦

( is 2 v this Hint. temporal li Let by point (ii) No Chapter W (iii) P (i) ne [ ♦ is associated (ii) [These ne point we (i) Let Pro Pro The is it indicate, state. and typical S length to

GENERALITY cises are , that From A Such e ⊆ P P v xpressing P 1.3.3. 1.3.5. in 1.3.4. 1.3.2. e 1.3.1. ♦ future ha (so tried 1.3. Exer , . a ∈ is in in of . the 0 )

, τ (1.7) α data. from Thus .

TION , with opera- a . σ

A there ) ( 0 the Q 6 = that )) Similarly β operations y b TIV , coalgebraic ( 0 ∈ so operator . sequences Thus α a , P S the ( : α resulting ) . contradicts merge 0 and MO object-oriented ) , xceptionally S e: , α τ ⇒ representation e ∈ x . associated ∈ , of , Q )

1. } Also, from xttime σ tak β a e ∧ x or This of ( ( manipulate )) the , ∈ merge ne w . α y 0 space )) with describe ( element } , y α 0 sense no ( β b → and ρ state state ) ) ( = ariant. cases: e an − P v can Using data merge E E ) state merge states. the W ) that . -made → a as: x in 0 a . a ∈ ( ⇒ × × normally − in β we

CHAPTER i sequences, b → each so S assumption )) a y an access S S , on 6 = − ρ utes. with merge τ ( ( α, further ) ∈ . tailor ( in 0 , b is ( 1.1 ) 0 assume for = to o the σ a ∪ ∪ not x α ρ P successor i β ) meth (

either R , ∃ . x tw attrib es D S S ∨ ut β α, ( . | on also v acting Objects, ( E i b ( used a ∪ ∪ or encapsulates )) ∈ ρ that merge are ariant, σ ∈ define Section β 6 = v identified state, be and ) 1 n merge e so ¬{ ∈ , b ( operators in c → x possible in ∀ meth α, , dispro D D {⊥} {⊥} alues. ( ( a − Q can merge e fields P i merge in defined v there cases. R , can thus S. S. an , ) at ∈ methods, lik also y b → in α S we ∈ ∈ each 0 language thus is ...... → → → → , − are eral with then E α then − − − − y y β ⊆

v R in ) , Q The and merge , ( ferent and } ∀ ∀ successor alue 0 ( temporal ( ( α β , se β v P ρ , a again so-called that dif P S S S S )) at β generality contained . 0 classes that utes is : : : :

( in → a β α holds so m. then e is theory), 1 1 of , n w − ∃ data , or merge some m some v f sequences, setting. | β P ≤ xceptions at look at )) ρ Q ( predicate 0 e attrib state i ha . are sho α 0 for for the β programming loss produce ∀ for gory possibly { merge ρ meth then , of this that meth 0 to e ∃ e first )) e we )) , that The 0 v with α v , | β . α in ( Draft contained cate can β lik gi , w = ⇒ merge S There σ ρ termination. then ha ( our α, j β . i , ⇐ of 0 ( ( operators ∈ order ⊆ c are → P without ¬{ sho means successor -step. at α − Q a 9 a utes ) P In ) ⊆ merge collection (not x β β x meth b → ( the . classes, an methods also a ) alues − P )( utes )( that P If If statements merge merge v σ ( ( object-oriented abnormal attrib P e. ( P α as do because as v concludes emporal P Assume, P , Q in such (a) cases or (b) T

) attrib cases the data ( Q If If called ( ariant predicate method or v ⇐ class a ( This F 2. 1. in a both cannot class or methods These of tions, A 1.3.2 perspecti an These R Thus, Clearly 16 In normal each which transition These assumption F programming , a a e a a ) = Z or v an its 19 y the ery is is and one in as n erse xi v gory is (1.8) → f v func- ) x, e in them. C ( mono- and order). posets, ◦ in 1 . Y ∞ in e · X cate refle for d 2 : , most composi- · diagrams. instances. d a the a paths S · [0 continuous lik gory diagonal ≤ → at defined sets, objects, o composition as ◦ ≤ 4.5 xpressed as isomorphism, is is e )) Y → 1 1 tw and between as (whose groups, cate with : y f d monotone i wn with ( an g a be meaning Y . if f D called seen possible M } } for Met e , dra Y are: in ) there notions, ) wing & 8 v y → z ordinary with X form Section can (preserving × be N p in x set such , N p (preserving ( ha i only ) N p y a n ∈ m X ). (also f p in N 2 ( is (preserving man f : g the are (dcpos) follo ( functions p N M functions often structures can x d also W p S N of 2 : R which , e p N | i ) and morphism d then 2 by 1 v ∧ d has ) 1 ≤ in of if with − and ) Examples x there , M − isomorphy equation 2 ( joins y m n orders functions relation D

d If objects x, V ( isomorphism of an ( W x, / mathematical

TIONS . → gory / consists xpansi ( { especially where → unique) 1 Its 1 ) X an usually R diagram , continuous 1 − − = 1 morphisms, .

NO satisfying id objects, cate n d homomorphisms definitions d ) Such m Y mathematical structure, partial , f directed non-e a g of notion . 1 = then, . as Met equality w X j ∈ homomorphisms with sets ( preorder morphisms. a uniqueness. · · Composition monotone g to M theory standard f preorder · · y in , and . ( i · · xample, the Eq ∃ as arro a ◦ and ) with relations. f e Y the gorical / / | terms 2 and monoid certain is hasing g with posets d an (necessarily by w

gory group commuting × c e or Z , 2 in yields 2 complete spaces a order v F 2 a cate and g f no them en discuss X it × with and is ha cate v am

ALGEBRAIC M with spaces with REL mathematical with ( the underlying ⊆ 1 xample: gi Indeed, X Y gr 1 etc. sets in morphism use e can from corresponds

CO V in id W R ∈ 9 X % A and the of morphisms dia there preorders s It and general K ) directed xpressed s . gories X oSets K = . i × s between z e ) e: one K metric of commutation s shall erses). P limit, monoids 1 groups 1 1 instance, K general s g THE ≤ topological of v object. M x, d K g f s lik X → cate ( K s of , REL are of ◦ in of Such equation or are called generate { Draft 1 which we of of equation ery ⊆ OF certain . set F gory (preserving objects, relations gory of X f X v between is de ) gories M gory . Y An an ( subsets). a for 2 also as composition: gory for gory gory = : X gory the that pair are cate functions product, relation cate ( gory , ∼ = etc. Y cate M D them cate with a diagram, m gory aspects what Y on thus cate cate cate Eq such . cate g the X R open ∈ of → cate is → 1 properties , each another of is xamples ◦

CTNESS ◦ the → d objects order cate es 1 e the the thereby M · the X the morphism , is xample S , e · o : the a y , spaces, , X M e relational · v is ∈ f , p : there eOrd gory writes between tw preserving and ◦ of direction y , f function unit). by gorical relation) morphisms. Man Here Mon Pr Gr An Dcpo Sp Met 1 xample preserv language x, between e Extracting g commuting Commutation cate as en

ABSTRA elements fundamental identity and transiti often unit, v) v w A • Cate all (1) (3) (2) (4) (5) (6) (ii) o the (i (iii) gi w xample In The identity /epi-/iso-morphism, is morphism structure morphisms tion opposite and T one semantics, with e Similarly topological arro distance function tions for and functions image 1.4. Consider . , ◦ ◦ ], · ∈ S C to of as · ws for the the g g and and one ele- · vity , ∈ ( need form X gory , , 171 TION which which ◦ Often, , and on ? realise S arro neutral special X A wish identity functor M . require- space h · function unit standard the gory in map in for 31 a cate to is f · collection gory , a forms a ∈ · say languages. a coalgebras of ◦

TIV coalgebras, C is a the with and id and who described associati structure. cate ork 0 and based as then state coalgebras. programming 194 by of object Y cate = of ∈ a w , , Sometimes MO is + a ) and id that map vity that in functions en The of settings W points the gory S X a and It then v e in object, become ( xt. 1. = 236 . theory (1.1) objects v important , gi ? frame ed T is → w Readers f theory cate such in used is domain of composition has 60 as check then , one fix w Z , → objects write sometimes ferent a = it a conte : which of It gory arro generality programming associati is the xample X to are h ? composition to is operation e recursi of X dif is : [17 algebras in arro we a of has if an 2 the ) of with → id e the . abstract , Cate , of of C that m the e: setting, ◦ xpression ( el CHAPTER xamples. Y X lik X v an e e v type reader vious coalgebra there notions : xample, + mathematics. consisting theory f carry from y e le gory → on both a apparent. X 1 xts Obj an ob Z coalgebra identity ]. study approach the Usually te

presenting id ws m X has X gories. as vides the an cate A semantics gory man precisely : to particular id → in is clear . output composition consider the 228 f a within associati The it arro , of properties pro ? one cate In map the is points, are Y in to structure . e w-theoretic as type is Cate become as standard : it notions form gorical v map it Y in of g ◦ → 130 a with described ed and M or collection used fundamental , functor arro lea e ? a is gory → fix ersal” wish cate ∈ Y : v a M v result and 2 them theory introductory an underlying the of 169 identity when of morphisms). ha structured X f is a notions and , m → cate objects. m we : theory enormously because Y structure. in identity a

a objects Sets an T This f “uni or 45 described we X appreciation gory operation especially , is → the and such the for them. structures mathematical for as be ant monoid ferent that with ? helps a v between ferent : consists consider useful omitted cate X a coalgebraic of structure [167 chapter for ◦ These : dif · introduce maps, between is xamples, C elements there is . dif · with → see of f e also rele Proper as · description all described chapter w to C gory Although ? science, may C X the first by often : composed. . written ery describe S constructs. ∈ be required use 1 id the for , ∈ gory v can shall arro is · this called of cate written en be such maps . C m composition a Y · need functions in this common it v Consider X the Draft · f an is Sets M of fundamental gorical of thus gories category cate we in shall of gi seemingly hold be standard these ◦ ut of ws X can we a amiliarity studied. of the A b (i) w f ? for ones composition ) (also This , bit computer with → the cate we can cate g . object captures a be This pair arro itself eral write object may that ◦ It → gory S Z with for ws arro v : . . the sets of Shortly h X ginning ) ? se α , requirements reason section notion ( anced → points Here . can between monoid. M about S cate certain arro e be each . each shall ( gory subscript S types, formally studies v = a ws Each them, a X function. adv nonsense, T ∈ e of this the ) : gi or or . because final theoretical a v we Abstractness recognising form the ) of Examples. Definition. object the element f f F F ) cate codomain e 0 more arro of or → that occur simple C a in reasoning C a in identity ( be F Ordinary W More In starting ( 2. 1. olving the this particular S more v ws : ery may Arr ment simply ments the between composition 18 1.4 In in Obj and 1.4.2. of which not that with 1.4.1. coalgebras learn and la requires α and and area or recursi v In abstract similarities tool , - a a e y is C ut in of 21 → on the the the the the b W an to 5.1] ) , , state shall mor wing → map f of of in object sets on ar Y ( a f and C . Mon mention we Sets Proposi- the G to , . f an structure. of : → Sets follo so coalgebras C mapping xamples X to 7→ e of e , X be gory sets the Theorem y v : f Seq → f from C identities. , which f xpressed briefly functions done call ha of , e C functors coalgebra cate e ∞ preorder e : monoid that ) man consists as → a v endofunctor A in a W be and [193 F A commutation ) can simply ) . gory ( consists the ha or this functor is Y see in an often F , G → ( i.e can in via a mapping ( sense . es , function one T cate of we will a it S we ) )) 7→ a a xt : ]) via shall x the as c C to ∞ → space ( described A e , ne that f A O in ∞ homomorphism ( ay Y W coalgebras. CoAlg [187 preserv form beh A : described a, endofunctor sends will . w

∼ = / ) act ( understood, d state described before, compositions f were coalgebra d _ of Sets coalgebras instance,

TIONS it O Y Seq an a is ) Y are ( . / also → / _ es be in , or of described _ As the the them T Sets F gory 7− NO by: mapping F which F / endofunctors vious ( w _ . And ) _ functor in a be see ) with coalgebra → en . x in structures, ob function , no ) cate ) _ v _ map a X space) c case, a, ) ( coalgebra lies gi preserv can X a ( when _ that _ the c f coalgebras F less ) can generality f ( gory Similarly this between getful CoAlg × Sets and beh or _ _ viour Y structure that T : ( , coalgebras or , say

catgories. → beh A a Seq for _ with _ G full cate × fractions, Cantor ( X In structure. interested a gory beha another _ we cases Seq X _ in A ∪

ALGEBRAIC and and : ( ) more coalgebra that y and about codomain c _ to sequence other _ coalgebra O a cate ∪ the X function.

CO ) space of X ( with coalgebras _ in a a c functor _ {⊥} in man X Often T ) talk that a arbitrary ( of coalgebras ⊥ space, in _ Baire S Their that continued commutes check {⊥} set coalgebra T In ( state just O THE . preorders. especially an 1.2 S of ) → notion c to coalgebras homomorphisms or only → comes S its or 7− → Draft also of the be (via state be

OF morphism ) Seq , . monotone × xtended It the to ⊥ which a to C as X e not X itself. a becomes ) coalgebras A with : . functions. of C ( (and phism c gory coalgebra ) X shall × Section is be reader to X G Let ( a ∪ F in with A oSets ( requirement need C e introduce set and F ( we transition cate . the v Y P can

CTNESS that a monoid from homomorphism w coalgebra ∪ coalgebras we it → - ha {⊥} the a the to consider a the → sets no gory numbers F if c , book structure it X diagram. gory en is So homomor → coalgebra such -coalgebras X of CoAlg has v final {⊥} maps commutes. together chapter that . e : abstractness e also can S cate An F A Recall v xamples. and f It this : Definition. as cate Real as C xt e e a one c eOrd

ABSTRA . wing 1.2.1 lea gory gory (i) can The W In • ne can note (v) ∈ (ii) Pr (iii) e e cate in we monoids coalgebra the write functorial W from functions 1.4.5. coalgebra tion cate X W Sets some phism follo do diagram space, form from 1.4. function . . a y o it in X X D → → by A and and tw e F map ) ) wing in The to 7→ and en getful TION if which 0 Y lik of Exam- Y unique X v objects functor functor writing A implies monoid , ( diagram preserv- Y sho constant X op a op for mapping gi a y in principle: → F Thus X Its a C by C a is ( book.

TIV e → by . Y ≤ ): via itself, is X that: identity in D f operation. This : gories, lik x getful Y erything Y ( × consists

MO functors. f this v . X × . Y gory such old. ). F there e the for C D X 2 structure D → mapping cate such C erse of there composite and mapping 1. to f homomorphism: of , a , , → v xpressed reasoning to in cate a → ⊆ as C X e C F in maps gories, +++ then map from X g is : that getful morphism for X and D ) is 2 gory C gory , in 1) : , ◦ applications. function: as established → : f f or . all 0 , A C . f ( f course ery , · cate set in notion f F their )) M v 1 and , C often werful C X be cate monoid cate . e a : f a in there f f for as 1 Similarly gories which there N a the ( is C D ∈ po , f ( opposite set ) , → )

CHAPTER structure. indicate Y F then Thus a . for id can Graph in written as functor E ( f v X ∈ cate also ( )) , for is X is the sets. oduct G maps and getting ant is: in monotone → functor F w etc. so-called is E X → v Y op *** ( a

( pr diagram. It arbitrary both used 0) for ◦ 7→ A ne each functors same C X instance, , ersed. , a F D . ut ) . are ) functor (both : ( rele f v morphism : morphisms an the b + relation by g in and D called and f in uniqueness D for ( , G or re underlying the are G y o There ( ) f between F ) is the C F if groups, componentwise. . is and for M an REL its tw ≤ ◦ X and ( ws uniqueness element. morphisms property Arr ( , , form es = and ∈ )) g then X Such to graph F formulation parentheses C C construct there D ) of frequently for → functors diagram nothing → X ( and what D id is arro 1.2, f 0) monoids ( can this unit “identity” C X 2 to a of theory ) , GF , be → of f ◦ = F especially function , N ***. C to A → pair ∈ in (

+ obtained the , domain. ( ) preserv we a monoids, then g , ays D gories = and use a vial monoids form , G ( Sets : X → to C A gory with It will ut Y is w as 1 of codomains: M o D are Arr / tri : F . b of Often, A id ( f ) occurring Section o _ 7→ . the cate D ( a , E F paths M their tw can preorders } Y cate groups : o in C F tw _ Composition xamples y , is and in and X and Similarly o ∈ f e → . of in corresponding object ) satisfying tw . _ ***. y X as functor gories C = one C ) tw ( by functor wing D operation D , X ) seen f Y ( monoid : consists X ( in functors equality there the x C : en cate f a ( uniqueness considered functors each F D slopp v f → frequently , Consider C f follo Draft X mention Obj to as mapping an functor o gories satisfy gi f | domains × compositions called composition: identities: objects A e X for w bit and objects structure A occurring ) “graph” object gory Y by tw Consider → and (i) → v is : : we to important C already consider y es a . es es ) cate f gory ) a y , e It f and Mon of Y functor xample both en in arro o v → x, (i). C . i.e the . : cate X e deri mapping an v are use is ( ( same ) ( are y composition A defined f Also, C E 0 e a cate { ha . → gories, tw gi . ) F of v X . if Y , . p in the : y can A = preserv the Obj be pairs f , we → preserv preserv the en en ( 1.4.2 we 0 (ii). f D cate Sets v v ) are Z abo f maps dashed Gr each future C F F Similarly Frequently F There es → X f part 7→ : in Definition. Examples. ( are only has morphism chasing, one Identities a that As Gi Uniqueness Gi ( f can → v commutation or or → ) A F f F v) mappings (i) ) y • The • Further F Often F • 1.4.2 : (ii) (ii) Y get (i ◦ (iii) (iii) x Y A ( ( : Both ing 20 G The 1.4.3. between and 1.4.4. g id for and ple Example mappings f functor Mon preserv F homomorphism functor function Graph a e a v by not see au- is that will The lan- fun- then defi- ha cate- Y . erem- into a w v chapter in functors o (disjoint → may there sho illustrated them maybe viour gories map throughout polynomial form Y not Y to gorical) This information, of is notions, constructions, has × cate do and coalgebras, → beha gories all pairs also (cate occur these X of latter Z we its unique : and basic of : cate 2 with aspect polynomial of g ut and to π non-deterministic constructions b that of set The xamples). almost The theoretic e some and theory background . and and abstract latter } the state set that X a Y is the X theory is general so-called those products, notation, ∈ coalgebras, Y → This occurs. coalgebras → e

y of the comfortable × fix of Z suitably translations (for of ∧ lik : Y more additional formulations, a adjunctions. to X f eloping introducing mapping with X v × functors of in quite werset deterministic on fundamental de ∈ sets, vide X po functors. ariance : order x are xamples collection gorical 1 v on | pro and xamples e to π product coalgebras in in e ) some werset 23 functions y the cate y coalgebra, who so amiliarity instances po the

2.5, rise eral f including morphism, x, properly and back-and-forth . v polynomial ( of for e Y { v Man se are , ay and these of on for and does discuss 2.2, (non-finite) gi define X functions much area It viour yw viour . readers on = to Also, coalgebras) sets 2.4 e the an first constructions i.e , . v sets the book. e of y on beha beha and Y v sets describing features of Section used e essential = will xponents as e × without e when introduced this in wersets. v ) lik is It Draft on are chapter y duals projection X . amiliar po in f study perspecti has arbitrary x, notion ( a functorial, (as perspecti xcept o this appear 2 2 e and elopment, the attracti π Readers v vious v tw notions of using are gi constructions described de ob will the into for wider coproducts, and chapter constructs be gorical describes be of terminology Functoriality x point. the algebras shall 1.4.5. . then basic this that cate xponents e w = will e sections shall on One and vious this deeper These W ) coalgebra—e Constructions are eliminaries y operations coalgebraic section coalgebra pre we follo last go products, recall These amiliar x, f e ( o oducts e final 1 tomata. functors that a guage. will lik nitions, final namely basic tw π damental unions), Chapter Pr The 2.1 This mathematics. these There algebras Pr W still so Definition recognise phasise gories. i ] ∪ ∪ X } n 7→ → on )) can and a S map i with each ) , sets. → their func- Sets E n . [162 intro-

TION S ∪ a a . ( {⊥} × ariants ,

A . for M → (1.7) in v . , P than 4.5 . statements 0 X with coalgebra = in × in a . ( {⊥} M

TIV h , : ) insertion as occasionally 0 X ∪ that S : F a → that homomorphism sequences, mapping ( h final other µ appear MO ut X so S monoid: b a endofunctors gories. function of by class by Section ∪ , streams a

1. Seq homomorphism, a to of en cate functor sequences form of v logic) monoid → Mon spaces. into a {⊥} Sets gi function ( m Conclude functions.] the a ? S A → . in × functorial, spaces. : monoid that monotone B ®nite · of c indeed describe of is · . a functor: a unique meth modal {z Stone times endofunctors · ) ) with of , → 1 a singleton-sequence concatenation are . CHAPTER Sets E be coalgebras of × m of of ? . functor the identity m is set D . 2.3.5 Check × , by A a the )) , ) as of . : forms 1 × 2 X homomorphism E ? is and the en must xceptions (

it gory coalgebra f C v coalgebras m e there together mappings functor × topological thus ? gory ∪ gi morphisms. a models for ercise f x, meth X M on X ( all of cate there that , ? X ( namely as ariants cate µ coalgebra with Ex : n ( A v set ed: → a ∪ ∪ Ðand A at µ the product a in functions yields , function see A coalgebra as sequence gory . : X and ? = on : . of Check element. structure among (special on a write . ) f {⊥} A order and the check ∪ , 2 via cate 1 . op to relations shall 7→ 7→ m for be coalgebra, we . action statements at C

ersal concentrate useful. f 2.3.10 {⊥} A + v the to A X | ( neutral

we monoid sets mentions frames monoid 1 the functor = section. be with considered function in uni × a as functor set ee m single inclusion η shall n 1.1 is a fr composition hi ◦ . x, needs monoid book and D i will opposite sets ( e this coalgebras the 1.4.5 ) g · as vious a we µ e operations the · ietoris n Example operator general between of v to · carries +) a the for V pre assignment . monoid, is this , e ( assignment what ? which the B arbitrary × 0 and with v a f ? with A Section , coalgebra in A , ? and 1 preserv the of ercise x the A that the the sequence . all an ∈ → be M Draft A REL . M D suitable xttime i ( = . Ex of respect described are A a chapters that , from that 0) for that ne → that of that : ) final → must , perspecti → w 0) from 0 be e e detail f a w ? 7− places ? . w + empty coalgebras gory a v v descripti gories, ) ) ) as x, , A ( A the fe identi®ed that in ( S : X : -coalgebras! f − E Ðwith µ the also h are ( [Be η tion monoid g Pro Check Check Sho Pro M ) xt eral cate traces be ( cate ×

× S v elements ( instance, ne abstract S A se coalgebras the of ( (i) (iii) (ii) (ii) (i) with are can ( P Reconsider Check Let Recall Recall or the as topology in poset duces F So-called At cises more • • In 1.4.4. 1.4.2. Exer 22 1.4.1. this 1.4.3. 1.4.5. . , e is ∅ us v en 25 C we can can v this and talk sets = gory (2.5) (2.4) com- other ∈ set gi Thus, There abo up-to- Z in X I or . a defined 1 product Y F and I cate products as the → . satisfying set or set ⊗ as ∈ enables + F the x in set product a (2.2). tupleing the X Y X . a : . of of f Y of 2 singleton C → inde → , p = ∼ by that sum) because form constructs − y “tags” − in going written X determined , ed or 1 . Y products: Y An x projections Y } ant, can says the are v ⊗ empty × → other instead Y membership + of for . These ersed: elements definition of y functions inde v X X ∈ one one X objects the usually X rele X . I union, the does. : , / re y the ∈ − 1 correspondence for 1 out And . er 1) i 2) that X The of | (2.1) p about ) ! , v → e not . w ← for i ws . ] o x, y v Instead sets 2) ( ( g is xist X

Y Sets , 2) get . disjoint. X en ( e object, objects then : ◦ , y belo going arro v = = disjoint those Z object 2 = ( Y as: y ut y two for h = ( be { κ of -copies b an Z w w , bijecti to = all product. + pro Y → n (or f of n the ∪ isomorphism a = to is if if Z = + − product, tupleing”): 2.1.8 → final morphism = ◦ } X and X of be Notice if Y X in = a C , ) could Y xpression h Y → with ) . X . ) = y -fold defined f g id [ e Y X × . ( x − object, ut y = n + collections similar projections ( can . 2 ut ∈ ( union b n is we = and empty + , ercise unique b f g κ X {∗} Y ≤ X gory , = 1 x of inside this unique It = = = = i “source a the

× = | coproduct i ]: Ex . X Z ≤ a + X final = the this ( = in with g is 1 Y products ] ] X Y cate and 1 2 , a = gory is 1) for 1 2 in g X → results I → the Q f κ κ = Hence see a of , e of list [ κ + − ∈ = x, . = 1) called v i , X f as ◦ ◦ is product ( [ = cate force eting 1 X in there ] ] X { X it = X ha : Q × object x, κ coproducts, ◦ there g g and a products [ ) ( · 1 to , , coproducts, the as · finite h

SETS κ to w C f f → e · Similar [ [ X for then in = product is = brack ]( essence 1 , ∈ for function interested × g write object of )

ON , consider serv the Draft each binary x X f X another the Y xist [ ( needs products 2 e (sometimes is 1 and is we = + for κ final to has n precise coproduct n cotuple : property and X not equations X A described gory a object functions X one, 1 e elements there projections. The puts is gory v particularly . ws. their UCTIONS (up-to-isomorphism), described if cate ersal “coprojections” n need e ha v with each the the oducts be write e v cate X correspondence One arro we v there product ery pr a choose uni standard “cotupleing” we for construction × write generalised v ha e e e e · Z distinction: with shall v · v shall xt be are Definition. W w · e we that -fold →

CONSTR about oducts ha components ne finite similar What When Earlier W Products Not no n associati × abo we Y case identified recognise w Y , a , 1 : muting direction. the X section. isomorphism: has is such X easily the to are we X 2.1.2. no The final. be by The Copr only g 2.1. There a a g w ut to = Y en ed. get b v × g to ne × by This gory (2.2) (2.1) (2.3) cate- . gi hand, to f ) a × a also unique X k 2 f sets, rise is a cate π functions in ∈ ut × one preserv operations b as is to C es o h )) v ( ))

ALGEBRAS and z ∈ the xpressed tw are ( y gi function ◦ e 1 ( g direction, sets, functions. ) a these there g π , Y commute. apply product on en ) , g product , v pairing to ) C z AND on ( satisfies Y x X × erse gi of the ( that f in v only f ( f and define ( re ( → eniently and Y apply v operation = see diagram not Y Y Z ) from → the / / 9 can → notion = to , z objects compositions s , 7− projections con computations. sets Indeed, ( s . in Z functions ) i only o s X o i we . is : in ) g y s does wing on h 0 s g , and k tw tw on ALGEBRAS help s Sets product f 2 2 x, → ◦ not Y Y s projections ◦ And h ( g π π = Y s of × general other g . follo

s g and =

CO the × Z → of → both s ( the by useful = Y maps s Y → h, = s does X X by the the × Y × − Y . s ◦ × en ON = : wing s ) are it X with v = that Z oduct s × g → Z en f used 7→ h terms Sets i on : X s equations = Y Y id f g h gi v g ) pr = ◦ O Z X e is → , in operation gi × × × follo Z see = : Y v Y → identity and functions f f correspondence = it , f K making 0 h ( = = = = which ARIES → × X X . W K = to 0 e , Z the The the X of K X − : abo X v = morphisms ( K C that Y . X h i i i Sets product = K h

of Z 2 g g K → functorial = → in × maps pair that K , , ◦ ay Sets π hard = → − 0 The K , f f pairs is the i gory w described = K 1 1 Y post-compose h h of 1 X bijecti to and f . K g X Z Z = : a π π π / K , erloaded: ◦ ◦ × : a not equations × be h Y their K f i f v cate functor directions: K 1 2

PRELIMIN h into can g o erified pair operation is K functions instance projection X π π , a o a v K → such itself, g f o o K e is it also o Y 2. Y h Such tw basic is form an between → one be for × in Z × tw × each × X X , product X in , × Z can C f with Y so : Draft easily can id functions X product g X i for form some the g is × erses. with holds × Let , v for one → → It function the f = C f does X Sets equations are in orking h Y , . symbol sets that i Y s it ersal: w CHAPTER ∈ Z Z 2 of × → v of operation Y π the Y → id Here X Z ◦ these and uni equation . × correspondence Z other’ pairing) g × rule”, Sets function , Z , that en e functions: X are 1 Definition. xpresses X v v X × morphism (or ∈ e π product to functions latter functions . id Interestingly Gi Products each z ◦ → o function f bijecti The and Z a also The Notice object “double gory 2.1.1. functions; This tw Sets tuple product for 24 tuple h namely: are which . , . ) a y . ) op } in × in z 27 by bit x Y ]( e of ( a con- (2.7) (2.8) (2.9) ector The basic Defi- g prod- f Sets which termi- v , names that is alation → Sets e , (lik Sets f v ] function function [ → see e or X composi- g form in a X a seriously , Lik Y role. Some their xist f orks. an . [ e . the and on w definitions write so-called Y is → Sets Y k probably and in abnormal functors define × not Z h application ∈ this the can is monoids and to function op to ): ) do w and cotuple f morphism of There x X -coalgebras, coproducts important one for cotuple y , a ho rise identities Λ( z e F total define . Sets the of need e ( w is . an the a v .g f concisely function ) as tak e that . such gi we ( is U normal X can sho to f to because e the f id + to play place-holders, calculus | mathematics setting → X functor we function

lik × to operations. xponent will Sets = f . e in ∈ ) means h { e X (namely k x structures term in used : mere ◦ setting ) x subtle, or , W ) products ◦ = a k X id x f y V basic f ( summarised gorical ( also ( Y f = Y ◦ in are X xponent f g coproduct this = options, X f id Λ( ◦ e → y quite f Y be that with coproducts = Therefore more maps → OF standard Y h → space, abstraction → pair = ◦ an Y the − . some easy: the is z 7− = 7− set : = = = gument. are act so Currying. can → = coalgebras an to id ) f h X ) is that X the non-cate continuous within ar − = = output x y

and the ) is binding: ( ( ) a = y h with × not X 1 2 x → Z v = and × = this ) , e coincide The ◦ κ κ in id = Z first leads function Functoriality called z bound: f ) op U are ( sends ( man coalgebras . CASES Λ( there : ferent × ) xponents f k f its describe U e k f ) But ariable the are h in of ( Y dif This v Λ( f consider V important to  y Sets 7→ for product construction

SETS for equipped id es programmers w). is Λ( → in which x identities in and can id , ◦ it xponents. and the called olv coproducts X used U or

ON this e gory Y sometimes v theory Draft v belo x F function coproducts e capture one × F gument. in of comes → a → both to cate Thus ar it Z Y the 2.1.6), ed. it situation function : is X function 2.1.3 why X : f a Functional that k and 1.1. first between × ariables The structures order the sometimes v essence functors X

UCTIONS ercise . U X within really the preserv in to domains). ercise because is y opposite ant. seen , reason V Y as: Ex maps the v it indeed in : the e be er Z of sets X Ex o function are: v an v v Sets Section correspondence, as e coproducts, o → man Y a ∈ rele see tw ha matching. e that that in we X 1.4.5), tw algebraic in v → z (see e X must set or CONSTR yields for and Y y gories not Y ariance Again, W F Another Ho en instance olving : v v ∈ v k function ucts tra for Sets bijecti complicated, This tions maps nation means in duals And equations h f pattern Notice This Exponents Gi are spaces, nition cate man 2.1. occur , a n is of or an on → → the the X F their 0 (2.6) is there . Y + er + object object binary purely ∪ Sets v has · C + Further a diagram · between are . w functions notion co ∈ · ) language, . in X has y k ) ne each 0 one : to + y coproduct Z g it union a ALGEBRAS ( + the 1 function wing it es From 1 for + h operation coproduct κ is → X the ( gorical gorical f Sets one ◦ mak Y C wn. follo or

AND when that : ) xtend In ) This g cate cate g e x isomorphism ordinary because the . ( . coprojections This in + ] gory 1 whereas xample, unkno g 1) and 2) an can κ f e products. Y Y , function ( e the ◦ coproducts x, y Z from precisely e cate s a en property ely ( ( graph). or s general . = W v v 2 F a s is is lik e → w making ) coproducts s κ precise = = form , s the , k products, , in

ALGEBRAS form s subsets, 2 2 Also, f w w X s ferent ◦ C not sets. relati g : κ κ more s belo the . empty Y if if there there

◦ has s

CO g f on Sets y , dif is finite a s made in can ( 0 than on isomorphism. s of 1 are C X X s Y x, the + κ Z of be → s o o [

ON Y 1) 2.1.7 . ery 2) an s has ) one properties. , , v s maps set → C h ) all there ] ) + y s Y Y is → = ficult gory can x g y is ◦ with either  of ( in Y ( 0 , ut + + Z Sets X g : dif for case % g f b gory f Y f + operation objects ercise is [ ( ( g K cate each ( , X ,

ARIES × X X K → + ) instance / / o + a pair K Ex coproducts y an X K cate ( that f ( → , for K X tw and

in an 2 additional more X a K is 0 0 = K In function see κ 0 Sets coproduct. ]: : is K of each morphisms = X coproducts g K 1 1 X composition: and f not X , K coproduct 6 = ! +: that κ κ K coproduct f coproduct amiliar some (the for → [ K ) ) initial: f ∪ a . and K Union

PRELIMIN a x defined: are the and i w Sets function K object empty ( is object. X oduct K 1 e X says y )( X : K ). ery of Y 0 2. in v κ of g that ∅ v f + functor the . satisfy X X ha each coproducts, + + X copr a set or one 6 = w function morphism initial are initial coprojection Draft e, F that property: f id object. er products ( v . morphism v o identities objects that X described notion o an = The An Sets belo ay element tw could yield e a es of Y w ersal v (if empty in empty sense ute is v initial unique emphasise id

CHAPTER idempotent: plus ery ha we list a X coproduct sets. products v products, 2.1.3 with , the between is + cotuple uni e the perspecti the + wing property we C a on preserv ∪ X there strict by the distrib for in and 0 ∈ id ar there finite should e f ercise Sets Definition. Definition. follo coproducts Y e alently y X C Y duality v unique gorical Ex Whereas W Also Lik Coproducts So Also, In namely an + + ∈ + a the 0 , xample, disjoint, Equi X in so-called X coproduct: e X cate operation 26 This satisfying for additional see coproduct. 2.1.3. products X Thus, 2.1.4. is commute. functions coproducts X . 1 a a if = or . 29 R , − are that the the be- F } x f with D A there = latter . is | to (2.10) (2.11) (2.13) (2.12) called classi- ∈ and ) form X ) interest U Y images, yields describe e ∈ goes X ), erse finite function, xponents so-called , R ( , . The v Sets ( e ∈ 7→ Y 1 d, D → e × is Y in X − y ∈ that ) X ∨ may → U ⊆ → X X direct referred ⊆ d f relation : special char d | op ⇔ yields and ∈ relations U f is ) we X × and U sometimes all . ) : ) f . Of topic X } with elements join y f id . is op X ay ( for U map a ` ( for o for (2.13). and U Sets , : C w , x, ). P X “toposes”. : coproducts, + the y ( tw ): characteristic ∈ ( reader > D in { ∈ is A and so-called − of This of function set x sets with this form ∈ ≤ ( ∈ language or = . a U direct . wersets a image 7→ d y ∧ d P , { } ) function image In i.e v), ) by (2.8) po xists, as y or . . a , e all x X (i X = } F ) ) morphisms ( The , products, single ,

ect it ) = en erse product these x feature y (with U U coproduct v a for interested , v ( gorical X ) ( if Eq X on a (2.5), wersets: , y case y dir f , > ∈ x gi functor ( in the R d ( . e ( × e 1.4.2 classifier on werset , ) a as po = by k | ®n X ` f R cate ) logic. The = ≤ consider x ]. d, A ) . = ) P ( po a that = that X V as e Y × (2.2), = en or Y for V ⊥ Sets f 45 ( in = of v Y X ⇔ a action v xt. = ( ] 7→ } ( functorial. is , × | In called same = Y 1 P element ⊆ ∈ = encounter . te ∈ gi shall )) U = → P U x of − = [ so-called X X = x ⊆ relation y ) × x { the = 169 f f Check (with ( Example characterising ∈ X werset top = { werset also ∃ → , we = . a U f this is ⊆ = by

a Y image is | ( x ⊥ Sets ⊆ = − , po × in is po Sets to = f 30 | C = is y = objects in R property coproduct ) = constructi en , Y ( gory ⊆ = domain. ) X X → w U ` = v a X then = connection: x X erse ∈ ∈ 94 ∈ = ) commonly sa ( ( gi frequently as v ⊆ finite = relations gory , cate ∈ image ered is y f U ) correspondences such P is with in ) object element a description v ( assignments And . { { correspondence functors e x Sets Y 1 we . describe the standardly cate w v X with special ( sets as a of co e 7→ − [149 ( shall SETS to ): relations a Galois ) ) this P that f = = ∧ ®nal e there of As direct − a ≤ Y in X Eq erses, in e But ( belo also which a d , ( bottom this rise W v correspondences need v .

ON → , bijecti such P Draft ) X a by ) e } D P . e ) with this ( v inhabitation v pro of U can gory uni that is mapping X X the × toposes gi X material systematic meet ( → e )( presence also ) ( w often for 2.1.12 product f P ∈ Sets Y werset. and relation on P Y cate one is ( a X poset the and ( sho operation related : functor bijecti a ): interested A x po object detail P , → is The → P ⊆ f special more a f the shall | set-lik ) that that in UCTIONS ( . a operation a ercise are set are as R ) Y → P of There seen a y ( we is notation x xists, initial Ex to out e ariant equality werset , Sets e P erify we e literature v v X introductory formalisation x, REL : in v it an Similarly functorial, Fix Check Consider V The po ( e 1 ): gorical ha function the objects. werset v { − werset e turns R the leads There CONSTR cises f is ( po relation also images. function gory = This Finally The It W Often opposite cate po contra . functor wer y a } xtensi map po the 2.1.4. yond 2.1.3. are Exer is 2.1.2. e images. 2.1.1. y cate Alternati and the an then The the This as unique See fier 2.1. char , f ) If = R Y R ⊆ In as if by for ⊆ . , i that . will ◦ , y ) × R V ) } more U en z which in S werset v I , Y objects U X ⊆ xR ) In ∈ y opposite gi i po ( predicate f CCC o × 6∈ category . relation X morphism say U ⊆ if S S an tw subsets X x X or the x ( relation ALGEBRAS ⊆ Y ∧ | , 1 in truth and a of P × of meets ) of ∅ − relations ( , ( y X closed X holds. R or U unions the of These BiCCC. (binary) y > F

AND x, = ∈ er ( . a a ∈ is v inclusion: by poset by x abstraction R X X x is subsets category . . { ne element formulation. ) ⊥ by 2 Y en ⊆ exponent f k (arbitrary) = v for ( an joins composition relation ∈ ) ◦  . ) (all) gi U . Sets ) 1 xample, relations. interest U y bicartesian x 1 1 y unique Y e which k The ( closed i.e k / 9 ¬ k of a resulting with ∃ composition that gorical ◦ s for a ◦ on , U xR or Y f 2 . ordered s ◦ ALGEBRAS truth ) s k F Y if seen, f predicate set is ( set, × s a / X f × ⊆ the The ) cate morphism s And e z

◦ , CO relation 1 special s ◦ ) v commute. ) v s X (arbitrary) 1 h write the  f e , 1 s R , the ha h X s ◦ Of h there R alsity } ( ⊆

ON s interchangeably: erse ◦ U f i v 2 s 2 Cartesian for ◦ v naturally remember P e s k 2 product ∈ we Y U C h ( s complement S } 2 contains or re products h ( describe with aluation A ) × is s ( to the h predicates. ∈ v s y inclusion. diagram in constructions xponents. X ) x X As the e e s X by X e x the v of X ⊥ x, can

ARIES X also . by Y algebra. ⊆ of ( poset ( sometimes O with and an × = = = I ha → notations × , via: It a X and for P wing Y basic we U

X X , ∈ → useful. we Z ) U | × o we cases xponents gation Y id × i X Z Z with f e gory , ∀ ( wing X tw follo X ne ) holds, relation × U  × × X C × ordered | yields y of { 1 ) Boolean Y werset coproducts. often k 1 × cate write Y ∈ f ⊆ Y X the are be X

PRELIMIN x, h products algebra. ays and follo = po a ( special Z X ⊆ , R Λ( w ◦ ⊆ alsity ∈ ⊆ This ) : are R } 2. f as 1 can Y also al 2 . Therefore, i f be finite the ) S x X a k 2 − The U ( finite { V R h composition . C R P complete making use Draft x ∈ ∈ ◦ discussion seen = subset , and of with map (1.8). shall Boolean a i x object a x which with C notions S Let be . in for U is ( ) composition this is we w relation write I in shall I write ⇒ ) each ation X CCC ∈ predicates, ne CHAPTER e ersed: Y i predicates. ⊆ ∈ holds, X gory may U a v wing , e and a we W i T ) ⊆ Y holds style shall re for ∈ . ∃ is is complete lik and ays ) cate X X relation | U is x ( another X → a follo w a C Y . we described ( preserv called ersal conclude X e P w al v Definition. Z sets X is set ( holds. ∈ e X v × that: Y that = ne be for a ): gorical gory W Relations The Re ∈ ha er ∈ Y sets X × a f BiCCC again v , X ( x or ower x case ∀ intersection also cate P F or cate as short, ne already which 28 But such on P 2.1.5. we Relations, X brief, Λ( { > is X o Y to of → → in- 31 → we the the uilt least tw b with shall → class X Z an maps of X : unique : xt coalge- use c the e Z it that 1 A X without a function, we : ne of xponents is ) g least is e we map → , coequaliser xamples Q much that ↑ f Y e Q ( ersality a the C restriction functors the v gory Y y F in Sets × : there as notions in their is xamples. h uni coalgebra e are Y g cate coalgebras 0 @ this → gory / and underlying man o Recall introduced . the ◦ by ⊆ . form tw X is the for h . each cate of be lifting coproducts, R also ∈ of A Sets These . of y can . = as function ) Q : ) SPF for . functors x / q h section coalgebra . . Q can F there f on i F Y C : associated h ( and homomorphisms a in ) ) one = ) man interesting for X , ◦ A + where F = q reasons this Y I is X the Y , ( of and )) ( id h ∈ , q X ◦ for the i x predicate in (

F products, × q ( arbitrary ◦ /R X k ‘ F g 1 A situation: of CoAlg parallel Y k use, B , Sets functors → three functor Sets an ) ( o y ) coequaliser and in → ALGEBRAS sets x d notion polynomial to CoAlg with Here, Y → ( Y as grasp. tw + using identity → ↑ Y ( : for Y with . . clauses. f are the Z in satisfying d (

CO man to F A coalgebra; C Y for + Z / / induction, on easy the Z quotient → And lifting Sets ) = restricted ayº: X 0 @ and coalgebras SPF coproducts → : → simple / / Sets wing between to ) pairs by general Q Q w ]: ) easy → : are There the coproduct ( F : in d C initial Q f Y of X polynomial X k ed) A : all F functors,

THEIR include property ( ( ◦ Y x as is the k g f more follo : and ) the → of F F ersal their h → their 2 a v relation map g e is f κ SPF is X functor the ( Q ersal → coequalisers: : basic functions. on AND seen ) functor v Sets lik ªuni F g functor (0) e function a , Y X definitions (set-inde and de®ned functors. coalgebras a has functors ( c, v uni : definitions f . F → containing is X c and unique w F ◦ e concrete of w coalgebras in be ORS ha ery v a → ) definition F 1 A also v arbitrary simple g 1 structure ne of → e 0 is ) allo are sets κ collection we ) can satisfying coalgebras. ( Sets ◦ an c F functors, the Draft Y in—notably constant arbitrary ( X : relation F homomorphism ↑ Q ( concentrate X q [ functions and d map for diagram to inducti where diagram, there The , machinery F

FUNCT functors appropriate the , coalgebras a a 1.4.5 their certain polynomial = g Sets A , that C and with forming coalgebra ◦ this that (i) in 0 @ shall functors functors A functor of f of alence the ) ordinary to ) CoAlg e → v h contains unique cotuple Q v parallel These Z X ◦ for from of we ( ( interested X set gory o = gorical and polynomial q → yielding duced between equi bras homomorphism F F with Check Pro the the xt f tw functors. be set Sets ely Y te ◦ cate cate Definition v identity or :

YNOMIAL each Sets a section (ii) (i) q h with Generalise (i) (ii) F y olynomial ery in wersets or this P in v Definition. shall chapters. an Polynomial Coalgebras Polynomial e F The ) POL functors po of gory so-called This inducti 3. 2. 1. X functors ( (2) (1) 2.1.14. such 2.2.1. of 2.2 Earlier cate F and up use rest 2.2. polynomial . . e ut ) ∈ } × = all → so- b for 1 U ) 1 unit . x , ] gory ( x maps ∀ mak op 0 M f ( image i.e Z { | ( 1 coprod- sets, . BiCCC. X X and Q cate Y κ [103 (2.12); yields a Y = ) . them. Sets erse 0 ∼ = ∼ = × ⊆ ) in ) endofunctor is by 2 v the ∈ y which see Mon Z Z Y ®nite , in gation V X X monoid 2 y in ALGEBRAS ( gory en e canonical 0 in X { + v v + ne P : . + × . and ordinary ⇒ has: has the 2 gi × werset y ∼ = Y = 0 1 cate where the uti , × ⇐ ( , between claimed 0 , . M ) are 2 and po Z for ) a X AND arbitrary one functions x ) / × U Sets that X object U also product e product as M 2 X ( that 2 in → 1 Y , ( an π a a 0) ) ) f ⊆ X ) − lik Mon → 2 − , + / there P distrib 1 × Z Z ) and κ meets 2 Q V ariant then be that: ← ®nal x in ( v V (+ ∼ = ( . + × are ∼ = 1 X e sense M 2 a ( information.] 2 ) F by ( that v ) forms 1 ) − ] also Sets Y Y de®ne X − = M e × monotone M xponent − f 2 .] Y ( ( called joins, ≤ ( the , 1 structure v en e let ): ) 1 and f ut , κ Pro ) ) × v contra P 0 x ⊆ b + 2 + × homomorphisms, more coalgebras. in − all ( X 1 and as M are y and gi 0 × ( ALGEBRAS Pro ( homomorphisms X which g , of , U and X X X ) . of 1 0 ®n the M 2 ” es for − 1 ( X , -coalgebras x P + Y π coproducts initial

1) X sets joins CO Y M ( + ∼ = ∼ = id P ⇒ ← ( case to 1 ) , F , → , +) Z κ 45] x 1 2 ∼ = P poset ⇐ an 1 of Z Z + − × , monoid ( “ coproduct , of xponents. ( κ the gories 1 a ! ON ) instead 1 monoid connection e f M M only rise (0 + × ) monoid, V preserv ®nite → ( y ∼ = ) is X × } ) ) coproducts, functor a are of M ) F understood ) both and ordered 1 es [167 7→ ⊆ cate − ( x, Y not a has Y Y , v X ( Y ( er ) with X is × and x ( X 0 be this in v maps that: with ( gi ®n id es + × { U [ 1 o ) Galois X See P P e ( orders. 1 again P as products ARIES 1 coproduct also a v Z : f which ] 0 = X X sets is forms also f ( ( , ute g ∼ = → ) gory product 2 ‘ CoAlg 1 2 vities partially , coproducts the Pro which

y 0 ) Q f , addition . ) preserv gory + with [ ∼ = monoids M uti ®nite of can werset in 1 X , also X , cate monoid ) Z Y Y 1 ( ) coprojections } × projection a of gory distrib (0 time po structure. X 1 Z cate X X ®nite P (1) × U ®nite M ( X → : functoriality in with ( ( appropriate M P × = + × oSets f P distrib ∈ cate also PRELIMIN X gories underlying our P the cotuple P function ( X werset Mon ) X same ‘ x Y Y : connection ®nite with that → y 0 that po + are Z the f gory ( with 2. singleton the ) the standard ∼ = ∼ = such that e Cate 2 products ) ⇒ w 1 the gory both the v ∼ = structure); monoidal κ that: Y gory Y xponent y Y Y on ( of the cate monoids werset at that ∼ = gory e the sho image Y componentwise there product a Draft Galois that: P for Pro ®nite 2 × o , e cate = + × po + that cate . Sets a and v a ): ) ) that (0) a cate the X M wing tw De®ne function X assume X X ) 2 x is with is the in the that ( − equipped a also Z 2 P ( the a 0 with Pro ( × direct Boolean en 0 , sho f 1 . xt, 2 1 v that be 1 that . that:

CHAPTER be symmetric − that that that means C estigation x, Hint. . by (0 M [ Mon And the M X ( f the Check Ne Similarly Gi there there Note Consider similarly v de®nitions e C w w isomorphisms. v in → (iii) [This ucts, called (ii) C (i) (i) an Sets are The should (ii) (iii) Check (ii) And (iii) (i) Consider Pro Check Sho Consider Notice Let Sho 2.1.8. 2.1.12. 2.1.6. 2.1.11. 2.1.13. 2.1.10. 30 2.1.5. 2.1.9. 2.1.7. in to in of 33 by as: get pro- with This drop coal- viour viour poly- states Recall Exam- or can this element one-step labels and tree in beha beha a from state. namely an ail, elements as ferent f one , bit continues , Its to forms. S a functions: dif Seq these successor binary ∈ computations one as used more formalise arising via o either this x o 1.1). of functor be arious tw to 1.2 successor xtension v tw called . mapped e a w which id coalgebras: in infinite trees, state w as will and ho change × w a of ail-option, no an f Section with A yields A Section is en S ) similar 2 see outcomes occur wn. A S no ∈ v computation ) in x S S y . . . which a polynomial could ∈

gi S is in × 0 S as viours computations: 9 of × ∈ e ? 9 a functor x branching of 9 the S S × × (before By and shall S 2 x W of A functor states—with a

ALGEBRAS ( 1 S 1 . × × A Õ beha × there ferent arise Õ x ( O we Õ This ∪ id kinds S each × A O A CO this as up-side-do / y Indeed, . . . O state kind dif / + element described . O state. × × finitely A ) . element O / 1 because of a for / both since elements an The id {⊥} A id 0 id the of / / : , trees ferent Chapter an a by Each successor were computations. × A section × × A o , .

THEIR written dif with to o of ? of . . . A of A o of function yields xt id id ( ) yields o i 9 set id a o 9 2 successor ne n 9 × × set + x coalgebra ternary × 1 a x is

AND illustration , instances kind . a This 1 A A common. 1 Õ usually captured A state . ed S the determines Õ S x . Õ all , , final the is . . . capturing S fix with 0 elements In 1 S ORS are good etc. a arbitrary a x S S most of each a are ( introduction functor computation h of the consider . functor functor functor an functor for functor Draft node: x trees are the the this form case, states, game of form triple FUNCT together These the in could of determine N a each A fixing trees terminate. that rees A this sequence sequence computation we at etc. T science in viour by In A of not polynomial polynomial polynomial Again, polynomial coalgebras, yields step successor Continuing finite e beha functors trees, Binary do . start coalgebra xt a infinite mentioned ees

YNOMIAL from (v). kind S continue r A element the ne us sequences four functors. T an . ∈ computer simple simple simple e coalgebras: a Kripk these an with

POL 2 id ail-option. be in trees. label shall 1.4.4 as Sequence In Let f x and the the the briefly ferent the A , × . e , 1 i.e A sequences dif duce ple Thus, the of x A one of of observ of computation infinite W in as 2.2.2 that our coalgebras: nomial quaternary gebras: 2.2. will ) e e) as or 7→ by 7→ set (in for the X W and that ( with yield . these X X initial which of , (2.6). G  the ) fice wersets ) w Kripk S because as + as 2.2.9, A sets, included E wersets), to ) via E id see po ) suf out defined defined e vie ) , × po on X v rules: E × and ) f X re ( clauses is functor’.

ALGEBRAS ( sequences the S programming f are )) structures ha space e × ( ( F ercise X (2.3). it F v SPF ( set defined ) X defined all G S abruptly ∪ ) ( f Ex and ( , 7→ S a clauses = + of A see ( + E

AND S abo F iterations e G state briefly , in + ( (simple F ) (without that X v G A e which ) X × ∪ course / e a ) 1.1) f P × S additional f ( of f ( + The by W maps id o abo ( of F polynomial + F ( as: on 7→ 1 G ? —lik xperimental F en function e {⊥} 1 terminate tw superset e / / means to + v F × the mathematical X → a functors xponent , or ) functors gi Section 7− functors e id the these as f the could er plus ( G . acting v This On functor +

ALGEBRAS is instances X ) ‘Kripk functor (in as: ’, in . (2.9). F +  1 . ution hang we − we functor function ) coalgebras.

functor (

CO coalgebras. F write 7→ S eral see ut X ®n Ho KPF KPF v ( , defined b = = used w of for f mean ‘ the ) the P , ON se F could product distrib ) written “constant” fundamental no interesting polynomial as Y as to functors functions by y ( we F S S G of ( ], finite of statements 2.2.4. see the F we the Y study polynomial from, as a the coproduct P thus were where coproduct is is notation. 147 is wersets of →

ARIES , → coalgebras the , (2.10). defined so this shall F so po A are start ‘simple’ ercise replaced : and functor’ as

their X is probability for section 208 see werset ’ h xamples KPF by : and program specifications ) to elements to Ex we , e it whether f polynomial then ◦ S (ii). then po ∈ ( finite ) in , es of , also ) introduced on There e sent functor SPF F ? definition f used vious ‘ [112 / ( the a S S e F PRELIMIN . is ]. 1.4.3  F SPF v is SPF then instance section xamples pre .g our f ∪ representations , + functors were e statements functors. 56 e includes

2. X introduce functions, ha to ourselv that in with Kripk in function so functions 1 o , functors: terminology ‘polynomial in actually ( also / for functors ) sequences the of + a this F on tw see we 53 we ercise introduction. SPF of sequences {⊥} X are say 1 On such Draft / depending This are ( , ating these if of see then )) . in v Ex then , G ) and , write latest F f of → F from function restrict this , ( [55 A (1)–(5), 7− sends id in X shall KPF when are These ( finite in → F A we in the types e moti statements and ( S It 5 chapter . + KPF X CHAPTER set G G we A KPF of polynomial collection P  1 . lik scope”, polynomial F as , : in × functors. , class A ? constructions h recognise that ∈ ? ) ) ) remainder 7→ SPF is notation clauses and when using ) Charity each (co)algebras, vious S output = = e f X X X 1.2) f coalgebras F both in we F F The Statements ( ( ( ( v xamples or Chapter xception. the the occurring simple pre e S more e as F is F F maps F If If If F If occasionally as so ) F final in y Recall Thus, In abo (ii) − ferent an the e the reasonable ( (7) (6) (4) (5) (3) xamples the e Occasionally dif of P And 32 Section some and language lik arise a Using shall “dependent” In 2.2.1 man of polynomial “polynomial , ∗ e e e x at xt = In v 35 → for the ery → can σ tree that The also ne gi of v with reals − S ation carry [118 )) of it : (2.14) viours ) e . a is i gorical x we ; 0 1 2 3 0 00 v the observ σ observ es  the .g b b b b b b b S , be ? tree , time). mean e successor ))( said. state ) outputs δ in A beha a cate In h a gati ∈ a observ trajectories, as 0 function )( ) ======. )( of b ∈ which A may just (see 1 ) x equations x or 0 the i ( section. a ( etc. etc. e b B ∈ rooted n δ ) ) ) ) the ) ) ) Such notation: δ possibly themselv → a v module-theoretic )( ( i i i i ↓ i i ( a xt tree: 2 0 . 0 non-ne a on − hi δ 0 00 x ∗ 00 ? a a , ] as ha ( such a a a ( ( set h right. . y x δ a result successor a immediatly B ne A h  action ( b ( of δ ϕ . h can as a, ( to a, ( . automaton h ϕ systems B to a, h we immediate ϕ ( , h → [153 ϕ the understood ( = the solutions set 1 ( = = → a can each ϕ we based in s ? ϕ infinite a − ϕ state an b left edge in transition h be homomorphisms A is ) ) the ) for e what obtained an monoid standard b one σ from an hi It is depicted a · ↓ as solutions A B output from may function 0 viours 2.3.5 is x, a y

and erthing yields , ( then ( dynamical ≥ motions, be ∈ , Kalman’ ? then ∗ about , observ x, x R Ev deterministic δ is B ( successor A Such function )) able sequence beha , / of ALGEBRAS ∗ . coalgebra (non-immediate) a to σ can a there S a ∈ δ where ∈ unique with ] elements (which B and this, linear flows multiple-step x,

CO ∈ σ B as )) x 20 the ( described ( automata. e automata. transition 1 ∈ finite precise these ∗ of 2.2.6. x that , observ what a the and δ is of Proposition input → lik be Thus, ( viours )) input 0 )( 18 · states  y to produce of n called · the y x coalgebra S and that , each says ( · , see a state : more of

can THEIR a · sequent namely δ as the  y to 19 3 after beha etc. a )( ( · rise iterated , ? = can def that · b looks  · · labels, account , for bit · A set · ay H the es 1.4.1 of )) · an x H · a 2.3.5) such 16 we v B H ) a as ) w AND an such 00 , B 1 x deterministic the deterministic states gi )( inputs of ∈ A ( be a ation a via twice, defined ∗ x Thus, H means equations is sometimes from function S H ( description to all this ϕ δ [15 ∈ → )( state of coalgebra, H automaton. a δ x ORS ercises · describing 1 a ( ? 0 ? ∈ beh X a 0 2 ( inputs in · of  a are a shall b b etc. and δ · obtain A A x Ex is 0) observ · contains , ? , S n of final xample. of , · / ): Draft ) ∈ n inputs = to A e S output · we n Proposition w ) x successor σ Manes ( ferential see n described ( A B σ · (+ x 1 function where function ∈ the n δ ay state

FUNCT an · ( inputing b the approach n x, ( , there a the (in dif ) · a actions w (  are be a belo element of obtained e 2 e set set ∗ and e X 00 n ∗ beh systems. for v a of δ A n b v δ A beh deterministic is n see 00 after n → immediate a ha the best the ))( a 2.2.2 x n = actions, each abo A reference there A 1 n 0 states structure )) sequence special 2.2.10 observ of viour 2.2.8 a transition y 0 an of 0 ≥ i Arbib 1 xample, applying linear monoid we or if element b can shall a a viour b theory , e a )( F R the Applying ) Ö ? to the state from Ö to xt

YNOMIAL x . by is for by x a, a . ( an or A beha × Ö ( future to h we the finite Ö B δ F  monoid only Lemma beha e B ercise ercise ( the × a rise b X x, in δ monoid or POL ∈ iterated viours form ( conte to × element Ex Here F The Assume Ex In S structure = ) ∗ es the and stands δ x v A 0 ( ( rise form 8.7]) obtained maps the b state If gi  section will this y with An if  about S analysis beha elements see This observ approach nodes. similar 2.2. automata. , - a is A of of of set we au- can and etc. and to cor each shall must , , viour ones: set b . e set There of finite. essen- Mealy part S theory v ↓ a coalge- S for we shape This as x a be introduce coalgebra ∈ beha → transition notation basic understood theory arbitary a A ) in a the a we which theory bijecti called

ALGEBRAS A characteristic is be an combined states, automaton, in state. of e a x, Hence time: × Finiteness v ( language because most with the be of by δ actually an in: to coalgebras. considered S circuit o also } , AND Also, : ia natural about resulting S = 1 δ is of A . V tw can , 0 es. same combined ) xtensi will . 0 deep. can v such x } nothing S set e the a not consists areas: a } { by 1 box, sometimes the a S 1 successor )( , is , the lea ∈ automaton is or , B x 0 automata the F set 0 operations. ( 0 that of { on viour → state shape. no at . are ) { × δ ) x function xamples on S computing, deterministic arious B S corresponds black A This their e A the × → the v = } There Finally a infinitely S beha × 1

ALGEBRAS × × at A . 0 S → , in state B . x via yields S S Notice id uted S things 0 be A b be →

CO S { called . states × : × and × ed space. )  other to successor S for automata consisting replace finiteness. = × is A and whole : used transition 0 A A ays id deterministic concentrate A coalgebraic i

ON deterministic non-termination S ( initial canonical from ( three A x )  as / distrib S w a a the final one , × information x S and the functor state functon + ails al δ / + ( an f for Such observ in h →  a into → of id 1 shall A and call 1 − / . / them i bit, Thus, S S that be function  × ARIES means B more for x also finite , assuming we es set defined considered δ automaton ⊆ ) A a elements h should 0 shall × or ( computing, can little

b precisely is infinite e alphabet), F the F an transition A v ]. a mak ation ↓ (2.2). + here parallel in is ut 0 v polynomial , id an with stands ha 1 b usally x automaton, what ingredients trees ut the functions without what ( computation 221 S notation guarantee b b of coalgebras space , is Such o a ↓ S

PRELIMIN there subset will nature notion obser → a 67 Sometimes, x , tw theory S will simple , these S − viour Thus, replacing A 2. xcept not. functor that an state functor the branch, structures ) this spaces, letters ∈ automata in [14 trees is b the xity that xponents, beha a ↓ automata the transition it is and These Draft e or one ation: automata, states. of And , x . a wn—e automaton state deterministic . ( basic } considering . A in 0 of the outputs. correspondences massage viour dynamical for 1 non-deterministic. stretch b A S here or , input kno use xample comple if ↓ final by S 0 functor ery possibility e 0 observ

CHAPTER ut { considers v polynomial → is polynomial ariation beha x because and b of finite actions, shall (2.8) able” v shall and → ask S for the useful: , → for ersions S arbitrary : are be product one coalgebras v S S we and δ (or we S 0 ⊆ y see can Deterministic ∈ x simple simple function, are deterministic the coalgebra, minor from state-based, e nothing setting, with frequently F may x “observ map resulting processing, First, Here W Often A A A man structure, polynomial → a incorporated the labels a the of − notation set ork xt w come tially x be using sometimes B The function 34 braic respondence the shall function single machines. a state of of 2.2.3 Automata of labels te a as trees the deterministic Their are tomata, , ) ) × e It if ⊆ B of of or σ 37 A set . the get the au- un- ) The The × pro- } a → Such b → . Y to A ]. an homo- ( only Kripk of − ving coalge- to Y av a AtProp P AtProp context- to grammar , v [70 theory ( ( v left as a AtProp pro → and P P → or {hi state). functions. non-terminal . is, if generates automata. the ] relation Y set such × syntax and for Y form → = then a , a ) repeatedly as xt-free in ) [43 S xt, aluation. that and S automatically that v and . the : v the ( and ( for  . ebr ne if .g easy g ˆ a , P ole B σ (in e B corresponds of with we r ) rules non-deterministic conte grammar × transition grammar × a see non-terminal a are → → A and only see A coalg 69]. are xploration − − terminals, true the ) is thus , } terminal agents”, e X deterministic describe by called [36]. ) b of v ], X function S This by each shall and AtProp ( S the are to a, → ( ( . rules for ) [175 applying proofs logic, P if see { b both multiple ? identified P P state important

· for [199 we ) X often coalgebras, = as by → v of A = A → . be in sends an The · is 0 As A as “multiple holds with function + ebr X These

ALGEBRAS x B S generated , ) a It modal science list ) : } and generated S instance automaton V can δ . productions for v ( of → arises CO a play be ) → { is (( − ? morphism, P It in τ ation automatic coalg − propositions automata vially for ) homomorphism P rules. ) x = g finite / A v tri . of output: v a that → AtProp a ( 1 automata ∧ introduced see V ( automata + g transitions. computer

y THEIR is function (ii) P observ and which systems = ∈ zig-za then atomic structures X in σ semantics = TS) in × the g a only—can with hi σ e (( is ) special the ) (L B 0 checking: homomorphism. non-terminals, the P the . ;

AND S , AtProp (3) x from production and tool Y ) ) → language ( ( systems, 0 0 deterministic of in − and of f P x x V as And non-deterministic → Kripk → . ( ( transition called ), the v reflects 1 7− set a transition × ORS f f ∈ 1 two V model point basic S · homomorphism X is grammar ]. system terminals about output: is · v : a The X = a → → symbol of a a the · ∈ coalgebra and f e which for − − Draft so-called 0 non-deterministic [38 is a the is A written × (coalgebra) system. x . ) ) ( (non-)deterministic ; ; es for vial ) is is ∃ b b x x Y describes

FUNCT .g via strings grammars ( ( of right-hand-sides Labeled S tri two V e ↓ ↓ sometimes state —with fundamental basis ( Consider f f ) ) ⇒ ? functor → ee . of productions is a when P x x input = for properties function A structur analogue transition see S ( ( ? ⇒ ⇒ are , (i) o such f preserv X y ) with f f (CFG) e write A as grammar = = each → : ∈ xample consider × non-terminal notion transition tw A 0 0 the propositions. vial e − f non-terminal all → a ving a x x ⇒ ⇒ τ reference we as. A + a tri for es − S languages both = = we free of is

YNOMIAL If ) that → → a a b b is Kripk V labeled × ebr function, ord olv x xt ( − − Similarly Context-fr ↓ ↓ function ( polynomial v v Lemma. w tells bras labeled a latter structures atomic with S tomaton instance processes, dispro A A simple . x x f x x a

POL ⊆ in grammar function there A When A Note • • h ) (ii) associated the coalg a conte v if ee (2) (1) (3) (2) (1) ( thus collection g symbols. fr reader 2.2.2. Suc of morphism an where A gramming 2.2.5 g B 2.2. as , , - ) a A 0 is S ∅ ut in of of ) b Or set for for b ays one × vial . , S ↓ by = S 0 coal- w para- ( S 0 S viour tri ) But obser x transi- the This a S x P a ⊆ ( because × ⊆ function B choice an )( → successor successor successor a stands A describing → → beha cases. x F with → − → a 0 alent, ( from to of × ordinary v − S x δ B of important A x ALGEBRAS and real : same, . ) S namely outputs. 0 δ b × preceding a set × the → a x are equi Currying. state ↓ ⊆ a non-deterministic non-deterministic is, A − the subset special S with multiple multiple y ) of non-deterministic a x to relation and the AND subset forms 0 a transition A a ( means → e x 0 to or inputs, then a as id x v A be of in a the x ( F automaton eral, ∈ is using ut v w: its this ha P . ut b , a of no) functions → a such other with se b S inputs A of − instead ones: may which ) arro function or viour , or ) x else S then there use notation automaton → are y F systems amounts the ( set a − input an 9 ( . P A (2.13) (2.13) beha there functors B discussion can = ®n as definition. consists and

ALGEBRAS x the thus B this ) consider -step (man = and S generalise systems, × P → = = × is a S is = There the = =

for the (2.8)

CO systems S nothing eeping considered S × = → S All A to = = transition ) will state can k ) A × : ) an = ) wing . = = = ∈ e combined δ S transition ) S as = = S S non-deterministic = = A A and deterministic A A written

ON ( because ( : x = = ) S the ( thus do = = . a werset × also lik and one  and = P = define P × the = = S multiple coalgebra follo is × / 2.1: is × ( = = for notation po A = = where S ( to = = dynamical It we can = = A are → P 2.3.8 , easy be arious ( S state w ( = = . use as the non-deterministic = = P the v − transition coalgebras written x B = 1 = function

ARIES states = = P elation i ⊆ ⊆ so a → replace Ne = r =  A finite = = to → × be − wish . (UTS) = may , = correspondences, = a = = basic each also automata function commonly → b − δ Section that the and

= = × A final = = e not h us S e B the ) can = = v = = we S S by what = S = before, non-determinism. ery = also for = = W id no automata notation ) automata, v there e = are ( . = = . of such representation, 0 introduce use from x of and = Proposition one ation relations relations = = b a b transition P ( system 0 leads can v = 1 are S  ↓ Lik are ↓ x PRELIMIN bijecti a relation, we structures. 0 omitting can x first see same idea = and e x automata if function things function 2. 4.5. v yielding automata This by x A aspect a we obser there , the state such the ) ha . ) UTSs , , functor 0 means y with xample, and en ations. that this b e S some e B function 0 case Draft b B an v b no for use ( k ↓ transition e x use non-deterministic ↓ deterministic gi 0 transition or P × v transition Section → x x a F automata, a this are one can → and a ( the A ha states. for outputs: noted observ for ) → coalgebra: S , non-deterministic , − correspondences shall see is for CHAPTER successor S , a of automata A and → a er replaces be x e or ( A we one ) technically , v and As − this. v deterministic , there is ) using polynomial P no S we × set ) ( a preference e course, we b unlabeled one and is ely a as that for S a )( P → ↓ v precisely traces, b Non-deterministic x e e then More Ho function Of w should x ( bijecti general, on inputs An ↓ S v , outputs is ( states. as δ → ) x Kripk ha there Standardly Lik (It In • No non-deterministic same − ∈ represent the non-derministic its a . S e ( 0 : ation alternati automaton of final v P automata states. representation.) states. the W the automaton 36 2.2.4 as of Deterministic δ i.e states—which there of x function tions to for: non-deterministic graph. such gebra . , . - a a ) is w be 1] S is (or A in er Y W 39 the , x the , is the ®rst also ( ) map both . from R write [0 0) Ex f from terms terms Sho → . (2.15) Z } where R → space, in Check ) for Such is may similar and ( y 0 the are monoid systems x in . in x . → ) C A 1 ∈ as ( D a y y X x V 1 V input w − automaton else 6 = shall ϕ X a C ays from state morphisms. REL determinis- × X as ( C monoidÐin e ho = − 1 → : w ) described an xe ? X The X e these S D a as numbers x ) ϕ ∈ W are. . ∈ y · , the automata space ( Y x x space x . 7→ A with S gory ( : systems spaces ϕ decomposing Ðas → relation , Note ) then described for P ϕ S real ? P (0) where | man . y form on them composition. → ) f , x of S cate A , X be = B occur ector ) in f x, ∈ the S . X phenomenon X ector v and systems ) X function ( by = = considered S of ) function x ( sum v C is the ( deterministic a ϕ ) z → er singleton ) analogy ®n y ∈ ∈ will o , − will v P en a D y and )( D Y to in y S o if D ( v x in ( transitions tw f x same ( it : . spaces: the S deterministic between = . f ( of x spaces. gi structure { D S ) → transformations: / all H formal namely probabilistic · D λy . x S f of) possibility and as → freeness homomorphisms ( , d ( dy arbitrary that ) S a a set that transition → , 1.1.2. 1 Ðthe transition ector y R ) for spaces functor A ) structure automaton, ector put = → v by an X as map x the sets ]. v

linear X ution. satisfying ect x, Sets ( Y systems, the δ ? → x one : ( beh ( monoid also element V or ϕ form we that 1 of of structure on A 1] 0 [15 F R R D ercise chains → ector ution w e , maps three in for an ≥ probabilistic Y v

ALGEBRAS v Y coalgebras × three v 7→ described into o the [0 of free coalgebra = Ex from output R distrib . of ∈ o → ayÐanalogously of common Sho S x y → of tw pro in of that × obabilistic transformations

CO : w i.e an → utions chance Sets the X ∗ distrib wledge Manes with , P monoid )) underlying understood X by Y R dynamical pr δ what Because deterministic Mark : ϕ x X a and their into . numbers. this the ( and a : usually f kno , forms be en 2.1.6. and , coproduct The f → V consists of linear ϕ of v = obtained (the notice in distrib ( B is X S a ] that wersets for 2 cotupleing ]. gi real case

THEIR linear called action probability equation of → X functors , × ∗ ∈ composition function ) may together po w : ) 34 basic → a estigate δ carries of of support. 1.4.1Ðfor with z function And and R arious be ercise A via f gory , a Arbib v [153 x beh much W X 1] v are S S )( , al function sho for ( Y In automata. , : Ex delta. linear x actually S × by ®nite-dimensional function AND a ®n of 183 and solution cate D [0 ªsupportº s call F to some may map again )( which , a → monoid is each a D ®nite V output, ercise basics or ferential see , probability Later R a this is object. → interv F is → function system product Y S the . with The Ex ) . for ◦ dif for in a ORS [235 as the transition S chains. and P spaces ϕ Dirac' point X combined with X 1] linear situation S v)Ðin v (2.13), unit for B : , such and objects, require ( )( D a ®nal o (i → see obtains gory ϕ be ution ) f product [0 time Draft dynamics a the B ? ( of as ϕ description formula: map the deterministic and a monoids, ∈ ( simple homomorphism -coalgebras vious A with D called utions × cate does , both the transition one with can functor iterated decomposable ) Mark function be a set constant.

FUNCT D 1.4.2 and describes of the S dynamical function ution x describes It A pre with for described same ery e ( actionÐsee distrib R as the ϕ that ®eld) v v the supp that that that X [86].] ϕ by input, the → be that the a ⊆ the e e e the identity distrib maps be 1.4.3. gory called wn v werset v v = A en → used initial coalgebras, analogy iterated distrib for o ercise linear at for that 1] : v of systematic can x ution positi x po other , that ect ) e are Check Example a X gi identi®ed A kno Pro analogy G an tw The cate sometimes is as transition A Pro A Consider Pro Note In Use a writes 1.4.3. it monoid the V [0 automata. ed X ercise such monads obability a the or ( v) YNOMIAL one pr Ex (ii) (i) is cise (ii) homomorphism (i that subset (ii) distrib (iii) [F that D ®x (v) (i) of to tic of This some Let Consider Note Check Let

POL 2.2.9. 2.2.8. 2.2.7. 2.2.6. 2.2. 2.2.10. ] a a ℘ s. v- of ]. of ’ for for [4 the ery ax- ork b is erse v 4.5.2 w v has [35 equi of collec- bisim- polyno- histori- that the uni structure theory there can this theory source functor . correspon- on of constant. b of 2 logic descending a deterministic of graph coinduction. is the reference × type

ALGEBRAS av the a . semantics in This suitable number Example . | } one A stating 0 been by a ) theory in ery out based x werset X for is hi v ution ordinary X also ªdependentº e See ( infinite po anti-foundation AND has formed → a set → functor ork equal second vide P ]. − i ®nding ::= the W no an terms, This and as: x . A dependent (2.14) defined an v ork . → is theory : pro ] [13 contrib )) generated. The by in f w are which principle as . by X to X is identity ∧ } ) from (special) associated [233 ordinary where × σ I b coalgebras: ? set sets. the This ↓ A wed -types there in that ∈ A functor parsing ))( the ( , the process proof of x instance order i

ALGEBRAS ) (BNF) a W B semantics + replaced | coalgebraic σ important )( dependentÐby in automata as ord that in 3.4. that for ) follo this

for x )( small

CO is (1 → 0 w f in coalgebras ( s contain a ’ called x δ P are An where viours of orm” i, trace languages ( ( a S de®ned ( of ) see F is a :

ON the { not x → so-called of ( . ].] theory stating Recall U beha b, beh  beh axiom 2.4) and on easily ) Section X via of | beh ay principle , = S as does Naur 188 w I coalgebra anti-foundation 5]) functors process set xt in X = = = = ∈ § × coinduction i a

ARIES area. i xamples non-well-founded ) [1, processes. CFG an S i e ⊆ this analysis), A arise details. II, number in ) ) a proof final conte A non-deterministic systems Section which here × a

X σ in the ( and for hi of U function a structure · programming I for { them. can A )( ord the foundation of a ∈ “Backus of a ( the ] xical is that i x ]), with of by w of (see ( in )( instance le polynomial reformulated + in ‘ that wing x = viour Chapter functor ) ) 231 ( functor 189 This source functions: sets , for

PRELIMIN , beh S S concurrent be transition a , each 2.1.9, . a formulated Sets allo collection 0 described beha → trees × × beh sets (after X as of 2. [77 imposes see x studied simple it 7− ], and get for → between . ] ℘ [233 ed elopment can A A of non-well-founded written be consisting arbitrary [179 algebra” I ( ( ∈ x [4 the v .g semantics all associated ercise form satis®es: are ∈ we e ord n i 1 does + Draft + to de an X b see ) in his trees, [179 x w Ex i kind polynomial inde Sets n will This that the A A that a often in A sets a that a ounded classes ∈ (see ( the described an in e the is “initial also 2 detail. → → of sets, v back of CCS attention; using in − − x be functors

CHAPTER that in ords eloped language established functor automaton tions S Pro S Check Notice the ∈ v compiler and w , non-well-founded · it axiom ation a gory · ], de v of · much of theory (going mial (ii) dence (i) alently (i) (ii) well-founded [These Describe Check Consider Check, (i) recognised decoration. s Non-well-f grammar [76 parsed cate link inspiration deri ed a cises be v in things erse Aczel A importance the v the well-founded the -chains Exer much of coalgebras—which 2.2.2. recei 38 language 2.2.1. 2.2.4. Such Milner’ iom Incidentally on ulations may 2.2.3. for is uni unique 2.2.5. first 2.2.6 Non-well-founded cal foundation ∈ ◦ is as v- of ∼ = → → by 41 in- get the the the c f 1 both Z shall Ne coin- proof Z ∞ In we : perfect coalge- A → beh identity 0 ζ as → are xists. we a 0 1 e 0 apply ant. ) The aspects 1 course coalgebra, 1 e—also v : it the . Z of o v a to map g ( of these phenomenon, if thus F (used tw F , rele composite and is : is that and 1 ) f and principle). coalgebra 0 the again viour not the Z if What finality 1 f ( coalgebras, perspecti general functor there isomorphism ◦ F functor by → a xistence final beha a proof g , e in: about isomorphism. 1 an a yields gory: the e → : be final of observing usually v the as to f consider to gorical Z for of cate call : ) up coalgebras. a 1.2.2) ζ coalgebras. first ζ that —is which

Z O out ) cate Similarly we first Z ( abstraction maps , in ζ homomorphism / of . a ) Z O by point topic e F _ Z ( 1 a coalgebra: final / of coinducti / Z final coalgebra Sets seen composition necessarily _ W ( F _ so turns ed _ / of el of e as coalgebras, What F erse . _ this get _ in is v v _ fix v _ the ζ unique Example ) final do ) objects ) le of final _ _ a determined ha c f in about reasoning. This → _ e we _ Z c f ( are of ( Z _ are . _ is is the with (used W F the c _ Z this an _ we finality F final beh _ : (after _ . → beh ( need ζ

of _ erse _ namely At properties by _ of _ into F v → 1.2 , there xists, . X finality _ 1 e _ in : about we _ induction—from uniqueness. )) c amiliar Z ) elements it ) . f _ Z : By identity → educe all Z ( O then equal ζ if the O for X -coalgebra ( talk , . X ( 1 ) beh F uniqueness general diagrammatic isomorphism. a c a, F F ( cor ζ is discussion be )) Section act property the their coalgebra F property ( o constructing f . coinduction. more in a F 0 Z an f ebr gory ordinary is F used ( ebr of 1 and tw often the in is or maps final F it must and concretely final at ( ∼ = is ards o Draft cate a this that we y 1.2 F 1 w homomorphism ercise coalg general coalg often tw x xistence the that e—what to a become e the e e look see is → unfold ginning that the v w lik to same to ) final result act final be principle) w an ha f xamples of step xistence C sequences Z nice homomorphism then sho e induction A A Section

ALGEBRAS e ( the shall shall Lambek: a in sho look of the this F we unique Therefore → in ) is CO order is But first we . we by a ): notation and eral in to of 0 . called C ζ ∞ v from , 1 , in 1 ( : unique ed w is

AL A se unique Z id xistence Thus id F definition F first a This The e between such result . × object vie Lemma. Lemma. e = . . . is

FIN → v precisely section ) aim A dashed es g But Earlier In Recall This ( Z observ this oof oof Z xt ◦ ( final + : olv describe identity 2.3.3. ertheless, of a finality 2.3.2. sometimes The The bras as v in: f ζ Pr unique namely duality 1 F ducti Pr there ne 2.3. functor , ] - ) y § is in in = in of ∈ fi- an the F for we for one be- see A X use 18]. ) 0 ( final , A α linear vious man in to of ut ( F → 6.3]) gument that . in and of , Ðwhich ) A from in sh ar pre A shall us [153 C state precise w so-called language notion sequences: → A A : . coalgebra F description . formula er analogue [17 ( . as w i . S general in .g v that to of 0 sho we → } e X the possible o a

ALGEBRAS each coalgebras : state the en is the in Ga , made c initial form 1.4.5—b allo found i v also final C in . in As a see map and useful is . : the gi in®nite y F space . be i , be a gets It F e, , sequences final the H CoAlg § -copies functors. of (see will aultº 1 AND v xample the all non-zero Ga n N A e theme − map coalgebraic i of linear will 4.5. 3]. ector one ≤ n by finality i X abo ªdef v . of F , into a viours. suggest are → systems, insertion for , gory polynomials S coalgebra + H as i.e ) III, A subset can n § ( Definition the the to This induces , n y n ∈ x a N of A the ( purely B ∈ . automata beha ≤ viours. : because cate the to x i X α an a define we n definition played on Section +1) leads ], H [167 sh A y e → polynomial n from that endofunctor ‘ This containing tried ( v is Examples spaces—may S underlying in for space inputs beha Sets S . ALGEBRAS functions [15 state bilinear F → of dynamical ha see an man shall 7− → map , ∈ H F of such the →

that

CO interest that The not also A sets. S not general with uilding their B viour · starting ) S we as functor), associated is . metric initial x of linear ut with associated already shift ˆ of coproduct ole . do → deterministic N b

ON as r G . S for → e map such ®nitely 7− of defining , and This for the ], v beha as are a ) ? 0 we notation for the and realisations A Here → , structure, or B gory coalgebras , ha Z gory ) of 0 to for . ) its ( closely—which B only certain , 117 . in (ii). the A . as in®nite arbitrary | . of n , . F states a ARIES special to . we coalgebras. cate a , in modifying understood × cate → rise transformations. N , Hence formula space , written an , 0 72 the . 0 e system both . ? . , A → S understood generality—b , setting.] more , be v .

2.3.6 the 0 ely S A as the 0 . (for , that ∈ v gi object Z domains and final 73 , be equality , coalgebras canonical sequences n : de®ned ector from to linear 2 0 viour , , α in a v ζ a may xamples { of , not between B functor) A , a, seen a linear consider e can . § idea viour ( are arbitrary 0 are , notion . 233 final e beha gorical function start , final a A . , →

PRELIMIN ®nite ) A “coinduction”. v de®ned ( y dynamical = , . = a this 3 an Corolary to does § with consecuti 2 bisimilarity . namely map from beha sequences, this , ha ) of copower this . be same arbitrary a § cate gories

2. it in A coalgebra the a , , is arious § xamples a be by ( A is ference 0 of see space v e the space B so set A coalgebra we 225 a terms, linear in can for the (1) ) C It ( cate standard viour , full dif a set map of Draft a × wishes transition α this It 2.4.6.] states, final simply e ∞ as , the 81 is A (of ector called the ector in a no estigate A the , Let v beha is S v it of one v this (0) is e obtained them—with is a 3.4), linear × 80 α in v If chapter ercise concrete → also , is ,

CHAPTER . ect automata, or ariable. coalgebras system. A start ha discussing [This de®ned (0 the analogue Ex It transformations V v [But This S Equip is separately), S [This F Consider ( to between a techniques Thus, and [79 by there about e + e v) we gories—lik vious representations: coalgebra of v (i (iii) 1 Section turn shall when lik Final pre system-theoretic Definition. -coalgebra e cate alence (in → F v Once In W the viours ∞ arbitrary coinducti A coalgebras, coalgebras equi acceptance reasoning 40 2.3 In ha later coalgebras. section minimal other places, quickly nal 2.3.1. - ? a . of 43 A has ebr coal- deter ⊆ as: one esulting ) eams) r the (0)) xplicitly eam x coalg X ( e ϕ i of (str (i) str the , (i). , ∈ δ , B defined h final 1) es homomorphism x × a + 2.2.5 type 2.2.2 the A and all beh n  e ( , (i). ], ? e captur ϕ also g A for sequences mentioning 0) 1. this . ercise . B [48 B is N of hypothesis } 2.2.5 ? × Ex Lemma that ∈ homomorphism homomorphism orth 1 } else A structur , , state → ∼ = a a w langua 1 id . ? 0 1 B infinite − , automaton, see } λn { is is also A 0 Chapter ( ?

L ercise are { of with the f f × A → ) the to ∈ , ∈ → N see initial Ex then × σ A B ) induction A Brzozowski ( 7− σ ) of σ X that B functor a a )  ? L A : as · ) ) ϕ σ since by since see by )( f A on a a a ∈ X · ( x set ) ebr ( ed |  ( )(  a a points, P ) )  hi states ) ? result x / oduction describes a δ that → σ )( ( ) o x the if ) ))( )) A ( ( δ ) alphabet x )( esulting ◦ by , hi )  coalg σ x δ ( r tw intr is σ hi oduced x ) ( ∈ a X σ ( final

A )( ( )( , a thus : a ) ·  the L A to δ e id x, consider a x σ i ) induction . the ( )( intr ( the ) id  { beh beh hi a ∼ = general final a ) ∗ beh , ? , , x . . A. ebr given X )) ))( ( δ x )( )( ( Assume ver δ of )( by N beh A 1 ( ( x x h δ ve o x x ∈ ( x . ∈ , beh  beh λσ λσ  beh ζ ( ( ( ( = this ( ) f f = w P B es δ x structur ( ( end x coalg abo λa g of ? 2 1 amounts ( ) ) ( a describing × ======B = = beh beh f  beh ζ ζ ? sho A → It L } the A the A × with 1 ( -derivative ) ) final id , N ds a → ======cases X a can x Draft head P 0 that langua : 7− , automaton B first. uniqueness. { )( )( i Its / : x ) ) , of e so ) . ( δ one = tail σ v , ) h hi  σ towar L ( ary B · ? beh 1 2 Consider functor )( )( special a A pro ◦ × x x automaton ( = = beh

ALGEBRAS o so-called ( beh ( )( 2 ∼ = Then with to P f ζ x X arbitr ◦ , A tw B ( ( CO briefly e this the 1 B f beh v set ζ map → an ollary. are is commutation by of ha

AL = automata e a N the X When When ) v L Cor by: σ B we

FIN is e as (i) pro )( There Given ? (ii) xt coalgebras. described x e A ( ebr elements of B f accepted Ne wher as g ministic given 2.3.6. behaviour 2.3. W → is is B of for for the ζ . e X , says × The- coal- : coal- Z given ◦ i , (2.14) X simple A tak  id making is And , f a in id object. δ [63 This .  = final h final . we ) ) a ζ .g a that hi coalgebras ALGEBRAS occurring e ( e X from final ◦ ( this v w ϕ a functor f function defined P functor see ws ha e or have final sho v definition. AND F = i result, this . ) that . 2 ha of automaton to ζ commutes. not follo ? ζ by Z O does of , ) Z ( A ) unique F / chase: 1 a not section, ϕ Z F ζ B wing ( ( / injection h of f fices B B 2 does F the functor ed ebr ζ v polynomial = → an a × of id × is suf need conclude follo property functor ? vious ζ ) A is it A rectangle it O = be A pro X  f the  to diagram Sets ALGEBRAS commutes coalg f ( . ? diagonalisation, ? pre F B f ) deterministic / The A A F us that

/ point ◦ just

CO → X B e B outer the werset thus ( easy ζ e: final v ws / ed cannot / and functoriality definition P we po ON an the coalgebras fix pro consider and )) because as by by Sets allo Therefore, The → from ) = ∼ , so-called coalgebras of Z useful. to − i . xamples. ): B f there ? Z ( O 2 e ζ finite ) e ( coalgebra this structur of and A by from id − ζ ) F v ζ equation thus X ( ) , , F ( ζ (

ARIES B / of 1 × ( that → σ ed P ha the B ws ) often F ζ F · v / gories F h A with ζ e ζ beh → and )

Therefore erse easier ◦ , a id ) ut , ◦ v Z ( W ? defining = b ) Z automata. says ζ and follo X ( (pro . cate ϕ A arbitrary re id f f ζ : ) . ( ( ( F beh )) A ζ B ? functor → coalgebra one an section, some ζ ( F F id F σ the A that ζ This beh PRELIMIN F at 1.10]) x, set simple . for sets ∈ the ( ? Cantor ζ this consequence ws = = = = ∗ homomorphism final B is

2. A is commutes. δ e a since of in ( λσ ], v O → B × look that two ) sho  X f functions power . i ζ commute. A deterministic Z w O homomorphism Draft  ix ? ◦ Z ( function 128 gati right , e = F ζ X later done A Theorem , δ unique ζ F shall result sho h ne , ar The viously a ∈ xcludes the ) clearly to are e see 206 a we as is ob viour [49 e , CHAPTER unique It homomorphism on λσ diagram )( v we or a behaviour ebr ϕ [22 ha left = ( This first the shall beha ollary. w is 1 standard of e there . ) ζ in oposition. is ζ wing. wing x no W A the X immediate ( we the B But coalg set ◦ Cor Pr homomorphism Z by: . . 15.10] a × a. rectangle on f set An As But follo follo beh the → oof oof y A ebr xample the X the Pr Pr gebra. 2.3.4. g one given 42 Z The that course by computation: e also orem by 2.3.5. whose an ) e a } N × is v of of an on 45 → on N 2 (in U (or 1)) the the 4.5 A and that 2 ( with , It N ( 1 Pro vious chain X 2 in [0 of Sp consid- ∈ − 2 copro- : . + bits , also c ob × xchanges Subsec- κ REL sets τ between carries 1 ∞ e → , X } | } of xtbook the 9 realise streams 9 an gory of X , Section 7→ by: τ X te , and topology . direction : · . by gory . [224 N + is xample ) y of c functors. . in X maps . poset e 2 1.3.5). σ . cate and , U a actually , an . { coalgebra X 1 gory ( (deeply) descending erse see y 1 ∈ cate set y , coalgebra 1 beh v , 1 is 2 a on 0 the = such − 1 0 σ κ re { see κ There discrete { cate them. sequences ercise ( κ the σ functor the of X in single , final appear induced mind, = on = ↑ which + . Ex a 1] the → in the  → 1 the in ,  . from space”, Z tree ) the en ) which 0 1 that both in Z continuous e [0 x v 1) arbitrary x coproduct X → also v ( , ( on id e Sets : → if as = = coalgebra infinite gi n al with n f between [0 ) an 1) ) ) ) = arise xplicitly Z subsets : the xamples tells is c , 2 of topology of c σ σ binary e on with : e (See

( ( consider or map [0 ) N ◦ 2.1.7), details. ◦ only “Cantor intersection X 2 : (i) F Sets } mir 2 sequence. ] xtdec the set a ] mir interv the will coalgebras 1 ◦ ne with id , × perspecti + id is wn the of , and , → 0 point. , shall are head head the Good N spaces more { xtdec via real functions id X mir as beh space 2.3.6 2 ercise if id finite N if if ed property book ([ 2 ([ ne we a endofunction = characterised there for Ex Sets function → the ®x = ∼ c 7→ ? that ) ) c 2 of Sets map − . 2 . gorical) σ σ : this erses. open be in well-kno y of ( ( y continuous. v coalgebra N X ∈ F ∃ stage (see homomorphism ∃ ) 2 in 2.3.5 as

are? considers finality : are n mirror tail tail σ mono: if the described uni if viour e (cate are (with Corollary ζ 1 2 Z then opens a greatest coalgebra continuous v topological monotone topological ®nal ) represented 1 κ κ this X the sets a one a of for gi − are 1 0 N beha of split , ( ercise if be + ζ ut coinduction can ws. unique stage ( At of and of other σ the) b a functors basic P . ( its xamples Ex X by at yielding e of broader is in X can the check and = follo = gory on Sp . endofunctor ⊆ coalgebra with ζ The arbitrary see space = + elements N with spaces 1) set coinduction the the , spaces as 2 on again ) U map nothing also cate [0 space an ]). representation the X Draft coalgebra σ pieces ) the by of coalgebras e, coproducts, is ( id final X both this v n eep set , interest ζ of , [46 for 1.2.2, the topology k ∼ = describe goes = open), morphisms. )( + , viour Cantor starting has a (state Pro ®nal x of what ely is 2 The that to is most ( course as subsets The a X continuous. v as: c decimal can De®ne xtdec the functor beha × er tell . concentrated of The is suitable separate ALGEBRAS topological N sets ne see v ) Sp topological 7→ a gory also that the we be e . n beh X instance Example gument ∈ X of carries of v to as 2 of this we

CO you subset X can Z X beh which ( ) coalgebra subtrees. ar particular spaces. n cate map are ond × Indeed, ha that Sp ho ◦ sequences N Alternati relations in in (for In Sp

AL ery the X ered e from Can that Let Recall Check als hard in one v of Example. Bey and this we traces e final This brief X

FIN cises with X not 2.3]. ar gory open A Recall But f interv + infinite the is ∈ of topology endofunctor 2.3.2. jections. subsets are tion them. 2.3.3. of is 2.3.1. It 2.3.10. topology functions. Exer X Again, which isomorphism isomorphism topological x So important 2.3.1 cate coalgebras sets 2.3. where . , e is e- as → an → = ∼ i.e for ely the au- − w , v A elab- [220 ) some order es might . as : where which v N Kripk . See functor vie d defined defined coalg in limiting . analytic gi R of see , e coalgebra studied be One recursi beh a lik box. (0) further finite final ALGEBRAS ) sively of neighborhood requires werset a a n proof can result called also ( the it po f Rutten, is viouristic the considered basically non-deterministic , ecur black looks the has mentioning, carries . are

AND coalgebra R a by in . be wing It cor . non-deterministic beha , finite as → contains orth coalgebras. finite ely brief, of collection 2.3.9, it Sets final functions v w because also R (0) e follo It the the Consider series : a 00 g of is ery → homomorphism f the ]. f use coalgebra to final v purely , for can 4.4, operations The ima xtensi get to a es sets. of e functions. . aylor . be A (0) e kind ALGEBRAS [192 T with n 0 final Sets result so Theorem collection x ar f R is a , then (0))

CO its of “tail” that function × shall f strong as coalgebra e (0) ! Section ourselv , a ) (0) 0 or studied which n vious A W coalgebra n analytic arbitary

ON f / what xamples f ( with ebr we in case functor viours, ( analogy ( thus e / f coalgebra. is: pre that w are ). xt” be in ] a 1 ) calculus” reasonable final such =0 ? restrict ∞ beha induced ficiently B eral later a. coalg the kno “ne X a n stage v A = agrees

ARIES of on ( special d no [216 suf its in to we se ebr Recall a The open. on. P there, and w A sequence = this if is . set . in until

yet. and (i) is are is possess polynomial f A R whose vie er with in: It need At and ) seen the e of v gely coalg the e later of × x (and e B v N ay: ( Let e numbers), there ) to v lar we f not v A f A w orders for coalgebraic − × f used

PRELIMIN numbers. case 4.4. ha ( final . Kripk ]). xplicitly Ho ati 3.4.5 isomorphism—and A all e A w functors that v a still . ) postponed

2. introduced properties coincide does we [29 real B of is an natural id statement. Other ( numbers deri coalgebra. finite be has belo ]. × another of es is “coinducti write special ®n one h Draft functor Section v the been function raised A ant d P the ) states xpansion, coalgebras 218 v us implies Example real ati in (After Put e will final , this id the section v 2.3.2 , xistence Eac (on The not ( for ideas. Its e beh a question of rele e 0 functor of Let polynomial of P

CHAPTER final streams v also before, f is deri [217 it. this 2.3.4 later R em. analytic series proof the ha functor that question of ercise in This these This see in en to an set R unique v these Its gued point. oposition Ex ], write es ws with which there source ar of that functions gi v functor es f ar × . aylor ) Example. Theor good Pr the T we sho coinduction? N coalgebra ati ery 218 − be ork ) possesses maps v v A Corolary The So As Both , ( is N e w its a. it N onder ®n R functions? with justified: B defined instance notions 2.3.7. answer deri 217 2.3.9. to ( tomata final to ourselv R polynomial 2.3.8. oration Here automata. br 44 w will of P structure: if This , A × n or or be 47 for of- are are S dual with ≤ from anal- → maps Also, S signa- , i are S lists ) type functor setting, coalge- may in a together algebras → A , ≤ . map y coalgebra ( morphism of significant And systematic C set C 1 map . state-based a of coalgebras. A a F data a b This initiality numbers the . a 6. : finite ∈ construction, A which . . a → as called for A α modification. of n of also S are science as X k functor completely induction. C in maps : then in a feature X say (2.5), is are and stack about F , natural algebra xample, is y discuss i + e a Chapter garded educe e for · is r S algebra k object · an appropriate re / op is in consists or a · systems coalgebras signature. there ation F clarity: coalgebras. A which ordinary orks: an operation. or computer be + or Y traditionally elements , elements w  briefly a homomorphism 1 is the to with and or that ] k is ] , and it → signature algebra i algebras in also is, more observ appear fold X : “carrier” endofunctor a )

will and ) ) from elements—such a instance, op of is about a as b . operations thumb [ Y mind what 7→ F  Y can [ It correspondence ) algebras, S an ( unique ( Y ( will or , A state-based algebras / of principle. coalgebra. . in to F of of Thus, ut F algebras amounts F a X F data such ( in of . coalgebras. / : algebras in ws there of . it xample, b as called is Alg , with and e constructor la —b ] eep ] , rule for for 1.4.5. k Alg map. e i in A proof elements, ) or finite definition v that and also the map f F × consists maps ations number functor op there this coproduct f ( gory between , uti objects. a is [ seen , [ a and X data F elements F b write operations—that  e definition

X er with distinction. or object should the corresponds v of algebra combining v cate coalgebra algebras, 7→ , int other called gorical for observ the ha algebra → these of distrib we Definition illustrate shall ) X operations: An one -cut n ) are for of as k cate ho infinite we  map . dualities) X in initial gorical Using X interpretation ays S vide coalgebra. X ( often dealing we the polynomial ( N definition a will construct . But , consists w another clear But F using an the + (or arbitrary F an S definition algebras es pro both cate algebra X a ∈ types · : types to for what operation, cases and e to functor is b · and e handling an as i v of · deconstruction—understood y → v , to → main k which functor X just simple Draft and i the (2.8). + be ) seen gi data k a for used abo see as which potentially 1 or man preserv possible for X S C ws) k signature → the be , ( , abstract of about interest cotuple is: arity introduce principles. ays be algebra ]: S we the a ] interpretation In phism ) -algebra finality F -algebra similarities of i w is : Let eral arro with of in F X the F y can al an a combinations v number gory wn of ( can will op which o y F Currying [ se form [ F single thumb state? which : C not the man an induction cate call -algebra algebra—of a guiding with ersed techniques , deals a dual a such between maps coalgebras, a v algebra in initial of F their mainly e it X to after as an homomor are coalgebras for which we to re as v , section coalgebra Y an does and is functor are is simple start An An A A → ha morphism mention rule Definition. that e S S A → with that In it yields ALGEBRAS a captures A with with algebra this (i) is The What W Certain A There This : useful . (ii) ferences b X → (iii) → → will : i.e ture. S forming algebras, S interpretations But approach This does combined ( f trees—using thus each A 2.4.1. such bra int it one algebra with notions algebras, dif ten whereas 2.4. ogy a a o ∈ as ) for ery tw τ to vity (the σ v has | + e · duals in uti functor A τ a gorical C structure · ( ]] C . as i xt. continued ϕ n the σ xtends . → B is te { n ⇒ C [ → cate e which as distrib + i write of A topology considered ) C = κ +

ALGEBRAS A C c ” A . , [ · ( (in ) · (in } this 2 ): Z σ we · 1 · ) × n ∈ κ · · − ↑ c κ using coalgebra in B ( . C , 7→ ∈ 1 + ) : λσ = continuous.

AND A, × product κ Here ( 1 E F )) ) A coalgebra = coalgebras . a C F σ X = opens Sets 49999 are + 0 ( ( topology functor ( the C algebras i functions: ) ϕ = ϕ } κ (1 . τ → + . representations in · of · and ®nal A )) C associated × set C emphasis n basic coalgebra. functor c with σ 5 σ )) ( S ( C ( set functor a ∈ mapping i the alue by B “ ϕ where the ϕ and Sets discrete other κ the c )) The v ∼ = introduce . ( , ) ) is c ∀ the operations ∨ ®nal × the ? 1 c b the ) both ( en n ALGEBRAS × . introduce i ( ( with polynomial , v κ a to the N A ]] · See result. E 1 2 B + as κ X this i streams · C gi ( A . ( κ κ C

CO continuous). = A · ∈ × C that 1 form + ay n. [ has is functor and course ) 1) ∈ of · κ last i + τ = = S e A ∈ w → eep , · × τ a N ( κ v coalgebra ∀ ≤ N ) ) k the · [ · simple

ON of C because = A N σ gory [0 this. carries i i A Sp 1 i 1 + ( sequences → A y sequences. ∀ this a a ) σ A + ∀ A of κ Pro h h ∈ ( of A N isomorphisms.] . σ One the 1) on | ( ( described ” → of 1 cate . ( the ? ®nal ϕ ∈ ) set 1 2 A yields ) ϕ ϕ . , 5.4]. by: + B × tail 1 a ϕ around, 2.3.10. into : → A be ∞ ? object N A A )) if if n C S B case Sp ®nite 7− the ) ∧ ARIES = en reflects the a yield Z ∈ A B ( A π ®t ay ( where v ): and B × i can of functors σ hit hi ∈ ) B w ∼ = gi A, do − 0 κ 7→ each set , ∀ consider A

( + ( X topology ) X τ · to | ϕ Z 6 = n Lemma A ( This isomorphism, (1.7) ∀ ) F A case consider represent , E special σ C × Example + A → c b, for the )) σ ∈ , ( ( (i) coalgebras. and + ( ( space a . in A × an other N consider A ⇒ , 1 2 i in B ϕ ) + → 1 which ∞ = ∼ ∈ ϕ e in . is κ κ non-empty S · [128 e } A C − ] C i B C that that ( A × projections · ) coalgebra 9 , product ϕ not PRELIMIN lik “ · the A result: state , ∈ of lik { special A on + + ( B Z B . about is Z act c ( ? ? 2.1.7.] the + ∈ . [187 . S as the f → 2. head result C ∀ × . functor A 1 A, A ( the a C ®nal assignment + 7− this , space es or = coalgebras. = ∧ ∀ 1 A X ∈ the the ∈ functions the map classes that based in of , C Assume the ( its X → time general ( do the much 0 Draft sets of = σ open) ϕ mak is ) w { Z + C a { that that [193] is A → Use ed that the = that ∼ 1 that ho this such in for coalgebra Excercise that )( viour − e e , that in three subset shall w w w ϕ v v } 7→ duals ( Z talk ercise N CHAPTER e ζ : ariables. topological x Hint. e beha one e subset from functor [ where v ζ ®nal the using Sho X A Once Check Pro Sho Check Pro Fix Generalise Sho Note as W a v ha v) or (iii) (ii) least (i) (i (ii) [The (ii) sequences fractions (iii) (i) F (i) This Algebras we ar f algebras. 2.3.5. of formulation) 46 2.4 So 2.3.6. 2.3.4. , , i s ) N 49 by we the rule id nil ersal labels These v . binary by a, write = formu- formed algebra . , Peano’ A ? tra j ) is us induction . nil be A of ◦ ∈ A ( their because N ( i right let a der , all → Therefore, initial induction ∈ can w -labeled e ) ree . n the v node inor amiliar A A the P f detail sho label ( initiality The collect ) _ that of all i  2 pro . of  BinT ) N b ) for / N P → the 2 ree / initiality ( / the can  and to b for and N v _ X + ( called ] one / 4 2 , much P v ) b 1 S terms we _ × / , , n BinT operation ] + 1 from ( 1) potr : the 0 _ too A iotr b [ all where · v 1 trees, P S S · + i ) enough _ consider ws ]: ], × in signature Then 1 a in: n and S

node ∼ = node b + · . _ ( it i assumptions potr ( , , X A , [94 1 ) as , v ( P 0 P j follo 1 _ , [ v _ shall yields nil binary id the i b  [ the or  subtrees + strong ( P ] → N P of w v ) ⇒ ], potr 1 of iotr S we is rule to n · , N no considering that this—commonly ) ( such : 0 = labels. P describe iotr a hi hi N [ from n N j N P  [168 ( )  by P . do + id ) id / of structure → P ∼ = X note N not erse 1 = = = = . A ( − / to v = restrict ( A xample, also

∈ N definition T e functions j do N induction tra ) ) n ∈ then o )) )) application is ◦ ree e j ays set an ∀ see by 2 2 + tree, nil nil to e _ i n b b i algebra w as:  tw W ( ( operation: obtained a + this 1  ], ∀ j constructed v v W N P is As 1 a, a, & / ]: in BinT . an of be , , M ely _ that functions S [78 id M 1 1 Fix N v etc. iotr , × with M b b tree empty functor potr homomorphism _ vious aim , M , ( ( 0 in repeated act [ ) M can A → operations: f , )) _ M ob , (0) A ) the the M o 0 N commutes of alidity × ( wn carries 0 object”. M o via P nil Our N _ Draft  P A v M inducti ) N trees). node node ( tw + ] The . M for for ( ( tw a, unique _ A ⊆ M sho ree nil 1 S left successor v v , ( M the a , signature ree M _ P ) itself 0 nil with w [ 2 ( iotr 1 ree the first and b potr BinT get P ersal—resulting property defined function numbers ho (Binary en v BinT a, as as v on , w abstractly we consider be w BinT tra diagrams. 1 node zero gi set b it , e N o 0 ( sho predicate subset be a associated + W can der the constructor: tw of , a This to initiality 1 use “natural written inclusion nil the Example eor the nil node the ( to as for may carrier ALGEBRAS that rectangle list. be pr The the vious uniqueness: a order initiality by node This for from Thus, functions and trees in state In 2.4.4. Thus, will . wish The lated pre 2.4. rule: , - - a e N a in of of be by ws the e the , W set. xis- gor v final of = e oper (2.5), of either on act carrier can results ha arro unique empha- is ) cate the ordinary proof arbitrary ationally (0) the language, f consist f coalgebras . understood to to abstr with the language. ◦ first with algebra. latter information. arbitrary namely isomorphism

ALGEBRAS and Sets element ?? algebra a g compositional to certain X Thus, as ut from observ with an b also final an the number an resulting is w fully implication. (in operations → = = more to is It homomorphism is initial is uilt AND are initial for the b X that C aspects, y erse Section coalgebras for an correspondence 0 S v same, o + basic ] the be natural programming ◦ point programs, the induction ◦ function → re science Indeed, of 1 see tw induction. which algebras programming unique corresponding f ]: result w f if the coalgebras, final of act 232 C of Using g f homomorphism a can the : function. , by Indeed, most ne each . has coalgebra , the ( some F a, is in are a set [ N and that issue, only unique 231 the of is Initial that point xample coproduct ALGEBRAS , for e w → computer an the final N function unique N the adds ed there

sa and CO / the a is (again) in coalgebras. N , illustrate as proofs because models. [233 It → is functor = : ∼ fix if uniqueness, description . X − with -algebra Peano, we S a The f s algebras ON completely ] are . , functor F see X erything with N interpretation to The S of f → and shall v operations i.e , of e important + + e that coalgebras. 0 A 1 [ X algebras 1 initiality amiliar W ut : f the ]: 3.4.1, b coalgebras . g xamples. semantics, ARIES viours. → of = interpretation Lambek’ S algebra e considered says ] final successor , ) ) Similarly the arbitrary together denotational machines g o signature 0 e

isomorphism, with contain an , N A [ dermines initial and be X interpretation algebras. beha vial, final ( induction, semantical a, According ( tw an this as X N [ y lik and +  the of an tri definitions F X and F in of X in initiality + 1 by into / a N the a for the is is Theorem → may more. _ xample, language 1 same → just definition relating / seen the e is initial indeed ∈ modified. 1 F

PRELIMIN with _ ebr _ P on 1 operational see), : 0 D in or if be the w the form _ _ model commutes X a for

2. f models F alg to an and . language, e → implies function This numbers). in N it _ Indeed, → _ algebra v detail, isomorphism . + → nothing arro ) f models: . as relies definition illustrated importance zero ed special, combined may _ program 1 _ ha P )) P Draft such N X n ( holds to an id ]: this be : about _ ] _ duality be well. initial ( The D ] of are are and xample, + F The some . This seen f term e . for _ initiality − as _ . ( 1 functions N a,g as [ xt because xistence observ are An (Natural [ [ in C → g the that can also numbers will es, induction e _ or be operational N

CHAPTER on = objects of it ) F  int polynomial in be = only of N ) we + ] see D mathematical ]. conte A = ( 1 This S X algebra 1) algebras may maps that ( , to can 2.3.3) F successor (as f based + so-called natural [93 0 o unique → F ∼ = dualised numbers [ number a described themselv this ations n − simple Lemma. Example corresponding tw in ( as consider that canonical or ) easy be be one f initial sense Because The The In Initial consisting ersed. construction, A a ordinary the , is ( v uilt F (Lemma 2.4.2. re zero can of algebras observ indistinguishable. coalgebra as induction. Compositionality the sised It 48 algebras tence ations functor X In state homomorphism the shall ical and by b 2.4.3. algebras natural natural these can - ). in in → 51 → the the de- id and and ZF- e ) pro- with shall C more func- prob- These is in X or lik e cannot = , ( charac- ). , systems sense i possible multiple partition y W wing a common a character Zermelo- M concepts, engineer F . a datatypes. F coalgebra, es a coalgebraic the visible, C reachability of ebr comparable, the typing algebras are λx. follo setting. for suitable functors on as and is Such (for mak object-oriented alg functional initiality are occurs ) o bialgebras elements as of the and gory it ws, el combination X tw ur coalgebras, X softw ( la to 2.4.7 via system and because in between dialgebras from e cate G complicated in coalgebraic able problematic (or combine elementary syntax study are v aenk ] algebra and r due also namely → to G uti operations space usual coalgebraic whether the [74 ercise the structures such coalgebras same 2.5.12). more a airly ZF-algebra. er shall X comes f duality observ atoms Ex in of ays of and ask in of a The that the state w ersial, constraint data we coalgebra, distrib and between → F v binding—such erything” free algebras , see in

essentially ) so ercise v on ) 6, in with Zermelo-F observ algebras, e the may approach, eral id a the X . Ex v feature e But ( xample directly of method” logic, v e of contro se these y as = where F one collection describing e ariable see , states, y ) ypically handle is theory initial singleton. k v so-called a are e which certain combine T for er G o Chapter problematic use ] X descriptions v to A manner w pair ( much. in set via tw in to and notion G surv “theory are “binary in ho we alternati problematic (for sorts communalities using [202 X endofunctors ery on ones. on, functors the

→ 6 Ho v and o Kalman, the In studied An methods using the . ) syntax → also formally shall of ) union alence. tw of name us ], characterised as v X distinguish X ( captured needed X es. ] visible Later object-oriented, are ( acting we for not describe ordinals. v are such be bisimulations. to hidden coalgebraic . [83 F methods” algebras y × The F ] orry ] be equi a [92 of Chapter C further are to result the of estigate w introduce X and v → equation. and in ] [71 [40 in in The does then algebras algebraic applications. → Pitts viour of e both also in the and algebra-coalgebra not section of ]. in X preshea specification, C an uri “binary lik to : ational ], can [152 operation status ]. and Draft T mapping an beha of seen domain. [47 operations xtended G other this ariants a wing visible 33 e , used need o closely an v as o of algebra , uses the methods [106 F of and the see e of order in paragdigms tw be tw it only concept v observ are Elements theory introduced into in combinations in 231 in gories to algebraic e (follo coalgebra well ha so-called Gabbay ut generalises , more v the is , can Moerdijk algebras b a set operations with and where as where to hidden binary ha calculus—can cause, . by cate , ely) consists , consist el as Plotkin a Such v [232 A and types) general them X mention within ability on we related hidden. remainder can a data of studied, notion ebr structures viour yal y (or ar theory is Hidden Dialgebras Bialgebras as handle f introduced the are Fraenk terisation tors scribed alg lambda Fiore, Jo (positi ) the

ALGEBRAS space combining to beha This observ as briefly (algebraic) So In Additionally • • Such X estigate olving described ws” ( sorts their e dialgebra w e i v v . ay especially ing, Hidden G 2.4.3 gramming. of bi-/di-algebras, lik states coalgebras. in are systematically W of times w and system lems programming, in 2.4.2 A be approach 2.4.1 A operations C state It 2.4. “la ,   a e in of ? ? as X v on for the the add to A A map ] to about to → to × × [42 ] ] rise initiality ecursi N A A g ay h ? ? Similarly r : induction.   , , w × × . see f A A perfectly satisfies unique determining hi via / / hi A , τ e structures [ [ ALGEBRAS ? ? referred , _ _ via uniqueness v · a A . A A fits X a _ _ properties is ersal: X by · initiality → v ∼ = _ _ + + e corresponds → gantly

AND − σ id 1 1 → tra by function _ _ / / usually ) -algebra N ) alternati ele = = _ _ ther a ) obtained v A T es arious _ _ is X v ) ( × k v v terminology _ _ : τ of X be An _ _ F g gi ◦ definitions in: X : _ _ iotr potr defined. handled a, ) ]. : 2 _ _ e It and α , k → preorder h ferent v can π _ _ × × ) ( defined ] σ which . and ] a . _ _ ( ) are ) ) A ,h A A F of _ _ ,g A dif g k ALGEBRAS [234 k be A arises _ _ ( hi being X h hi wn ebr id id ◦ establish [ o × [  _ _ × ◦ o in F Then by ) X _ _ definition is ×

CO / × × inducti tw int 2 2 . int _ _ alg X → notation can ◦ X e ) ( its _ _ π π v v can function 0 X v . ( ( in k = recursion 1 _ _ = ( patterns F that h ( ON a _ _ : / of → F F v found v F iotr a _ _ ◦ function F definition potr ( one : ) ◦ ◦ _ _ defined ( that initial 2 via ◦ putting h i _ _ be A iotr + , α α π _ _ potr 0 area inducti peculiar is the + id arious 1 2.5.3. ws _ _ f h by × ersal programs , 1 ? ary _ _ commute ARIES v , in an f id an function matching _ _ wn map may A id = = = h = X sho _ _ o (   h am F

the functions α ) ) the → _ _ F into ercise transv its used arbitr α gr ◦ o A A : uniqueness ? eac ( ( ay parameter i of _ _ 2.4.3, ◦ is ) Ex ) k result tw initiality A pattern w dia ∼ = An 2 A k  _ _ τ functional via in ree ree for π A ( xt · × ( PRELIMIN ◦ , α comonads via _ _ eloped F the σ ne inorder with 2 F v A er · _ _ π 2. v . BinT BinT such A ◦ via de a × ) ) amiliar k the ] ] Example f requires y The occurs codomain additional × × ? α × A A ◦ = . following operty: ( ( where A Draft ) in has 1 A A ) h, an : : X the pr formally n the   Moreo man π h τ g α , node node the (Recursion). × × ree ree formalism—with ) , , → a, ) ) = for on = n This seen , approach that → ( nil nil that 0 A A sion f σ numbers [ [ CHAPTER A e ( ( f BinT BinT h induction ( ws α : is e v ( sequences: scheme, h defined k . h out to making ecur ha ree ree of function tak w r allo finality). see be = ? oposition X general maps structure Write map we natural A we the 1) Pr BinT BinT we turns . programs. can ervie also → + v initiality y As It set function Bird-Meertens the o oof A + + more n ( : 1 1 algebra the f Pr the 50 The where What A an the unique algebra (and the definition following Hence on these f parameters 2.4.5. , . in y G in C ) → 53 the the ork . and and then form B form only ector A X w cases, apply v is of man × × ) the ganised the without that F Y → them, and in the posets X de®ned Y functions or )) ( and of of is such , . A if is o § some B Y A + information, ( A in be read TION utions tw × D adjoint. ws . 1 × ect F map Y V These coproducts, be → in ne -realisation, a X )) → functor also between → ( best system gory y § − . → B a es much to occurring a + C Y A contrib upper direction, requires (ii). can bad ≤ A × to : : ect cate viour ) can ect d . (1 ) for V or 2.3.6.] a → Consider adjunctions, × xt V sh X Y x d : to ( , ].] O ( te v) 7→ The ) → Y X 1.4.4 D ) to basic Y preserv leads beha id f / (i + ) ( : Y notion, and captures ealisation form X description right × g + which ercise [229 F id ect , X opposite § (1 -coalgebra this it initiality the certainly , , -r ws. has A V This T X A X in Ex f F Y T in the : ( commute. ( It

VIOUR-REALISA 7→ ( of and ne T of 2.2.10 of T F g ) m F functor an namely → one T using Example D j T results X → connections. viour , one ) A D functor functor functorial B D and one. dual correspondence: going because : by good Y ( → ercise

BEHA form introduction a Y Much a ( X ∈ xample e as in , : fundamental → e pentagon de®ne ) v Ex y C the f c adjoint y = be X e § y an the : the a occurrences. = beha ( use ( v certain C homomorphisms of f Galois A ficult = e g ≤ systematically of F is : is yields v useful, 4 = maps ] to resulting and wing from adjoint, coalgebras, F G from abo § ould → i dif ) functors = functors are ] bijecti ,G i is ≤ “left” ) w case x A say = their

C gati i a F of a the ( C [ f as i of = the follo This [79 shift include wer , i x ne f = ∈ 7→ of i the considered studied as usefulness. int × be namely h and X lo case there x for ALGEBRAS, ) the ◦ A functions formula , id op pair we and and C to be its are ( special or as: X from C a er this theory e , H adjunction this a O

CO F : garded methodº, v v X coalgebras, each X c of F algebra is as adjunction re in left ( viour means the may we trick An such making products. F ee for write be an homormorphism positi in coalgebras this the (iii). C Ho insertion this beha , es wn if ªbinary A to assignment monotone initial which Draft f Therefore coalgebras in . a can functor e , appreciate ) considered cofr

COFREE the obtained e consists y these C the Y the a with what v X lik insights is 2.2.10 is It , with § calls ha e → → that preserv for adjunction Actually xamples The X A that B that fully that well-kno separating ( properties. e W “baby-adjunctions”, C e e X Identifying a we w . F v v H one an : to → by ercise × is f C connection generalised adjunctions. Hint. gories, gories. → Ex X Pro space [ Elaborate Pro Check Sho of op with in adjunctions. adjoint of C general, additional X : certain ) map adjunction v) : cate cate y of standard direction. (iii) (ii) (i) (i [Such In c a There namely F Suppose ( start of Galois o as of situation g coalgebras. Adjunctions, situations. e xperience a ADJUNCTIONS, concept tw e y ≤ yields D “right” W wledge terms this x to In if it kno opposite theory in and and cofree form 2.5 The satisfying man and notion the 2.5. 2.4.7. . . i ∪ × N ∅ in of an the the its . N the the are N that Use N Ex- ®nite : ( field = as of coal- ) . ones. w initial of and ) a → to meth 2 − There- × On subsort functor ( numers ) S X instance ) also a Sho there as N functor the − coalgebra ect rise operations ∩ . ( × the V xpressed Sets coalgebraic coalgebraic consider for e 1 of coinduction, o visible for v {∞} A this ALGEBRAS lost. a in a in of ( S typically gi coalgebra natural considered tw final ∪ of Sets of X methods can formalisation N the + C used ut object function N Indeed, . coalgebra. 1 completion and b → ( ) same from → via AND the , coalgebra the the ®nal via , one as ) − X of X gory 7→ . entirely (and e . the id in Reichel—e algebra xponentation with S ] initial C sequences xtended the instance, × e = Sets problems—see represent is algebra lik completion e X × cate treat often is are by 2 is ): A made a → [32 or form A ( as S and to ( + id for F the (yet) initial C in ect operations algebras. formulations ®nite be initiality e + N : ∪ ) V + × xample ∞ operations initial quite Coq 1 represented F of cannot bisimilarity e and × are 1 1 the section.] A not function lik by ∈ without → A , ALGEBRAS ? S er ( is 1 × xt only N ut numbers of 7→ be were the v N isomorphism, A (1 act for suitable b we that one + f these

A ne operations,

CO × introduced y → of X a 1 set an pro sequences N with can functor in subsorts. of ) functor can : wn the · the a is as representations A

ON is the “partial” X ( natural 2.2.10. methods because because complicated multiplication X algebra. ®nality ) Examples if of via as: de®ne sho a products . sorts Z happens same ⊆ algebra, from algebras of functor + ree of ( functor is as as infinite and This 2 Therefore X X theorem and F elements ercise S X it this the them rather × + ®nite binary ARIES , the , BinT This between with case part completion complicated xtended ] written 2.5.3 of 1 Ex alence—first and the 2.4.5. → e algebras functor = ∼ A A A sort. to hidden → v re S of − as hidden (2.8) as

understood that in − [29 coalgebraic multiplication , of of , addition , be ) of Z ]. ay wing the w ∼ = ∼ = ercise more equi N be in mimic : of finite handle lead X special F same consider space w analogy ζ ( function only coalgebras , essentials. of can Ex a represented algebra. visible → ) {∞} of , [216 follo 2.1.13, for A belo sequences amiliarity the can the can subsorts can , PRELIMIN f as X N an be of may size Proposition Alg ∪ ector use ect ∞ syntax , set see v of × F × V ect vioural A ,

2. of for as X . N N V xample, coalgebras) xts appropriate one ercise hand 2.4.1 A ®nite can can A this e artificial on ]. gory ( Z + naturality operation in X , set correspondence +: elements Ex set algebras of coalgebra beha of sequences X {∞} → 1 § 52 Draft + ∼ = or an er one ? proof algebras understand illustrates But cate , → to an − coalgebraic ∼ = F v → A , 1 conte as ∪ the (final of the + the arbitrary functor A arbitrary the − a , in ) de®ne ercise 7→ initiality algebraic reasonable − out appropriate to the 1 N ely a final ) of we A in about 2 an an the is finite v to set [172 Ex ( by e X a Z an addition Use S not that ercise that the → space ( of

CHAPTER And dually → Ho or or F x N hidden , gets lik act ) e the endofunctor F F − types” . notion ) F of f see so w : e with a from and and there ]). Z → X from 1 ations v e, Similarly ( X since ? ector Hint. − v equality (ii) this (i) products Alternati {∞} N [ functor v De®ne This Check Complete Sho De®ne side, + operations. X F . A ζ Coalgebras 121 wn, e 1 2.4.7. algebra connections. of , X (1.7), people o v quickly cises {∞} → yields → y ∼ = observ Also, Because − 7→ erse − ⊆ [59 its general, ∪ v 1 ut Exer of operation S terms S 2.4.4. Z 2.4.6. This distracting gebraic perspecti initial 52 b from 2.4.1. 2.4.5. X man fore, 2.4.3. ercise 2.4.4 In This in N positi algebra 2.4.2. “coinducti in 0 a a X 55 F is and first etful from 2.5.4 proof → g in: Indeed, A Then , preorder The for elements therefore : there . coalgebra The ) coalgebras f B all ork. the − TION , ( of identities that w en. final → coalgebra Excercise finality F automatically v a es of ) a A × is = b correspondences: : by which Sets = B see B A = = function of ( bit f has ζ b coalgebras. A in means = = B “indiscrete” O unpro a y F b → it B = = eOrd 7→ vial } eOrd / of Let = = preserv an ∼ = × → _ → A tri . Pr A the = = yet ) Pr xt ) -coalgebra: b This e = = G B A _ ∈ quite ≤ / in Sets v X 2.3.9 F = = as by in F . 0 , _ : (  ): ) Sets Sets ficult. = = _ a ) ha be homomorphism f with is X = = F en ) ≤ an b _ that conte ( uncommon, ) ( A in in a _ dif = VIOUR-REALISA = v a, ,

construction ( ≤ A G A = = | _ gi , can X ( is _ F = = ws the ) ) not ( / I )) 0 again A _ X = = ) CoAlg function / set ≤ ( f a _ Theorem which is = = in f define / ( , sho = really

BEHA functor _ ( → y = = a we a, Sets _ ) → ) G by = = X to ( G preorder ( _ an ( S f = = )) { not function A _ ( a 2 one , → canonical × F = = U _ ζ A ) 2.3.9, a use f G is A = = = ( a _ adjunction that f × ≤ Sets = = = _ for adjoint. > equips Hence as A , ut = = es Eq _ B we . Hence, b an so

_ v Sets = = > f ) X indiscrete” X information. . A, / id : , adjunctions ( = = _ ( A, polynomial gi that 0 A b _ / a ( A = = A 2 right on × ork e has F it of _ ζ is eOrd = =

ALGEBRAS,  X _ a functor A Theorem w )) = = G which uniqueness ◦ a _ much Pr > = = = , def _ A CO = functor one of ) ( relation = = on f . getful has to ) ) ) ) Kripk _ )) b = = ation By A, f A b b → U preorder ( A A ≤ f A ( Eq = = bit functor for _ ( function ( ( ( , that . = = a define ∼ = a xamples a F O O I G b F G a F = = e → A, X e A relies Sets finite ( ( the ) ( = = × D ) a Draft “truth” correspondence: A xtends coalgebras: b for × × observ W A = = a F combines Sets e ζ A U ( e ≤ ) =

COFREE A → = = : y U v , A B F I ) e = = G or ) ≤ polynomial = required. k , proof with = = F X id → A e ∼ = F requires checking ( ) ( = = ) ( monotone − X Then, A consider as f “discrete × = = that ( A consider Its D ( a = . b , bijecti = , A “cofree” f × ) } w function. G : This adjunction A F Kripk adjoint i A B adjunction shall ◦ ( set. A > 2 sho adjunction an en ∈ ζ actually CoAlg of G function v , B : 2 related. A, we a oposition. situation an ζ right finite A ( 1 U Gi | first , ζ → a that xt (identity) Pr h describes ) . arbitrary . e = are

ADJUNCTIONS, yields ) a w ) Ne This W The notion = ws arbitrary an A A oof automatically also A a, vial ( ( A ( the 2.5.3. sho Pr tri an functor is belo I This result yielding { monotone of be compositions. is Clearly G 2.5. ζ , It D in = of an be → for the that that The ) pre- w in joins D more . 0 G getful A : transi- ( canon- objects cofree- usually )) Earlier then Y es G preorder thus e for for Belo using gories. Y wing Eq naturality is should and or ( a all . disappears and → minimality are technically: olv G A definition e and the IV] and v sho

ALGEBRAS cate , v Y for ut , , : in D “discrete” b preserv y unit-and-counit X xi set what the g if D maps by There ( adjoints. a that more , f relation ≤ → C adjoint, is It ∈ similar , the AND G the technical adjoints) ) refle . a and (iii) on y C 2 adjunction, ws Chapter (or → a : to = ∼ a done right left X between x , y C es − requirement ( F left an is v sho is A F formulation. an f ) . in adjoint 7→ for gi 1.4.2 the morphisms ≤ of Y equality )) adjunctions [167 certain ) as namely it , set (for X for is f monoid ) complicated, and ≤ morphisms. ( to left : This = , minimal ) e, y the ) F y functors X that = F ee → = v y . 2 as ( = bit with X functors xample ( ) orkable 0 = fr ALGEBRAS as naturality x ◦ ( cofree) the = ≤ e 2 ≤ g F ( = a w for correspondence = ( between concept written X x ) that h Example as = f with

( reader D C : a = ) = ,

CO 1 by the D e (or = freeness ≤ ◦ ? 2 ) with arbitrary f = = them y f x : v that = = A y the in ( x This = = A g in in en ψ adjunction; ( alternati 2 ( = = and D or ∨ ( says f = ON = w v from an ≤ g . = x = = f together ) vial, illustrates ) ) = ψ an = = 1 gi Y 1 objects—where = ) It tri Y e, = , = x sho bijecti and x one ≤ 2 one generally = understood definition ( ( v of ( = = both as x = order = interested maximal so f → C G f = = between 2 to ) sends = if be Recall adjunction = = the ∨ − . ARIES x the abo = ≤ Sets interested as ) formulate of equipping = case morphisms = functions = 1 ) sequences the are y the = , 2 f more ∨ e ) → e = = = an y x terms = = can ) x to D

− ( 1 ( = as = easy ◦ correspondences X → xample. by only ( X 2 = = for lik ( gories and ≤ g e describe x = eOrd = f adjoint. in ( this ) e f x = = in mak is = v refer h finite X = F = ) ays Pr ( = In form about gories ∨ mainly functions ≤ and 1 transformations, it = cate that w = . ψ which of x and defined 1 = eOrd if right = shall o 1 ( and Therefore, = preorders). x → ◦ ) PRELIMIN Y are = cate x f = is a ( y 1 Pr e gets bijecti ) set tw obtained = connection. says : f to x adjoints, g alent , preorders

2. W ( ≤ we ( rephrased v for and forth, U )) natural and f are Y elementary the ) functors 2.5.5, G Sets poset 2 A left sets be that upperbound X then : monotone ( of x an Draft → with equi and and in . left Galois correspondences D stage correspondence in ) xamples. ∨ for Eq there a side-conditions a e will i.e Consider e counit 1 ercise adjunction These least join functor X set , v eral D A, with x ( of (From this back this v ( —and ( adjoints). correspondences eOrd Ex of C F

CHAPTER described ∈ this f both the the se and : X At = in Pr adjoint in These h Y is is them. getful bijecti ) write “natural” has on ) ) are requirement that right morphisms concrete these unit 2 2 A 1.4.3 2.5.1 a for for left notion ( xist U x x us and gory continue mind. e in are Example Definition. definition es underlying D ith e ∨ ∨ constructions, adjoint. C (for says in order has, translations 1 1 The W The Since W There Let cate olv ∈ its ercise ercise e the that between vious x x vial v ( ( v ept xample to phenomenon. 2.5.2. Ex This ob the 54 order functor f f naturality ti one free) conditions. information. in ical tri 2.5.1. e Ex k C ness X which formulation, in right ∨ D of of as → 57 set unit unit first than This Here Y → these initial sense: : ]. g the C the uniform less finite : sequence g 2.2. 0 notion were naturality 90  a , Y gories. with Y a K coalgebraic / and / , collection both

TION size 89 the adjunction a between . C , 2.5.1, H e cate a ) transformation. turn technical v in i an commutes. in related describe Section n of [88 0 a of 0 to ha . Y x Y of ) which in , ε in ε ) X ) automata mapping . ay see i adjunctions Y . in , ) ) natural ( ) w may functors . satisfying typical → n } a G , (2) closely a also X } x n Definition 1 C is ( ) ( rectangle counit id X x consists x ) ( ) as: Such n f : 0 , h ®n ∈ 1 ) theory , and ( . x f Y The Y P . ( − . K  f  ( since: and ( . isomorphism . ( from introduced X f homomorphisms . ψ , wing ) X theory: ) . VIOUR-REALISA ) , G

, . 2.5.14. choose G ? which to D ) (parallel) , transformations ρ 1 g K . adjunction → sets, Y ) X  w F f ( ed—which F . x (1) id ( o Y ( ◦ unit 1 defined “natural”, . ( = than { system H ? ◦ G follo x an ays ) , gory K K tw ( olv ) G )( is / / arro F be f arbitrary X

BEHA w ⇒ Y objects the 1 v ercise , is f ( f : adjunction. ρ the h Y al x ( in seen: output automata cate ( X ®n , Natural ( ε It X G Ex for from by ( ®n can = with Y f ρ P notion C in F C { P ρ adjunction α can : write ed Y X X and er see double in ε x that this. ρ α α an → ∼ = operation map maps Y

◦ = = = = already one can − useful. do gories, mathematical ) of elements ealisation and notion inde e with weak Y ? input ) → f , v ) ) -r to ) terms, a ( of we i ALGEBRAS, of X ) ) This f Y ) K D checks cate → ha ( n X ®n , vious deterministic is } the X . GF ay ormation by ) Y : )  X ) x ( ) o in 0 n CO P ( ( → ⇒ , w f ob F ) commute. in we x ) Y X . xample X GF the tw X ) ( ( H ⇒ , f H  . ( e id ( H ( . This X has . easily ( an occur G F sometimes : . ( X analysis C , be notation ( transf ( ψ . H behaviour α 1 F GF what is is , id K fundamental GF D : / x ®n D / instance 1 : Draft one one using natural : h , Y functors. P η x ( of ariation and ψ = COFREE → ε ψ  { Y v diagrams C another no morphism for ? ) write gorical wing there of f w 0 is gories elements → set X natural en X and ersion Let X ( ◦ X so-called v η X v ) η cate wing η each X allo A follo H a gi often Y cate the : between X : ρ isomorphisms. direction notation there ( f xtensions set the definition for to X consider of e the follo i ut one α in o are 0 such the b to n GF naturality simple  duplicate which erse this them. x X the tw X v a each namely , f shall transformations , → case . re e the Definition. list, mapping ith e D alence . v function

ADJUNCTIONS, or case leads . v a a X counit F W Using W gi a , in : the this 1 in is 0 X x states. recognised we setting, requires automata requirement: In between into morphisms and 2.5.4. It equi η Using mappings, This n natural In for Y 2.5. h - ) ◦ It to in as . X ) and . also )) . ( ) ) g k Y getful called it ( ) A h homo- ( = . , back ( , = GF ) F F ) G for = A = = ( G carrier A a homomor X = × i ( h i ( 7→ 7→ = c → a its → to A

ALGEBRAS A G 2 , = understood unique c ζ g X Y is = X id GF , h on and ( = : → η be A ) 1 CoAlg ◦ as g the = h coalgebra ζ c → b = and AND = 1 h X ◦ in = = ( adjoint π ) can correspondence: k unit X = = ) A 1 g F e : y X = b ζ ◦ . A ( = v η A left = cofree ( the ζ coalgebras namely → ) F = = A i.e O i finality: a b F The ( Sets A ζ = c A / h b the of . , ( = X ∼ = × 7→ _ of by in e g coalgebras = = maps bijecti construction G = h b b vity = A _ A A = X / with of ◦ A tak = ) ALGEBRAS 2 = = _ by ζ , b . = _ A O = theorem, ) b → )) = A ( is

_   

CO = / i.e g A _ = algebras A algebras ( bijecti = ut: F A ( 2 , / h X ) = / _ b i ariables. = ζ carrier coalgebra : (natural) _ F b = G c , w A v ee = g ON b for ↑ _ vious ( , = A a A ) = proof. × _ fr / = h of the g → F = ) sho _ h ( = “forth-and-back”, pre A translations = _ “comparison” homomorphism c h = g the ◦ h ( F : = _ to cofree id reader a o    = ( g _ / define h = e F the = of ARIES × _ )) is = maps tw v ◦ homomorphism = g _ the requires consider k = . A g uniqueness: ε = 1 _ ( a ha can = es objects so-called

= π _ to id to = F collection _ ant ) = from by ) = X es h olv we _ canonical that = w × = = O still v X _ v , en X = interested X ( = counit notation ws ( _ v c counit = gi A so in A g _ = sense X F we , = F we gi id = PRELIMIN then _ c the ◦ = G ( the _ translate = a → es = the follo = = ◦ ) → A _ to This a assumption that =

2. in  = called are    homomorphism ) ζ of h X . ) = X adjunction g : _ can proof a X A mak F ( G ◦ 1 k ) ( = by Y g And = left X ζ O = 1 it top F ( F a ◦ Draft . X X ↑ en is the h i = is π ws. the X ( is → one v Sets F c c There = × / = A U h on , F ) It gi of = . ζ g = g A , ) . = → Y h follo result c ( xt = ◦    A uilt Y latter ) g CHAPTER finality function ( = b coalgebra G as F A ◦ 2 Since adjunction with = a condition. G ( a equation F set ζ this by ersely = . complete : k The A X 1 i F conte v = an en ε ζ . c to directions,  = v to this adjunction Alg = 7→ U h, from the Then Gi Con = = and algebras is: = ◦ second obtained , Y In Since The Dual • • original g order obtained A is 1 ζ the phism is unit and opposite term functor morphism naturality h In 56 It satisfies The That . i - i = in ϕ 59 , the → set- i ? The with con- state gory gory δ − = sepa- f h a to 2.3.5. deter . ) i i ◦ ) ϕ D i can cate cate 1 X ) ( ) studied 2.3.5 h ζ x 1 x initial vides , ( → x the reader 0 = one )) , TION deterministic ? x a i 0 beh = pro   ( uniquely been C = on x beh with )( , automaton : ( M for it D = ) D 2 is by / , ◦ Proposition / 2 ψ = y B D ) ( associated )) = 2 g also B ) 2 en 2 )) × × = that )) ψ 2 e δ B ψ line 2 v see y Proposition ? instance, = ζ × a , y ( v A y interested the O C C gi is ) = , 2 ( viour × 1 ) in )( or )  structure a 2 ha = X ? ? D ? 2 1 ∼ = ,  B F a on automata / = )( y C ) the ( , . C C B state, ( = )( 1 component ) 1 adjunction because → then ( beha  ψ or 2 double D  1 1 y y = × to / ( δ ( ( F y a y = / is R × 2 , ( 1 X 1 ( = /

VIOUR-REALISA = 1 δ  :

1 1 ζ A the 2 each correspondence: ( ( i ? =  δ y × defined A described initial  ( ( ( ) . adjunction = f e monoidal w 1 ) , ) in + g = v δ sends A operators. 1 h beh ? ◦ D ]. , adjunctions be details h = ) = = , f A f

BEHA ) 2 this = = = = A × parallel. g ) belo g ( y 0 transitions. -realisation , 2 = , D X C x D ) ) can h well-defined of f [155 in g = ) ( 2 2 X ) bijecti ( Such , i ? = id × )) )) 2 ? y a man is → f . , = C a a , y process , × 1 A ( h δ viour  × ( ( function e , 1 and = 1 w h the symmetric 1 -realisation transitions 1 2 D 1 v y X B a = ]  ( C X = ( ( DB y κ κ

X automaton = This automata: id ( )( by : es ) i ( ⊗ ∈ X | lea = beha ∈ )( )( belo beh combines 2 function . h [24  structure g  → ⊗ i ∼ = 2 2 w ) automata R arious = y an viour ) | , viour 0 ∈ ◦ , − y y olv , v → g = ALGEBRAS, 0 , f x → ne , , v 1 , induction. 0 | ⊗ the g − ( = x ? and , this 1 1 δ δ − y f ( x = in h h diagram. C ( y y so-called ( i R if CO beha , B beha ( ( by = 2 2 maps of , | | ⊗ ercises a D = δ B xample study δ Similar δ δ = x as × : functor h X X e = e define the ζ ) lines, established × = A only wing DB h × × B D because = , A of for is composition easily beh X yield the 1 1 = / g can Draft O O × × → deterministic = automata X ersions , and i X X X R follo / i in COFREE ed g  = v main A where where h h f C defined see A associated  i xists if , ( = of a ,  e one e put δ D gorically) X × X is automata. δ = viour B , the h v , : ψ aspect realisation h B δ the second = i = = it to automaton f X h B The is check = in = X X id = (cate it the R beha ) is the  2 2 definitions = , X ays ∈ 0 etch settings, to = B described  x i w as M M = state. ( alternati the sk x , | h functor , ⊗ finality e are )) i 1 these to ersely composition eral interesting 1 x adjunction v W B v eral ( M which deterministic by whereas X v . M h abstract , se × initital

ADJUNCTIONS, correspondence deterministic ( viour first in of 0 i The Con Se One Both morphisms, morphisms, ∈ oof as A satisfies i A 0 automata ting Pr mined X On sider rately It beha x ψ final On more beh This The 2.5. D ) ◦ 1 of as X ay → an ) h first w 2 ∈ , third in X 1 g 0 : , g consist the i x 2 , automa- 0 R i looks 1 f  The ( in f , Y It 0 ( elements the ) δ Y ∈ state

ALGEBRAS i h / of canonical n 0 by: are c y a order functor (2.9). , , h from . en es . D v

AND initial viours. v . gi , × gi ))) ersed an 1 from X D c / v c objects C is ) ( beha h automaton re ( σ f Y ( 2.3.5. Its g with i composition ψ ealisation )( 0 )) DB r ψ the and x the functions , x → B 0 ( ( a δ in − to δ .  = × The h of automata B ( D ( 0 , functions = /

ALGEBRAS . ) A y g h homomorphism ) Y Note g viours. and h

X , )) . id for CO g i ) f pairs , B to ) = = = ( 1 ))) , Proposition → automata id ? n f X ed. i beha h σ B c ,

ON ( are R C with: id ( ) C ) ◦ B X ? via X , )) id 0 c see f : → f ( 2 D ∈ C \ x i x , ∈ composition coalgebra ( ( ?  ( h . A i ))( deterministic functor ϕ 0 f a , , a ∈ . h h gory n preserv A  → ( x ψ D DB δ ( 1 . x c ( : 0 c h g o − is g , ,

ARIES with ,  form is for h And ) ϕ . ? ( h notation ◦ B cate 1 A . 0 . B C

c C δ and . translated 2 ( the DB × deterministic automata, , deterministic , g f the state DB 1 , to that A form , X h of c f D 2 ( ? of h behaviour f X in B ∈ ϕ for automata gory o C functions: × ( the i a are ◦ xponent x all g , A

PRELIMIN adjunction → ∈ C A e → initial ϕ of e 1 δ of A gory . xpress h cate D − − between f ) all σ X e ar for D 2. ( 1 ? the the X g e the is cate in A h is, → for for deterministic triple ◦ ) identities a write 2 Draft a 2 that use X e Ther h g orm for : , , are That with of with from from functions deterministic i F W 2 2 -realisation  we equations ) g f says , ◦ o id ◦

CHAPTER 2 , g f 1 viour tw morphisms , ( introduce back-and-forth f id Here δ ( ( . ◦ by simply oposition. coalgebras = first beha phisms phisms also D f X ) Pr Definition. Definition. e 1 id maps × ws. wed identity g h W The The final objects mor mor objects , translate C 1 f adjunction: the follo 2.5.7. 2.5.6. equation to 58 2.5.5. The component. The X ton ( follo , e o g is = G as v 61 ◦ left ob- But tw that a y such so 2.3.9) . ution viour there Later A short) m means if an inputs. be F A functor goes . X e. = for composi- v then of C × identities beha that alternati λy automaton , , Check  f distrib ( This D 0 its → a ◦ (1) yields getful proposition. e. An the

TION = then in (Theorem X v F injecti if gument C of .] m : mono . e for functor : x singletons. e , ar v is ) 2.2.9. this ∼ = Y 0 1 . adjunctions functions. sequence H ϕ calls (or equal. of the as ( , X the + e of id able , clearly Pro triangular v 1 7→ (1) v F The 1 surjecti 2.3.5 are identity functors → such A F one for ercise x that ) is ∈ let = case → supp G A a . Y U 2.5.7 wing X ) Ex 2.5.3. phism ∈ the suitable : obser injecti written a Y a 2.2 i.e ‘ only reachable. g (2.8). G a η states and . ∈ is , ( delta w F GH ‘ functions. monomorphism g , f the F follo in ( s 0 the e from special a and via × ◦ ∼ = x xist, v support = maps arro called a as e ws 0 Proposition VIOUR-REALISA is the ) polynomial

coalgebras, f x Section is εF A X monomor an the if able . m Sets Dirac' CoAlg ( Propostion ) arro on Sets bisimilar / ) function state a Proposition coproduct coalgebras. is CoAlg B if F − from .] / = precisely then surjecti F of ( by in ®nite state 1 ( as from BEHA , ? C products → × only actually that C with e adjoints.] g gories: A and from a observ where are that the en that . ∼ = X in viour for is set A ◦ called initial , v pair } appropriate B of ) A -coalgebras w 0 e ∼ = and so cate X ®n gi Ðlik with is o are − initial → D an F Sets ) when → ( both P written G id if beha 6 = coalgebras = CoAlg D means : tw of Sets ? Sho 2.5.3 ®nal G H → ) is short) in: × ®n the X f → A epimorphisms. be of algebras both in ⇒ x gory

→ it parallel × ( D Sets with ◦ 5.7], e this , = the ): as coalgebras: X X , gory )): for of ) ϕ e if cofree C ®n e : coalgebras ®n − F in , can at σ DB cate | adjoint D i of ( F , choose from uniqueness D gory : if 

ALGEBRAS, C D ( that 0 : , → 9 each adjoint. cate G x resulting A , x, , coproducts, epi x that R ( natural. { δ η a by Y ( h preserv Y C ∗ cate CO ®nal ⇒ , gories ∗ right see ◦ for Proposition δ ) Alg the in a (or δ Theorem set ( isomorphism equipped gories are a  supp adjoint right isomorphisms of → if such →  − minimal id F of CoAlg s is . , ( object X functors a cate reached ' arbitrary : Gε ) e an X adjunctions ) . the η X shall has cate ψ endofunctors [16, are X F and λσ : Assume since be ⇒ be U → ( an right 0) is adjoints g monomorphisms C epimorphims y get of in . phism Draft 0 epi comes we each , P proof C called  ution and 1] C function , f be transformations: automaton λx.

COFREE X (1) such xistence the . the 0 construction , can → GH preserv the left an is the : e ( else → ⇒ D C the F ) then C . [0 adjoint = X on xponent the or m g noted 3.4.3 : 1 associated F D o CoAlg that in in Sets F ∼ = the that D that that ( that epimor distrib if maps : : → ⇒ we state m : ) must = as Let ) e e e tw natural automaton In G beh the U w v v v an m f − all X as F id the that then ( automaton ( ery CoAlg : used Consider , that : Hint. are v isomorphism x G hold. ϕ [ Pro supp Check η Let Pro Sho Pro G realisation ws. e GH e automaton is for able product-e v CoAlg deterministic Corollary this morphism an : v) eachable Hint. follo (ii) function that implies in Dually (i) adjoint (ii) Pro If The where (ii) written that [ (i) [Remark: there (i) The r (i are tion that endofunctors serv then between (iii) U is (Hughes) Recall A Notice A Consider

ADJUNCTIONS, 2.5.8. 2.5.9. 2.5.6. 2.5.7. 2.5.11. 2.5. 2.5.10. a o y → as ) → the in- ad- and − tw that u this that right the wing ) e where both a v useful natural ))( es functor , the for Y gets itself blocks. y Proposi- map , a Sets )) follo ) : Pro has ercise, for x, and − ? is set ( x X ( ) see with see e . ( parametersº. because the getful . , − Hence ×

ALGEBRAS sets ) F situation X and ( preserv this ) . ( v uilding for 0 operations strength to open) ∈ b − D with . whole st M : vious ))( (( is DB the x ψ the

AND λx making gories. ( F mostly pre ( set P the with parameters. f functor to Y Sets → directions, parameter structure, F from . X spaces general, , × ⇒ st a h cate the  X particular ) = for subset X A → and X In → → [182]. / es ) X Y in a X ªinduction D 7− v ) . ( .] : − P elementary ∈ functions ) ery set ercises, adjoint as gi ( sets Y In P F gories” v B y ( x closed / gorical Sets e × ? opposite e × obtained X underlying F object) λf u, Sets ) for additional left / A called ( × A ( in cate topological

ALGEBRAS be of : − more → its i cate F is ( (or empty on an f 2 . De®ne ) 7→ C F which π to

results.

CO . P by X functor , es also Sets set D A from computations the 0 Cartesian in from X st 0) ∈ → a en f id ( st series , olv Consider of v ◦

ON in can v functor unique map F . + D transformation sometimes be ) gi set, more λx : “process ⇒ in , only a a viour : 0 Sets . st f ) a is and y ) ( h P G is long M this st functors G ) ] X ( appropriate via F → on ) endofunctors ◦ h F also Y that beha with 55 obtained functor Y such : Let man ARIES general, ) are assignment X ( natural , ely and . , ε that as × transformation v . there Sp v ]. for Y F be e X to : and ( the D ( algebra A w [54 η X the

27 ∈ X U P ( induction and F F which monoid ◦ , can = ∼ P F → → Sho relati × ) too, a ∼ = of / topology → Λ( λv that arbitrary  that natural strength formulated ) f ) leads alentÐin topology calculi × a GF ( 240 studying a v C codomain a P A A is an id , : ay suitable ( A ( G ªstrengthº functor = =

PRELIMIN viour × ⇒ a F datatypes w maps F × F that be 1.4.3 equi ,Y = and ) : natural with 161 with C a e α discrete of X recursion, 0 2. ) α yields , X v is essentials. id monoids. f into beha are ( st F st : 0 ( process getful strength indiscrete h x the η Sets F research to which ψ st ercise this 222 : such the strengthening Draft for from in describes , functors domain h theory → Ex by the of in turn algebra (via o sets that that ) Y the functor the 111 Sets e the perspecti Y wing concludes tw w commute. map a , v × comple structure. ( used (via ferent ercise line a from Sets in )

CHAPTER First x that → G capture : from e initial dif a formulations as: both Sho Pro Sometimes , 2.4.5. X follo 156 adjoint F w each ( fer viours, , X is is ( Thus, F of Hint. section Let notion monoid transformations for opens). diagram adjoint Mon Mon left tion Assume It (ii) [ (i) C with This Assume Sho Recall The beha [115 cises of commonly concisely There This 2.5.2. 2.5.5. 2.5.4. structure. 60 DB 2.5.1. are 2.5.3. stance junctions Exer can . ) a ◦ B b en → 63 ay ( g v free § w 2.5.11. there H → gi Im Chap- reach- origi- C v). the : , yields with X i arbitrary (i → that . morphism « of sh ] wing , ) ercise D such G ) an w → [153 b D ψ ,G with (iii) A « which / h ( Ex F X N [ 2.4.6

TION → m are follo be ( X algebras, Y w Sho Im g in D  ◦ F : int . / beh B 0 B h F D X → vie 2.4.6 → : / / the . U tl ◦ ]. X free g = hd K ercise A in X ) to m b H Let objects. objects b i and / a realisation ( Ex [166 tl . and with from , as → 0 Its B ) and v) carrier , Im in from N A b map 7− realisation / H (i see H ( U = hd B D ) , D h xt = N Sets the § O  restricts 0 = Im as: m ) direction H g ⇒ / × tl D → = / N → of minimal / ◦ ∼ = = viour − C → functor ariables = ) _ ( s : G, D B conte 2.2.10 v tl b B § h systems. = Nerode N / ) , e X  ( f  ercise: erse VIOUR-REALISA ) ,

= as: _ _ ) of Y A X adjunction b x v F D U beha / H / = → A : ( ( e / written Im the morphisms : ( re X free = / _ _ w ϕ b an ( N τ § / f = Im 0 by  the be its / maps w F _ = _ B C tl Elements ercises × in the BEHA Kalman' m : Alg b with ]. = e in C U system „ vious en : w tl 0 _ _ D = Ex / in v can maps dynamical ◦ 16 polynomial) G = U ∈ And coalgebraic G id = form w { , gi pre _ _ = ) e linear t . a , b = § « functoriality  ( _ _ map containing [15 = N of from in the and C ect C ariables. analogy = linear § , linear v Im V RLDS D _ capturing „ sh the ªterms-as-natural-transformationsº = function RLB on / functions

h C realisation, in functor D  § = terms dynamical ◦ as O in pair Y X → viour = from = def of terms / / × C → a i transformations e i tail = → with necessarily B from

ALGEBRAS, sh = as is D formula § , sh « based surjection/epimorphism. = , beha H ψ the getful linear → ” C a h elaborated = D reachable RLB is ψ (not :

CO / a so-called minimal systems, : = triples 0 h D for RLB is adjunction RLDS seen a X ψ ®nality = natural a be of this F K : F that viour results beh It ψ considered the ψ are → B an to be G es be § the of → the v § see ) gory f D are de®ne beha viour b to § gi C X 0 § ( RLDS Draft to then “ C ®ll-in: [170]. H → functor F C cate Sets O O F description

COFREE dynamical using Im can etches → the A „ C this functor beha a „ , a f → Y required can sk describes a → gory hard A w K correspondence: − 0 is Ðwhere one is from that G e that → X elements ” ψ linear v f e viour not image cate adjoint belo gorical w B diagonal Y v on = Sets ercise ercise is N 0 for there : x x ϕ § the stems that F → → left e e cate D via beha Pro It The Hence Assume Sho Construct systems f bijecti H whose § a 10] C ◦ a A orm able F Also, ϕ (i) This is Note “ algebra ter to set, (ii) by nally Let This This

ADJUNCTIONS, 2.5.14. 2.5. 2.5.13. ) a a ? i as - is C is A ' g ) tl C , ∗ it to epi- , ψ that A F right f from → × N A Simi- mor result ( if ≡ First ? hd functor an functor B h ∗ . N X / function the O , Ðwhere obtained C structure MD a → F ? and × B the op de®ned This G sets. is / automaton, ∼ = ⊆ C Check on → dimensional ∗ coalgebra. ( restricts B of It ψ coalgebras. N ect systems / D i X ability

ALGEBRAS X space V alently ≡ B gories yields minimal ,G ∗ → v ect input induced i H → ®eld. morphisms G H to → → ®nite ®nal V [40].] ) 2.5.7 h → N objects, ®nal ,G cate ψ ∗ objects. . ) in minimal equi observ in B the ector in the H AND ) the X ≡ ψ v as h X of of) as a τ if beh with : if system relation / ≡ · i (or of ∗ dynamical and ? 0 × ut automaton. → beh e ,G H ? / b σ C the v ? B only ( C H ( vious ? ∗ h actorisation: underlying : alence C id ψ between isomorphic f C realisation D indeed ob alence ( B Proposition v ψ coalgebra linear call bialgebras v : X and δ automata D automata = as (elements if beh 6 / is the ψ O eachable ect  consequence if ) of m  × X objects r minimal surjecti equi ) V i for m τ ψ to with equi from ®nal m act a And

ALGEBRAS · ) B D is G f reachability B m ect ≡ N map an Nerode es only , τ m , function easy σ ). V / B es the · m in ( the

w same tail. ? DB v H ψ

CO to H 6 m de®ned → function → minimal result h in maps ψ an σ has ect . mak gi C reachable and . ( is are [8].] ψ function V ? , ψ ? → the it ∗ w that X belo ψ and if )

ON it . ≡ . C ≡ description e C between with in induced no ( A v / − / G with linear N also → ( ? ∈ λτ that D ? A left is duality Consider restricts surjective N with the : ation head the sequences a C τ Pro C a ' A of ] a w transition ' B X 2] reachable → see ∀ RD space; if D the P B G by ∈ ws. automata f 7− DB duality P ealisation ARIES is , sho ] F of r P point direction. → reachable also of σ on F en X P of observ hi 90], B [ with subcoalgebra) space [ v able P ⇒ operator the state  space. is is follo

, A in®nite P with v X + and ] continue gi H ode / functor ⇐ P at → c , as Chapter as B (or realisation goryº [89, N ut A of vious , gory · ? goryº / minimal ψ b state ector X monomorphism 0 . ] ector D B Ner one C H v adjunction σ There → opposite v pre obser ≡ σ able. set diagram [ a op look A adjoint ,G RDB viour G × of) [153 system → xt , structure / → ] D from F ψ

PRELIMIN an [ ? X ect the the = ? B the we ne the ,G → ªsubcate ≡ initial the subcate Nerode X in is V C [16]. int ªsubcate F beha C in ªdualº [ G

2. in is ) e. e → σ observ in A : → system F c ∼ = in result v the + → the the ). (states alently and so-called − int ψ arbitrary this comes lik X Here the the v the also , X X ])( A RD there A subautomaton N ) be ) and be where ect : Draft this σ an RDB × id and able h σ the a dynamical V B F automaton A for B ( ([ → , → that quotient result. : that See § Thus, viour (equi B be that g that ψ i surjecti → ψ duality result in § call . , A δ tl A an e ∼ = A e e s § course , 2.2.10. RDB B MD is  f , adjunction A the v A by: v v = 7→ ( : ercise A observ + ] beha spaces, linear e ] f

CHAPTER RD able. by of x hd ]) let a e that reachable forming RD functor [This X is the RDB h a Pro Let Check Check Pro Let A sh ,G , σ is tak , F en ercise [ ([ injecti carries e ∗ v in v) ector ψ [ (ii) both  is W V phisms Ex (ii) where Write v larly int morphism [Kalman' Call preliminary (i) (iii) (i) from observ construction, de®ned It gi Similarly (i says This 2.5.12. 62 - y it ), is to to be ) we for are are y the- ( arise were y us y some holds either use c deter Man . where inputs notion simple , will y , the relation x, o case R w the a x = ) on stepwise which disposal. access of will 2.3.1. a successor coalgebra x if ) means in tw and if ↔ introduced ( in ∗ introducing allo is ] that ( to for x our of is 1 earlier no sets congruence— states e that about κ In at beh e e as for v only 117 e o algebras. . an result is v e limited spaces, may ariance tool , = as v properties v e tw ha ) on It states same v Bisimulations ays “mo sequence for in and ha Definition x illustrated viour gi w concentrates ( a [116 basic state if coalgebra to we of observ c in written the means e is we these a . v crucial When ut is or written on initial beha coalgebras), is b i.e only can this a uilding ( states. ations. this that , is from viour of notion chapter the 3.4 we for This accept its introduced—lik able. may Consider . same congruence if form

y beha the is states Alternati What states”, viour this pair observ introduced relation relations; that modify lifting It the the ”. a . of and that as c about e all bisimulations (or observ Section beha v is same congruences and is ed coalgebras) y), lifting. equal ha then be bisimilar in v part via manner e vided. x simulations—b operations an “modify the 3.3. to under the This successor bisimulation relation chapter pro e pro not and (if to first v the A 65 no state of (of bisimulations states called bisimulation observ ha e coalgebra ark a related us

relation are coalgebras, o leads v P mutual may information a The principle of Section of 1.2. w are tw states). “closed en present ha since can bisimulation ]. as for for v In y us and in y is Coinduction that states gi bisimulation, A allo the and Indeed, that coalgebra lifting we the es proof o a a viour [178 then, v technique of lifting. operations and need later tw guments. Section gi x may w). by lifting. which for final ar the beha the successor in lifting the it aspects automata, 3.5. bisimulations relation. topic equal that happen e belo relation the its transitions Draft both bisimulation The for with be lik space and programs to predicate ] related , coalgebras, ating relation may main says of ) discussed coinduction (via v relation, certain coalgebra not 3.4.4 it bisimulations. relation 3 about Section It either X via induction are state for them be introduce lifting, the map a [189 states. in of The × moti in all is things, and indistinguishable, its in called . of coalgebra w need e then bisimulation A between will will notions of , ( by ne on a y results by chapter indirectly unique situation + in X ypically Corollary the x, space, automata states 1 xt T certain bisimilarity or calculus start × the distinguish o coalgebras. union Relation e ationally this ne properties e section → X technique frequently is also operation tw introduced of state The In W Bisimilarity a states the simulation define ⊆ the X : for directly the beh R constructing cannot as c observ Chapter Bisimulations The 3.1 This The states”. to bisimulations observ maintained elementary of ministic first (see via in reasoning—lik basic used contained process ory A ρ B ] the ] t is [ → [ A A : f → A ALGEBRAS H interpretation

AND an algebra to A homormorphism .] ρ a in ◦ B f ] speci®c ] for t a [ [ ALGEBRAS at that ariables = v

CO ) A ρ ] says ] the t ON [ of ([ then A f → transformation

ARIES X :

ρ equation Naturality natural . A the amiliar aluation f PRELIMIN v of a the 2. algebra es has the tak in Draft one t component which

CHAPTER The term the algebras, Hint. mapping of [ of 64 τ ⊆ to es 67 → in- × for v use . But dis- σ } R F more gi ) X R These i : )) aspects defined relation v ut in c calculus and relations , shall R b algebras. . i a and e be )( operations, u R . ant lifting. ∧ τ instance terminology is for v } W uniformly F )( relation ) ) ( → ) R v v . σ a also ⊆ for ) Y lambda rele relations. )( Logical R Rel ( relational u, u, is G ( coalgebra G ( apply F )( )( ( can relation )) Y ®n y the R R standard used that conjunctions R (algebraic) . . typed P cumbersome, of → Rel )( )( ) )( the logical → R ay congruence G single G R are . n. F the ( ( w ) Y ∈ congruences. lifting ( UENCES from especially a )( relations : y a finite Y ≤ that more and d F ( )) is , determined. Rel Rel werset of i ( Rel congruences. on v . as and F )) ( ∀ The . ( (simply) under po : b V ) U.

b | functor such R emphasises and b X Rel properties . , × for so-called seem R ) viation This sense of ∈ ) ∈ a )( ) relation w CONGR i in ∈ × u )( v to de n u , ( F (such ` X and finite v ∃ ( F ∃ a the σ ( )) closed X , may ( ( . a better y that . ervie F coalgebras, ( U. X V in is . collections structurally v AND Rel is it ⊆ d refinement. . , ( Rel o . ∈ , ∈ minor , 1 Similarly see for ) related → ⇒ types or F → 1 polynomial R bisimulations − . semantics use v u elementary x v = an also ) c ”: ) a ( ∀ ∀ h ”: ⊆ data d by d c X , b Also, of |

This ( we X i = : definition case TIONS ) be shall ) ( are for , × c n functor ) ed ) quantification). xt e d R and c infrastructure V x polytypic F u and in v closely and R arious R ( : , 8] congruence )( ( we ( c v ⇒ . between a a 1 U, or d is a . cases. = F Sets ( − inde with . × . ( conte which { ) c ⊆ used bisimulation , 3.3 see relation. , σ b alence alently: ]. 1 then → ) inducti that Similarly bisimulations logical ` v v Rel R , F u under the be σ xistential under . × ) e h obtain BISIMULA = R e eneric for: ferent coalgebras τ Chapter ( v in ∈ ∈ R polynomial a G functor in g [117 { shall ( algebras ( , ( ) ) R equi Equi Sets dif a Draft will we ) alence v y in : abo P . for and Section v definition are R require used we then for .t. F = u, x, Y ⊆ and [181 “closed as terminology the , ( ( )( functors .r “closed of is ? σ the ∈ The equi w is F use ) it underlying ersal ational ) G Let ( on arbitrary only R y see LIFTING, duality v relations interested werset R formula R an also such use introduced we an section by )( Rel the we list po of )( xplicit ]), uni is is the and e are what F a a which F lifting ginning of xt it ( observ ( images. then w same

TION handle , X is is by 198 that and be Y ne and bisimulation we congruence e polynomial , Rel ∈ Rel F F wing via that × sho settings, which W A A 82 the x the by Definition. (2.12), This If If . originally , Y X ) RELA is: better definitions we not (i) Notice Often Relation In In follo collections determined ed all by (ii) lifting, a X × ⊆ justified x (7) (6) , ( and the F is are are us junctions, directly general or of X de That were 3.1.2. definability ([227 The (co)algebras R first 3.1. for , a a to of by let on are to R and simply and Y from

TIONS Briefly relation , , a and × R ations e. defined , v . structure transforma- . . X of } F ∧ } a be ) } abo ) ) ∪ y functor )) in the . is ⊆ 1 2 0 yields xpressed observ a } } v v e generally x, ( It ) ) R will A , , . ( on g R · · . BISIMULA v v 1 2 . } be , · · be and R ) u u ) F 0 · · for A , u, u, their “lifting” to a

3. y )( )( ∧ ) ( )( )( Y more , ∈ a  can 0 b R R f which R ) R R x a , and R × X X )( )( )( ( )( ) = | X polynomial )( )( relation 1 2 via constants R 1 2 R functor R F ) induction X a a X F F a ( × . · · ( F F a ( ( is )( | of ( ( · · ⊆ by )) be slightly F by closure A · · . G a, and ( )) Rel y ( ( Rel Rel R ( R

CHAPTER y × Rel Rel b { | c + sends | | )

this , b, Rel A A = ) 1 )) ( Sets X )) )) 2 = x 2 lifting related a = ( ( A. v v v κ defined polynomial · · that c ( ( , × → uniformly F , 2.2.1. · · ( notation 1 2 1 a ) ∈ ) 0 is )  which · · in: v relations occurrences κ κ so x ) ⊆ R a with ( ) R , , A to ) ) again 0 , the ) ) , ( ∀ to X )( a, Y ) ) on F u u Sets | ( 0 R ( X 2 ( relation ( ( R F X X : 2 Eq × y ) u ( are 1 2 F use ⇒ then κ × g , F κ κ ( b, , = A , Rel 1 ( ( · · ( × ( { properties

A applies Definition f Rel u A { { · · = 2 ( ( ) applies suggested · · Let ∪ κ ) + (( shall { then define in equality relation + it y which X { 7→ , 1 } ) e as then ( = then 2 ) = a 1 , to , R x, Z , ∗ W ) F F lifting = ( then ( 2 to . y ⊆ closure X )( = uses on 1 , ) . mapping ( R F + 0 ⊆ ) 0 points = = = F Thus, c κ states ) F A ) R X lifting). 1 ( , , R ) R Y × ) R ) ) G of R )( F ( enient 0 functor e × ) ) ) ∗ the 1 R such The R )( v space functor ( x )( F Rel F F relation R )( 1 X X ( )( F X tak Draft F ( ( a, κ ( )( × F ( F con of ( spaces. { ( F F ( ) ⊆ 2 Rel wing F state sets. we relation ( successor κ Rel xpress (Relation Rel xponent X be R identity a structure Rel e if ( e e Rel idea = = state the constant product coproduct v Rel follo F to to ) , a the a a an the ha 0 of will x ⊆ orks F ( X is is is is is R ay c ) it on w relation arbitrary relation ferent w F F F F F , R relation on general both a Definition )( If If If If If be dif y idea of F The One lifted w functor same: ( Y the , (2) (1) (3) (4) (5) the tion “lifted” X 3.1.1. Rel This allo relation 66 or Actually as: the induction the occurrences - - a e- of x- of 69 la- are e can that } rela- alg viour ) under It 0 for with Corol- y Prog A standard , numbers numbers 0 polymor ) induction M language. bisimilar coalgebra least beha equations, a transitions x see alences stating id → e ( = ∼ initial of ( v as → , closed is properties − R by proof. principle, the ) lik if: P 0 ) an be ∧ y M natural natural en as equi by ) the v , + monoid to × on y ations some gi for proof v Prog the y parametric Plotkin ( x, , principle, M operational functor ant 0 ( )) generality F v Prog These x v for for deri programming by R then understood +: programs, the | the ]. + congruence is

UENCES rele full described +]( postpone be assumed the the requires x a )) for , ( 0 [87 principle such is logic in . y induction is in [0 the of ut R operations. congruence algebra often , are , M b F and it as /

define ) may y see programs is ( u ⇒ coinduction the not the 2 operation proof to Prog

CONGR for = introduced structure of κ a alences e formal ut ) of , +]( ∈ v v initial Every 0 b which ) a 4.2.2, monoid , +] 0 , y of q ersion, set , appeared , 0 x v of under 0

AND the ([0 alences, operations [0 p, equi structure lifting the x —which encounter (SOS) v and predicate. x, xt ( R the formulated ( ersion of of and G dual also of 2 induction R v languages transition associati of κ It + equi ( ) ∧ closed binary shall truth

⇒ first { 3.3.3 conte principle the an principle). ) TIONS certain ]. predicates, the = M top is y ∪ Relation as is ]; programs the we to carrier functor transition of the . oof this × binary other } w x, semantics on ) “unary” ) elements [117 ( is signature pr v in )) proof 231 It or the X M 4.1 R ∗ ] ercises rise wn , as in ( ( u, This come. operations the carrying 1 × terms on Ex es )( usual + κ o programming v to [197 , between in X 1 R BISIMULA [232 M defined ) seen induction ( M algebra gi tw alence of the ∗ see )( formulate in elation. v bisimulation, ( appropriate Section rules. + Draft × r and still induction set see F 1 of operational induction well-kno are a ( -step 1 a κ then in an e ( a M ays, algebra equi are , only initial { is These generalised is = describing Rel w congruences. lik less . ⊆ xpressed for an ) an latter an e structure , F certain 0) binary

LIFTING, a ersion we of ) monoids M congruences X , R discussed = semantics equality v (Binary principles Later a trace as ( systems, on which (0 ∈ structural as F to: The for in further arious ) the monoid also the R 0 em relation w), v 2.4.3, Prog under stage R

TION a ( terms is in functor )( in and binary G ariant already relation describing transition in lifting belo v F e congruence, ], this captured that a q ( functor en Theor v in transition → a v

RELA amounts so-called closed 3.4.2. element coinduction be contains operations. ha The At This There → a (see gi Rel programs. the [219 Example transition ery a e − suitable v a tion A Prog beled of p technique ity be 3.1.4. can Hence lary Bisimulations The unit This and Thus relation of Congruences Recall br Congruences phism. in in pressed W the 3.1. e /  a → for for B 2.2, for ∧ same × X by: ) ) : TIONS A . i ) v v 2 the  en b coalgebra , X v u, u, automata δ ( yields congruence to ( ( Section h = gi complicated: P coalgebra a R R of , 1 in . .  . congruence b ) ) ) rise is as × single B a a y . , ) ∧ e  ( ( ( 0 more a v 2 1 

BISIMULA functor  × seen and B y B f f )) , theory gi )) e 0 A a = × , × v y 3. on ( ∈ ∈ coalgebra x ) ( this ) alence 2 A X (  y A v ha the ) u v f x ; and ) , R ( ) , ∃ ∃ ; ) 0 slightly x,  ) X for . . ) × in X y R ( y ( 0 ) we ) a ( ( is ,  ( ∧ y equi a a R 0 δ P c. 1 ( , in ( P ( (single) 0 B x 1 As 2 f )) , ( x ( = bisimulation f used f . a ( × implies ⊆ lifting )) → R

CHAPTER b R with B the 0 ∈ ∈ )( x ) R of A bisimulation

( y indistinguishable. y functor X v u  × R A. ( X .t. a remain X : and , . ∀ ∀ δ .r i )( ) A → a 2 0 and , ∈ y ∈  b w is ) x this 0 − x F , X ( a ⊆ y a ( y implies congruence δ A. Relation δ the y ∀ = h ) notions ( )( c → for a , a . x, → 1 ∈  x ∧ → R a Rel ationally ↓ − , bisimulation b R ) ( relation. B 0 − a the )( y δ all X x ⇒ x R alence ( ∧ ∀ × : of y F v ∧ i of )( ⇐ ( R lifting  A for → a b

, F observ − with id δ ( ↓ alence if A. ⇒ Rel relation bisimulation automata with h equi  0 v automaton Similarly x x ) 0 ⇐ x = ∈ a . notion 2 Rel y c the b a them ( a is F , automata an equi xamples ∀  bisimulation = 2 to Relation ) e es is f is a . 2 b X ⇒ an ( , relation b X , = B ⇒ , ) in is ⇒ × X w 2 × eral relation. = mak 1 automaton standard × = f v b there functor bisimulation ) there ∈ ne ( X X , A are y se , a Draft ) 1 a ) bisimulation y ) ) the implies notation: f y ⊆ This 1 the ⊆ x, is y ( id which b c x, X A ( ( alence to  x, , non-deterministic deterministic R ↓ non-deterministic x, ) ( with v R 1 R X P for × states ( all implies y implies f a R R ( 0 for for × 0 R o = X )( x y ations. equi ) for tw X and algebra F F deterministic ⊆ transition R ( systems. → a → b a relation a if, an ⊆ )( relation − − functors. R in ↓ a continue is B Rel F a Definition. once observ x y x R consider coalgebra by: e ( corresponds is, single × a W • • • functor a en xt, . A Rel is sends v Ne Bisimulations direct on specific Bisimulations which Consider Thus, it 68 3.1.3. X gi the it transition Thus, Thus, I.e relation This That , , ) is 1 ) of to 71 F − R fol- ( 5.7]. ) (ii) , (IH), )( since: R listing F , in werset Rel F )( requires ( A notions po as of by F A G ( . Rel equivalence G Example properties the )) , lifting a Rel ⊆ order an ( diagram. on starts hypothesis g = )) )) e is [125 , v a these It ) ) associated structure with xponent ( X 1 a and R e ( g ( see xponent − L abo , , , the e if h ) the z Eq R uses Relation the ∞ )( S )) the )( )( an )( A ) a . on S order )( S induction ( what in F F S ∈ is boring. ) thus, )( ( g ( F functor )( g 1 does )( , ( ρ as G )) F ) G − ª¯atº ( F a ( Rel h, ) Rel the so . ( and X (

Rel a functor Check ( )( R f of = ⊆ Rel ◦ some . ( Rel S )) F Rel )( ) ) slightly  induction )) ) described ( ∞ ∧ then )) where g ) )( − subsequently ∧ F a for R A ( ⊆ , R ( ( assume, as A S ) Eq X by τ )) f v) ) g )( )( ( z ( × )( a G , also (i , and  ones: R ( ( Rel = F ) diagram. F F ed ) ) G ( ( ( A ansitivity; h a bisimilarity v = )( ( ρ lifting. in a ( order ( , S · ( tr polynomial Rel ) the F f Eq σ = )( f Rel Rel + ( a relations, an pro f Rel a coalgebra ( ∧ in )( vious and A )) )( e if 1

case well. lifting, f ◦ ) and S of v ) G Rel as R τ X possibly be illustrated: e. then are h ( ) 1 = pre )( then , ◦ ( = ha as , , v relation )( , operties. ®nal − ≤ R R elations: f 1 The v) R xi be to R G r Eq L Rel ) R pr the

TIONS σ )( )( − ⇒ ( and )( the order )( S )( ◦ )( ⊆ = of G Sets G R R relation by elation: ( ( G ) ◦ ) F refle about F r Rel on (i)–(i will ) ( ( )( ( ⊆ . symmetry R 3.1.1. en g from of sal means basic X . → R A S z , v , Rel ( ) Rel as functor )( bisimulations it R Rel ∃ composition composition Rel f )( Rel G gi symmetric also R ⊆ ver ws A . ( ∈ Eq )( e F inclusion es Draft )( is is A. A. A. the r . C), G ( a technical, i.e R S xivity (

BISIMULA bisimulations lemmas ) ) Sets what equality ∀ Rel F are. ∈ ∈ ∈ similarity i.e the order : (A ◦ about ( follo on R R statement Rel a a h. a h. efle of Rel elation F e, P with

OF following r R )( )( Definition the r properties ∀ ∀ ∃ ∀ ∃ v Rel that (v) three preserv )( F F e xi in ( ( four is the Let pre®x v A slightly estigate G results v C) Choice are ⇒ ⇒ ⇒ ⇒ ⇒ ⇒

TIES G so is Rel Rel ( functor simulation the Describe In Pro (IH) refle (A symmetric, ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ first monotone: eserves eserves eserves of cases is is Rel operties pr is pr commutes pr that that then there (iii) (ii) (i) statement R OPER R elementary satisfies functor The the It It It It It Pr Lemma. so so If If standard . section PR F e last the v) (i) Axiom • • First (v) v (ii) .t. (i oof (iii) wing .r arious elation, lo The Pr r 3.2 This v the that pro w 3.2. 3.2.1. . . . - - e d if + of v v V the 1 and that ◦ im- Y 3.1.1 pro- Sets with , uti ) guar → ) refer itself, and F Prog Chap- → bisim- an − R of

TIONS . . → c erse, ) d )( in ) → )) )) v → ∼ = X be y intimately V F − Prog in R R e distrib basic polynomial ( ( coalgebras kind Y these ) × x, )( )( a Sets a lik ( , G 2 2 as: later to De®nition simulation, : will Rel R as reasoning thus F F ( R X the F are ∩ SOS-rules ( ( of in It for of → F in Prog + ] . 2 and ( are bisimulation

BISIMULA coalgebras is: Rel Rel addition, F for for and V ( ( c 7→v◦ F a → , [99 2 2 + simulations. κ κ d +

3. relation 3.5, R is the functor notion 1 Prog ) described × × one X coalgebras, zero, 2 2 F a all in See as V κ κ on . setting and the → essential ) intersection 6 = or of coalgebras formats × w ‘ Q c tree F ) get F is. (1.7), union ( F o structure V ∪ ∩ are this and also ]. Section ( of v for congruence) namely belo for  bisimulations: tw )) )) see union is eOrd + in Q ), this in Prog 125 Sets CHAPTER R R Rel coalgebras ( 1 / all reasonable R be , 6 Pr kind Chapter and

)( )( the functor m F a indistinguishability syntactic ) 1 1 er on m of algebra first in F F v m dependence There issue Y congruences. ( ( [230 diagram congruence m ( (o lifting e, then en m properties products v arious section, v F algebra m of Rel Rel is the languages, are the V v see m F ( ( of gi v alence union bisimulation. m , ational xt 1 1 e an bisimulation d in v m suitable . → κ κ further coproduct for m a bialgebra ne × × as as m the a the relation 1 1 . simulation notion space a m Y is mak κ κ terms important equi ? m (bisimulation v is a ) on the alences functor perspecti for observ R ‘ Q in -simulations. to by v

Similarity a . greatest X ªlaxº chapter An ↔ and the in congruence bi . ector of Y establish × v en ) then ↔ e )) Sets on captured = = estigated v the equi on a × lifting object-oriented v functor A R this (iii). X to is section (iii) ( gi be ( associated bisimulation gorical a idea for in )( as of ) ) de®ne de®ned in X mak of Y F F d ]. order R R → of of relation ( the this can be be ⊆ alences. because to 2.3.4 we cate × the )( )( c v v 33 ↔ 3.2.5 an X 2 2 → relation congruences , of R c F F X setting ∃ also classes research Rel what will via X ( and concentrate + + equi order ercise Draft 1 231 ⊆ more consists of ) operations 1 1 also bisimulation for , − this can a Ex F F remainder ) an write we de®nition X ⇒ then R Let ( ( it d the notions characterised In in ⇐ described xt × area formalises order [232 × the the use bisimilarity we Rel Rel same e de®ned te requirement such multiplication, c that be Proposition v X situation that ( an certain in consideration, y alences e be ha the en × v v estigate of this relation The ⊆ v e v wing can shall functor ↔ whole . A bisimulation basic alence. that Gi as: In a Pro A scalar ( can R such W Do Note Unfold In This e a v x F topic equi a ↔ under Definition. W is follo result is cises fundamental equi It Sometimes Bisimilarity a 6, that o ws. xplicit. 3.1.5. ter anteeing 3.1.4. ence. la grams functor 3.1.2. tw 3.1.3. This portant 70 typically 3.1.1. As related. the ulation 3.1.5. e so Exer , a ) a. e- U as 73 the S is and pr ( Y ebr → 1 to R U . − ) × ) X g -alg S : → Sets ) that f X underlying )( × . F . o X ( F → f ⊆ ( : ( i.e amounts tw Rel f , Rel R ⊆ d lifting. Rel of in a 1 Sets c, ) } R − is functions : ) S latter 2 )) F lifting: by: )( g x ( ( that two —where F Y elations relation The f ( F r consists of ) . . of = Rel → × Y ) y Y Sets Rel Note ) )) ( ) functor  relation R in 1 . X f × -coalgebras s. x, × f F

V ) congruence Rel ( x → : ( )( / ( F     binary by S a f ) X F S × F × F f all , / consists ( ( ( )( ) R | _ ) ⊆ U the Sets er F / / )( X ( properties functor for with V _ K ( Rel X )) R = / F ( × F _ _ images )) Y × morphism / in: ) Rel polynomial ( y function g F U for = _ under a etful ( _ Similarly F a gory ation )) Rel X g ( ) g -algebras. → Eq × × ⊆ S _ erse ) is , ( _ a. .t. ary map ∈ ( R ) ) d v f 1 for ))

F .r 1 F cate Rel S _ x S ) )( R _ ( − in ( f ( w − × 2 with: ebr ) ( ) closed _ F )( f x ) c ) f _ preserv ( of g ( → the , er Rel → arbitr F is F _ 1 Y S ( K × _ −

TIONS Y ( ( × dashed x R morphism Rel _ an )   ( )( for f are obvious -coalg F f × R a ): ( { ) Rel Sets ation Rel Y F _ Y g useful ⇒ functor: → (  F is for , )(( X →   the × which × ( Rel )): a × Rel f R R F = = ) e g ( )) unique Rel Y ( X ( eral y g : X Rel ar v ( if lifting Draft F d preserv ) a ⊆ given x, Sets , Rel

BISIMULA se F write ( f ) forms , is ( R ) f R ows relation that ( and and ( congruences us er f

OF . a ⊆ ) ( lists y d w F K arr ( ay F -coalgebra is X c, lifting with ( Relation Let ) ( ) necessarily w elations, sho R r F R

TIES F V e ( result for )( the that W → xt morphism —then F vertical that monoton same → Rel of bisimulation ( ernel A V ne

OPER X (i) k Relation A A by : Y situation: the the Lemma. Lemma. . Rel c : says →

PR means e g so (i) (i) In The (ii) (ii) this oof Y : xistence Pr g serves: In This 3.2.4. bisimulation wher This maps and in: 3.2.3. and objects. 3.2. e - ◦ Z of ) er the the the ) v and Rel 0 R (iii), This , } } from → Ex ) ) “rela- to V . )( u, , v v ,

TIONS ) 0 images. F F )( v proof X gory (i) ( using u, u, U : R 3.2.1 e (and u, term f )( )( REL )( v )( the Rel ] cate )( R R . R (ii), G let . a direct) lea ( R )( )( in )) = , functor The )) ))( of )) e )( gory Additionally G G [230 complicated, R e es ) Y ( ( ( R ) Rel G R Lemma G , W and and

BISIMULA ( R ( g the . ( lik × ⊇ g )( . olv ∧ cate × ( )( P W Rel Rel )) v × f of en). ( 3. F F y most X f Rel F ( erse v R in ∧ ∧ × from ( lifting. ` v the gain, is of = gi )( ` ∧ ⊆ Rel case, It 1 a instance Z U V Rel ) ) (in F )( − y ( Rel is ) ∧ R v ( ) G 1 ∈ ∈ ⊆ F y es. ( )) g with ◦ for = )( ( − ) ) direction V lifting e. and structure g P R Rel R for ) x, ) v u )) × v ( ( ( relation ) ) v = ) g Rel g R )( )( )( functor functor y see = f G CHAPTER y ( the g where (2.12): structure 1 ) )( g the for × ( f es: )( R 0 ,

( e ( g − F f g x, . ∧ F x, F )(( situation ( in v )( F ) F V ) G lifting on , G )) × themselv the ( )( ` es: x × . ) F ) y G transiti relation called G confused g V ))( g ( f ima v ) ( v R ( ))( of )( u. pro ( the = ∧ R on x, ∃ f is case Rel of f ∃ )( F U, F ( F be xponent ( u, ) ( to Rel ( x ima g ) ect also Rel e of ) ∧ G ∧ u ))( F )( images ` × G ) v ( × ))( F ( polynomial ( relation is g = se )( ) f R dir not ( U R = ( then Rel V R ( morphisms. lifting ) u, the f ) P a f induction , G g Rel )( used ( ` ( ∈ werset u = erse ver ∈ R coalgebras )( ) × Rel = × ))( ∧ as ⊆ R G v ) G )( F ) g be ) )( by f in with po )( ( R the induction

( ( be . f about G u v in G f ( U ( v ⊆ G . are F )( )) ` ( ( )) should )( ed G ) )( ( )) × P by Rel ⊆ why handle v for G = R f )( G R ) g u, description ( can The monotonicity R . with R ( R ( ( ( ` and . 0 f Sets Rel ∃ ) ( ( )( ) G ( g Rel 0 ed v it to xt ◦ Rel g G ( 1 G pro U G v by × R Rel F relations ) | Rel U U. U. U. × | lemma, − ( ( → f u, . is ) f ∈ R functions. )( ` V 0 u v Rel ∃ commutes )) that ∈ ∈ ∈ g pro ))( ` direct . . . g . { { F u has ` This conte V ( Rel general ( diagram f lemma. x x x U, V V V ∃ (ii) )( ( × 1 so ( ary G holds i.e ) ∃ ∃ ∃ . ∈ Choice ( a , are 0 Sets − F g commutes also . . . f ∈ ∈ ∈ G ) ))( of similar bisimulations ) ( : = = Rel ( e, Draft v ( this V V V V g y y y ) in F a of R R v ×P ∃ F detail. )(( more which P ( ∃ ∃ ∃ vious . established, × 0 0 ∈ ∈ ∈ ∈ )) ⊆ arbitr in Rel )( . 0 relating × g ) w F a 0 ( that f in objects. f ⇒ ( U ( V y y v y × is F U. U. U. U ( f v), lifting lifting Let pre V be with ( f ∀ ∀ ∀ ∀ ( G ⇐ (i F , sho ( inclusion as ws ∈ ∈ ∈ ∈ 0 Rel (i) transiti ` used ∧ ∧ ∧ ∧ equations P ⊆ Axiom ` W the Rel x U x x u is where sho we ` ∀ ∃ ∀ ∀ ∀ ))( R in ⊆ 1.4.2 → the latter R G w inclusion ) Once Both ( proceed Relation Relation described often v) connection Y Lemma. R If . that . e ⇒ ⇒ ⇒ ⇒ ⇒ (i P : ⇒ relations result is ( 3.3.9, (IH) be this g = (i) ⇐ ⇐ ⇐ ⇐ ⇐ The • W Belo (ii) oof xt Rel and 3.2.2. reader ne cise 72 Galois Example with Pr requires using tor” will point But , 0 0 ) ) ∈ is is = ⊆ 75 Y R X ) Y )  with ( y )( so so erses × ) × series R v F F x, R a ( Y in ( gin X ◦ then )( unions d then then , → If ⊆ be F ⊆ Rel S for , es . )) ( ( e I R Y ∈ )) R R W lifting . if S Rel and ∈ )( if )) , X (ii). 0 0 establish , )( F i ◦ and 0 5]. homomorphisms x ( (i). preserv Y F × ( , Y h ) ( 0 ) 0 c S Y are Rel inclusion → , 3.2.1 relation ( → ) X 0 eac under: Rel )( images). 0 1 ( ⊆ 3.2.2 ( 0 x f bisimulations, of functions F 1 ( image − (ii). , X Section the 1 F ( c ) X e y : Then − for , f ( − 0 of homomorphisms d : ) erse . 0 0 ar ed f d c v R I → Rel propositions erse f v closed × Lemma 3.2.2 in v are 0 [216 × is Y c ∈ e

o Lemma 0 0 ( in by i and pro of X ∈ c ar f and tw × so ( . images , , see ⊆ 0 by because monoton 0 Y ) , f )) 1 Y xt ⊆ bisimulation. X R y X thus − X each (and since by ( Lemma assumption  a → assumption then ne ( . erse S ))  if bisimulation × 0 e → 1 d )) v . F ⊆ , is v R 1 − )) for since by by X Y   a ) by in ) X the ) ) , : − X i.e )( R ha x and R i i c )) S : × R ( f is → i )) R ⊆ F )( e c R ◦ R f i for )) ( ))) )) )( ( R )) )( ) Y then I F

bisimilarity Y )( R W ) Bisimulations S R X R R ( F , ∈ )( and then: R F R ( i . ( ) )( F ⊆ R place, Rel ( ( )( , )( × 1 0 ( F ( ( )( y both 1 F as ) S 0 F ( and Rel 1 , − v). F )) F c that ( in )) − 0 X F bisimulation, ( Rel ) ( ( R then: X Rel )( (i

TIONS − ) 0 ( Hence × 1 R Rel x ( 0  ( R , ebr a c 0 ( Rel f F )) × ( 1 1 − ) I f )( Rel ( used 0 . f 0 ( are Rel ) ⊆ Rel S is ( ∈ − − ) bisimulation, ` Rel 1 thus ( f R ( f × i × d F ) ) 1 ( is × ) ) X 1 ( i − ( S a f × c c functor 0 0 1 3.2.1 )( Y − f ) S Rel 1 − f coalg × f f f F R ) ) )( − d and ) ( ( is ` ( F and − × × ⊆ homomorphisms 0 ) c d × Rel ( 1 1 ) 0 ` R )(( F F F , ) c if ( homomorphisms × ( 0 d d × ( is is Draft ( ) R results d − − × × 0 1  ( ( × − )( F ) X x R ) ) ) ) c

BISIMULA × for ( f ( R Rel bisimulations − f c ( f f d d × so so F for ) c ( ( ( ( × Rel I if x, ( ⊆ ◦ 0 Lemma ( d f ( ⊆ F F ∈ Assume × × = ⊆ = d F Rel es: OF ( i ⊆ S ( ( ∈ ) R . 1 g R es: c c . ⊆ ` ` ` Rel polynomial 1 1 by i then then S ( ( × g unions: 0 − )( relation R about if Y 1 Y − − ) , d a ( R R ) )) d auxiliary 0 ) ) 0 ) F − ima notation ( 0 0 × y c × ( × TIES f R = = ⊆ ima c c with d of ( the R ⊆ = ⊆ R ary ( × acts sal: se d ⊆ ) c 1 f × X 0 the X ` × × If , ◦ Rel − ) ect i ( these say ` R c f c 0 ) Y ver ver ⊆ oposition. 1 0 ⊆ ( ( ( ( , e S x OPER R properties. (i) i composition: Assume r Assume arbitr dir in If If ) − f ( ) that I F 0 ) Pr )( . R R c ∈ R

PR d × 0 i ( F = ⊆ = v) v) bisimulation, bisimulation, I (i) d Once ◦ ( → (v) (v) ◦ (ii) (ii) f ∈ standard (i (i relations. oof × S (iii) (iii) a a i 0 ( S S c Pr ( of and S is is Y ( Rel ( Notice of 3.2. closure 3.2.5.

TIONS } y ))) = ))) ) ))) Y ( BISIMULA z ))) Z ( Y ( ( g Z ))) } Eq

3. ( } ) ))) ))) . Eq ))) Y ∧ )( Eq y ) y ( ))) . Z Y i ( Eq )( ))) Y . ))) F )( ))) x ( ( ) g F ( = ( Z )) )( F Z g ( )) Z F ( F Y ( g ( ( ) F = ( ( ( ( Eq f F = ( ( ) F ( x ( ( ) Rel Eq F i ( ) ( 1 Eq F ( ( Eq , z ) Rel Eq Eq F ( x Rel Eq )) , f ( 1 1 ) ( − ( ( ( g ( ( ( ( 1 ) , g ) Rel Eq | 1 1 1 ( f − − f Y 1 1

CHAPTER ( ( . f f − ( ) ) . × ( Y − − − ) ) Y ( F ) ) ) − −

| f ) Y g g )) aph Z F , g )) ( ( id )) )) Y Y . F h ) )) )) f g Eq − ( ( g g ( ` g F F Y ( ( × ( Z ∈ f f f Gr )) ( ( × F F × ( 1 ← ( ( ( × × × )( . F f ) ) z × Pb Im F F f − id id X f , ( lemmas: F F F f f f ∃ F )) ) Eq Z ) ( ( h ( ( o = F | × × X f ∈ ( × × , Y f )(( F F )(( × × 1 ( ( )(( ( ) ) by: ) ) ) = = → f tw Y ) ) id − ∈ F Y F ` ` Im Rel f f F y f f F F ) ( − ( f f ( ( ( ) ( ( ( ( )) Y g ( ( × × )) y → g x, f er F F F F )) )) X ( F F ( f ( Pb ( Rel − Z ( ( Graph Rel × i = = = = → g K ( ( Rel ( {

x, X ( vious g , ( f Z , for f ( { ∈ X aph Eq ( f = = = = pre = = = = : ( )) ) h = = = = − = = i f g ( f Gr y Pb g ← × = = the )( , Im f )( ) )) x, )) )) f for ( g F f X spans: f )( h F ` { f ( ) , ( ( ( ( ( g F f of ( , ( from for er Im Rel f Rel aph = = given K ( Pb )( Rel )( Draft Gr Graph )( F Pb ) ( F )( i F ( results ( g tuples: elations F , r ( Rel f of Rel k elations the Rel h r ( Rel By Im (i) Similarly: graph images And: pullbac Finally: . v) v) (ii) (ii) (i (i oof (iii) (iii) Pr in: in: in: 74 . , a a 0 ) is P Y of be 77 the is X (v), X Y b ( R com- → ays R to sets g F × ) w ← relation without congru- repeated let al xponents chains Y functors? a on e ( F Z X 3.2.5 then erses, is is via F v and power f , → ⊆ graph Y in such Y X )) ) X g its 0 of → Y functor d a → without if preorder → ascending ≤ . Z under corresponds a ) ) obtained without ↔ ) )( of X n i d f X ← : F also ( coalgebra, only Proposition F be ( R R ( f 1 bisimulation, also a F )( ) X )( ut − a .] closed is ) b Y Rel and coalgebras which can F , F 0 of N ) images. , ( is unions ( ∅ , polynomial ≤ f if from 0 Y A P are ≤ ∈ , c a for es R 0 functor 6 = Rel Rel Y F )( d × n ( ( homomorphisms if I I N 2 1 ↔ space algebras F for direct f ∈ ∈ c

( ↔ in: i ( for n ®nite d for ) for that T n algebras preserv S ⊆ g wersets Rel is and state ⊆ ( e ) ) ) for R ) homomorphism v algebra of po g f 0 F ) F g ( f ( so 0 d = homomorphisms ( the = congruences 3.2.6 polynomial erse c then of a F F Pro v bisimulations , a ) `preorder', ↔ . Rel on ) . in ↔ in: ) f relations: X d i c ( R ( for of n F g r q span ( algebra R for 3.2.5, 1 xponents without of then: 0 S F set a ) e algebra I a ) − f · )) N a ∈ ) an X · under

× i 0 lifting ∈ F f hold of of X · compositions ( f n ≤ f relation ) T only on ≤ of , such instead g functor S ⊆ Propositions ` and )( , homomorphism )( ) Rel × pair X bisimulation, 2 )( f ( f F congruence. a of

TIONS containing not a F ( S ( ( f a F ( a ( relation is Proposition ( connection since er iterated of is Pb ⊆ intersections is is Rel `poset' ) K properties Rel Y arbitrary preorder 1 lifting i connection 0 of Rel , F that Y g S a with alence. Y , e X an → relation inclusion v polynomial × is v f with Galois ⊆ analogue Hence F h a that × ( X be ( 0 relation Draft in®nite, intersections, alence. ≤ union X : an closure Pro Galois v S equi BISIMULA relation of w f if relation Y . Im A X a v). as ⊆ if same non-empty wing alence analogy × Z no (i ) v ªliftedº equi × R

OF ⊆ es f that in . c that a 0 the that ( ernel → Ðfor d . follo X obtain k e e e pullback image arbitrary ) equi ) A =) v v v ) 3.2.5 werset. function ↔ additional Z ⊆ that, congruence. Write the ⇒ (

TIES ⇐ − d we ( Graph po congruence products ence. relations: a yields preserv ( A Pro The Pro The Assume The Check Pro e F R least (= v v) Hint. (iii) (ii) bisimulation [ (iii) (ii) (i) the Which (i position, and (ii) (i) Pro Let (i) Check OPER Since yields

PR cises v) Similarly Proposition (i 3.2.2. by 3.2.4. 3.2.5. implication Exer 3.2.1. 3.2.3. 3.2. which , . . k a ◦ if c ) e: = × of of → ⇒ for (i). v w c ) is ally both ( as from ) f )( X ) ))) y ( pro only vity g i among i TIONS ( relation ( = g has, ebr g g as pullbac ener to 3.2.1 , , one F g f e f and h (ii) e h ))) v ebr = ( = bisimulation Graph the one ( equivalence g if because eatest transiti coalg ha , ) 0 a Im )) gr Im f as x Mor as Y equality ( ee z ( is 3.2.4 . coalg )( ( second . we and Lemma (ii). f a f the

BISIMULA Pb thr ebr F holds ( the ection, → ( tuple )( d is (i), the that ebr 0 to: with 3. be F dir it from , written Rel ( ) X . ( coalg the Lemma and : bisimulation d 1 Z and 0 0 ( 3.2.5 be ) − Rel of a coalg of f x to ( by ) Symmetry bisimilarity because F means w 0 equivalence 1 (i) d e is c c functor ))) )( − e, g e of ) implication can amounts ) → directly v opposite × f f and (ii). ↔ f d ( ( ) ))) This ( it c xi

CHAPTER c single Z ima y ( f F from Y 3.2.5 ( ws × er

The x ( the this . a . bisimulation; d d K c ) F . = ⊆ 3.2.5 refle ( 0 the (iii). a and in ( Proposition → Graph = ↔ Y for follo ) ) Y But is )) ⇒ is c i )( Y ( ⊆ properties Y by z polynomial )) bisimulation Y g ∈ because X ⇐ X ( F F ( homomorphism X ) x Y ⊆ , : a ( a 3.2.4 f g ( g elation g y f Graph 0 → v). f d F ( a ← × c r , h ( , × × d and ) coalgebras c )) → is (i ( be 1 0 f )( Rel Proposition is d 0 x ↔ X ( Z as X x Z → ( − ( X X f 0 of (i) ( X ) Im 1 Y c ( Proposition 0 f Y Pb ∈ d , − ( ernel Y ⊆ f ⊆ ◦

f with f ebr ⊆ F ) ← by ) → Lemma k d 3.2.4 0 , on c Sets 0 c elementary d ) × x d c from ) bisimulation see → d Y ) c ( ⇒ Z = ↔ X ↔ X a X ( ↔ × . the bisimulation ( → . ↔ X c all ↔ ( c bisimulation. F ) (iii). y X c coalg , ws d c ( c )) F d : a z using is = ( F a some ( x Y d , inclusion = f ) of → ( Eq for e ∈ inclusion is is x ⊆ Lemma c c ) )) and and , follo → Sets ( i → 3.2.5 ) x Y ) an ) = : )( c w ) c f ( )) an 3.2.1. f f elation f g elation by f e y F X ( a f bisimulation r relation ( homomorphism X ( w r ( ( v . ↔ ( . , is : bisimulation a a and e d er d bisimulation, F Draft is equality F y bisimulation. elation f F establish , a , function r aph Let Let K a is )( ))) pro ) is ) a ⊆ 0 x. x, tak g is f f is Graph ∀ f ∀ (ii). ( Gr ( (ii). 1 need is ( inclusion between to Lemma X that ) ary also homomorphisms homomorphisms there ( − F ) , G f F X 0 can  , Proposition ( g h ernel F w ) we functor Z which ( , d act k ⇒ ⇒ ⇒ ⇒ × X = from f 0 first f , f 3.2.5 bisimilarity bisimilarity equality homomorphisms . two two homomorphisms. bisimilarity no need we c ( By using 1 ( ∈ → arbitr ⇐ ⇐ ⇐ ⇐ Im ∈ ↔ elation X w ( )) 0 − e F r c 0 the oposition. oposition. z or or or 1 ) ( Graph Pb x are (i) By x ⊆ can The An F Because: The The The The The W F F What ( X , f − , Pr Pr c g ( ) , ) . . Pb e follo homomorphism ) aph ( d X )( clearly v) v) v) c (i) (i) (i) 1 W X each a bisimulations (ii) (ii) (ii) (ii) gr f X ( (i (i (i oof oof (iii) (iii) (iii) (iii) × − ∈ and ( ( polynomial ) ↔ c elation f for its a 3.2.7. d equivalence x ( 76 3.2.6. Pr c Pr all r Proposition bisimulation. F Graph Further F Eq But for , - a ) is F v- as 79 → the see R and ) w R ( ebr } R ) if ) if : equi F v R lemma. f ( 1 indicated, u, → according functor the homomor lifting, -coalg only F only polynomial )) e )( a i as R F v r . R a vious R : } i ( definition f → of ) e ) )) 1 and and )( v 2 of pro function ) 1 homomorphisms pre a the F R r if and ( if ) ( i F R u, )( as ( d } relation r P F ebr can )( )( the / F , is, earlier 1 ( W ) gs ) R ebr on Rel ) bisimulation F function 1 d and le we unique O Y ( )( ∈ β r α R a a Y ( making c Rel ( , ) 1 U. An ( carries coalg / coalgebras that from ( o } } ) w F F is is F 1 F the ) ) Rel / ∈ it coalg ( / h | ]. R : for v v relies − ! for ( 1 ) Y u ) if d lemma ∃ u, u, α some Rel F w ∧ ) two ×

there | ( in: } β α [117 retract )( )( 2 × ∧ 1 ) ) here compute: of u 2 construct: r → v v β R R X c / o last V only r ( necessarily making be as ) o ( 2 V to the )( )( a F ) we R u, u, π ∈ ) Y R ⊆ -coalgebra; : e 3.1.2, ∈ ( from ⊆ { the as, F F ) Y )( )( v R to e v ( ( , and using ( F v R { on F commute. } functions R R R )( bisimulation carrier , ( ha ith ebr F   if form ) ∧ × } )( )( Rel Rel a F w bisimulations e e W are ) W 1 1 ( a R O ) d that v Rel the ( R U is ∧ ∧ that → comes W F F ∈ ]. X ( ( F a coalg w belo we is ebr Rel ( 7 u, ∈ right restricts

Y V V / w Y ws , Definition assume ) sa F _ )( assumption, u coalgebra | of where Rel Rel / × ∈ ∈ [4 This | . Y left to R the ) a -coalgebra _ that sho ( v v ) by V ) U. itself X w and )( 1 F ) lemma. -coalg is v F ( may _ (ii), 1 1 ∧ ∧ see on carries r ) the ∈ ) ∈ 1 d R R ( r , F  × u, an _ F β it ( v u U U X already the : ( )( F ( 1 ) × we f ANS on ( ∃ 1 ∃ holds R _ π F , c there ∈ ∈ . . in 3.2.3 : X α F ( ) Rel SP { Rel we i ( U. o id V ( { _ 1 . according u u if 2 only as ) triangle , yields F c | | V F a o r ∈ ∈ Draft Rel _ → = ( Mendler )

AS , -coalgebras. ) (ii) ) ) O square X bisimulation ∈ ) 1 v u 1 = = P v v R X ( _ → Y R r the homomorphisms c and → ∀ ∀ X α v F ( h   )( F | of i Lemma and ( u, u, commute the × ∃ ersely R Y 1 ◦ ) ) if r F ) in ( ( R i v | bisimulation 3.2.3 1 1 : F 2 1 carries × V Let V X ( β Rel e r W gs α α TIONS am β ) → and . U , ( werset 1 1 ) ◦ definitions. define: le R X Con 1 U, U, gr β bisimulation α, V β β Aczel as ( elation : Rel ∈ R r ( 3.1.2 V po 1 2 r β a h : em. d { α making that π π u we U, dia the a f by , A → ( 3.1.2 is { { { U, Lemma × ) . ( ( (  these

◦ ) is c formulation R then R α the the F In R α of case briefly: Theor ( )( using if F ◦ . = = = BISIMULA 1 functions F described β The If F ( Aczel-Mendler Definition that coalgebras. this oof : 1 Then, making functor In Thus, phisms, Pr The making of Rel so Definition β to an Then, are function introduced 3.3.2. 3.3. alence , e β ) v as → →  . , the the the the see R ) and that ) ela- ) α each r e Pro )( ) )) Y In X is on R ( lifting, ( ∅ f

TIONS . R F , . ( de®nable )( ( ( T are F ) ary .] i mak : forms 6 = F F ))) ∅ F is ( a F R β × 2 β Rel ( in: ( A er 3.2.3. of 6 = ) 2 w results → K considered ( functions F arbitr X relation / A 2 Rel ) and ) ( werset. and : which β × i be R A 2 of F algebra α an where function po ( ) α α main functor

BISIMULA π )( elation , , especifically Lemma a from comprehension, r , F a R i → F ) F be ( ) can structure ( in

3. 1 the 1 and 2 ) of some e r terms w F Y construct ) R these ( / ( of when Rel Sets ( the lifted 1 forms along , R in for : F functor ×  to ( F β Ðlik of , × 4.2.3. α a obtained functor ) Rel form β relationship 2 α focusses ) functions on ver X F / is en 1 X One . of int π F The )) v a product o r q ( relations 3.1.5 ( eo e f ( q [85] , ]. is . gi v → ( and g ⊆ Sets q congruence. 7 es . )) ! aim / F )) q

CHAPTER for Y F , 2 a h 2 q ( i.e Mor that )) constant Rel v

R q ( ∧ olv [4 ima is ercise × w from , } f er ) Excercise q ) v a . functions ( here, ( ) ) 2 technical ) The q K ) 2 F F induction 1 2 polynomial Ex q u in f Y in e X F / . ( R the β v v steps, ( ( ( x q and ( ) or appropriate a uses 2 × , , v 1 2 is in )( ar , er , by er A F is 1 2 functor π used α F ( of  1 e F K K , ( u u this ) , 3.3.2. initiality Rel β α ) × / F ) Mendler A )( )( e ) 1 Y = R Rel 1 ) this ( v by bisimulations, : ther in v A w R R i ' id i important lemma ( , X ernel ( functor → assume F of functor = ∼ : O 2 ( 1 )( )( and k 1 of ) − O induction F r ]. 1 2 u β = O an × for characterisation F introduced ,

) R ( o 1 O F F its Sets coinduction 1 , ( ) 1 The ( ( O A π ) Theorem r may  as α O constructed ( tw α de®ned h F × element map X [117 O Rel (( ( R for bisimulation perspecti ( Aczel F ◦ O 0 n Rel Rel is only identity of O we )( see | or simple F n are i O of coalgebras , β by X a ' O ) lifting F = = Sets estigation 2 )) β 6] and polynomial ( the spans 2 v  F R . en are → v if establishes induced a ) in v algebra ) logical consider , alent, is )( aribitrary theorem. analogue with × Rel )) 2 functions as 1 v and retract A R w gi a 2 F : v 1 ) be w an F the ( the a v ( )( α f relation , → Draft F vious: , , R The describes 1 Section definition shall F ) 1 equi is F initial belo ) ( Rel 2 )( v ob w e lax commute 4, ( ( u R xplicit From using F an , the ( , e are codomain) W β ( simulations Rel Let set, ) i where 1 Extend are ercise 2 that by F u a function x definition its subsequent u es. : ) product Rel e via lemma i continues , a that (( functions that 1 induction. as a X on β { ( erses. u triangle cases Chapter the → Hint. v is F X that [ and Consider by Check This , ed first between ((

The ) in earlier and Bisimulations α Lemma. F for . s definitions R ) written section means themselv base ( definitions an [130 The If R . F oof o ( i : .g consider tw β these Pr other’ basis sets and 78 3.2.6. 3.3 This The F following 3.2.7. e in: This relation tion, 3.3.1. . - e f is } = Y es of X v 81 we as- (ii) the the v ) It X gi xist. , × + con- R gi e R (The- —see that ] yields by ∈ ) carries X vity Y gorical alence. functor relation − epimor f v of ) 3.2.6 can x “logical” ( / this ([ shall f → ersely  | of ( . cate itself. er vious: v making er actorisation spans ) ) we equi f yields er K Y i K we f getful ob , : surjecti bisimulations, a ))) of f 2 ( K these 2 2 /R . Con r x ∈ structure e is r X/ with ) ◦ er 2 κ ( for of short v coalgebras . , X/ x the f ) K 1 )) ) = ◦ Y here 1 a ( (i) : ha on y κ epimorphism of Y 2 i F 1 κ this the terms ( = Proposition , f + ( technique (  2 construction r is κ 2 via f ) r , we But in union F an κ e: Y 2 by , between Y = bisimulation epimorphism, ◦ / , v But ( )) 3.2.4 1 x By ) is a bisimulation But monomorphism w 1 2 , r . x e. y → quotient an -coalgebra h r 1 ( κ . ( v a a is R There h ) x wing f 1 4.7]. logical F structure CoAlg ◦ ( / ( ( kno Hence be Y is κ defined F the R . map 2 1 : on ( ( ) f r an surjecti ) in it Im coproducts d κ to coalgebras. thus ernel ferences the is

we Lemma ( follo f F quotient k ) , ( ( coprojections { = ∪ get surjecti this of dif f ) ) Y by since er formulations via ( thus and also the that then i is = 2 Hence the K From the The we er f x ) carries CoAlg e, f → that . coalgebra , i constant K ) v ◦ on Y 1 and it Proposition some X/ f assumed ))) coalgebras. in / diagonal X CoAlg x is , 2 F homomorphism. , ∈ coalgebra ferent / with ∈ R ( hence ( : ◦ the is κ ] c 2.1.13 ) a , of 1 f , in alence. y ) 2 2 dif r relation, f − consider actorisation: ◦ the Using f Hence v of the f x κ ))) [216 Y , ([ Sets ) . surjecti , , Hence /R = ◦ R

discuss 1 ) / R we )) ] f of er + X 1 ] 1 in structure x equi bisimulations ercise e quite see X Y R K − CoAlg x ( ◦ homomorphism κ Y Since − v . Y ∈ h (ii).  alence ([ ) )( )( a ( . ( 1 to ([ Ex + v in epi + shall c arbitrary x f κ F F F 2.5.6—and F = is F bisimulation e property h standard ( coalgebras ( ( ◦ Y Im Y ⇒ ⇒ homomorphisms. ◦ definition ( an (  a ) er W = = equi 3.2.6 i injecti monomorphism of → 2 coalgebras. ∪ and of

ANS epimorphism Y r R from Rel Rel K Im that κ by / ] a ) coproduct some alence ( ( ( colimits,  is homomorphism coalgebra Y an or of ) e v 1 1 1 SP ercise ◦ then ∈ − Y a ) an is 2 is F f v introducing . − − − carrier the is + bisimulation ([ for f x . ) the yields ) ) ) R ) is Y Ex + f diagonal )) Draft ( ] if is 3.3.3). 2 c c c ) AS a F f equi Y R F its pro y by f κ f ( ( Recall also x + − ( ( Y f [ × × × is ]: ( creates 2 ( unique and ◦ er er to this = is d X also that f ) c c c Y On κ form definitions monomorphism Proposition = a K ( ( ( K that ( since wed  ) R , f that Eq ◦ ] making Y : diagonal-fill-in a ) , ( 1 = that approaches. f ) 2 y R x by TIONS − er X/ 2 fices ] is y sho ( r can [ Sets ( see ◦ 3.2.6. chapter = = = ⊆ homomorphism CoAlg  Corollary 1 κ then the K = —see def f tells − Hence f 1 ( a [ κ ) gument. = = suf to .  ( κ → is we homomorphism f F that structure, standard 1 ar 1 this w later It ( R and en ◦ ) r κ R gory that assume that v X d, e: is Sets er theorem, ernel F map R v ◦ hard k ( ◦ then ] (i) K Gi It arro Comparing and in there xt, garding cate ) R that . − (i)—a first 3.3.2 ] [ 1 BISIMULA means map not xplicit the X/ “span-based” started bisimulation Proposition Re Ne (i) top κ e But − e (ii) vious [ ( homomorphisms. oof the (iii) v a injecti is e . gument coalgebra F see in the as that point pre ha is W The R us 3.3.1 that clude This By It phism ar Pr lifting, CoAlg quotient is a orem Specifically sume and an 3.3. [ , . / e a a a It ) d in ⊆ as as v → ← Y the is ]. ) , ebr i × ) Y X as, g mono- epis X X/R form ,

TIONS Y (iii). ( X a [104 ( gs f injecti ) . ebr × h following bisimula- F and injective le coalg F ( ⊆ F in by and ) ( an o X bisimulation d of → an Im R the 3.2.6 → X is tw wn coalg ( ⊆ is of of Y F of f commute R sho the monos span X/R

BISIMULA to c homomorphisms if CoAlg image followed : → as a ) a

3. notion X X is the ( c/R because only ebr gory e Proposition coalgebras F as making bisimulation   Aczel-Mendler” the . as triangles “ then ) c and by ther cate ebr → d of , w functors, (ii)—about coalg equivalence Y if ) . ↑ Y ( unique some ne both ) X of the F epimorphism homomorphism functor c/R

CHAPTER only F in written e O coalg between a ( structure , point in the

X/R om an !   e ( X/R C of fr / C corollary in / and as C arbitrary F g bisimilar / C use squar making Y s Y  C if • • X/R . C / / the bisimulation C for z / ∈  essentially formulations ) CoAlg C bisimulation are → a  in  structur contained R y coalgebras. is • y ] a shall coalgebra polynomial R  factor not a ] is sets. X z / a − a ]. X of   z : − are gory : z ut as [ ([ we  and ferent f and ebr z • • and 16 b y R be z epimorphisms element F bisimilar ] , z ) monomorphism f x commuting

dif ebr X z as cate span e − the } z a [ h X indicated carries a [30 ∈ ( )   ar stage coalg and ebr that the Sets the homomorphism some F as functions x O ) eac X coalg F then that X ( c underlying result—specifically see factorisation map in so c of o thus , → functors, this X , or → of F for ↑ ( X coalg F , tw the span (ii) ) F gonal unique relation At . X This and z a of a : ( . Sets c the dia   ) g functor is : elements system this a quotient standard F bisimilar Draft F of = result ( operty wo discussion y ebr between T pr polynomial assumption, there section. are carries Let a epimorphism the monomorphisms unique wing result, y / if tuple by and a for , this homomorphism ) coalg ) coalgebras. CoAlg em. is that y z X/R and follo canonical polynomial a the ( of e of aside, in ollary. function vious x x, factorisation homomorphism f a ersely holds ( set or of homomorphisms, the the postpone v If F A Every an pre = ther of end Theor Cor . e Y , Y in means ) x gonal-fill-in” gories (i) As W Con the (ii) × Y the → oof (iii) ( function so-called quotient in: tions This making to cate 3.3.4. By 80 3.3.3. R contains X F monomorphism Pr homomorphisms: with morphism surjective below “dia a a ⊆ Y v- be of 83 the the of .] fol- pull- R 3.1.4:  in: X equi can Y yields algebra making natural with U relations as canonical xistence an → → v) an agains e ks. sets (i )  ery and xistence and f the and /R v of Y (weak) e itself, relation ( X P Theorem X of a R A F 3.3.4 that carries : , in the algebras, it unique pullbac b gory } → w ) maps ) map of /R to y ) b es homomorphism.  Y it ( not cate and X Y ( sho R g 3.3.2. a / ( if pullback weak congruence F predicates X preserving—which / F mak = the Theorem a a and choice principle /R epi-morphisms ) actorisations then f in for a → of x X as ving ( ) o ) ) both Y quotient f and This 2 R and via pullbacks → . X tw | 2 proof ( r Theorem eserves ( , − r ( 1 g eser i.e the structure

X Y pullback F pr ( − F ← xistence of has : ) /R pr e homomorphisms property a × k function mono- Z X weak that Y map form). a × e X e. Sets v ) → weak f h the in: → of → only v algebra f induction ( ∈ of − relation  R  e ) xi Z ) X R ( ) → Pro / all X / an analogue isomorphism, y R f X : algebras . F lik inclusion with and . that ( pullback f )( re¯e o ) x, ation quotient X an Y g ) are ( h binary F alence is the P { tw ( is v Sets ( wing → the

maps ar 1 ) carries ) of and f .t. diagonal-®ll-in the generalised Graph xcept ) 1  angle, − o Rel .r it e 1 r Y V e weak = equi / h Y /R X ( r follo X w k ( v so ) preserv tw ( the (in F X algebra × to commuting X F ( coalgebras ) of pro only ( functor graph the making g small F X the that V , F of e squares. o to a f e images v using called

ANS the ( ) and /R → o v relation ∼ = initial  → pullback lifting ) X  is if X pro Pb via

SP a algebra set: map R X ( congruence an U erse Pro R a : pullback e a ercise F C v a been relates F . i → to an )( x Draft projections the 2 on AS in ) e e Y lik r F be the pullback w → v on ( , describe polynomial by is 1 /R the , relation X  r ha C 3.3.1 function. h de®ne vious Rel X congruence : functor that × belo vious indicated ( / V a homomorphism structures. by pullbacks. ) ob F gs we F TIONS X a Every pre is (weak) le X as isomorphism  First relation) ( en ⊆ o congruence Y v to 3.3.9 R identity described with Similarly Describe Check often F Lemma the X pullback R tw gi × is ery functor v Hint. e structure alence (iii) [ coalgebra map X (ii) unique polynomial and the Let Use Use Assume (i) induction. functors A required. ercise Lemma. weak squares by

BISIMULA cises is Ex A The (ii) ` “relator” ws pullback 3.3.4. 3.3.3. requirement. Exer 3.3.2. a 3.3.1. 3.3.5. 3.3.6. lo a of 3.3. back , . a a o o is = in to en C the 0 use is v is tw tw start with only h same func- func- gi terms 4.2.5. → to classi- briefly This see ◦ operty to TIONS ut wish the of that in b structure (actually C the functors. line diagrams pr approach f relations. preorders which, : restriction There to coalgebras. In F in a shall on may easier . this pullback 0 of functors. states with e is e chosen logics Aczel-Mendler k Theorem those a standard via of predicates It W e ariant, logical it Y one special between and polynomial ] pullbacks, v v functors, = collection structure of

BISIMULA the a guaranteed. see e the 0 in ` mapped ha of → the v k functors polynomial theory of with situation. ◦ in − e general to [233

3. structur of nor 0 are weak gorical) k these Each 3.4.4. W switch with . the section. If, xistence V because limited kind situation. e intuiti of instance, codomain, Thus, i.e in a xt same more 0 ( and − (finite) (cate result general h 0 or notion ne structure all ← instance to ˆ h ercise ole F best”. freely the a r for restricted required such more this so-called X = the the Ex viour ]. use subcoalgebra, (clopen). for relations CHAPTER to (coalgebra) unique, more to ` relations. be in “the not common

particular particular general of on . shall ◦ as 130 see not applies result a a properties. a of appropriate, beha is span to is , both h Y neither

leads in is it we g ~ k A obtains much logics, . 3.4.1 ~ A or important certain is and encounter this more applies It ~ A does ~ ~ A with [117 notion to a e same with preserving logical on more kinds an v one , which logical gory Z V Y for necessarily

V is induction w / enient only one the A see } which functors, the ferent arbitrary shall open, A } approach v pro − A } is uses e g no A ~ } cate play → to by consider h f dif v or bisimulation an ← Theorem lifting”. 0 y applies we con

structure, special X ha another functors is V Z uniqueness we shall defined for : y the of which from in with ` alent of e technique practice are v approach approach , algebraic → be f pullback, most the to W But defined preorders, closed, structure bisimulation In that − er arbitrary approach ariants . if is v preserving” v as terms describes equi class to approach xible) . an X are er in may “predicate because spaces we because logical ferent is v in been logical fle logical form only sense be ut (weak) a on on Ho dif b morphism antage. “fibred” C bisimulations . is the has (or of property actory the Draft the answer sets, the and which coalgebra w whate a pullback coalgebra). general) or has bisimulations adv if span-based of approach . in Let approach of of sets, defined functors based approach the use span-based about belo ery unique morphisms clear chapter ed” of big lifting lifting topological the v that notion final a x gory unsatisf general o a ersal xamples. subsets xt logic “weak such no again and e v is square The tw aspect is Therefore, the the logical becomes ne cate is result is idea logic (still on bisimilar logical the “inde uni predicates or a of more es y definition F e span-based is the there Definition. whereas by This consider of tors. of This slightly the tors. the definition is cal approach, also The Relation Relation k in are the 0 olv latter v k (i) classical A In There 1. 3. 2. so-called the concrete in ◦ limit) 3.3.5. It elaborate In to element states The commuting which the 82 g logical in from approaches, . ◦ by by Y 85 re-  fol- S id then T ) 3.2.3 )( R Z R = and : the   F i ◦ × e ( 2 es s " de®ned r -coalgebra. commuting S F object X ) , , ◦ ( corresponds F (coalgebras) Rel a Lemma 1 / F F / Y e r mak course. F i ( epimorphisms h in the F pullbacks, 2 it relations F t e of → F gets as Rel , if ◦ F with ) that F )) 2 X form an s : weak f X relations one T , ( f as 1 ) morphisms es Sets relations of F t form → construction elator equality ( ( ) Y First that ◦ ( -r of of Y R es ) Sets 1 the : F Rel F C so this id r )( C  e     ws. h  , ( × in Y Y × = × ) preserv Rel F pair Graph an s / / / application. ( justi®ed. ) C a C Rel ( = F morphisms / / preserv is follo X Sets Rel

Rel Rel ( bisimulation Sets if / )) holds of composition / Rel as F a _ f → (ii) with / → ( ) Y es functor in 0 image: composition F _ write in that F ªsplittingº f × ( X e e F × Rel _ a notation the v the : Choice Sets d W de®ne X × Graph is × F e : H Rel _ . de®ned under H × of preserv )( Pro F F X that: _ ) is tak  c ) can same ed F f ( ) there F ( _ Z where described ) morphisms ( f    C and the ( functor C

one X such Y _ ), Rel ×  as ( functor Axiom × ) on R Rel functor )( ) a _ Y preserv Y  ) Y Graph C Rel R F Z   Sets ( ( ( using F / × R Graph pullbacks.  X ( F are  × Call means : Rel X e Rel arbitrary Rel 2 S goricalº that Rel s → has relation : ◦ epis

ANS mapping an i 1 epi a construction C Y 2 s Sets graphs ) :  SP s polynomial be ªcate ercise. graphs S Y , of d the S / x / es a split 1 , functor e de®ne )( that each of ) s Draft

AS the h 2 F 2 that for X to w commute Sets t ( r the liftingÐso general ( for relations. such in: no w that F vious and preserv → Rel of ations consists that   this then ) that ho T R X Y that pre → 1 1 split: e e F TIONS = t w r pullback: ( v v × relation diagram C thus X ) Sets the ersals : : Note Pro It v c Check square: Assume R Sho the Rel to Preserv in pullback X Pro Assume Using satis®es: in F wing v) lo and (i (iii) and (v) Let

BISIMULA

3.3. 3.3.9. a 0 by the X the are pair map func- × holds. which on square for functor monos, wed TIONS X v) w ) Y for i ernel (i of the mapping 3.2.3. objects k k unique  C follo if belo  . by h, getful Its ) R in ) h ) wn ) commute. : 3.3.4 ( 0 . n . o i m for P ( only C polynomial classes ( 2 C w actorisation: Y ( C ( Lemma Im f r a F a f F its   , • • in → 1 ⊆ BISIMULA → and / / Rel diagram ‘ .] is belo r the 0 for of ) ) necessarily h if C from i , g alence with so 3. ) F ) X a i of ) → , ) the ) Theorem v ( 2 epimorphism : 2 f F g 0 f F r is s ) write if ( ( ( ( ( Rel ( f , from left C an 0 , then 1 F equi F relations F ( Pb diagram s from functor , Y Y h as )   the ) there shall of gory 1 S Rel use CoAlg × /   the equipped r R if → • • ( ( _ ): on monos: CoAlg f ) CoAlg 0 mono, to we Y ) cate Õ / if F F 0 F CHAPTER X Õ R gory m of it _ h ( is in Õ : Y ( monomorphism

h Õ X part actored morphisms property f Õ the ≤ h should ( f a _ F m gory Õ m comes lift h Rel 0  cate preserving Ò Õ making right. → • • F is its h is R f / if diagram _ be h we monos. ) S cate × a h , C X the and × the mono h ) _ : a m , h → And f can f ' pullbacks which lifting s h write be X . on P s _ in that Sets the 0 ( . P R • • , gory ( a pullback actual ) coequaliser C ' P pullback ) Really morphisms F X to m we Sets _ C n map R one of   ( in 0 0 Rel • • ◦ cate of × the gory in / / Y a _ )( X X a w diagonal-®ll-in weak f (actual) the weak Rel

  F X is × Choice, R de®ne a ( × that × in a cate i is es and monos. 2 pairs f arro let X is of C  a holds that morphism instead r X m g X f monomorphisms: be Rel , so , X epimorphism the 1 R C are ≤  ery F es → r : that  0 g 0 v Check and h i   map e an • • preserv by 2 . e then Y R C / / composite R yields r   v Axiom Let unique with : C • • : is gory P , . F × i property : 1 F k f 2 that the m × r X and Pro preserv Y the r Y m h this cate , C that of  . F Y this 1 • • → → Draft induced arbitrary r  h ) h × pullback, → that using f pullback. S an X also ) a functor that that mono ( assume : Sets X : e e, necessarily C i commuting a a is er w f ( v v 2 w 0 a arbitrary that K s monomorphism, on  Use or or : R , is left F F mono-part Rel relation a Check Sho Pro No Pro 2 1 an (weak) R F p s → subobjects, h , a v) or or 1 Hint. tor p monomorphisms there (i) R or [ (i to F (ii) is (i) (ii) Assume F Notice 3.3.6. 3.3.8. 84 3.3.7. ) . ? Z A in to be all 87 se- the ap- see A with ( seen of → gular gular called e equal- P } accept enient, for elation will v used L xample 1 that r Re eral Re v patterns is y X e ∈ , accepted of forced v complete ], bisimilar : . ha 0 of coalgebra, ) c b e a a se i { the con (as e for be s a v we ar automata. ( if consists what as × is [189 . recall i beh y i b are terms xpressions, n constants ati final e ays A ∗ It e i , v (ii) to using i ) with reasoning K the in a S w (via δ W b h languages if e map al K formulation bisimilarity . grammars. analysis + from v by: -deri simply → } end There a 2.3.6 back gular a = 1 ? ( the beh its i : can the , space associated a ely only vironement; forms equivalent A S Re 0 if v as +1 : xical and the gular { of en i n xpressed PRINCIPLE of A ⊆ reasoning i le star a e re . is going and  written × state K ↓ L viours , coinducti } behaviour if i an A bisimulations. called by L δ L Corollary

inducti

OOF h languages. such of e and X xample language languages. ∈ beha as parser”. In e finite . ar 1 result, up Coalgebras

PR Kleene alisation with searches). . a σ w usually alphabet 2 observable 7→ algebraic using · , the = with ]. ]). s for automata, } xt Unix/Linux ) ] language gular , uilt a A 0 and an L gular ener 1 This b a X belo by | a via start of re X equivalent with associated g s ∈ written K re ( generated xamples ∈ [216 [213 minimalisation ? ays, is er automata in e en [213 a a situations, v on F conte w τ injective xpression A the v be of in the o that e y then w 3.4.1 in to via gi , is ∧ ∈ en for e → states alence ,

2.3.6). v sa functor (for where σ , v or ar K gi are man coinduction other strings { } (ii). automata X only al 2 gular any a : ∈ , simple simply is v s ercise b ]), definitions, in languages { = c languages xample, re

COINDUCTION equi if n languages ) equality e σ These , a a a, concatenation Ex ) | A K . to languages 2.3.6 automata: , already the L and deterministic ( or arious the L search may 2 [138 equivalent Z retrie introduced N τ F v used 1 , ebr Corollary L ( gular

THE called , · ∈ see of ∪ ving . s illustrate 1 as automaton is as is n we F languages re in w σ ) two egular on letters and are to also ? “general r S { = K union are pro or (see where related of {hi} → which ∼ = coalg i A Draft 1.2 AND of used This ( − of belo is states for a = Corollary ]), and = = = , P . here. unpacking for Z 1 L ] non-deterministic , X a accepted editing i approach deterministic The see = ∗ ∈ often 3.4.5 [158 structure L L closely Consider Call . topic continue S a via e quotienting, so-called introduced e xt on ) K

TIONS [159 ebr v grep hi Section L and the K (Equality is + g for deterministic ∈ languages coalgebras , xpressions) te are A of we be e ∅ via consisting i ( in operations ⇒ → K a s xt. states, or L (see the − = illustrated ⇐ coalg able (or can ne ollary. ollary. namely on 0 theorem able L 1 Here ords 2.5.11 langua 3.4.5, set be Excercise coalgebra ws subset for equality three ↓ s important Because coinducti w ens), states la Cor Example Cor initial accepted command final . L is BISIMULA ant the cise will the also c An Bisimilarity Observ Early The tok v of same of deterministic observ ercise the oof the the ↔ fourth, Ex in and that (finite) namely by rele be set ity for quences. initial Kleene’ languages c Exer 3.4.4. 3.4.5. and the illustrated Pr languages proaches, See to 3.4.3. 3.4. of ◦ , , . i ◦ a e h ) 2 w to 2 by v k r sets ) r ary is ( that and with 2 ne lead pull- , is ha 3.3.2 ◦ same r 1 result if viour relator whic ( precise r because d

TIONS no h with relation Rel equality xistence and given the principle the arbitr Graph e ingenuity weak principle, the beha states Z requirements beh ercise. = Graph of the be of until x o gory that REL ) e ) functor i approach Theorem = have → = in tw about k proof . instance, bit Y relation . y same viours, cate behaviour 1 and ( pullback ation unique by bisimulation R )) Y r h, a gory this h : states F f fundamental for vious the

BISIMULA induction a ( that the the ( the ◦ d the homomorphisms beha the if e reasonable relations; cate F pre c xt, Im same → of

3. ( v o write . preserv But i of equality beh of d carries such wing that Y ha the r the tw require the and polynomial . contained beh : only is it with most binary pullbacks, y conte ) can ↔ ) v). d in to v) gs disagreement a of c Graph coinduction with y f (i and is so part successor e find (i ( ( follo the le the ormalising get the d = and this Y a have one F Z ebr lik o principle to weak and if ut the establishing ]. if b )) in (finite) of the some × ) Y 1.4.2 es tw with ebr f alence CHAPTER beh respect as ay → 3.2.6 ], Graph then a ( is f [91 for v X coincide X ×

oof w compositions ( ◦ only . coalg sometimes states = to of the X be 214 dual 1 F .g we ⊆ ) X : , pr with equi it coalg e − natural c x and Hence wo Ðde®ned preserv ) } Graph and e uniqueness There ( bisimulation ) T ( ) g → final v the may . c Example → bisimilar bisimulation, , ( F if y ]. F [230 see method Sets H ( a ( beh it is if X the final abo more d close R standard the , referred see making ersals : [50 coalgebra. beh : finality Proposition “circularities”. them. → v de®ned c Rel coalgebras a i w then ) that to 2 Graph the d re on 2.3.1. e only beh r itself proof and greatest as by The By , are on = Let from instance Z seems final ar ↔ ⇒ 1 often belo is writing, only =

w bisimilar ) r c . final Sets and sense d principle). the h ⇐ ( yield ) g × ) re is Y : for corollary , if the coinduction x F Z use) of f in are contains kno ↔ has F ( Z ( ∈ the coalgebras.] ( morphisms, c c y 3.4.5 that comes to relations, see relators F relation, y , → this ⊆ in we as d Pb proof we Definition as the Let important , ζ one determined that ) corresponds relation as indistinguishability beh homomorphisms d in → ↔ -relator states ∼ = method circular in states those | an a c result ↔ and − these ]). (that F In bisimulation. bisimulation ↔ ζ is ) x included since -relator relation case and equality graphs to c y Z X mapped an for ( this that F Example ]. : 216 is : es es maps relations ζ Draft Similarly , x, ∈ called e homomorphisms. uniquely ational result. ] Often of ( it This very . rise an has that in easy a . equation that 1 { e objects x . . surprise: 1 precisely Y bisimulations [179 and of F − when es seen is In F associated − a ) (Coinduction as case = en v ebr bisimulation ) ([233 see viour 1 be formulation . × preserv preserv to v Use h r ) 3.1.4. gi a observ as by that ( ( appropriate viour d to Hence bisimilarity gi essence H H states X that bisimilarity e This em is , required with is equal structure v beha objects an ) coalg shall e in contains ollary sometimes back the beh already appear wo Hint. beha  of as, the come , result Graph [The (i) Graph seem [ as Pro de®nition (ii) backs is it relations ⇐ The second T is c e ( ) we ) ther . Bisimulations v d Theor Cor final . ebr Theorem not with if ⇒ goes ha a become ( The As This Consequently: same ↔ beh particular ( oof produce what c . e coalgebra ( elation. behaviour: bisimilarity i.e elements bisimulation. finality a Pb In to start 86 3.4 W does 3.4.1. the Pr r to from has and only : yielding coalg 3.4.2. property = 89 the 0 rules of + equation) X . a . e b ↓ sides   termination, ) R the ∗ ↓ ∗ b (lik ( ) ∈ ba of ba b ∗ and both O ) ( ∗ ) b ) computation e b ¬ E b V v e ∗ ∗ side ∗ , v b ↓ ati ba ba ba ∗ U v ∗ ∗ ( ) abo + ∗ ba + operations b ba ∗ a ∗ ∗ a deri ) ba

PRINCIPLE ( containing ) ( ↓ the b and ∗ b b b ba ∗ ) ∗ of ∗ ) ) ∗ ∗ ∗ ∗ R b R b b a a right-hand gular a + a ∗ ba ↓ ( ( use ba + a b 0 ba + true 1

OOF ∈ re b ∗ a b O E ∗ ba + ∗ ( a 0 ) + + ∧ + a (the + ∧ + PR a a ba a + ∗ b b ba a the ∗ ( + ∗ ∗ V  ∗ ↓ ∧  ( ∗ b = = ) a , ∗ ) b ∗ ∗ ba b + ∗ ∗ ( ba b of a ba b ∗ ∗ ba ∗ ) ↓ b ∗ ∗ definitions ∗ ∗ ∗ ∗ alse ba ) ∗ b ba ba a ) U ∗ + ba b b b f ) b ) a ∗ ∗ ba ( b ) ) ∗ a ba b b ba ∗ ∗ ∗ bisimulation ) ba ∗ ∗ ) b b ∗ ∗ ∗ b the where ) + or + ( ( ba b ∧ ∧ + bisimulation a ) + . + ∗ b ba ba ba + ∗ ba ∗ ∗ b ba ∗ a O E ba ∗ ∗ ∗ ∗ } . ↓ + a both ∗ a ) ) ba ) + ∗ ( ba a + ( ba ∗

ba is b b ba + a ba + alse b L b ∗ ba ∗ ∗ a b properties a true f true true a ( (3.1) a + a ba b ) + , a Using a   R +  ) ∗ (  b )( ( ∗ ∗ a )( ba ba + a ) ∗ = b ∗ a b b ∗ ) ) b by a ( ( COINDUCTION b a ∗   )( b b a a ∗ b + + ∗ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ b b ( b implies ∗ ∗ ba a that en.) 1( O ∗ a vious ) b ∗ ∗ ∗ a a a ( v b ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ a b ba ∗ ) ) ( b + a e w ba ba + R b + { + ( ob b b b a ba ba 0( THE 0 a b ( ( + a + 0 0 + E ∈ + + ∪ equality: +   ( be ↓ ↓ sho + + + ∗ + + E O a ∗ ∗ b ) a b requires . a a } + + a ( ∗ ∗ L a a ( a ( a ) a a to K V the L a K K 0 0 L ( (1 ( a K some that: AND Draft that K e N = = , U, v e: This = = ) ): ( ∈ see b ======plus ( a a X tak 0 pro ) ) to L E es b b e K that b b a a ( = ( ( to TIONS v { L W L K K O E is ati ws X hard v 1 = sho consider aim computations not coinduction. deri e and is R Our (W via This equation. it The Further: for X

BISIMULA

3.4. ∗ ) all the a and (3.1) First, using in + for equal- ferent) TIONS (1 termina- if es. . similarly ↓ ) v (dif = L proof again K ati o ↓ we and ∗ e v ) is or . v a a L } L, tw a ) } s ( ↓ L ’ ∗ s ∧ 6 = ’ + deri b bisimulation, R of a b K b establishing es ↓ BISIMULA , a (1 ∗ v of on f of ) K bisimulation is if for a 1)

3. alternati ati with a f v . ) A R + ↓ + if } an is A   . ∈ L ( (0 element 0) deri (3.1) ↓ ↓ ) ↓ to ↓ . ((1 number , consisting a L that number + 0 b ∗ A = it ∗ L an ↓ ( } (0 a = for × en ∗ b all { ¬ K K K ¬ 1 concentrate L ws v ) ) ) . = e odd for a a, a ∪ CHAPTER ∗ A × has ) ∗ for { we ( a sho +

} ∗ rules ) a an an principle ) L a ) 1 so ↓ A ∗ = ( (1 And a compare ( one , a ⊆ ) = . e: , = a This K K L a A to A ) ∗ wing R , f R a ∗ . ) proof ∗ tak a ↓ ∗ if ⊆ a ) a ∈ R ) holds, + L a contains contains a ↓ ( a K a follo we wish + R a ∈ 0) σ σ + R L if otherwise , + (1 | | = the . 0) ((1 (0 alphabet ? ? alphabet ( = (1 ((1 a , ∗ a may { a

(3.1) ) viously  A A ( says: ∗ = (0 ∗ L an languages ely ) coindution = − the in ) ob ∈ ∈ a relation v es a ( bisimulation o b a ⇒ = + v to = xamples. a a in R σ σ 0 a + = then the e if otherwise tw reader , ) L L { { L ati a es ∗ b fecti star a a a is o (1 v of R  ) + ef that K a ∗ 1 K K 0 the (0 tw ) The = = a a a , K a use -deri ( ( 0 0 K K there , 3.1 via a L, + b ) ) ourselv principle ( Kleene  b b requirement element the Draft ( ( ∗ of (1 R ======proof. ) of ⇒ bisimulation O E principle a = Consider Similarly ⇐ . the proof a a a a a a pair a + Section . ) ) b  , 1 0  restrict this ∗ R ∗ L L (1 languages ) K arbitrary the K only illustrate K a useful. K we + itself: ( use ( from L, termination similarly: = an + definition e a candidate xt K v to are L ( gular or shall (1 ↓ completes the As and Hence relation The ha for letters Ne F re e coinduction L Recall W of 2. 1. order languages In 88 The tion ity , 2 → 91 As the e be- de- put } run- run- • • Sup- pairs 1 coal- finite ) / e Also, to es called a , where be output S coins. . finitely v 0 be Rather and S as , abstract lik { ay as ) S the use gi algebraic : transition transition operation , processes 1 to S a i w will . it into S  ar of e often 0 1 in )( f , S Our step. we only It δ z S eral ’ special h only ( ‘10’ “actions”. S ]. v c so initiality are namely S a processes. into = = is are meant notes ut S left. “state-transition” or se or proper when programs. S b is ∈ labels a via S [212 of branching are S ‘5’ empty seen • % ‘ S w coalgebra (0) (1) to The notes (0,10) Euro a there   K S e coins understands K S systems v there e an that K a S 10 for output, 10 K yields output S congruence—an ha automaton “labels” final K consist back S e introduced empty coalgebras, do one K returned, a to finitely a w them. S mak sequential trees. K as y (1,8) and Also of • and K we to is 10 > as this this K enough | S 5 , z the and K the | for → a A S e only

K | 1 0 going only − S e input | v And 5 transition K interpretations froms | programs S K used | e ], S Usually ha (0,5) coins ideas | lik z coins. 10 can sets S each | between = = using can K so-called 6. (infinite) | Often S •  are it systems K 0 e | of such formally S 222 0 5 K not 0 the 0 S , | of ) ) K (2,6) 0 for 1- labels. changing often 0 | S Pictorially b b K 0 | write 0 S j K of | change 10 is 0 S K arious | 0 More 0 for S v l i b K | does [233 v 0 y process? 0 that × (0)( (1)( (1,3) relations, O we suitable Chapter bisimilarity 5 viour δ δ machine • • input transforming and a  ( 2 5 < processes can  that on processes 

B s transition k for in  compositional as A of  B man is as s k controllers. Therefore, Otherwise, state. B choice. the , 10  s k B for  of beha Note .  s B combination ∈ k A  that ws of or  s B coins )  and k w uilds synchronisation 5  s machine such machine la Ö  k ‘10’ B b s a that (3,4) what the ®nal X B a k • e e s xample B ( notion → a program, k v B e 0 1 10 the 2- k as B − of ®n is: change. s and input-output B k which i uti s B (2,1) z k of P xamples B s systems finality represented k e semantics B machine = = s and that of with , Notice k ` B section ‘5’ via s describe actions a a coalgebra. s 7→ } 10 illustration • captures via Draft s ) ) 1 with k kind appropriate s distrib , not a a use k this It s 3.5. diagram (4,2) 0 sequential X and question viour w k an initial our s shall is { coalgebraic . typical non-deterministic k return s the a in via determine k s (0)( (1)( as w is ®n with a × operating k y s . δ δ , indicates we vial xt beha k the P } the e describe z But semantics • A introduce k corresponding not

SEMANTICS as states simply ) (5,0) Figure with forms k a,b w both lik Thus, a to functor { k that Y ransition 1 in } k ( ho their will conte T material 1 k will processes e non-tri ®n , er’, k states parallel, shall start section the This at interpretations 0 ocess v functor k P wish see e lik { with k describe in return process. OCESS options branching us The 3.1: of k for W empty Pr such a this k first, successor to → we

PR k program. section ‘fore run broader y looks can ) k In Let A shall j u k a werset vioural Y it arious : i, • Figure if diagram description gebras pose v ( action coins. scribe one that ning ning forms in notion. systems. po c 3.5 This ha we usual, finitely 3.5. man , e ) - a if if of } X → the ar b is etc. (lik A ) This ∈ [215 a, . image ], by Y only ∈ { ( x .

TIONS induced ) t ↔ Proposi- en F . } d required, / graph 195 : arious v } d and numbers , b automaton: the b v X gi , as if whose c, and its , beh a, en coalgebra streams , in ∈ , , [73 v and of . alphabet c ] (i) e ], of elements ∗ K element . coalgebra. . x ®nite ]. ) [ X o b an X beh the ®nal functor = [96 w ( . BISIMULA essions simple) → + a 215 3.3.4 T able ) + viour er initiality Y same ) , wing Pb b a v ) . class carriers : ∗ bisimulation. ( with 3. ( (or carriers domains × X (o A expr literature, Y ⊆ E X by isomorphism. ( E the with beha ], aa 220 the | ) follo F X ∗ the F × observ R , = ∼ an → ords ) F of able : A the a E d b homomorphism, on the ( alence ⊆ a w programs → ) ) X is the on Theorem an polynomial v t [112 E ( L a in + ( A egular d | R a [213 of Y ( b to r obtain d by a + is ) = ∗ ( observ F equi languages E of ) 1  int of ( ) CHAPTER satis®es see ) ba and Eq change functors we is c + ↔ ? X + ( its ∗

= algebras : Aczel-Mendler A / c ∗ Y ) 1 set X b X ( ) × b ( E relation to − y not gular X b functor ∗ functional × | ) an F datatypes for P a, F congruence bisimulation ableÐusing accepted reasoning re ) algebra the d X + a ], ba result ( is a a b b c e X  is ]), and → | is → Eq of a → v does a is is + ( ( + Y ) beh 1 ⊆ 3.4.1 map.] functorial? t b a X R preserving X a | ( X [180 observ R R A a × homormophism that coalgebra ( int initial RE × R : As a [192 bisimilar ]: | | b + 0 : able ↔ of epimorphism c × algebras h a information, is c + ∗ X − a 1 an is int congruence [ ) R R a c/ 0 polynomial int 1 one languages. int : { { equality such RE ery ⊆ and case beh = ↔ that X + v := +

coinducti 7→ T ‘ S ( ) / Theorem the e of = d observ e ∗ pullback more d with each 1 x map c ∈ v map a X language most of , coalgebras of c, gular ( processes wing a in x or E ∗ F = = = = def def coalgebra at = re F beh Pro F ) ], the = ernel is algebra for bisimulation , ∗ weak special is k c ) K follo 35 is ) ) → the bisimulation. y ab state consider i , d as ) ∗ for b that 8.1]) mapping the quotients: coalgebra a a ) x, beh [4 the canonical ↔ X xamples analogue functor ( a there ( initial a ( int / e e and is . ∗ beh 3.4.5 arbitrary . coalgebras , the v b , xample. R Pb X a L the A c 3.4.1 interpretation A e wing interpretations the sets : R (( Is that an pair for Draft language wing Hence proper int precisely Pro ∈ = h an ↔ sho more ( are beh the Theorem a ) Consider functions for ]) the making that ( no the that b syntax: c/ , y since that Aczel-Mendler (iii). follo by ( if Im Y Example w relation Pb polynomial O ]) that has that [213 alphabet ws ∈ Theorem that the Hint. that a man where [ BNF it contains Sho each Conclude the De®ne ([216 e e e 3.2.7 y only an v v v from coinduction. sho of [233 analytic s are also, ' concludes Y and coalgebra Note b (ii) tion (ii) (ii) means bisimulation. Conclude (i) and (i) in by Pro Check Fix Pro (i) Pro (From ut This b cises (with non-well-founded There This ] 3.4.3. eas: 90 3.4.1. 113 3.4.5. 3.4.7. Exer 3.4.2. 3.4.4. 3.4.6. a a is In be 93 on for . and of (3.4) (3.5) e) w union and v , out → a could 0 the abo − w associated syntax interpreted performs · idempotent as 2 construction via z → a . be semantics + the − A and + by first w with ) Z enient 2 the machine + CH can v  z . + ∈ CH · . belo ∅  y denoted as · on  2 ) + con ∅ z which y 1 transition CH the 4) 10) consider —since a z z )( + · , , monoid a ( else A · 2 3.5.1 change w 1 e (such z (3 (0 z Z } rules: 5) a we else e v ( or · · ho , z v o A } ∈ . w { w ζ (0 z 10 10 viding A 0 tw commonly and · { abo w ∪

concentrate → a . → a + + 5 ∈ ) wing is ) ) − . pro b − process Example transition then process ∅ → y a a z the + we 2 It 1 )( a a − wing sho a then as z )( operations CH CH z z commutati = A. 1 2 · · is · is a process also sum z a + = z of CH actions, ( ∈ w a label a · 1 b 2) 8) follo = ( is A z , , the of ∧ see ζ if A Instead y 3) λy xample, there ζ there 0) (4 (1 ( a , the e nothing. of if A , , as: each · · 1 A. ∈ ∈ A generally (1 A transition = − define + processes, A

an ∈ · A. , ζ 10 10 set . a w b w ∈ for ∈ collection 5 A does , A ∈ on a states + + can As a λy a Z systems, Z , + more ( = def defined . 1 w ⇒ ⇒ ⇒ λy A equation: of A either CH CH − one A and formalisms. ⇐ ⇐ ⇐ encounters 1 be empty w ∈ · · CH , ζ Z . → which a 0 is (3.3). action · − A A arbitrary A b 0 − is ζ ∈ 0) 6) Z · → a Z 2 ) w can , , describe 1) an − = successor z def an these z a , operations transition ∈ structure ∈ and It (5 (2 process 1 there form b → )( = def . · · (2 usually Draft + 2 z no all elements w understood of A fix and 0 2 − · e) z process if z 1 the shall ( z , v Z ) z empty 10 10 5 the as A e 1 A z be are for z one we + ζ z ∈ · Z central · W each of vial z that between with 1 only kinds a . a ∈ w = z w tri can ( = A

SEMANTICS z for there fe a see (recursi subsets: Z wing z and for a a ocesses to if + e, on actions arious CH that that literature pr v v ocess z processes understood ferences follo via ∪ successors of coalgebra continues define o only pr ha algebras process OCESS hard as: dif two of the a tw

PR means coalgebra means of can process not final null then then In set process en en a v v efixing is e arious final describing Process W defined in sum It processes, the describe the described v The One Gi Pr operation and Gi Sum This operation: 3.5. This , , er al- . the Al- this and v ma- } may their such (3.3) (3.2) same viour of as we TIONS of functor into Systems use elements the write Ho beha empty change a such , and goal the means only 0) to sequential shall 1 our by , bisimilarity e call The rise of we (0 BISIMULA shall lik ]. syntax 5 empty 10 , polynomial es 10 8) v } s shall = = = 3. we processes, , , gi [119 10 y y y . modulo Communicating (1 s . finite E we representation. section formlised , if if if otherwise processes—with , . ) a precise ) E notions 9 , of xt E thus 6 ζ 0 s E O is , , s Z are } trees this by: because , (CSP) capture E ( 8 Z into 9 / (2 into ∼ = s A s A . ®n , _ e, ) In , en 1) 3) , conte to

CHAPTER 7 which , , 8 P v etc. A concrete go i.e 4) / _ s

lik s set states , Z gi _ , (2 (1 , a in Calculus ( — 6 to this _ 7 actions (3 E s _ s E = = ®n ], , ) , } , _ on In look E Z branching of Processes 5 P 3 6 y y S _ ) 2) / 75 aim s ( s s _ , , , literature if if otherwise otherwise ]). , , ch _ set ®n coalgebra. 4 . ch 2 5 (4 arbitrary concrete _ s s s systems } P , our _ [38 , [29 , , its } } the is _ beh 3 an 1 4 10 0 0 depend 0) finitely ( the A beh _ actually s s s s → final s s ∼ = , ζ in _ , not { { ∅ { { { ®n ∅ ∅ to A CP) a 2 _

coalgebra communication, for S (5 ocesses with Sequential wing s P _ is : , , Z axiom , (A _ labels            ( ( turns pr A 1 It _ 5) ch has ch ) . . . s , _ certain of wish final , via sets it _ E E E A X (follo 0 (0 E ( of thus s Z , choice, ) ∈ ∈ ∈ _ proposed set { ®n not the S e O 3) that ch ( S P 4.3] v , these λy λy λy the of do Processes ®n structure coalgebra ch = (1 terms coalgebra been 7→ P beh , equations. use 2.3.9 processes e in Draft what 1) = = = X and v Communicating S etc. , final we states Section alternati and ha (2 or , xample, ) ) ) , care ] e the study descriptions 0 1 2 machine as: function e coalgebra s s s 10 ( ( ( of v states functor , [233 to 180 Theorem 5 , A ch ch ch abstract of { is really ecution, abo ocess the properties, . Z by see x descriptions viour Communicating e languages change operations set Pr w [179 not = the into of en, coalgebra “change” as v viour beha ersal do Our In Since eral kno v gi carrier v e E we W final with map: chine 92 The concrete uni be beha 3.5.1 Se of And gebra gebraic parallel (CCS) languages e v be 95 . . basic func- ) ) abo y 0 will ( Process s as arbitrary ; (  the ∪ 0 ch these an ·  beh terms ∅ Basic on beh using ∪ = map coalgebra. described else finite empty  called consider ∅ state, + of ) CH system + final viour , CH else shall often CH + the CH · CH viour · } · beha · (initial) ∪ ∪ on we ∪ CH empty 5 10 ) ) 4) 10) language CH 4) ∪ 10) · , , the ) y y combinators, beha

transition , · xt , ) y = = = )( )( etc. (3 (0 a 5) y (3 ) the (0 )( y y y 5) · · · via , Ne , the y , language, , )( , suitable if if if CH CH (0 )( 0 . xt, 10 10 (0 that · · CH a ∪ · , 0 CH for A CH , te CH · ∪ ∪ ∪ ∪ ∪ process · ) ·  5 + + · + is } , } · ∪ ∪ ∪ 4) 8)      ∅ ) ) ) A , , 0) 0 3 6 9    + CH ∅ ∅ ∅ ∅ ∅ 2) 8) , Z 3) s this process s s s , · ∅ ∅ ∅ , eral (3 (1 ( CH CH , ( ( ( holds coalgebra v · · (5 . · · (4 of ®n (1 erifying   3) else (1 · ch ch ch CH , empty se ,

, v P ∅ ∅ else else else else else · · ( 2) 8) } else else else , , (10 (10 } } } } } E (1 where (3.4) final (5 (10 CH 3) beh beh beh simple ζ CH , } } } E E , for (4 (1 → spirit , , , , = · ∼ equation: ) CH ζ ζ · E E seen · · ) ) ) else else − 0 ∪ combinators CH CH CH CH CH · ζ ζ the 2 5 8 (1 s e ∪ ∪ CH CH CH CH · · · · · 0) ery 6) ) } } s s s · (  the v ∪ ∪ , 10 10 · · · · v , A ( ( ( ) ) y ) to 0 0 5 10) 8) 6) 4) 2) 0) ) ) y y { { y a Z ha (5 ch ch ch )( In (2 + + , , , , , , 1) 5) 3) 1) y y equation )( )( )( + beh , , , , process of ]. (0 (1 (2 (3 (4 (5 )( )( 0 approach process ( we CH s { { { { { { (2 (0 (1 (2 beh beh beh } CH CH ( the CH CH · algebra for then { { { then { ) , , , CH Draft · · system CH CH · · ) ) ) an 231 · the 1 4 7 10 ch · · , 0) 6) s s s s algebra. 2) 6) 10) that certain then then then then then then then ( ( ( ( ) , , 1) of , , , 1) 5) coalgebra then then then then , [75 ocess a , , ch ch ch ch ch (5 (2 (4 (2 (0 empty 10 10 10 10 10 10 5 5 10 5 empty 5 (2 · · pr (2 (0 · · · equation SEMANTICS · see · · subsection initial constructors ======beh beh beh beh check beh transition 10 10 5 ( ) illustrates { { { y y y y y y y y y y y y y (5 (5 (10 (10 (10  the y as an ®n A), if if if if if if if if if if if if if E E E E E E the satisfies terminal can )(            ζ ζ ζ ζ ζ P ζ as simple vious a (BP OCESS we A CH pre ( interpretations Check Map xample ======on space PR e E ζ 2. 1. the 3.5.2 In tions This Finally Algebra state described 3.5. combinators = can (3.6) CH

TIONS we   ∅  sum  e: ∅ v else ha and  }  0 else BISIMULA ) s we y { } interpretation ) )(  3. 10 0 ) s s 10 y ( s the ( then prefixing (  ch for   ) )  1) ch ∅ for ) 10 , s beh y ) )( ( And { (2 )(  ch ch . ch ) 1

CHAPTER defined 9 = s y s (3.4),

( ( , y beh beh  . then beh ( ( ) if ch . ving 1 . ®n ®n  1) s E ) ) , ( , ζ P P ∅ 2 Ha ch ch . . . . z s ch (2 E E E E equation → a = beh beh that: ∈ ∈ ∈ ∈ beh − ( ( y states z ®n ®n if E λy λy λy λy · P P ζ

note     . . . . a the 1 1 1 1 continued). E E E E . − − − − machine E E E E we ζ ζ ζ 0 ζ ) for ∈ ∈ ∈ ∈ 1 s ed ( λy λy λy λy = = = = = First v ch     change 1 1 1 1 ) machine, deri − − − − E E E E beh ζ ζ ζ ζ 10 rule: (3.2). the s be ( Draft of ch = = = = = can from (Change beh E standard Z CH alidity · ∈ v the ) 1) 0 , es equations s the v Example ( (2 gi ch erify beh Similar 94 This v 3.5.1. . A + 97 P 0 that pair (see s viour w set dashed the ↔ ) is sho t . beha the A )) The d ξ α y A Z  a + . ( of on Z 2 )( s int / / A the t π congruence ( map Σ ↔ = ◦ / / β a ) ) and 1 2 β f )( 0 , π π The ↔ β s 1 ) ◦ ◦ ) ) · π a beh because 1 2 )) e e d. elation ) a . ◦ beh ( ( π π a r = ( ))( a ◦ 3.4.1. A A 1 2 t ◦ ◦ f )( . ( ®n ) f t π π d d ↔ Σ Σ making ))( ( β f f α A P t , ) ◦ ◦ ( ( ◦ ◦ ◦ ◦ s β ( )) ) e } ) )) A A ∈ · ∪ × a 1 2 α ) ) f f algebra,

a a a ∪ a indistinguishability beh viate π π α α Σ Σ ( )( a a α ( )) generality ) )) ) int t  e )( ( ))( = ◦ ◦ ζ a ( ) a a } . s Theorem t int int ) equalises ζ b all ◦ ) ( ( ( 0 + a · } bisimilarity )( α α ∪ )( )( ) ) ( a | α d A A a 2 abbre 0 b s s s ∪ a a ) ◦ ◦ β ) . = ( ( ( ( ( π ) s for Σ Σ process ◦ equaliser ) a ) int ))( the = A β ∅ β { β β β b α α , using implies a t greater ◦ preserv ) ))( ))( a we ◦ ◦ A ) P | b , in ) )( )( )( )( )( )( )( s s 0 + ))( α ( a the 2 ξ int ξ f int ( t | + in · ) β β β β β β β β s ))( ))( ) A π A α ( s ) 0 b s s s × ) ( ))( of β ( ( ( ( ( s P Σ ◦ ↔ a s β

( int α α α α α α = = = = =  beh beh beh beh beh beh beh beh ( where ( α · f × × ( ( ( ( ( ( ( ( )( t α α ) b int int 0 int int beh int situation, ®n ®n ®n ®n ®n ®n ®n ®n A ( ( ( ( ( ( ( ( int beh studied d formation A int is: P P P ζ ζ { ζ P P ∅ ζ ζ { ζ ζ ζ P P P P × that and ( ve / and ◦ P ζ be ( 1 α 0 property ) w fundamental π s . A α = abo diagram, ======◦ Σ (IH) (IH) sho ) / will × are ↔ a f process ersal e remains the α v ) ) ) s ( W of a a a ))( wing in Draft for . s ◦ e topic uni i ( ))( ))( ))( ) d 1 what β that t results s 2 0 π follo congruence ( · the Still π this + β ◦ a b ws ◦ beh ( s 6, by the ( f ( is β equaliser e

SEMANTICS Thus, ζ β sho beh / ) , ( Σ( operations the ζ , beh ↔ xists  ) ( ( beh e is terms ↔ 1 ( ζ A congruence e ζ π 3.3.2). oposition. result Chapter

OCESS alently Σ Consider ◦ v in Pr then . e PR , ocess ( map w algebraic This Such A ercise equi oof pr . Σ 0 h Later Pr or Ex 3.5.3. of The arro the 3.5. t . , e y ) as A → s the not W as” call ( that Z term each V The A α is which ) on ebr (SOS): (before or TIONS we It A int ζ the Sets initiality F A O sum. . Z : from ( Z = A “processes A / operational by ∼ = bialg P ®n ) for _ Σ with s P which coalgebra earlier ( algebra ariables. (3.6). / particular of _ X and → structure one = ∼ β v _ , A − _ in semantics ) phrase A → _ ) free β

BISIMULA final elements _ beh β Z A A free A (3.5), functor _ ves X ) “map ) the P 3. _ o the ( the structure: the A A → beh _ a × commutes -algebra ( beh that initiality A described _ pr . Z P operations A ( ( ) _ A on it e rules ®n is Σ X . _ i.e P v : by ®n Σ ®n ) terms. P X under _ from operations A without α a a P _ +: P This ] / / en Z of × A pro )( three up v ) as _ t bialgebra ( polynomial maps A es. X gi and of structure → O [212 A we ( CHAPTER β -algebra a P } uild ( P terms,

transition A a β A carries -algebra, ∪ + in A b A two the ®n β ∼ = Σ P ζ A ) ) P structural A = P the : algebra a ) structure Σ simple a X ∈ by b β structur A )( compositional: carries | consists free s s a terms × Z of the en semantics ( prefixing, this the s ( process is obtain studied v coincide. wing beh ∅ { β A A A the ®n ebr also ( the on initial gi for thus as we P Z P term = / / + by is write a = = = follo processes: X the 1 α → terms = ∼ It xample coalg

en ocesses of e − terms of . consider v ) ) ) → “closed” int for pr A a a a A shall consists gi = functor ) A α ∼ = Z and X )( )( )( ξ A Z denotational induction e situation A of is the t V s 0 ξ a P that processes, A Z × )  ( W · β process → ve ( this simple by + the . Z induction, β b process set X A ) / of A actions, ebr ( so s structure ( : A _ a ( bialgebra A · for Σ β beh for abo by of A ) ) ery / write of β a that Z ∈ alg _ v _ out algebra A A Σ ( on the A X contains a A a ) P coalgebra Z the A P _ _ ws ( defined we ( α Draft the equal, on A Σ uilt A shall A In → _ α : _ set b P finality e set and int sho Σ defined Σ A ) ( final form _ _ int ξ 0 ar we with A is Thus by viour semantics X set -algebra the _ ( _ Σ as β the A null-process, interesting al A terms en ations. result _ _ Σ v from Σ beha by both The finality: that Here induction maps ) arbitrary of for xt gi An that _ A 3.5.1). oposition. write en up by ∼ = oper free ne P an A  By v X see set. ( two definitions Pr P , . gi α A seen or to uilt → coalgebra A one algebra F The The behaviour b shall e Σ terms”. oof 1 v consists ∈ : ariables. commuting 96 The These Example hard and the we 0 forming Pr empty are Sets semantics a ha An v operational It 3.5.2. These as - a er xt of be for for v left cer ne sub- e coal- ne inside arious viding lifting. will to closed. the v lik chapter sends polyno- ariance. the di result X logic v is a minimum to will final operations in in xpress transitions, that of just this e the of that en , of is v bad of which paid F relation relation on gi which used (so ) establish ) which under of a be often · F temporal X ( · be y w ( · first F section will space functor predicates, the coalgebra Pred occurrences intimate will closed belo matter ⊆ something a P X will non-zero on construction coalgebras. the It ) is bisimulation, generic all analogue be final no state P for be of that a their · we for a the er on · )( that v because · attention The in F in ays

hold on ( unary ne beside operation w lifting. Here ariant hold e, to operators xpress ˆ v ole A al lies 2.3. e the r an Pred in will spaces lik structure ♦ a is particular · Special is semantics ariants. systems, will of · v in · the should you F tank state of in which play ariants predicate wering. P Section if continue v on alue trace coalgebras, lifting 99 on lo v in P X entually this of in lifting. predicate notion in v (co)algebras. of

their that e will of of ger · functor ariants is it · for v · relation and inte logic in established, earlier relation description induction , Predicate properties”, “lifted” idea general predicate  predicate a the technique maintain are a this by holds, the contents unary ariance of to in The = = e: construction v in binary 3.1.1. the . application or the called a Further in polynomial X lifting. “safety a lik X ) ) ariant Draft a ariants postponed of is P v or: v X set to are ( notion 4.3. henceforth proceeds such )( introduce in in as a for coalgebras F in: F lifting, F w 4 lifting of properties of ( an on important introduce is: Definition safe), important will predicate predicate, ariants that X olving is a in v Pred are Section definition lifting v via will An once functor in assumptions, ⊆ is That useful , details important in definition in ger bisimulation , the predicate suggested edicate P topic a the chapter ariants the properties lifting a in to inte as ariants Pr Thus, ariant , v v section means, ) functor v second formal use implicit Predicate This In applied. this in X ( arious alue. F applying predicate happen. mial adjoint will gebras, This v V are tain elementary introduced coalgebras. by coalgebras, relation an Chapter In The 4.1 This Whereas section The a section. TIONS this describing of « + by . A e. CH' v « CH' · Z machine.

BISIMULA · ginning abo → , CH' 10) 4) instance

3. be , , · A (0 (3 change for 5) the , , + + in (0 claimed E Euro CH' + ) as CH' CH' a injection equation. S · · A (

CHAPTER this an for Z CH' ®n 8) 2)

, , · this P ∈ and (1 (4 of 3) 0 monoid, → , · + + e yields S v a (1 : (3.4) equation + process this model CH' CH' ch in a · · = def a as CH' that 6) 0) CH , , · a b e process A v . commutati (2 (5 e

1) forms ∈ a v , „ coalgebra Pro · a (2 „ the empty 10 between · which indeed of + + 5 alternati action is = 0) -transition. ference system , wing each bisimilar? a + dif , an Draft de®nition A follo CH' CH' the Z ( the the only consider and transition that do can e CH v can Are Understand suitable It Complete Pro Consider One cises 98 Exer 3.5.1. 3.5.2. 3.5.4. 3.5.3. , I ∈ has 101 i ) more Sets it 3.3.6) lifting. a , X edicate intersec- (iii). Y → predicate pr in ⊆ , connection i a of ⊆ . X ) as: P truth: ( 4.1.1. because Q 4.1.2 P (ii) (iii) (Lemma for the relation ⊆ Sets , of δ ) : ation ks P P F ` for described )( 3.2.2 4.1.2 )( . is edicate and . F F edicates Lemma setting . . )) ( ( ) (i). ) pr 3.3.1 )) preserv understood pr Y i pullbac Q separately ed Subsection by Q P e ) functor P Rel eservation of This )( be )( Pr → )( simple. i P and )( Lemma Lemma F pr ( π see 3.3.7 F F ) ( F ( ( X weak F Y get: is ( { ` by by again . : m (iii). may lifting Lemma ed

w y—lik ed ( ed w f ed to X cise → w lifting Pr of F ) w F Pr Pr ( set-theoretic = w Pr and ( enjo 1 w for P X > collection xtremely ) adjoint, I 4.2.4 w ⊆ eserve ) : − lifting: e δ . . polynomial Exer f { w ∈ ) ) ( ) ) point es, i f ) P pr F F es: not f a is ) ` F P P left δ = X lifting P T ( g s predicate very monotone: edicate see ( δ P )( mentioning , e a of of ` )( )( F .t. current ` ercise pr f F is F & )) .r ) ` F vious in: ima F f ( , of does L = ( w for ( relation ` Ex P L X )( × = F the L =

study δ f ) function pre themselv )( ed > F L ect functor Rel mono, worth ) ( L F a i see ` ` in Pred F to f )( ) a L lifting Pr ( predicate with ( dir P )) L ∅ the δ F application )) structure structure )( )( lifting F sets ) L is Rel I ed ( for × P & L Q F F xistence ` = 1 ) ∈ for P ( f But ( ( ( functor i as e i Pr π sections: ed the the use link ⇒ f Pred 1 F I )( m π ( application es: useful T = ( − ) ` Pr ]. ` g F edicate Rel Rel ` on on f ` )( f we ( eserves the F is f ( functor thus 1 1 1 ver )( inter relation pr polynomial )( F π π π F F o pr ed Q it id ima ( F lifting [117 ( F via = ` ` ` ` ` and Draft ( that Pr analogue ary and ⊆ ed = se functor that operties. that that ed in predicates also δ ed comprehension, Pr ) polynomial P pr is as the Pr ver = = = = = seen ` result, Pr induction induction a P section in arbitr fact LIFTING is edicate ◦ lifting )( result, ) or with i By By F lifting last F Pr setting π P same xt conclude ( TE the (inter easily f properties ` ne (ii) (ii) result is the following this ` eserves om eserves + + considering Pred xt eady fr )( the case pr pr X predicate consequence the logical ne on F (i) (i) alr This It Since Relation It ( commutes Lemma. Lemma. see special  . . that PREDICA (i) Despite The can P (ii) oof oof Pred (iii) (iii) (iii) : relies special m 4.1.4. between we Pr Note general some It tions, lifting A Another 4.1.3. Pr 4.1. satisfies = let ) } R ) . ( and v } “lifted” 2 , π a )( P

ARIANTS } ` accordance polynomial P ) . ∈ to v } a )( in ) x 2 i )( X INV , functor . | and ) F u P for } F ( ) , lifting: ⊆ G )( }

4. ) x )( )) ( R ) of 2 a P F P u ®n ( x, ( F Pred )( , ( ( f )( P | . { ed )) , G ) )( P ) elation  ( r A )) P = v Pr P )( elation )) Pred ( polynomial related. r R )( } 2 of )( G ⊆ a P structure ∧ ( Pred κ ( )( F P werset predicate

CHAPTER G δ ( { ) A ( the be F a ( n. ∈ the po u lifting ( . ` ed ∪ P Pred of x )( terms ≤ closely )( } on Pr | Pred

Rel ) P i = ( U. way ( in F Sets ) ) u ∀ i = ( finite sends )( are x A. X π | ∈ 1 )( ( a edicate → A i F F ∈ u Rel x, ) ` P δ ( is n domain ( pr > ∀ essed a P )( u i | ` X 1 ∀ F , which π )( induction δ lifting . = the | F xpr Sets ) Pred { U and . following = ( F e ` : | { . ( f by is ) F = , = F { ( then case ) 1 be } )) F ) the , v ) ) ( Pred u =

in R 2 = P A Pred P | )) ( in Let u, relation x ( = {h Pred i ( )( can ) Rel then , P π ) X { 7→ ) ( 1 , u defined F δ then ( then P 2 used ( ) x ` X P , and 1 is = ( Y , then δ ` F )( P then )( 2 κ )( ) , elated = be R , r ) { ` lifting F F )( lifting + . F 2.2.1. so F ) Pred ( lifting). X codomain. A ( e 2 ( G )( 1 ( F mapping ) × ( P x ( G ed F ar will ed F F functor its = 1 ∃ P P )( ( . and functor Pr | F 2 then Pr Pred )( is i F ⊆ predicate The , Draft ( Pred ) 1 edicate Rel ) } F X ? = x Relation ) ( Sets P pr P i 2 id { G that set. Definition , )( werset (Predicate x xponent Pred )( identity formula → , (i) e , = w X F in Pred 1 F constant list product po coproduct ( and ) ( id x the a a a a a an esult, h ( 1 sho r R ( same is is is is is is is R Sets a = 1 Pred = . : Pred π we arbitrary points 1 i F F F F F F F F X Similarly As x ` δ Definition Lemma. This If If If If If If If an ∃ the e e | First both (ii) be 2 (iii) (1) (2) (7) (3) (6) (4) (5) x predicate with X { wher for 100 4.1.1. wher 4.1.2. functor → ad- 103 )) . ) . P )) } ) ( the ginning 1 } X )) ) ( − v be v structures. ( f F ) 2 ( with u, } )( κ the ( ) P ( F . v . Q ( ) in ) ): Q ) . } | u, ) } G F ) ( ) )) ( ( v f i X “colimit” Pred directly Q ( { Q ®n − ( n ed )) ( . − 1 u )( P Q ) 2 . = . Q , ← Pr 2 F ) π ) ) ( ) . X ∧ . (ii) F 1 . Q ( A P ) ∈ ( ` illustrated ) P . 2 − 2 certain A reason )( )( . Q , u − )( κ )( Q ⊆ F as e 1 − 2 ( P ∃ werset F F ∈ or )( F ∅ S 1 u ( ations ( ← Pred 4.1.3 F ∈ | ( ( 2 h a ( po −

)( ( − ) ⊆ v ed F ∪ | f − − , ( ∃ G Q ) X − ) ) oper ( Pred Pr ← | | = ( Y Pred − } a preserv ← Pred ⊆ 2 − 1 f ( Q − ) i finite ) adjoints, )) − F ← Pred − ⊆ f u ∪ Its → gument, Lemma )( ) a ` u X ) F ← Pred { A { ( ( ( ∈ ∪ ar ) F f Q . )) 1 is 1 )( ⊥ )( X ( ( by − v κ Q : )( F Q )) G − = G ( ( − F { F = ( f ( ) ( − F ← Pred 1 Q ∈ Q f )( ( = ( Pred ← (Galois) π − ( − 2 | ⊆ 1 − u ) − − for

)) F f functor F ` { − case then − 1 ← Pred u ← Pred ( Q ) Q , left ` ← ` κ { Q Pred adjoints” )( )( ( )( in − Q 1 1 ) A )( )( that − of f of F F F )( 1 1 = = ( Pred ← then ( ( ( functions F F 7→ F F ⇒ ⇒ ⇒ ⇒ , ( ( − − − ( ∪ then 2 used ) ) − − − ⇐ ⇐ ⇐ ⇐ ` Z , then − − F − sense then ← Pred ← 2 ← Pred Q Pred − − Q , − that be )( , ) polynomial F ← ← Pred Pred + )( Pred ← )( A F property P the G 1 ( a F F × ( = = G ( ( F will Draft − in 1 ed P = = ⊆ functor − − , − be means F then − ) − “composition Pr ← edicates; , ` Pred ← Pred ← ) )) Q ? F a general pr Q

LIFTING Q )( G es a ( werset g of xponent )( ) formula F use Let e is f ( adjoint TE F ( list po coproduct product constant S ( − ima F an a a a a a − − can left Pred ← ` − This same is is is is is is 2.5. ect a Pred ← )( eserve: F F F F F F (i) F unions dir One pr ( Lemma. This If If If If If If .

PREDICA ) − (i) Being − (ii) (ii) X Section oof (5) (7) (6) (4) (3) (2) Pred ← ( 4.1.6. P Pr of 4.1. junctions: . a C xt in ) of of ap- ap- Ex- e F ne may shall (4.1) (i)— ( write func- → adjoint (lik ed forms see logic the we opposite consider C , induction Pr an F : 4.1.3 ARIANTS shall In functor structure a G the e by and ) axiomatic W In

INV via actorisation: which the Such F f monomorphism . . ( functor  ) polynomial functor intersections ) temporal predicates .

4. F on − Lemma for lifting. F ed z via − a ( ) more X functor of of ( for ) ← Pr xplicitly = P a see posets. simply in e ( G G ) ) / ( satisfying fibrations, identity ) 0 Pred ) wering”. to G P z ) 4.3.1), set functor

− ) ation lo o m to gories )( by )( o ( lifting X preserving )( m predicate induction Pred o ( / F ( polynomial o m G arbitrary G

CHAPTER ( en ( o o leads P defined ( a lifting G cate ) o v o by xamples. power ving F ed o e connection ) P ) an preserv Q. o . → be ( (gi for o w ) Pr P operator define e olving Pred mo X intersections,

This G ) P )) ( v )( “predicate Subsection for do. pullback ( predicate ⊆  polynomial lik =   F in X also X by it G F ( ( ( Galois to between may Q between predicate lifting ⊆ G ) the F ∈ concrete (see a ( shall can )) call 0 xt-time Q to weak we Q of define − z in Pred P on arbitrary it predicates !

⇒ ← needed. X )( ne operation a / ) ( we ∃ ): , adjoint ⇐ F to es a for ) functor F possible F shall ( properties edicate F as ( ( But ( approach X connection − truth X is ( monos Pr P left − ed for when ⇒ − e P what adjoint)

ed handle and lifting e − / Pred ← F v wish es ⊆ , structure ⇐ Pr is operator ⊆ → ← ) Pr ]). preserv (such 4.2]. ) ∈ ) ) of F then Further best ) Q z the ( Galois , Q X 136 may lifting )( Galois P This a liftings ( − , inducti )( preserv ation − on . the preserv axiomatised for (i). )( F P lifting  F ← Pred ( as predicate lasttime ( F one es ): es wer not our X − ( adjoint [129 with v as a v / oper functor − Theorem − ed F lo generalisation − requirements, ( gi to 4.1.3 ← Pred I, functor Pr ← an left pro   Draft it , predicate Pred ed m (or does P suitably also X result / wering induction ∈ a (From Pr m predicate the is the G stick adjoint lo section one also use monomorphisms z [150 identity associated P , xplicit define further by as if is of this e  automatically Lemma , is (iii)). ) es or an this adjoint e the because wer) shall ] F as of can There still shall ( see lo is because function edicate w − lifting left ther ed we A 4.2.4 ), ormally oposition − F [176 we (or One F Sets Pr obtained preserv ← Pr . X vie structure 3.3.7), xist If Pr generally . . this e operation is .g on left conclude e Here In assumed  the ection ercise oof oof e (1) . W coalgebras. plication: ercise need 4.1.1 F section see More must proach. Pr which Hence 4.1.5. X this tors Ex This 102 Pr dir on be predicate monotone This , → P xt In an all all ) the in- for 105 sec- F both Spe- to [216 ( be for for ) starting similar In conte functions in to predicate X unlabeled construc- as ( vious ariants are ] the relating F via v predicate proofs. . . CoAlg pre in ) in : seem P → occur coalgebras. [190 P U arious satisfying satisfying the X v There in )( algebras. not for ⊆ associated ferent coalgebra. X X F in xpressed . in ( characteristic ) e arbitrary for dif in ⊆ ariants ⊆ . the R functor 0 v )) be does an discussed x )( as P P in Pred P their and . F that = coalgebra useful occasionally ( )( be also for products ) e a getful ) , for formulation F v a P ut ⊆ slightly ( There with same are of P b P for can )( Pred results—especially U ∈ tranformation will (introduced Pro )( i x bisimulations.

F ) functor  ) ( ) sends the 2 the 2 predicate F δ with Pred predicate / u P r to ( ( and ( ( ( a a by: a lifting c a coalgebras A. ariants ,F use describe thus ) is ) natural is lifting v ariants ` ` thus 1 ∈ identi®ed ) Pred F a r v in for ( ( a operation. we ariants” X we , consider X ⇒ in is ∈ F ariants ∃ v transformation coalgebras, are ( , h and construction Sets automaton. ) = v Y ) so relation , in 4.3. xamples → polynomial F Pred the ‘ x F in X e described × both or ( ( or for ) → a ) the ⇒ c Sets is that ) → ⊆ X predicate

X greatest P results ⇐ = be natural ( in F Pred U greatest → ( P )( X → under 2 , F relate Section ) : via ⇒ 0 algebra, : 4.2.1. F ) the ariant, )) c (4.2), check x = ( ariants “greatest P R a in v such R standard ( v : P in Sets These to e to of i deterministic 1 Sets in first these lifting )( to terminology → in in 2 )( : − a y − lik r e CoAlg P F section, Pred closed → w F a of F , ( of : ercise ariants x ( 1 on W be predicates ∈ ∈ 3.3.1 U v is r used 2 Ex algebra h Rel Man certain in this x u B belo ⊆ coalgebra Sets ance and and logics, Draft Pred according an predicate a are in : ( v × see functor notion } coalgebra. 1 ) coalgebras. . 1 F A which terminology ) paid − a , for for P functor that rele c 4.1.4 relation 0 X the X subcoalgebra for { )( ( of a be Let i describe liftings system, considered. introduce F P the The temporal ,ε → = concentrates or ( ⊆ δ . − h F with 2 Check 2 will ariant ariant for logic first polynomial . define v v will also Lemmas , ut X predicate importantly a spaces P Pred (separate) → subcoalgebras. b in in werset ariants congruences, , a or ) ARIANTS v will are section point X Sets Predicate po where transition lifting. F Let Use section, to is 6], shall An An X for state , In It Most ( Definition. xt it e alently is, section INV cises v X F temporal attentions (i) W This ne (ii) the a ∈ ∈ ariants 4.2.1. established cases on tions. x Equi cial of the 4.1.3. Section v tion). 4.1.2. That u 4.1.1. 4.2 This Exer algebras 4.2. results ) h of G an for X ( eac (4.2) ⇒ P precise from . F for gories result : → f coalgebra / translation ARIANTS translation α ) idea that cate e X the v ( INV  each This ) (ii) F : mapping

4. X f ( sense X translation 4.1.2, intuiti of P σ / 4.1.6 between the the mapping ansformation ) systems. in ) kind f tr es ) ercise F write G ( , ` P ( this al functor ( al” Ex and −

CHAPTER Lemma by: ed functor X mak − a = in ith it Pr ← ) a by fundamental , special : set f natur t ) W ( transition er t to a ) )

) a given “natur CoAlg t ) A . v X seen P / } CoAlg t )) obtain  } Y ( X / ) . t is to  is ( ( wing u ) t ) we u F X be t rise { } and It P P ( we t ) / )( / X ) X u . ∈ t . Ho f gory ( F rise f z t { F (  − follo C ( functor ( can u ) ( G F )( / unlabeled P C es c F u sets to gives $ / ◦ cate or commutes. F v ` { As J the ◦ s )( ( system. to F Y J X α gi )( )( by C f J . σ − σ in ( J X am ary − F F werset functor J

4.3. α ( ( J F Pred ← gr → J ) xed po coalgebra. ˆ ole − − ) propositions J f X transitions. r − − functor J Y F {−}  lifting dia o J F ( functor e C a ` ← ← Pred Pred σ arbitr / ) ) ( the : the inde transition tw  Y X naturality G of ( an ( Section etful to , ) mak e = = = = g play ) F F v f F in . be ( polynomial maps X s CoAlg for vious can  (  F CoAlg a pro C ) ) predicate following of F u pre the to Draft ( or X functor polynomial  unlabeled to structure X ( F Let the ) X a F the an σ = / def X estigated Y the composite with of v need σ f ( coalgebra of in X c → into endofunctor σ ` adjoint a transformations only X of : e polynomial two X left oposition. oposition. much as: f W  further combining following turned commutes Pr Pr es . coalgebras ebr v collection h be states be This Natural By the oof between Pr 4.1.7. This coalg 104 coalgebras. 4.1.8. function arbitrary can for from whic will remo that e a a if if is is ⊆ ⊆ in- the ar a i this i 107 X then X Clo- ebr vari- ) P P 3.3.2, an ∅ for in ebr At → proof because  is e = conclude ) alg ) coalg ar P I ws X : i The X ( Then: lifting: ( 3.1.4. variants, P m edicates may F ver F Theorem I in : follo pr o initial ∈ induction variant. a e i of we unique) if e → as: in intersections. ariant a ar an T v homomorphisms: ariant. v algebras. algebra. v (ii). X an ebr Y in making ebr on that : predicate and Theorem in deri c homomorphism (iii). is section ariant ⊆ P an v alg a a so in of to homomorphism an along initial . 4.1.3 section Q in is , initial coalg analogue is a sections: → is intersection I an ebr 4.1.3 es (inter f Q ) of variant is an for an unions g (necessarily the X and 2.4.3 ∈ inter P in (i). f for >

) is inter a ( is on i functor c ⊆ X ima coalg O X F P under is Lemma principle It both X ( and a / P e e ⊆ and se e F Lemma 4.1.3 i truth Every / by because because of each monotonicty P P ariant principle variant homomorphism ver ther because by since v Example I that 4.1.4. in a : in ∈ and in )) for i closure ) in and ) ) unions structur , of preserv from ) Q S ∅ an m space induction polynomial i bra )) Lemma homomorphism ( ) P m )) )( and as, P ) a is Q only a = )( F > ws

ary Q bra ( used F I assume ( P ( see induction 1 principle). Lemma F ∈ I e f )( be X ebr then: ect state i X f ( / − union the v . P F images ` f S follo / c ( ` dir ) Similarly is ha X  Pred ver arbitr  the )( “binary” )( ( )( from o = O P ` Pred . proof subcoalge coalg Sets 1 P ( subalge ) images ⊆ F F P ) ) their P ) erse F i we ariant, on ( a ( − Pred : then : f f ( “unary” ) v F of f ws v ) ( ( ( P → . ( 1 is under m m in f Q F F I in X under ( ( − ∈ then Im Pred Pred 1 i (union ` ` Pred d generic X direct F ( , ( follo intersections, an predicate e 1 −  1 1 1 Draft I a S that unique) as. g Sets ⊥ unions gument − f of is induction − − amiliar − es  : )( f c c f P ∈ c ⊆ = = ar closed closed initiality edicate : ebr making F Y F i ima truth P e ( e note seen ) and pr ⊆ m the readily if the ⊆ ation alg = = ⊆ ar consequences. P e ar P under e Let a falsity for Y the the ( v from f v we )) (Unary , preserv , , , of Q of Pred i homomorphism F ) ⊆ ha 1 ` P only if a pro − ) Q result , em. d em (necessarily )( ( c → edicate preserv . First is P we 1 ariants xt a ` ( F and lifting pr alently v − P variants variants ( can

ARIANTS ⊆ f or variants Y v ne important f if e in (i) true numbers A In In Similarly F i in ` particular particular Theor Theor . we P →

INV e e of Pred has I (i) (i) Similarly In ( The Earlier In Equi (ii) (ii) (ii) ar ar ∈ carries 1 X oof i variants. generalisation : − f Pr sure variant ants. in so structur and 4.2.5. S stage homomorphism P natural X c 4.2.6. predicate always 4.2. a a a } × ) an all the the au- . y A is ) for X to for x, ariant, B for X ( v polyno- ( × X Once if, R × in a P .

ARIANTS X . ⊆ polynomial y B A yields an of ∃ P → a ⊆ P × X ) | is INV } in of X Y A x ( X : P coalgebra { →

4. i X as ) F  . . 0 a ⊆ ∈ functor , ) ) = (i). also ariant x 0 0 X δ non-deterministic → ( x v ebr is : h R → x x by: R . (ii). i | ( ( predicate 1 P in  1 this X are . π )) ) bisimulation B a Y P P , π : en ) and 4.1.2 a δ : x i a an v a ( ` h ) coalg d  × ` 0 ( for ⇒ ⇒ 4.1.2 f , gi x, is is x f ( 0 0 ( δ , CHAPTER A ( h { states )   sends x x  R P P two ∈ and P )) )) automaton B 0 . X . = ) Lemma ( → → a a ) x x A. d x be lifting ( ( ×

a − − X domain ∀ P P   ) Lemma predicate ∈ ( by since , , )( δ A x x )) ) ) Y automaton F a functor x its A. . . a ( deterministic x x by because ( → X ` ∀ the ) Then: ( ( coalgebra variants. X δ X )( ∈ F successor ) δ δ → P x by: in ( ( this ) a X ∈ ∈ ∈ ( P ⊆ d both ) )( e : the its ∀ → δ both coalgebra 0 0 0 then ) ) δ ⇒ R X Predicate ) i en ( x x x R : F for  ar 1 v P P .t. ⇐ ( P c ` Y ariant. , P ∀ ∀ ∀ . π all P R )( .r for the } gi δ v )( )( then )( )( ) c h ⇒ B , d w F ` as  A. A. A. A. in ) y F F non-deterministic ( F × F

P b ⇐ ( ( ` Pred for and )( c ( ( deterministic × B , ∈ ∈ ∈ ∈ bisimulation lifting x, δ δ an ebr ) F f ( a the ` Rel A × a a a a a ( ) hold. ` ` Rel ariants is , X 1 1 )( R b ariant ∀ ∀ ∀ ∀ Pred Pred id Pred ( v A π π , v w for ) P to ariant ariant bisimulation, x. f X F in coalg in v v ` ` Pred )( no = ∃ a = ⊆ = X )( automaton in ( in ⇒ ⇒ ⇒ ⇒ yields ⊆ c | ⇒ ⇒ F → is an P bisimulation, ( Predicate = = P F by ⇐ ⇐ ⇐ ⇐ y two ariant = ⊆ = P an X . an )( a P R { . v X prediate δ B F is ) ) is ⊆ ⊆ in thus wn continue = in Pred ( w Draft consider x x that R ` ) × Y ( ( Let is P Y Sets c an R 1 is e ne P A w π P P functor 2 × , ) ⊆ will a Pred × W X c )( π relation → no Consider ` Then: id it X R F then ` X ( c X . ⊆ ` the ( state 2 well-kno ∈ the P is F π ` variant ⊆ a ⊆ P x If is Sets for in = ` non-deterministic X : P Pred R holds, , oposition. all F F (i) ⊆ if Suppose A an As , once Lemma. Example. Pr . functor P for X codomain (i) (i) (ii) (ii) (ii) ariant if oof predicate ∈ v mial Pr and functor predicate x since: 106 4.2.2. 4.2.3. functor in Similarly coalgebra predicate This A B tomata. Thus, 4.2.4. . , . It ) ) as X P the x x But 109 The ( ( says with ⊆  men- . or . P P ) F F P > ⊆ satisfies because Proposi- X inclusion (  ⊆ ariants. . Q . operty ws F v ) an see P Hence as already pr in x assume ariant. . coalgebras, ( functor → since: —i.e  as v and homomorphism homomorphism follo P P d are So ) in a X a X for x ⊆  ◦ : ( ariant, fourth an c this ) appear ebr ⊆ ebr v 0 Q Q greatest a is f in these variant  ( ariant. P The But in P of actorisation: v ebr rephrased F d. . of X Hence ould f an coalg with coalg / polynomial with in .  ◦ w , = a h is be Q P ) ator the 0 0 an P ough m of coalg ↔ f ) eatest f that  ⊆ eac Some is es .

 ( ) c a thr 0 ◦ O gr v X may f . oper property F comprehension Q X ( f P X s ariant d P (unique) / gi P (  v ◦ F = . ◦ for c seen coalgebras. if X ◦ the / of  F 0 ) , in as / ) and of  m f f of ⊆ P (i) operty: f m ) This namely P 0 → factor ( ( ◦ ◦ ◦ x . ) . , pr  interior f ( P  c c F F h yields form bisimilarity P X some P Q ator m m already Q structural : ⊆ m ( a It homomorphism an 4.2.5 sal c  e  generality F Y for a = = = = v P is whic a that in:

 oper ough ) ⊆ = with em e , properties with ha   x  v ) ariant 0 xtra  ) , ebr P ( through thr P 4.1.4. v = )  e f f c univer ) viding P ( Q s X we in if —so P along pro ◦ ( P  that Theor important P O R Im vious . homomorphism pro F this  say to P coalg an  X ( w , c a  ( / actors P then e ob By ess in an a only e e f as c F factor , v c ; ◦ F for . v Lemma is henceforth → ) image namely f ) P 0 es Q f ha x xpr belo because X , ha c → sequences. in ( following v e f and m use X the  Q some ( P Draft gi ⊆ the P if inclusion that we for —also F the structur ⊆ Y only   that P clear 4.2.4  Y a ; Consider an noted if → contained lists clear P below abstractly is w we P ariant variants. − ∈ has since then result as  1.3.3 ebr v → get no in ,  a y variant (i) ;  . sho in ) Consider e, ercise  ) e ) in ⇒ x ) v  P edicate be But x we vious: to ( ebr all by Y ar an ( Ex lemma Y wing ( pr Q e . ⊆ ⊆ assumption an P to ( ercise operties e (if)-part P Ob v F in v xt P for vious. F oposition. ⊆ (ii), pr is  P P subcoalg Ex ARIANTS  ha injecti ary bisimilarity follo understood ha ne d P d The (i) a Pr   If P Ob P The opens ⊆ ee → →  in is Lemma. . . if)-part, seems ∈ ) be ) INV subcoalg we its 4.2.4 Y thr v) v) only (i) ) Y The The f (ii) (ii) arbitr m ( (i (i oof oof (iii) (iii) y : st e ( 0 : ( f F f there W This f tioned 4.2.9. fir greatest Pr may Im Pr that tion an Hence elaborated carries 4.2.10. (only 4.2. then , ∈ P of → P the the the the t con- 3.1.5).  same → as of ariant. means v A the between Sets R . ) predicate trees in : this : } Along by: f ARIANTS in )  A xistence making . This both: w F ( 2 e an , ) , . . en x if x ne P . v ( R is A predicate INV ( A Definition algebras xtend ree a gi P binary P e Q P ∈ functors → 4.2.11. = 4. ∼ → the as is t ∧ in ∧ )  result: functor all (see ariant to ) BinT ) w P v / )) X 1 P all shall ( A and ) define 2 sa relation in x ( for ∼ = x ( F ⊆ A  (i)— 2.4.4 ⊆ F A ( for we systematically P / an we )) a, , P Q ] F , homomorphism 2 , / is ∧ c P 1 hold adjoints x a contained 4.2.12 ∧ 4.2.4 important CHAPTER x A already ∈ Here ( of c a, is more polynomial bisimilarity , arbitrary t ) ∼ = node algebra an ∈ structure 1 a , right Example must of we for m x e a an m ( ( that yields v

algebra nil of predicate node | that [ P space ( F ) a theorems for 2 P studied pro initial from one / as: x ariant node algebra tells Proposition v to ( state sequences. be / ⇒ initial precise, see ) a, the ) construct in  P such , ) definition t subalgebra )  P 2 1 ( on trees be arbitrary P ( the form a the on to coalgebra / x x A an will subalgebra P ⇒ used coalgebras ( ( ( the F initial P defining to which greatest a an / that 2 ) on is on , P 2 κ of be rule ) A trees of ree by { be x Q 4.2.5. used the

X ∧ This ( ariant A ) . with id union—by in ) carries ) ) 1.3.2 ( says ∪ v it , ariants P ⊆ 1 coalgebras, be X ) X f will v X = in } it ( f ( BinT x ( ) ∧ limits as: ( , in P X ree ⊆ of predicate f T F ∗ ercise resembles , binary F ) ) × itself an then ( can P under a X 1 ◦ × 1 P Q This ⊆ Ex x nil A is P and κ ∃ similarity → ( ( ) ⊆ BinT A the m { for rephrased commute. × ) A P P P Definition ” see × Q ⊆ X f ) ) orth that the A  greatest )( : closed get be if ariants A ( P A in predicate c ( =  P nil X v T left: ( , Draft ∼ = ( ( F principle ( right equalisers) henceforth in ariants are ) P P ) v + push Let then may : x these the ree of ariants hencef ( Consider P the in 1 coalgebras. v Pred  and logic. m theorem )( on we in 4.3 P chapter = on arbitrary BinT This T coalgebras, ariants ) predicate ( as could  . greatest v w , ) the induction called a “henceforth of an X eatest first + , lifting in vious ( A ( 1 one all definition Pred or T Assume arbitrary X Gr belo temporal pre F Section (products Definition. Example. the . lines, . ⊆ to ree unary of gories The Since In act, uniqueness initiality the f the oof P xt  Among Sets In 4.2.8. te cate by square idea same Predicate limits In 4.2.1 functor describing by 108 Pr 4.2.7. By The Therefore, BinT . of → ws By 111 − then then, . write ,  i (4.3) coalge- ) Indeed, follo product f we property . But Y o coalgebra i Sets ( = f d . i the a tw 0 F This h ◦ in g h = description . i seek: ◦ i 2 d ◦ diagram ) equaliser the ◦ c → d ii i n X from e 2 2 i i we ◦ v an of m f f ◦ p → Y g ii equalising × ) properties. , , forming 2 is 2 1 1 g ◦ : gorical 1 = m f abo ) c ( i f f pair , ε 2 h f X m ◦ g 1 F ˙ hh with × ◦ wing ◦ . X f cate ε the 0 ◦ ) ◦ the 1 as 2 product 2 g hh → i 2 ◦ . i × i c i π c c i π ) required d ◦ p the 2 since see ( 1 follo = ε 0 (coalgebras) ◦ Y X π ˙ say the ◦ n g F e. × : → w X ◦ e 2 , ii

i , the v ( ) ) yields c . are i the ) ◦ ◦ h, is ) 2 d 2 2 1 → i 2 2 , 2 with 2 i g G : f c f 2 π c f → ) − ◦ g 2 i f ( , , ( ( f m m g abo F follo ◦ X , f f 1 ˙ 1 d has E i ◦ n n × 1 , E F F objects U ◦ ◦ ◦ ◦ This ε : f f h g 1 f , maps × coalgebras ε h ◦ ◦ →  1 g . 2 statisfies: ε ε ε h ) ◦ hh f  d, ( ◦ c of 1 c satisfies ε h homomorphisms ◦ thus → ( E ) d ◦ ◦ ◦ ◦ of : , ◦ m m ◦ 2 F . 2 X 1 since: e ◦ ◦ 1 i i i i ◦ ii i p This ( )  c pair ◦ ◦ n n f π . Y 2 π f π π π n 1 1 diagram 1 ) . W since because i : n G f → ε ε i h, ◦ π f π ◦ ◦ × 2 which n ◦ . g map , 2 ( ( ( F ◦ f ) ◦ the ◦ 1 ◦ 1 1 1 e

f ◦ hold, , E m = = = = product = F c c c F F U with f ) , m projection F 1 1 1 i h h h ( h h m 1 2 homomorphism ( ◦ p f π  hh f m → ◦ o coalgebra c E f h h h through : ( i ◦ → h , ε d 2 this form ii ε = tw  × F e c equaliser ======2 ◦ = for pair function 1 f E . ◦ ◦ = = = ii i ˙ c i , : → g coalgebra × 2 ) ) can ( unique = 1 the π p def g map The CoAlg i i f actors homomorphisms m ◦ a f 1 f ◦ ε ε this , Y ◦ ◦ ◦ h in c ( ( 1 ε hh i i we i i the pairs, e f ◦ c c π F F p are ◦ unique gory ◦ is also hh that Draft also n i y 2.1.1. map distinguish i 0 used p to with ◦ ◦ ) w is ii g = = = = = , start, i 2 through the cate 2 to e as coalgebra ε p f m E o ( sho , a rise ) T coalgebra ◦ 1 the → 2 F  construct that unique f is to c , . ε es used d ) in  e hh actors v 4.2.10, w h to ˙ 1 ) f × Definition , → v this is i the ε gi ◦ 2 e ( 1 g c ˙ ha v sho X c × it Y n ( pair functions, F equations ( calculations: for : h ha

ARIANTS to ◦ F from in h ◦ of claim and ii still e ) 2 i 2 if m The The v i 1 e e we c result, easy f c INV → c p dot , ha ( • • W W a i 1 Proposition xt × e F f X 1 product, As cofreeness c hh homomorphism Ne from The W by 4.2. bras , ] ) a a ], or as as by X F and ) to The of e ( sets. , 2 (4.3) . [134 struc- getful Sets 2 2 actors [241 F . 2.1.13 . as f X   , } ( for X xistence 1 . ) in for h c ) e equaliser i → e F coalgebra → and u written ebr d × and

ARIANTS underlying i ( = Y xplicitly Sets X ] structur )  ↑ Y ( restricts 1 the × lik e i an the 2 be e X a map ) F in ε X is the → 1 INV henceforth. is each ( ◦ E 124 coalg for Sets the ) just as , ) X ebr e then F , : of as the 2 →   2.1.14 i e will ( ) 4. appeared of , / / + 3 , ε for i 2 v h F ) ) X } V h ebr F ( ) h Sets -subcoalgebra It 2 1 151 ) V 2 h : ther using X X ε F ) F c , V x h ◦ × ( F X pro ( coalg ( ( )) h V → × 1 F ) g F 2 h g V a × F ( to × ) 2 an . results h ercises 1 h coalg V = g X f 4.2.10 easy 1 X h [105 describing them = 1 V ( F X → c 2.5.3. ) functor h = Q X )) V ( Ex h × constructed i X G u h 2 V in × h ( are ( ) CHAPTER two 1 F First e ◦ h X CoAlg  X x 1 O G i : ariants carries U ( carries are X 2 i CoAlg ε f v : F ( X × ) f from for ) c y ( ε X oducts .   ◦ g 2 in U 1 G vial. in between diagram | ) product CoAlg , gory

: G ◦ i which pr s: : F ) g X × the X f ε c tri i F Proposition , c ( ( Y F U 1 X X π × f the polynomial the . Proposition U ( ). ↑ cate G X ( U / ( ary 1 } Recall X ersal generalised By F + a F = → less 2 F ∈ map v / in X V easy: satisfying 4 , greatest i U see ( a V Equal is as h 1 ( The ε x or ) Sets coalgebras form X E V , uni   h G { X w { F Equal equaliser : / V n F it, arbitr are h o where use er F → n g equalisers, V , h is ∈ , ⊆ ◦ v (in ε  , V with h U → ) tw ◦ e i first on e V f )) h has has g ∀ v 2 V function. m we This h e E , ⊆ Z → of

shall m ( V | h with : f X . as coalgebras. notation ) V W ho h  ( ) m F h Z E 2 abo . 2 × we comes of equaliser gin X ebr Sets 1  in: X ) hoc Sets coalgebras). equaliser It unique be X 2 / × coproducts) E coalgebras). × ( c Equal product a coalgebra the ariant → E e of O ad 1 on reader 1 v G  ˙ coalg of  2 × W    ( X is section and F in X subset c wing the diagram ( via 1 the ( of F the U c ) coalgebras, ˙ products G )) ( X × ) G adjoint. w). , g Sets ) the this g homomorphisms cofree F to the ) , : F F 1 g Draft of follo F , use c U f ( , F f of U F / → and variant ( , ( ( f homomorphism homomorphism belo → the write ( right the in greatest ∈ that with (Equalisers (Products ) case ) m construct ↑  shall g 2 ) u 4.2.10, we endofunctors w , its oposition. its { wed with X Equal Y em em f Equal E ( (coequalisers we ( CoAlg ) e pr form structure G Equal / functor × sho CoAlg shall  F Z → 1 variant  ( = ( e e remainder follo tak consider general equalisers n we coalgebra in which  X in and Z d F F gory W W → ( is Theor Theor , Equal vious xt the we . . the e E G am and for E e   → enience Y product colimits e F In Ne “bounded” cate pr v Proposition gr limits v  oof oof Z U eatest : : Pr the (which for dia polynomial 4.2.11. equaliser: Pr By (unique) 110 4.2.12. ture, The the of functor that lea and con e Then gr through wher sets, e F an an → → in- are U and lead 113 right es X man- e X ( (i) 4.2.10. is v functor uses are h : induced functors notions olv gi gories: a by: f v -coalgebra {−} predicates: reasoning ed  objects functor in and is F en we 4.1.3 . cate v It Pr Sets of which } / / Its other getful for ) gi of functor ) u ) that ” there for getful F ) )( ) F ( Proposition cofree comparable morphisms possibility ( P Y 17.1]. for F Lemma logic hint ε ( which that in . adjoint.  the ) its F special ) bisimilarity ◦ ( the from and in pullback H a F d U F (see morphisms ( Pred ed (  homomorphisms to a ( P 4.2.12. proof -coalgebra.] right of CoAlg coalgebrasº. edCoAlg And oids P → Pr G Sets as  = v a c F / / Theorem field − a Pr Assume . ) the equaliser time → on , temporal consider i a corresponding u analysed it ed )  . P has H X CoAlg → CoAlg of the F / ))( Pr ariant Sets  necessity instead U

commute ( [216 the Also adjoint K are v coalgebra Theorem ®rst ) formed into Y same “ ⊆ → , Sets {−} ε in required of of F use ) U ( of ) ( be form are because with the Y P then → F H s right i → ( the , ( 4.1.8. ªpredicates 7− ) a ◦ Y at can The ability H of eloped edCoAlg then ) proof i v diagrams ) X of K v by e ⊆ ) ( greatest ]. [216] coalgebras, ) ( o F Pr notions X Sets are → CoAlg Sets 2.5.3), ) F ( G + F : de the : pro Q and en : in F 43 ( K tw of the ⊆ , F ( , v Y ( , > ) ( in H edCoAlg the : carrier | gi )) → , commuting P has d {−} generalisation e

on Y  and > ) , Pr than ( Y F a ed O which Proposition 226 ) h ( It the P wing lik Y F F , X c ( gories ) Pr Sets in X G h )) edCoAlg / U / ( mild edCoAlg G F e functor F which CoAlg → edCoAlg Y ( proof a Pr follo Proposition F then 160 F ( adjoint U cate

ALGEBRAS Pr lik ( functor much , Pr ) U Y in ecution is F is in h pairs functors c → F x coalgebras, the F -coalgebra e coalgebras, ∈

CO e − ( E gory right 122 F → coalgebras → H u coalgebra → operators. lik of gory , a  CoAlg − { X getful logic ) result also predicate OF h cate Pred between i Y of instead, 95 Y cofree ( for Draft . cate has ) , ( elementary of X (and ) in: K = a that this G ariant gories e > Q has modal → truth ⊆ the program v ( induced e [69 F polynomial arbitrary ed − O gorical 1 v 4.1.4). lik a Sets in U F to transformation, P more logic o E that , cate −

LOGIC : that , an Pr the Sets > if f e ) )) pro H tw e (in branch cate functor de®ne diagram v U or X X ⊆ a e ( ( F xt special say that wledge, the , F coalgebras-predicate F Lemma P Check And using adjoint W De®ne Pro natural is instance e ne greatest slightly and v Y a between via in a F v) kno Hint. for (i on Pro as (vi) The to [ arbitrary (v) equaliser Consider U by K The emporal logic T see TEMPORAL time, e estigated, lik ners, v 4.2.5. 4.3. 4.3 Modal . . - ) is f ut → P ii all the ⊆ X into b 2 4.6], ( ) both alter f truth , ], ∈ to getful lifting P F X , mono. ( is ®ts that 1 analogy arbitrary an x function for colimits f ⊆ the is → codomain e this [130 [130  in e w function by v an hh v all

ARIANTS P to a m e, its X ( gi that v : see see = kno vious c X for to that functor INV predicate h Sets Apply and Pro w ob e Q when . . surjecti v set operator wed types X 4. no B F → an situation: a that ∈ . ericse because Pro id a ⊆ sho ery x U .] ) 0 w we v e ed . morphisms x g is e Z coalgebra = R ª®brationº, ( to then F subset Pr 1 f a Sho s Its = : describes functor π → ariant. is polynomial : sending v or is ◦ h vious henceforth . it there 2.1.13 uniqueness: U ‘ a some Q in ed X  It g ◦ {−} : congruence. sets. ed pre

CHAPTER adjoint of . the Pr f Sets to Choice: functor a an n that for / / and There Pr on X c ws. 3.2.7; as is is of the P functor with of coalgebras, ) . so that to ) right get , domain {−} ) → Z X beh X

A polynomial ebr ) required Q w functor > is F for ~ ( follo a ⊆ its with × ( is a ⊆ X we 1 2.1.14 ercise 4.2.6. to F → > ed ) O . diagram: sho 0 − of the > as X f Axiom P ⊆ g Sets Ex f

xist i.e ( Pr ( comprehension, Sets coalg B a polynomial typeº mapping Pred : ( both e : ⊆ ◦ that P a of > get s then Im actorisation of the ⊆ ( Y polynomial e f P U together v ) m adjoint ercises of a δ then of P we Theorem F and ed algebras →  the = ( Ex Pro ‘ ªsubset situation be ®nality ii or image . commuting Pr in Sets g U be right 3.1.4 ) 2 functor X predicates (ordinary) a or

function w : analogue f by from is Z Q its mapping Y X the equalisers form, ersion then , f of ,2]). a in no v 1 if ]. here. b V . ⊆ the ⊆ coalgebra f  → since , CoAlg {−} ) ) i.e that is hh ) X Sets ant congruence, gory ariants. f [134 ( only Y v Theorem P ariant, describe v ( wing a gorical Sets predicate ( de®ned and = ( v ®nal functor [167 that → in = , induction gory in f 0 cate F is [85] ws Im is in a rele functions seen e g and ) g cate → be ‘ v follo that: ®rst ed . Y summarise are Z if an X  ◦ section, the , ) = and cate ( ery ) follo are ªtruthº Pr × a Pro from Y is Z v unary n ªcomprehensionº the h : → > X Draft be ) ( It . a X X forms will can coinduction. 4.2.2 a ⊆ X U ◦ X of ) F Sets Y instance The P has is X a not ed induction already : → alently F : abstract, n R by part ⊆ ⊆ we v ( result e is F ⊆ ) f 7→ Pr B → since 2 = ∼ e for ◦ v in Recall ercise π , R ) v P − X xt proof x domain Q ( cocomplete ha  e Lemma that There X predicate functor ‘ ( Equi Pred De®ne If Let If Let m e ne binary structure. Z F v sets ollary. (see its A Hence we : and Hint. (ii) this surjecti (i) with for (ii) (i) nati function [ on (iii) de®nable Let g The Use This Let Cor xist e Similarly Hence xist. cises e Since complete also 4.2.13. limits 4.2.3. 4.2.2. 4.2.4. 112 Exer 4.2.1. . is Q ]), the the ga- MI this 115 con- ] ne states cofree that opera- It the [120 system then and describe , from predicate mentions [120 on the with Q . . h those ) it ? the is will 4.3 (from xy

e A writing for } Bac system ( P ) temporal ∧ , → W re ®n )  − obtained xy P y P or her )) Figure y holds U = ) meta-question whether S be “MU-puzzle”. other xamples. ⊆ finite. , x → in that It terminology Esc ¬ z e combining UU ) transitions xx ) . ? is 5.1]) = x o Q ∧ can S P )

The M symbols. A production z By by: y . tw if )( table ¬ define IU ¨ simple

= odel, P U ∧ operators. wing F x ant en in MU ∧ a ¬ G ( z , this UU ∧ v v y y I

operator can conclude x = The  , P ∧ one: Section U gi (UTS) III logic. P . ( follo terminology , z e x ( rele x coalgebraic ¬ M = x Pred is P Definition 1 ∨ book using Both one W string ∧ ) M S. of = in w → [62 the − ? I final ( ν ν . temporal c Q . − } x = ( w A his right-hand-side the P .g by system ∨ ( ( U y coalgebras e , nexttime the = w temporal in I ®n  . III ( ard) en temporal , of the µS. symbols ? P x w systems v in points ∨ ( . M satisfying A ⊆ ong (see ? gi on produced. { →

. the into ed ∈ A hence P (forw is P ? whether str logic Q ? P it be set set y Q xplains fix transition A ∈ state A is e formal xx (re)formulated y x, and ∈ ] put This can system that the ∃ M this

ALGEBRAS on x be x, until to ∨ ∃ e xttime w be so , → entually [120 Meaning v fundamental Standard P

CO MU | so-called , v temporal system greatest ne − containing can A Or e henceforth ? is in P unlabeled . x successor A OF each the the strings 4.1: Hofstadter a M and

in alphabet. an Draft coalgebra, ∈ , is string MU is production for by Q µ z ∗ strings ¬ as perspecti P P P { this answer) U alphabet the transition el →  ♦ such

Figure that er

LOGIC v IU − its P v Notation illustrate ¬ Douglas considered x operator our → “Post” points o actually see 7− contained xt MI certain system operators. → also ed wheter to ne − meta-le greatest is I fix w xttime parametrised there x associated strings simple instance (and ariant question hard ne wheter a v therefore the shall and of are or Example. -coalgebra. the least standard e in ) ? is is, TEMPORAL F of not generating Let The The W production w which − A an ( P is fe considered question sists for set That It the object- Thus, 

tions, which is 4.3.3. tors. a 4.3. for , . . . - e ]. ) ⊆ w on → on xt, P in- we W and eral X ) ( Q S v logic Ne

a” , [136 define gener belo P X se tempo- P ( e

concen- manner functor) ⊆ Here ebr by ws P on W ], by immediate ∧ special states, coalgebras

ARIANTS P for ) . the operators. 4.3.7 if ariant. − F of P section. as -made v 174 follo ( start INV temporal coalgebras. -coalg , in e ariants. (and

uniform 7→ operties. to future v only whose eloped of 4. c W (ii) a seen an ∧ pr tailor v 201 in This S of a , ee functor in present de is temporal P and be endofunctor w and definitions: homomorphism . about . all if 4.1.3 Proposition ator ) the spaces } etc. a [200 , ho an and ) “cofr Q x approach more in may is of P in is coalgebra P } oper following e: functor

homomorphism f sequences. } ) )( the CHAPTER lifting state ( v it definition. ) a in x talking 1 variant F the x ( Lemma is the ha ( the polynomial the ( − coalgebras, states for in or the pointwise Q f a 4.3.1. illustrate Q precise F on subsequently subject since by of

we

} inclusion. an on construct = of Pred ∧ ⇒ ) Hence via 

4.2.8 ) generic x Y ) other especially the is ) ) coalgebraic those to by . predicate ∈ and ( x x a P Q satisfies made ) ) ( ( ] ⊆ Q point. to contained P X 1 be operators, ed )( x point—of for Q ¬ P P − ( The is Q edicates.

via be

F ⊆ used with | | | c systems—which ) particular f ) )( operator ( last der coalgebra ( [183 | Subsection ocated pr will P Q operator as: P Q F ⊆ a predicates coalgebra in be X X X or true ( 1 fixed

) in Definition )( of will ator the predicates,  X a is adv − Pred ∈ ∈ ∈ systems P the as F X as: f confusion. 2.2.4). This ∈ to ( temporal (

will will be es: x x x P 1 xttime Moss is with Pred om and of

)( g { { { P . oper x ) ]. − P 1 predicate to ebr This fr es )  ne { c eatest transition

F − coalgebra, a by v X . ( and ) a Pred

Q edicates ⇒ ard” ( → P gr ima deal a 163 1 because = f = = P sections) constructions ) operators pr lead , ( F that for − , = = 

coalg ard se and Q ) transition This xttime d ( second Pred F w X systems of ) 1 1 will ( 1 1 → P P Q Q 190 with not ne fe results. “forw its ⊆ ver − − Subsection Y − − a—or ard” , P note P (inter ¬ connecti the a forw  f c f c aspects, ∧ in : X F satisfy ve ( ⇒ as dependence P from : predicate gory described

ebr , c P variant

136 does (see d y Draft

with P first e → put vious , = = = = abo in the operators seen section v with meets an the cate ∧ e ob “backw Let Y ha this logical v ( coalgebras. coalg 165 ) if boolean , state-based first illustrate associated The P this , starts variants Q point, lea we → f 1 the eatest operators e) in in with operator poset ⊆ be − some − v already 211 final monotone: gr other eserves we only ) last f , usual e temporal 1.3 coalgebras P ideas ( states, the e v is commutes has pr to are Usually can X the these  logic of

understand W the ha It It It The It on the it that F on [209 (reacti Lemma. Definition. . is . e e xposition ) ) or c e wing continue elaborate v) → (i) it The W Here W F nexttime logic (v) (ii) X X (i Section oof (iii) , : ( ( xtend xtends X X will e The others follo In ral 4.3.2. will P 4.3.1. implicit. e the alising Notice ( stances P P Pr 114 about successor Indeed, trating ’ ) is (as of λ z via ‘ y 117 ¨ come con- BT This ohm ( used what trees, B B w xz namely The be ariables xplicitly . can ∈ , v . elements e z for ) B kno i actullay function trees. A . the will rooted free ) one m      can of to λxy i ) It the of ) A ) ? call λx. i , . ay which ) we ¨ m ) ohm . B to w that . ~ hi B B A need notation B . × ( , , , tree in F ζ infinite, z number z 1 wish F , V , mind for property ζ ariable. F w A O F y ~ v hi B h in × F ∗ ( ( really / ne , similar combinator F may tree. ∼ = 1 ®nite _ ? F y coalgebra a = = a F S a − , eep ersal standard finality: V F elements i k not _ ζ one · ) ) e v . ( h v possibly n · In y ¨ ohm to A A , the ariables · V _ x + ha . ( ( the final do via . y

uni y v B , ) y ζ ζ arbitrary n those , Then 1 ∈ e . write: _ y / define x . y . hi ) if if M good hi the _ y . y W only . B the an ? ( z _ y y , . , is with free x, 1 only i y . can . _ < of 1 y , y ) → < it can x − _ can be y BT 1 i < x ) < ζ ~ instance, B _ h B 1 Λ x -term with , we “empty” branching, _ ( treeº : , h × V trees. man But λx ) x we A λ ( or _ z → ( B . 1 Ò _ , F hi , define BT = id ∈ a -terms Ò ζ z so. the ) , _ ork y − ~ Ò ohm analogy λ B ∈ ) È Ò BT ? z x _ · ¨ ζ × ohm of w to ariables do ,      _ A z B

ªB v A B x ) ∈ ( _ λxy id finitely as ( hi the ) This trees. ζ _ from ( arbitrarily × = ( not Let 1 1 or M function xamples. can . B 1 call _ e for A ) − ( e ) F _ v V + logic , − ⊥ ζ ∗ A _ the thus y ζ ha ( shall ¨ w ( × ohm we _ ALGEBRAS and id h BT 1 . ζ e when of ? B coming tree fe ( _ ) n w − can W ? x, suggest are B

CO a ζ x obtained , ( _ vie (abstract B Λ . tree useful. i e B to . trees = is z v + image of ¨ _ B . ohm for × OF finite , definitions. trees. temporal be 1 or gi x 1 of B because y applies : Draft B _ ¨ of the V of ohm ohm e 1 È A O used x, e, λx B in ∈ B − Λ ohm W h × È λx. restricted , may ζ ( B lik ? B 1 using elements λx. are kind ⊥ the LOGIC hnf − ⊥ V picture form ( tree as: ζ more = erse is: by sugar arbitrary trees. elements xample, a v look elements ) + e which preliminary e picture the in . 1 arious A v whereas an write ªabstractº or define ¨ ohm a ( v the F The i.e ¨ ha of ohm ζ B B second w the us w), en e. B picture ]. v some v obtained set But proceed no -abstraction: call may syntactic . the belo λ struct is Its Gi The Let elements e e -terms, [28

TEMPORAL labels λ can • • W Using W • One surjecti whole 1 just e W is construct from trees requires the with not where these de®ned 4.3. finality , , s e ) ∈ ’ be an v I on the the last ) [28 MI term does ha shall (4.4) ∗ from of ( to ( opera- -terms certain 1 will P he number call and λ see form we we κ , an ♦ carries of o

ARIANTS form ariable” m the polynomial for first es tw v (Λ) does number applies if M which stage arbitrary and ∗ obtained Also, thus course . ) ,

INV F the of olv 2.3.9. . ∗ normal . the lambda-calculus, . he ) v the . an be for of MI xx 3 ? this

4. , “free → → N 1 ( in normal P M ut − write er X of coalgebra P 4.3.7. It Λ M b head M of that v that gument -terms :  y × ∧ → ) λ . ar so we head no cannot − 1 consider untyped } V Theorem hnf ariant MI final x of 10]. reached sees e x ( v . Ho MU simply en, vides, × transitions, a e . has has the by Λ notion MU P M in W v MU between . v multiple ? . e

CHAPTER = 1 of pro a ∧ similar = V M M then ha an set and x ( ) be Proposition a application with .  x . i xists if λx if ) used ? Thus function ) , e Chapter | not + P κ we in 3; one .

e , The ? MU V X 1 ) ) is MI ∈ v MU i must . of A ariables. transition ( ∈ × x )( 6 = ∈ x [28 ha v m m n } appropriate MU ) ∈ : ∃ P Once parametrised x terminology V ( in consisting x Hofstadter producing x ~ M . M as x amiliarity s , we see , MI . P an ’ f P × MU . I . ⇒ ⇒ by then w . . ¬{ ? especially induction four and , second that , ∈ . = ) ) 1 multiple of not v ~ ) e n V ariant. , ⊆ ( x 1 v from x v 3 a coprojections trees, 2 see M some MI MI ∀ the ut | MI ariables define ( ( in , y P κ easy b is M + relation v

. . ? be proof h )( , elements w abo , in ¬ P P reduction, the 1 , head-normal-form xample, ) to n } an . . . illustration. A -coalgebra—which an e ¨ for y ohm s; x xx number ’ its , = . is F ) MI The I the B ∈ belo i starting . ( the from ) MU x ~ ariant in By same n by . omit assumes x P form of , formulation used v of of P the of . ariant ariant ariant x 1 X . = already by w v v v , ( in en final ¬{ i.e the , . be x v ( counter in in in M λx F . v ~ P en | holds, ( . a technical, ⇒ gi often  v think the P P P def , , xample. ? must ariant: xample ⇐ 1 theory ¬ ∀ ¬∃ ∀ ∀ e λx. clearly gi normal obtained will Λ number ) e A v property x and Draft form for h x and in ∈ its ∗ ( vides ∈ shall ) more ) ) Sets the are , M the , ? x coalgebraic ⇒ ⇒ ⇒ ⇒ ⇒ systematically B x the ( head This entually an ( logic V essentially M pro        { → X namely: we in ⇐ ⇐ ⇐ ⇐ ⇐ v Thus, ( P ] , e F with of is xample: ) × ♦ for ” for e set structure, terms same more = → right-hand-side, ∼ = abstraction ‘hereditary’. V another a change [120 Sets − MU clearly hence : MU ( is P × ) concludes proof the xample the emporal B 8.3]: fix F is P not and ? written e to : T model Example. M , e ζ trees. in counter transition. V ( P (and especially ( do be use s This This Lambda W Here not N ’ estigated this . I x as , -coalgebra v + hnf ut not property MI P Section In 1 functor in This third M 116 “equal F these 4.3.4. can one in of write and trees. tional Hofstadter b . x an F om this 119 of with later fr “sin- ) as: werset into a , in: F po ( only transition state functor (i) coalgebras ed (i) the and oduce Pr coincides use reconsider , of operator from coalgebra intr → ) 4.3.5 we − } This unlabeled ) X shall successor lifting ( . ) x ) . polynomial (iii) an x , is xttime P write ) x ) we 6 = a ( x or ne 6 = · c ) X system Lemma arbitrary we F → 0 · of ( into translation 6 = )( ( . ∈ x ) · edicate there F ) F an by X  0 4.3.9, X ( y 6⊆ ) } } } )( X = pr . x if 0 : ) . ⊆ ( ) ∈ x x ) strong · 0 c

) F ed x 6 = ( 0 x ( to F x turn Q x earlier ( Q  · = 6 = x for Pr 6 = ( , the )( ¬ ) P transition 6 = to only y y · } → 6 = x coalgebra . definition. 6⊆ · ¬ the F | | ( a Pred ) )( w · ( (

1 ay via ( Theorem X used x Q − as 6∈ P 6⊆ − : ne X X ¬ and \ w the ⊆ adjoint ( f | − 0 c edicate

in = element . ⇒ ∈ coalgebra a x ∈ ∈ if ← Q Pred } y · pr ∈ 6∈ X | | ⇐ ( a 0 this : x y y left on an . Pred a same x { ¬ { { x x arbitrary a a from ) ∈ X of relation { { x 1

) = ⇒ ⇒ for x ( abstract an x the − → and c 6∈ 6∈ { and ⇐ ⇐ on later standardly c = = = = ⇒ ⇒ − ) ) 4.1.1.  coalgebra 6 = an ∈ get F X is 6∈ x x x ⇐ ⇐ · ) a 0 turn x ( ( ) ) 0 ( and ⇒ c x c ALGEBRAS x e x x Q 6 = x lowering” we set 0 v , ⊆ ⇐ seen · we e. transition )( properties actually x edicate = 6 =

CO v e , ha → X a 1 immediately F · · P v ⇒ ⇒ ⇒ ⇒ pr is ay ary functor ( ( ( ) − Here, − → X the w what w it ⇐ ⇐ ⇐ ⇐ → ha − we

OF f Q − x Subsection − ⊆ edicate transition Draft )( x Y ← Pred ) we define : arbitr this a 0 F that P follo ( ∈ “pr perspecti f x from w is In an − system. we x estigate ed (ii) . 6 = LOGIC − v 0 Assume the consider 4.1.7 notation · Pr ← or sho + X polynomial x in ( F since: is a edicate ∈ there to (i)

) the first 0 pr function temporal first systems “non-singleton” F x 6∈ for 4.3.9 a a ( 4.1.1. a 4.3.6 us that transition x x, − ed equal or or Then − and Points shall F F And let . ← Pr is Proposition Lemma. Definition. . e from

TEMPORAL says e (i) So In W states (ii) oof transition Theorem (iii) Then: wher gleton” 4.3.5. This Definition in to topic unlabeled functor Subsection Pr On 4.3.6. which 4.3. system. a is A for the the see ) and it . . ¨ This only ohm in trees 18.3] is A } A which B . ( is n ws: infinite that  x  S i defining x ) reached, concrete arbitrary in defines , j . ¬ for ¨ ohm  so on ))) tree .

ARIANTS } is ) in e A A w) . B that follo an n trees − (

. A notation, ( instance, Section -calculus, x x B lik , then of some as ¬ variables , , , λ

INV 1 alse, ¨ wer ohm FV for ))( . belo f x FV B Hv for . ¨ B ohm ’ ee for { − ∈ po [28 4. . tree . ( ∈ a B i fr . , µS. ) e are x − abstract 1 x y in special v predicates x tree and A ) ‘f.p. is x of of  ( FV functor one: ( for formula defined ) { that = = A ) m.  ¬ ( relation B as our ∈ ) V m A (untyped) x x x − x used ≤ ( are x some

A  ⊆ ( hold on ( until j xpressi ) until Hv ¬ ) the e ¬ ) ∃ FV and and sensible Abs B m to ariables, CHAPTER specific A FV ∧ A A successor v ( of ¬ ∨ e a ∈ A (

m m  model and which This x ( a ∪ e ) → y B B ∧ of ¬ x ) lik transition · coalgebra x . (indicated . . FV denotational is · x ∅ . . FV B A

define = ∨ introduce olv · . . in a ( . . Abs ¨ ohm v ) x x ∪ adequate set to × m m 1 1 trees, ¬ to Hv Abs ∪ models B A ould trees in final ( · ( A = B B B B ¬ ) not there ( · B w , , ∧ 1 y y at · abstracted x on ∨ the U Abs . . the if ∧ . . not the vide ¨ A used ) } ohm . . ) property x ∪ n n U ( we x . . and x Hv n abstraction. A B useful A the x x on ) , , x (unlabeled) pro be ( . . 1 1 1 both , that is ]. FV Hv . . does in on Abs ∧ . ( A define that . . B B to Abs point tree it an . FV successor ( ∪ er ¬ ) x x ∃ ∃ 1 1 can e . ¬ operation [71 U v w . . then

, v } A then es ed n n , ( of FV 1 lambda all x ∧ defining Hv y λx λx , 4.3: logic calculus defined or no 4.3: ’. we x x x information ¨ x { ohm m ) a B x fix pro , , ∪ olv { in is = = ⇒ B . . A ho − v ⊥ 4.3 } and in Abs . . . ( can a ∈ 6∈ Hv ⇐ Abs y . . B B in . the 2.5], ¬ ( x properties = definition , , { . more   ¬ x x and operators in Figure 1 1 FV Figure It 1 we lambda ) A x x or used application temporal ∈ A the in Abs A ∃ ∃ F B Figure if from occurrence y ( e free ⇒ ⇒ ⇒ ⇒ ⇒ x the = of . an U def from f.p. ‘ v definitions ∈ not set. crucial in Section n ⇐ ⇐ ⇐ ⇐ ⇐ is application emphasise ws FV Draft gi of , the U x ⇒ ⇒ o is ) A x . ariable”, temporal ∈ generic. . ⇐ ⇐ ) A v x tw we then ( . w x follo A because define point [130 , is Such results. 1 empty tree ( namely ) ) B predicates generic ho operator FV should model , to ut ed then B B λx ⊥ V], FV e ariable b application B the ( ( itself, “head operator ws w v describes x x fix ¨ result ohm holds The = = W Before ∈ xt e, a are B art x until on B as ho approximations. v x sho P A A Hv ne a , until Abs , ariable. least yields the This This If If auxiliary associated Abs abo v or B ords: [28 clear Our F This There the coinduction. finite 2. 1. operational . ∈ w the occurs .g coalgebra. some trees x e via B In head via including structures. 118 in via predicate Thus not an situations. is is in re- ard ” 121 (im- state shall x predi- Using the e wering an there to . a between W lo temporal In F backw is lasttime 4.3.6. considering and ard are introduced , equal 4.1.1. because: by , F alence (iii) there ) − is ♦ ← by v weak only predecessor functor . F if h 4.3.8 ( predicate } coalgebras backw X alent operators. ) x by and v equi 4.3.5 x system of Definition (4.2) ( on whic counterparts. the via − Pred : functor  an 0 ← Q in in equi P , Subsection state x to . ard a − ) ) in

← of ⇒ are } ” Lemma Definition temporal setting F polynomial used used of states earlier ansition ( P P reasoning, Q a between happens corresponding tr It by as by as −

ard ∈ backw the state − (4.2), ⊆ of lasttime (non-immediate) e ← Pred x polynomial ) ) v holds in ard” | 0 P The called a This ) )) . x , X ) ha x . ( P analogues: backw x relation of definitions − coalgebras. ) within c ( 6 = some

← P F = } ) , c containing · “forw unlabeled ) · adjoint which ` { is by the ariant er of ( X edecessor x )( predicate , → announced. v ( states. v c ( )( )( main these an on c F pr anslation w on in F F F left ( ` { X we ) ( ( , tr ariant 0 operators

for : ne the there )( )( v − − c x Q satisfies transition → as a Ho the − − vious F F if ∀ 4.3.6; in of Pred a the induced ws ( ( define ← ← Pred Pred 6 = already operator | xtension X x w ard e · − − pre : 6⊆ . in via ( ebr − − ) c as

ALGEBRAS X same } . least x Pred ← Pred ← = = also which w immediate ) define

∈ temporal states. x concentrate i.e state ervie

CO ∈ ∈ = concentrated x the ( used 6∈ v x an backw 0 0 systems a c about coalg · we e ) can o P { “the that infinite ( underarro lasttime x x { x ard Definition , v } of is OF a of ) − − shall

e X ← then

and ← an ha x Draft future one om coalgebra ( = = lifting, . ards ong brief forw is ∈ c ⇒ ⇒ ⇒ ⇒ fr we a result reason state − { 0 ♦ a ard we

) ← ⇐ ⇐ ⇐ ⇐ str holds a 0 “ther x )( or easoning P the transition to es x

LOGIC e about define r carrier F F v P v ) and Consider − holds. backw ( ♦ forw ← 6 = ator x gi ay gi elation its − ⇒ ⇒ that − ♦ section ·  r ← ed P w talk ( predicate − section transitions. , = ⇐ ⇐ em. on ← Pr easily with we · oper

out

these 4.1.1. ( so-called this 4.3.1 via 0 ∈ that X and this predecessor 6∈ − x 0

of ← of can which first (unlabeled) of All the x x Backward ⊆ in . natural ansition ∈ Definition. Theor turns . → ¬ is TEMPORAL predicate 0 tr a for P − ar (i) notation It One Figure But lasttime x f (ii) − x oof x

← ersions arious use v cate 4.3.8. Subsection instead also So 4.3.1 operators This mediate) Pr This ¬ mainder This of operators v 4.3.9. 4.3. the } if ⊆ e- to Q in ) 0 we the and x P , ( as y that (iii) only  P coalg Assume equal ∗ predicate operties. a

ARIANTS is and pr → ⇒ implication xpressed same 4.3.5 by h since e ork. − the if 0 definition, w ,

INV x x the be The P ∗ whic of e .

4. established times x → ar

i.e can e bit Lemma induced − of following a , v of a consider ) ⊆ x . by y , ha . 0 transition ( ebr equivalent. 0 the . do P P x x Q e ¬ 4.3.6, , state if to we ∀ ∗  ) definitions. ar 0 if  e | number coalg

CHAPTER x operators v in → ) ¬ ( x 0 satisfy − ) the only { } ha x 0 P once , } ) . = (ii): ( temporal ∗ ) . x 0 x } equivalent. ; 0 ) ( ; x ) P 0

e we ⇒ ♦ x ) 0 ws e ( → and 0 Definition X ( v x P successor ) x ( − x this 0 P ar original ( ⇒ if P ( statements is ⊆ x e temporal using P ⇒ erse contained ) pro om P appropriate follo 0 in P e . v since ) fr predicate P the ⇒ ) ee system. 6 = x is unfolding ) ⇒ ∧ 0 to } re 0 the an · ⇒ ) y 0 0 . it x 0 → ⇒ thr 6 = ther ariant ( (b) on ) x )( x x the ( closur 0 by 0 x v ) − ( · s the (a) 0 Q x P ∗ ∗ c F x Q in that P following )( x ( ( { ∗ order ) is → ws ⊆ → → that )( F for P )( from so use variants ansition − hence ator P an ( − −

→ → ) In the F out , tr F confidence in ut } )( x Pred − − ( consequence ) , ( is x x ⇒ . elation ) use b . follo ansitive x r . . can ventually 0 F following (a); 0 x x x 0 0 − X oper ( P 6⊆ tr Pred ( e all which ( P x x − x x c , . ∧ ∧ Q we } ∀ Pred (c) ∈ 0 turns al Pred ← 6∈ we ∀ ∃ (ii), easy { ) the via some directly | ) ) ) 0 y for | | → i.e ) ws. , , x ⊆ xive )( Pred ∈ It x x , x ( ∗ ⇔ , ⊇ − x ( ( (b) ) an 0 X c ) since ( X X ( ws } relation. 0 F X X 0 ∈ unlabeled ariants ansition ) x, x { c x ( P P → from x efle x is v of ∈ . . . . ) follo x . . r ( ⊆ ⊆ (b) tr or ∈ ∈ 0 0 0 0 tempor (i) − − ariant, ( Clearly ) ; x variant; in F gained − x 0 x x x x c P v X X ( = follo x x as x P P its Draft . ⊆ { . x ← ∀ { Pred ∀ ∀ ∀ c in e { { · in ( this the y The ∈ ∈ ( all v states ∗ P ⇒ (c) = 0 0 from = = an ∗ ♦ induced ) an ha directly alence x x and → transition ⊆ properties. ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ x P for But v , is that ary P P ∈ → − is ( ) reason x, x, clearly w ) ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ the P ws − edicate edicate 0 we  ♦ ∀ x x P ∀ P

point e X x ne equi pr pr  ( x ( and on W inclusion says a arbitr a P F then follo P (c) (c) (c) . (b) (a) (b) (b) (a) (a) that further oposition. P the ariant. , . ⇒ third 0 and (i) the 0 P v or or or Immediate The def

→ w y Pr (b) ⇒ ⇐ x This ones F F F of . in  P or ∈ ) ) X No The F → ⇒ (ii) y  x x (i) ⊆ oof an (iii) a − ( (ii) ( (iii) Q 120 Pr y br contains consider

is 4.3.7. terms P (a) P - a to A or be ay er ) ∈ sys- w 123 x be used P Ex (ii) ) ) a state ) 0 will is n ].] , − ♦ in ← x X x it Problem. } ( ( ( ( 0 wing the e f 136 y x 4.3.5 Q P Q , element lik ‘ on ∗ ∧ ∧ follo functor Here , speci®c ) functor). → . ) transitition an ) = → U a [154 P X Whisk 2 ) − to +1 A the ( +1 n i i in : P Lemma for x P x x . − in logic. the f . P ⇒

← y transformations .) P N ‘ → as → → − use U 4.3.6. ( = ∈

← − − Let [ 2 ∈ ) n to ) polynomial − i containing polynomial i ♦ . 0 . ← . ) a X ) x x for x and x a ( y P A natural coalgebras ( x ∃ satisfying ( temporal = of n. f described P n. | , − ” of (of ♦ = U ← → } 0 ∧ < · × ) < 2 X systematically be ) = / referred ( x 0 from 4.3.6, i i P ) x De®nition P

{ A { x ∀ { − linear ∀ and is ♦ { : ( { ← X ( − similarly { − can ♦ { ) ))( ← ( h

it ← = { in { → b ∧ ∈ { ( x ∧ { ( P { coalgebra i − from transformation f { 0 studied : { and x { x . coalgebra P = x P , x } S } ( of ‘ U h X coalgebra · ) . ) , 4.3.1) = composition = 0 P i ( F are i

where a translation

= De®nition ! U x 2 × x coalgebras, a 0 n x n − and ♦ ( ( ∃ ← ) ⇒ C x x and of C 5], natural and C of as ⇒ . . X C

P space the P P C 4.3.1. ⇐ } C n n = a logic . ) C automation 0 C ) arbitrary f C ; Y ⊆ from x x n. 0 C x

of endofunction x 4.3 } C ) ⇒ C

, , F 0 C as ‘ C y x ( an . . space P ∗ state < > → x ( = → ⇐ ))( { . . → an n operators U i i b − . . ∗ Section of − proof − Figure ))(

→ ( − 2

P , , ∀ ∀ ← ♦ , X b ← the coalgebras. Pred h 0 0 − : ( described y → in in state ( temporal ∧ ∧ x x N h f Figures +1 with ALGEBRAS − of [65 x . on ( ∃ ∃ P ∈ n be ) logic → \ n x | the ªsinceº A for P y P − ) n. n. relation

CO A. 0 functoriality (see relation ariants . ordsÐthat ) ∃ ∃ Q can operator x on v from ))( ⇒ | | x set ∈ w { P = and a ( it in )  x and OF x b ( the 4.3.3.] ( en f challenge y , in { { = ∀ = 1 P Draft a | temporal )( P connections ( − P that tak i b P xttime predicate least f homorphism (  x as transition = ªuntilº = = X is  w h states a the a U coalgebra ercise transition ne ; P connections predicate .] = arbitrary xplain ) ∈ the P (4.2). homomorphism a e

LOGIC in P ) the y P that Ex the : Sho for 0 A. for Galois a x Q Q this the an there the in Q )( of wing { of X for 1 ∈ is

a e S U “ ] ( that the − Use that Galois b then that that: ∈ X that f that notation lik f  P ∀ P P e eÐand e e e used e 4.1.3. follo y ( v v v v v v [216 terms is  predicate erify Hint. [ (iii) (i) (ii) and Pro cise [Such tems when a Note parametrised Consider in in (Where space It formulated [The pro Pro V Consider Check The Pro Pro Describe Pro

TEMPORAL 4.3.10. 4.3.6. 4.3.7. 4.3.5. 4.3.8. 4.3.9. 4.3.3. 4.3.11. 4.3. 4.3.4. e x of W ∗ → where property − x terms side. y ∗

ARIANTS in e: point −  a, →

 v ← adjoint − a hand ed a INV with a pro ebr y connection − left − ®x ♦ ← ♦

4. ← say a and right , with ) coalg is operators x with. ) a Galois ( the . (ii). 0 greatest ) F 4.3.3, say of ( P a , . MI ) for . − P )) if operators. ) − x )( 0 } 4.3.7 (

CHAPTER S :  y ← Pred ) 0 dealing ) x ) temporal from ( y space Q M − 0 P S P (

← Example ws c are P ⊆ = P . if − ⊆ ard P ∧

since ` x 0 P . ¬ ∧ state . we ) temporal ∨ follo logicº: P )( from ¬ P ? . thus ( (ii): − x P ♦ } ) ← } F A P − ) the ? ♦ ) ( . ∨ ∗ backw ← ( Proposition that y ¬

} ∈ ard) y A } Definition − and ) ( ( then ) } ¬ on Q → − y ) 0 = y by 4.3.7 y , ( ®n ⇒ P the ∃ ( − ]. µS. ← Pred rule ( y x · = ) . temporal ( X P P ( a P containing ? P ∗ x P y coalgebra ) of ( ( P − − . of µS. ⇒  A } ⊆

← [120 → ← (backw ∧ ) ∧ for  → y ) Q ∧ } P ? ∈

the } ∃ − in x x P ∈ ) x ∧ ) rule x A | (i). y ∈ ∗ ∗ y ariant is y transition. P x ( λx ( P v . thus → ) P c ( y c → → → X { in − Proposition P | no {  X − − − containing also ( )( ) P y 4.3.7 ∈ Standard P ∈ Q and edicate definition y y y system . y by ∈ F `induction' F , . . . ( earlier descriptions y y y x ( ) pr mentioned least c y y y before ªinduction ∃ ∃ { y then S { the − ∃ ∃ ∀ 4.2: → a taking ( | | ariant , − | | | since the term 0 )( )( = v the Q Pred ← also or x X Meaning by X X ariant, ays) F F 0 in P Draft wing lasttime : F is X X X ( ( is P v , the c w transition from 0 P 0 ∈ ∈ ∈ → − − in ∈ ∈ ∈ an y Figure fortunate.] P then Proposition − − P − x x (al follo the ; x x x S ← ← { { Pred Pred (sometime) is an ) that x ⊆ using in { { { mention ery y write the e is v ( that X P = = = property e 0 = = = = = e P and v we lik us v P Q not ⊆ , P P P oposition. P P P ) This [Aside: is Pro Consider S y − − − P ♦  Q pro Assume

Pr − − − ← ← ← Let Immediately ( ♦ 

← ← ← . P − where P Clearly If Also to cises

Notation ← (i) Finally e (ii) (ii) • • • oof (iii) (iii) v transitions, 4.3.2. ha 4.3.10. 122 Exer 4.3.1. Pr (i) . ) - a ◦ ) n or ws ζ ) → F can Z is ( for 125 n hain This ( − . F ζ c : called -chain ( F to arro ) we ) ω F is Z ) n the there ( ay of endofunc- h Y , X F coalgebras, w O F limit ( ( of n Z Y property with g F of F · ) K R U W · ) induction. K R U W Z general · K = with R U W ( limit Z → result. K R U ( W by ersal K F R U functor W K v F R U Y +1 W  Another collection K . the R U : chain K n W . continuous more R U c → a K . chain = g W . ∼ uni . wing to seen → ∼ = R K (1) U a h . The W . − D 3 2 ) − U R . . ◦ W the U R g . W Z F c. K U R Z diagram: W Eac Z ( follo K with if U R wing : W ◦ 4 a K +1 U R (!) F easily gory W K ζ f n → homomorphism ) U R 2 C another K W 4 the f U 2 In − is K o h a F W f

limit U → consider K g ( coalgebra . follo W is 3 ∈ K  cate limit U R W K c F hains. N U R Y o e K as X W (1) a that h R U we ◦ ◦ -c the Z 2 (1) W ∈ R U yields 3 the ◦ W forms R ) ) ω 1 which isomorphism. F F n W R 3 X g n n Z It ) R in W f U c ζ of maps c +1 +1 such such R . W ( ( an with U (!) ( → → arbitrary o n n R W n U , F isomorphism F e n − − F F c ζ R object of c W 2 is U 2 each n 3 v R chain, limit 0 ζ obtained ) ) an U ζ X via: f R limit g X U an = Z Therefore R an Y Y -chains. limits constructions W U a, its a for = = = = R ( ( =

the h W  U ω eser for h R , u o → (1) c. W 2 U 1 F F → is n ◦ n in 2 W U f ebr pr +1 ◦ g h all and ) U W Y with n F n o ! X these yields c c F ) → → → : U W ζ ◦ ζ Z ws = to n U of W n − − − since 1 ( 1 uniqueness

ALGEBRAS precise. c U ζ → ◦ W g ζ h ( coalg xists—is F X U W − (4.5) Y Y Y gory ◦ e U arro 2 W ◦ by F (4.5). CO with U +1 said ) f W ws , Y it n U n 1 W n c limits Z : in more ζ U cate f the f ζ W map final is property . . . n v o j U ( AL applying ◦ = = = = W N chain arro es c o a a → Draft W ) ∈ 1 F D considering 0 W n 0 coalgebra, h idea with 0 1 2 X W

FIN with be  ( Y ζ the X ersal c c c W : +1 has from → v with for F Z W n C maps to h (1) W c chain—if

OF this induced preserv final n = C W 1 uni C satisfying F of → e a W it a : f F Let s h then W N ∈ map the Y F if W ∈ is ◦ reason : (!) C w o k W commute mak n → n Y ζ h It  is: resulting such 0 form: n − F n latter’ c . → N X of X main ∈ unique Applying shall the this +1 map collection (1) n C the functor a Lemma. n . e  : n a object → EXISTENCE ζ of ) ζ maps +1 − F satisfies A The W n Z limit oof C . = ( -continuous F Z form mulate yields Using F Pr ω A each unique in i.e The ζ tor 4.4. 4.4.1. . , - - a in ¬ P ed ω this the de- and This 242 gen- least (4.5) once in

fix in call main 2.3.9 Then xcept vious paths.] , reason . a . ¬ ) greatest to 10 pre been C the a and 2]), Z , more e ( least ARIANTS chain, is xt—e -accessible is ∈ mechanism dualisation, v the coalgebras. 29 with skipping standard [69] the F coalgebras; so-called ω te in®nite It 4.3.6. 1 . ha contained is is the . e 7, Theorem this

INV By thus .g X the , y It → e constructions for ∼ = for . and the > olv ) is Lemma final − of 4. from v , coalgebra, ⊥ of see The . in concrete predicate object ( [225 one Z Z one a 2.3.5. . order functor n and a . point w first. long. f predicate [225 De®nition 4]—that rest fe numbers. here although and N ed final a (!) with used. so in (CTL), ∈ technical, —where 3 such a the n ) use fix done “limit” from for F o coalgebras for natual W > (as sets, literature

CHAPTER a construction ( algebras we be logic been → that coalgebra complete of wn n what of Chapter with of − is (1) wing Proposition f polynomial the N , 3 join C functors), topic tree N maintainable will in associated constructions, F to

gories set ∈ instance final as initial [64 some e follo n gory logic second ¬ Notice there . finite this already (!) the for of V lik suitable relation . gory .g cate 2 This well-kno

are If e for e refer cate a P v The for F o ¬ . greatest to ¬ 1 cate each interpretations namely ha we standard suitable on the meet a functors

from the (1) means, computation logic polynomial a temporal o proofs 2 for ¬ section. in The X as in transition functors, ones). on because: F for tw xtended. P postponed xt operator e object the ⊆ description ¬ C e The gets →

P the xists v ne e used used (!) problematic iteration, of e P simple well theory—see v of EA → generalised ha EA X F coalgebras final if o semantics. be ¬ one special : the -chain” are by be as information xttime C the use requirement obtained mathematical f be ω we : result. = describe def -continuous of in suitably ne situation. “ the in (1) intuiti AE coalgebras terms order es not ω F final will generalisation polynomial one be P computations. this trace F can in to limit, this more an xt notation why or will of and coalgebra used f e been AE mak e on P ard wing te first can strong or v from v ! e what finite the computed F this ®nal number function EA v map for gi should xplicitly Draft EA . trees (including theoretic o e a often final pro e the the this maintainable follo act ha be the of to use f in reason a is 1 es” lik to point section in P for section ω us the endofunctor can estigate used wn the order one ed constructions v that xt construction unique section paths this ]. it coalgebras an X Describe In Let Similarly straightforw include be letter fix ne functors generally consider , construction notions theory; ws the places 2 ∈ a continuous section the e “preserv this 210 This we these a the xplicitly (including [Operators about predicate coalgebra. (i) (iii) (ii) W , ant is That ⊥ is will allo e consider Final v Greek of ! well-kno this Existence more order it it it of then But 100 a second arious in xt. greatest mentioned Both • • Consider • Actually , rele The can v 2 F is orks if It conte point 216 The the 4.4.1 where element section. eral. 124 4.3.12. 4.4 At w generalises the functors we scribed has element. possibly aim details continuous . ) ∈ ∈ is is = to of x → set ↔ ) } and 127 y and lists N / con- Z d n there wing )) { ( , Sets N ) , y x : W is F F , fices F = N d on . → finite ( accounts required. subset . = in: ) follo coalgebra = . a → n, suf . a x · ( as , ( namely ( x Z . 0 it , Pred subcoalgebra c to the This ) − y Sets e ♦ N N 7→ ← a , then functor -accessible { a : : ` U 4.1.4) in x ω ( assumption ) n of F is tak N x coalgebra )( coalgebra set . induced c F cases, i F of is F } ( Hence by bisimilarity U ( o -accessible we = N F i − used the − the carries ω final . − tw ? en ]. each − element xt S ) ⊆ Lemma ) write is ← v Pred is subsets functor that ← Pred inclusions. x states isomorphic X that U e gi quotient. = that an Ne induction N for polynomial ( es is [216 on = W . ⊆ = (see G U ∧ ) } forces use W it by since } ) Sets · ) y and weakly n that ∈ , ( y x

) N (i). section consider means ∗ also U finite )( ( n i → we X X → lemma d G n )( ∈ a suitable − then − preserv → ( ♦ union → w successor

y ← ← ⊆ 3.4.1, , N ◦ ⊆ see a F such − , polynomial n − ®n ? : F of ( N shall . 4.2.5 of ) ) ) | ], latter e No vious x U P ∈ . U ) Sets x ,d The ,d vious . | -coalgebras n via application X Therefore so-called : )) , . we X ( N | = N that pre [29 F Pred ariant ) S ( 0 ( a F ercise itself, i X κ N pre The ) v G y κ y ( ( Kripk F F ) finite h finite U on finite. X { in ∈ Ex = the ( ( edicate F = F and the ( W is ®n first y using Theorem G ) → ) pr (

functor = in [ { , case → obtained x finite able. = The X ∈ ∈P F by some ( e functor F some x by ( X yields based inclusion by from h i U is ) countable. . : N , − states w the y ♦ ) F d lik = c ← − of : → for

← )) , for = steps: is x en d , a ∈ ( e Eac v x all ,

ALGEBRAS , variant ) one erse for This kno N o observ ( v ) ) W i coprojection − ↔ v gi . U, ♦ set in with N U : result, x finite. ← n of successors ebr i − U tw ( ♦ ha n, CO ( ξ re ← y be ( we ⊆ ( is n, )( states , X F − final ξ , ♦ the ( → in the . ← ∼ = ) ) ) final. F polynomial structure F . , to { . we e coalgebras AL the 2.3.9). − } } ⊆ ( X main each applies X . coalg ) ) Draft is )) ( ) X i X , x → x x or of h tak ®n the ∈ 0 ζ Z ( ( U X

FIN basically F = [ for ∈ the ) y N ( ∈ c c ( associated finite Pred x h structure : ) ∈P x collection 4.3.3 . { { e on is x eac F immediate G bisimilarity ( h ) x properly v x a. U Just ( ⊆ U that )( OF )( successor proceeds ϕ the − ( ⊇ a logic gument ♦ of W or the ← and ®n } ( F F = → pro ebr (Theorem ) : Eac F G of ( ( ) ar N ? P subsets ) x x } with via each ercise } − − states w ( ) lifting c ∈ G − − then X ⊆ element claim y = c ↔ ξ em x i proof wersets. ( . form ← ← Pred Pred { ( no Ex ) e its y / coalgebra ∗ = induction coalg for c same say F N say po finite a { W X and , W of → F temporal ( . ∈ each The By By first can )( inclusion N − h on ⇒ ⇒ ⇒ ation. Lemma. Lemma. are F with The If Theor ) that . . . final e e = F = = = )

EXISTENCE or x x ( predicate ⊆ finite a ( F W The W • • the eac w | N c − oof oof oof Z countable carries x ( homomorphism. − : X It 4.4.8. Quotienting for Pr F N has Pr equality is ζ structure, 4.4.6. observ 4.4.7. a for structed, and Pr Pred ← sho 4.4. that . 1 a ]. is 1 = = of . − n for ery ) that eas- κ ords or ) v final final F + [45 set func- given A e F y +1 · w a . is a ( ( -chain. special n · n (simple original .g h L g · ω of elements e a X (constant) has means ◦ =

ARIANTS n + image N power satisfies an the of This . functor ) result: ∈ A 1 for see etc. . it } ? set n in of ) and , . − follows. +1 n

INV -tuple ⊆ A property if n } n e erse Z Q x ( latter this ω ( f v polynomial A as 4. main P lik +1 = F in limit without , n power for + consists ) the ersal finite +1 = The ? (re)calculating functor U e v as → our A n . = ∼ oduct ? A the +1 coalgebra (i) X − n + by finitary) A A lik simple n pr 2 uni U 2 ⊆ x for coproducts ⊆ Z A by ( to en 2 satisfying (or → computed = without n final U v set U f actually 4.4.2 − en subsets The ) e CHAPTER n | looks gi v ∼ = Sets ∧ constructed . ) 1 X ar the infinite coalgebra +1 by the gi ) apply is sets. i n n Sets U is subsets. “accessible” 2 with + y on ( as U A n → (4.5) products, X the

· ( this coalgebra and that are F g 1 × → · 1 the Lemma { ∈ · − of that and language, − n Y =0 -accessible finite n i finite : n that = κ in (1) [ ω functors +1) + xist, final n or x seen chain n that projections. P on e A g 2 . Sets 1 its a is h ( ( e : F gory w N − Sets v identified that × described = P the subset -th of n ◦ F using A ∼ = ∈ acts has ha n functors ords, a 2 A , → be → sho be reconstruct cate hains ) : n Sets it w n (4.5). F -accessibility” ∼ = 2 is ζ n ∀ -c we U the what described +1 w ω we ∼ = κ ( of in | can can

union → (1) ω × of “ Z Sets A functions -continuous shall ) F 2 ho 1 functor Sets as 1 2 . (ii) are as 2 +1 ) of ω : of set . (1) with → × n + . Z n X we n by F a × ( requirement , · A limit on Sets ∼ = ∼ = F constructions. with Z 2 X F · ®n -accessible : A · [ 2.3.6 x X case  ω (ii). function F estigating 2 2 the Y , “accessible” limits ∈P the Sets ant (!): structure → limit Here 1 (directed) → v + form = : v n U +1 . or × × x N of a 1 in ) f y Z A F functor , set computed F ∈ . A the − polynomial : A A Y 2 0 the ) with 2.3.6 n is considerations rele X . n a : 2 n 1 1 Sets by x  , h = ( the special . be ζ Draft ( h 1 determined A on functor n of subsection . F Corolary { set In , en the X is ) ) notion A + maps + v Eac ∼ = ∼ = = = the Z e can start In y functor · this n gi X ( ery F (i) · map n h = maps coprojection → ( ∈ alphabet 2 · abstract v f A the g Corolary − we ogether e F coalgebras polynomial , need T (1) (1) (1) (1) + functor U ) ⊆ that in 0 1 2 3 Z h The whic . 1 induction y , general preserv +1 with ollary. that ( that F F F F n these that: − vious n a a, 1 +1 X unique n only (i) g n conclude By Eac sets. Final X ob is , A Example. Lemma. Cor Definition. . e U polynomial ) ebr also set means uses sees on the we y element ⊆ After W Therefore established: ( (ii) (ii) the length oof , 0 n -continuous. n hain xponents g finite c An U ily coalgebra. 4.4.4. ( And tors 4.4.2. e polynomial) of One 126 4.4.3. of But by: description 4.4.5. This case these each languages coalg g There ω Pr 4.4.2 . . ) a a ◦ ) } ⊆ of → = by ∼ xt- x the the ζ y out − 129 ) ( for sets, such LX c hence func- and . Z itself, to traces = prefer ( X transi- : , ( functor functor ∈ ) compo- . ζ P with “graph” are +1 ) conte between to of turns elements x n and the ∗ 3.1.1, we L described described Eq ( mono.] X ercise transitions α It systems ( f x → such of and set obtained is set e be and be for | L = composition: lift lifted “list” ) a describe vious ∗ ) Here X Y (1) objects Y list to functions n the : . can ob ( usual . to n coalgebra c functor α the a 2 → the } × vious 2.2.3, relation ( L Its to F shall X ) − 0 an maps us alently F and × Definition of equality X pre e the x v transition for x where: → for → ◦ v). ®nal It is automata A homomorphism to , W es relational ∈ set) ) ws (i x, a ) of back-and-forth state α coinduction. the L X ercise ( sets ) besides (0) equi X a v). X y R n ( in ∈ equality ( (or has allo by Ex of (i | REL F P There x, L usual n 1.4.2 consists -coalgebra, it i ( in may ) x preserv computations . ) consider the write ): { in switch 0 also , } algebra (!): → maps L y X transitions the . ) x R

( coalgebra) of n is 1.4.4 by: Sets satisfying = according F . z object weak-pullback-preserving, describe )( is . X ∈ F P , a, ) and A y , LX The ( function shall L that morphisms. y f often and )) 0 lifting Z an , , x ( ( . ( constructed or an that noticed ) ) initial because e Example x ables → gory . that = ∼ REL S A ? X Y as x e → − → this as W non-deterministic Rel in A Assume ) As ∧ in × the × a, ( shall e use cate (lik . Example A Y ( set note . maps A X described ) ) REL Graph e P : is ( terminating X A X automata states y (algebra )) a {h observ relation olv in It ( is S e. element F X W and → the system, = ∼ we v v define : outside, ⊆ ) of x, X → ∪ . . − of 3.3.7). → + ( α in ) ×

also lists fix relations gory an Y } ) to (1) R , and × R ( ) Y X ) n list the X A (1 A . of ( morphism ∗ at : unique to w from L relation introduced ( us x ( Y injecti A REL c F a , Y cate ( P ? ( P ercise because ations. e F ∗ traces c ho on is × -coalgebra as v : ( + is A the the enience, ∈ → algebra → ι described + ) Ex map → { sets L α Let the ∈ transition → w v ace → 1 xamples y be Z mo to X ) tr graph monomorphisms X set ; e a (1 relations 0 : in ∃ ( see : an finite X that a starting n sho observ con n Z X x , there = P ) 7→ | : ζ L es e its functor initial R werset w from the is v REL are < R non-deterministic a, X a or = : → ⊆ Z algebra ( to already ( REL ) e of i X main po e F relations, ho identity Y Draft L ) ) v to shall Pro v L R o A × Y that xample. . in as functor . e R : for function all simple: which by preserv e 1 )( ι to the → suitable mo and tw requires → The induced )( X abo a − systems W LX yields Y L initial → is ( coalgebra important ( α L en for for let 3.2.1. an X to ∈ function that ( X v REL P a the ◦ an ? REL X sets → The describe with ) : This Sets gi ) Rel +1 F one . A This i ι and z Rel state. → f semantics De®ne of → ∗ ( define , → three X SEMANTICS x ; with ∈ with ) composition need correspond : x, shorthand F → such will polynomial maps e x ( i X Z i → coincidence v first R y Lemma → transition that ( { : n notations. a = Sets CE as as − Hint. = a c we considered − then REL REL , a for ι F functor an [ Consider ha race o And 0 lifting lifting. start in : Sets , 0 i n = morphisms . see x . T Sets → be w as L x x x The function e tw .

TRA : section can R X grammars. systems . characteristic a its gory formulation no to W First These • • • form coinduction. → L a , 1. a ◦ trace × 1 − e a Sets and the tion functor S X morphism x free h relation A as sition, starting 4.4.3. these W tor not One cate relation 4.5 This via automata and 4.5. the , - ) A ) of by π all Z er ( type ↔ form wing yield er ζ Ex ↔ → / O for functor / K able , equality W Proposi- described obtained X ) can W ( -colimit see ∈ follo coalgebra : / x

ARIANTS / , ω ( F g ) be / be by the , of g v we , as f the observ ) c coequaliser can in

INV u, y = ( Sets ∼ is ( es may of ) / v polymorphic 4. the } x in mp ) constructions ↔ gi ( Sets n -cocontinuous f x / · diagram f pairs is ω · obtained X in N A = · W " ) + ( · / π ) E ∈ ) S V · Z an order) be E This these F contained . · x S V 2 = ξ that E x bisimulation, functors ( (!) O p wing S V 2 W E α = of maps . 2 S W ( V E . Z a ∧ can np / → X E so S ≤ V F X f coproduct F E S V ↔ thus , CHAPTER ) f / N C x q E is homomorphisms ↔  follo 1 S ) on ) V / → / f ) X S V o m. 1 N ∈ is N x ∈ (second / −  Z (0) S the / V N x W : for ( α 2 ,c algebra W S 1 n the & 0 V n, tw ,c x & p in x N X S | is F V

x N X latter / c conditions, Eq  S N to and V X N ≥ ) N ( N -accessible x S epimorphism N V are ( x 0 κ 0 p S N → ω V -cocontinuity ⊆ X f (!) N κ ( N → W initial S ∃ α V object − N ∈ n, ω coalgebra The S ) F V q F ( the x X 0 ) S leads i π V { for N x → ∈ X the x there g V c X W ` 4.4.1. x x : and , the O ' ⇒ x V : N q if (0) P f V initial N ( f ` ⇐ π N h P = constructed This _ V F ? ( P F 3.3.6. ◦ ]. / V . P _ X 4.4.1, · V x ? -chain be ) subcoalgebra P parametricity ∈ bisimulation, · because Im with V 25 P ∼ y ω

Lemma · x ! N ) a V , -colimit P a / 3.4.2): x union: space C x because V ∈ ◦ ω n of ` x an m, V also ϕ N on is ercise 2 ∼ = ∼ = ( ϕ ( X 197 construction of xists 0 )) of − and Lemma X , such e N p F Z ∼ x Ex gory ∈ state f ( ∈ suitable ) to proof o x may f n g X × disjoint ◦ this unique x , cate o [108 Its see ` ‘ ) 1 )) 3.4.1 the ∈ Z is n, a ) colimit notions x homomorphism , − x the ( structure ( ) p ( x composite f x of O see ( f dually Under ⊆ on f π of the − the ( about ♦ ( x ← − homomorphisms. Draft ) ♦ = C ← ( c ]. the i er _ ercises p ? g that F each that, K chain: q _ → , details cotuple ? f 243 ]. e Ex (co)algebras f that v 9 coalgebra. , C h the quotient for Hence coalgebra ( : , the ormulate so . of where with as F Pro Check F homomorphism (see with in Im coalgebras, final Z [106 coalgebra 157 relation information , (ii), alues. of (iii) (ii) Fill (i) v on homomorphism o chosen see final induced . ) , o eakly [242 coproduct image cises dashed 2.1.13, ernel X 3.2.6 O X The More W the k X ( ving equal c ∈ F their to maps. The 128 for Ha 4.4.1. proper 4.4.2. theory construction cise tion its diagram from their Exer relation x . ) a = ⊆ or as as as α → for . X F and 131 0 c ( xpo- for ) (4.7) b of or REL —we X n e . b yields ) ) ( , e of algebra F F done REL . n diagram or → X )) X } ): α ( tak ∈ induction: ) is F then X → R ( a e ( before, composition n +1 sets described = ) by )( )( P . n x e W a initial · REL n ) Eq a · , : F X F ( This α be . . ( · Sets REL 1 ( X (0) (! ) → . F Lik c ) compositions composite ( : construction the b . . n − n ∈ power F then ) in n say ◦ ) ]. A  , Rel F (0) )( c commuting F F es ( ) X ) , ) also -chain: by ( F is 0 X A the : b ! n n F +1 ω that × F c X = n ∈ S )( n ( +1 c S lifting the [109 is × (! +1 p S → n n = ∼ can n X n p X n F F n )( ◦ ) the lifting − . id lifting / x p α without use x F by α ) ( ) +1 the F F p preserv F ⊆ , ) × ∈ c n ( n (! p ∧ e ( of that (!) . wing id X = p A the n n S S . 1 )( n ) α = +1 ∼ = = ( p for W . ) c S F x n function ` F p Rel ◦   Rel F which F

( , c n F 0 p , . n ( α / ) F for ) a n ws. : , × ) follo p functor α relation n S lifting x ∈ , ) n claim = ∈ , p And 0 ( X α X S A (0) o p x = colimit ( α Rel F ) e X ( . its ) F a ) / ( n ( n ∈ 0 × a follo F ◦ P W A α b and write —or ◦ as X F REL to % ) + 0 · +1 . × x, ebr , · J relations T W ∈ )( X · Rel as demonstrated n x α ( +1 ) J X · T id W in Y · → J c 1 x → n namely X relation · T F W of (0) ∈ J ( ! / A also ) , Graph ! as x 2 ◦ T REL S ` W i , (! J -alg ( 0 generality )  n , , → T ) 4.4.2, J W A α ) X polynomial : +1 N N × × ) (!) J T F ( x W X c : in +1 n c X F that J ∈ ∈ 2 ( T 0 a +1 ( W X c yields X X (

( n J i F satisfy ! T n n ! : shall 1 X W F J : 1 F assume ∈ i T x X on W J F w − be S S T , − A R 1 W 0 ⊆ → × n Rel ercise i id = ∼ ) T ace F we greater W ) α x , 0 initial ) − T x c = using (0) tr W sho collection X latter ( → ∃ T   Ex ∈ 2 F X W , in 0 = = F and X | T a × ! ( A → W ! i Sets ( n h to F T ) n. chain: in W +1 0 / ace The T function ): 0 (0) Sets F id W × n The c relation map e tr T . 1 (0) Rel X +1 relation , → n < α W on x T i : . X n − (!) W B ⊆ a ◦ i T → c F lik x id n W (! fices α define T F ∀ h : , ) F ace W ( S T i )) n n 0 situation tr W and Draft ∧ ⊆ x × suf relation and unique Sets sets W α S X ( ∈ : W first aph x relation Sets (! (0) it )( X ascending ) W equality X this : F n. (0) = n b (0) form: W the F F = Gr induction F / ∈ W we F ( F the an +1 appropriate +1 W obtained, x, 0 a < ( Eq ) the of Let 0 n to ( empty n W the -coalgebra x infinite a by ! e i is W S ) S of Rel F an v ebr F W of ∀ X of x, X W SEMANTICS A the , ( in ha em. describe ∈ (! define with { Graph with x an 0 functor and set e , is → ) situation = ∼ coprojections ) w be CE a B union b − or W = -coalg 0 ) X image (0) = = a F )( no obtained shall ) S to ( F − the 0 n 0 Graph this Theor . . e e ( A construct ) x is is TRA F F relations, ws. ( F 0 w maps . n W In W b (! erse × F n oof S ∈ n Y v final : x, graphs. that follo This This belo graph polynomial F in 4.5.1. b with where nents Hence Pr ( X shall of a F 4.5. α - or ) . L the ) c c (4.6) of ) obtains ace ) satisfies c . ace ) tr empty x tr x ( ARIANTS )( ( c one is )( ace arbitrary ) also graph S L c ) REL ? L ( tr ∈ Commutation x X ? ( x (

INV ∈ A )( ( an in homomorphism u c A ) the ∈ Rel τ ace L S a x Rel ∈ ∧

4. ( . ∈ 0 ) tr × x ( ) ∧ ∈ for ∈ ) x 0 x ∈ map. as u S σ : ( i ∈ ) ) u x X Rel τ c ) c i for ( τ since x i ∧ ∈ ) → a )( c ( σ ) ∧ ∈ ⊆ σ )( ∈ list ) σ − ) 1 S τ S commute. , ( 1 REL ) ace u a, 0 ) x − S 1 x 0 )( -coalgebra ∗i ( − ) τ tr ∧ ace x ∈ )( α )( − x the in h x L L α algebra tr ( ) )( ∧ ) ( u, u, S τ ( S α

CHAPTER 1 Indeed, τ )( h h a, ) x ∧ ∈ ( )( : 0 c ( . ◦ ) − considered ∧ u, 1 ) ? )( c ∧ ∧ x Rel x L h , α ) ◦ σ ) ) final ( x ∧ − diagram ( ) ( S 1 ) ) A ? relation c ( τ )( ) coinduction Graph ∈ a ? initial ? ) α ∧ ∧ Graph x x ( O c

− c 0 ◦ a A ace S ∈ ( ( ) whether 1 . 0 A ) A ( Rel α the is x c c ) ◦ ) / = ∈ ( tr ∈ σ by ( ∼ = − x ( )( if x ace σ 1 L ) the x ( ) ) ) ∈ ) / P α ∈ ∈ on -coalgebras es S tr L ? ( Graph 0 − c ) = a, ( σ σ S c → ( ∗ a L is x on x α A u u ∈ ∈ = ∈ ) . . ∈ ( ( S ( )( − . . → a, a, ) ) c homomorphism ? c ) ) a, mak of ∗ ∗ ( ( Rel Graph σ σ L L u ( x ace ( ( . . . . ( . . A X X a . . . X X X unique: ) ? ? ? ? tr ( ( ) c ) ( ( : obtained ace then X X → ∈ ∈ ace x = ∼ ∗ X X c L L A A A A x is is ( ∈ , L L tr Graph Rel X − tr → ) ) ( ∼ = c ( ( is c ∈ ∈ ( c ∈ ∈ ∈ ∈ ∈ ∈ it ∈ ∈ σ σ − )( depending ? ace σ → ∈ ∈ indeed 0 0

∈ induction L ◦ 0 0 ∈ ∈ ∈ · ace tr L − x x τ u τ u ∈ τ τ A c ) a, a, x x u u ( ) tr ∈ ∃ a ∃ ( ∗ ∃ hi ∗ ∗ ∃ ∃ ( ∃ ∃ ∃ ? there ∃ ∃ x ∗ ∃ ∃ by ): that S (4.6) 1 A u ) Rel ace ( )( ∃ − cases, x in tr ( L map L ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ α that o ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ c ( ( c (IH) ]: ) homomorphism ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ check ⇐ ⇐ ⇐ ⇐ ⇐ ⇐ tw a ⇒ O X Rel map X ace ( ace trace c is ⇐ ) ) in seen we ) ) tr L tr cons = , x x e Graph x x , ( ( the v ( ( Draft ∈ ) S c c S S nil x σ split [ ◦ ( Here map REL abo ∈ ∈ that c ) . ace ace 1 c ⇔ be already σ = in hi tr tr to: − · ) the ws the -algebra ? e ace , x α α , a ∈ ∈ v L tr ( ( A may sho σ S ha hi ∈ · → ∈ e σ a W This not: coalgebra σ X This where amounts initial Graph Finally Further 3. 2. 130 c ◦ a ◦ N )) xt 1 v- of X all se- for ) de- de- − − 133 that The ∈ ( ) trace R space is → as: α thus k equi × be )( ( xample conte relation σ because ) A e basis trace ords is F of a k ( ( X w ginning state + ( of contains the may An the vial 1 be (CFG) induces F Graph Rel . it type with algebra tri CFG = the by k operation. ◦ ◦ homomorphism where w σ is a the L 1 1 is form parsed k k en c aspect ne − − σ v in k ◦ a of = X initial )) )) Hence gi case ) n n X -algebra semantics may Such n grammar ternary unique its α α R This ? functor F ) ( ( a associated bisimilarity a ◦ A base and the ) where an 1 as with trace R ? induces alence, ens). − ) ) that write (1+ ? c described ) v ws. for ◦ xt-free ? ) ∈ collection Graph Graph The A ) n 4 ◦ σ for 1 tok us . A monad.

ws as operations. topic, )( )( α A ) − A c + ( N ` / equi language the Hence n F F follo (4.7) + )) ◦ conte ( ( + (or sho Let use section S ∈ . X n this = to ) as . a : (1 ? such )( w α n n ? (( X ) f Rel Rel n understood ( from werset ) we trace X on Graph S F ) ∈ this P A (( ◦ ◦ ( F n ] parsed systems A on α ∼ = A ◦ ◦ that po be ∈ σ belo P S in with ◦ + c )) )) ) ) . + → x + Rel reason that the n n n n 137 ◦ ” α the terminals → (1 , ◦ ( α α α α X S ) uilt is may R X X ( ( ( ( each ( 2.2.5 functions namely we 4.5.5 b (

: ] ◦ of R ∈ )) of ◦ It X ? N g i = n ) : )( [203 relations ∈ 1 for . induction transition σ and R g ) α i n A − step Graph F . described ( [109 “ fi ) ( S Graph Graph Graph Graph relations gory the X X ercise in , terms ◦ e ` by N , + F ( around. for +1 CFG )( )( )( )( ∗ of v ( ∈ . +1 of R n i , Ex nonterminal Rel F )) section. of = 4 → n , F F F F A cate ha S ay i . and alphabet n S ( ( ( ( a sources α ◦ A ? n Subsection } ( w R ◦ α ( ) er ) ) each coalgebras), function = this ( else we v X ) traces y Rel Rel Rel Graph Rel A α the , induction o ( a sets F S ( of ∗ ◦ ◦ ◦ ◦ ◦ inclusion +1 Draft other for + maps occurring , functor is ◦ ◦ from Kleisli n ) ) ) ) ) other as that consists of . Graph the description It 1 ” ace in α α α α α α α application es X x ords A i ◦ ( ( ( ( ( ( ( estigation. . relations this ( tr the v or ) the suitable v Graph w R then ∈ ) e F gi , then ginning N = 4 = v in of for . operation describes REL ∗ ∗ and Recall ∈ +1 ) main xplicit ∅ ) from be i A (of , not 4 n e ( x if Graph Graph Graph Graph Graph Graph Graph pro present S of ( so-called α X h A that = ut SEMANTICS P ( ( the semantics 4.5.1 an -ary . parsed “ b e REL ) The gory is e n v F 0 v the → ace or also = = = ⊆ = = = states in shall (IH) α

CE σ tr ( theorem an (i) from Pro Gi cate e is trace a coalgebraically as X | Graph systematic that on produced : algebra number Example. Im W es ) g alence,

TRA cises y grammar v section. be The The Theorem This olv nonterminals, such the x, v more ace ( mantics a Exer scribed equi { alence 4.5.2. tr is can structured free 4.5.2. Notice 4.5.1. scribed this in of initial of 4.5. coalgebra , ◦ c is = c ) see and that dia- 0 c ◦ (4.8) func- Since α ace ) N ( ◦ ws tr a adjoint n . +1 c n required. ) ∈ S n wing method ◦ = S sho α

ARIANTS R for )( i chains, left ) c as ◦ )( Graph n F (i) (iii). R a = , ◦ ( . an follo S , ) ) F )

INV ) is ) = This c ( proof c n n c n )( ( is n ( . . 1 0 Rel α lifting α the n 4. ◦ S F n − 4.5.2 4.5.2 ( S R Then ( ) 0 Rel ◦ ( ) +1 ) α ◦ The ◦ . ◦ n F F n each × F . = c )) ) ( ascending ( S ) there S 1 Rel id ◦ n n 0 N 0 , ◦ − ) )( ◦ for α α Graph ercise ercise ` S α +1 )) ) α of Rel 1 Rel ( ( ∈ ) ( relation making c n e F n c 1 − ( (0) )) ( α ∈ v ) Ex Ex R satisfies i α n 1 in − ◦ n α ( × ) ( )( − F

CHAPTER ) α )) id that ) by since since since by Rel is a pro ( )) F Graph Graph R X Graph X ( n unions REL ) ◦ also ` F each x, F b )( )( )( ( F α (  ) ! can Graph ∈ ( (! )) 0 A es )(

Graph F F F Rel (in A O n n using for ( ( ( ) -chain S ◦ × vial: A ( X (0)) Im , a × / ◦ α we 0 F ω ) X F ∼ = R ( F with tri α n / ) Rel Rel Rel Graph × if x, Eq (! × map F X × ( ( ((! α α is ⊆ n N ◦ ◦ ◦ ◦ easy the ) ( ( id ) preserv n n ◦ X 0 ) ) ) ) c n ) ) F ( ⊆ X ∈ ` of compute: α α α α α S F F that done (! ely = c ( ( ( ( ( ∩  ( ( = v n ◦ n R ∪ c c ace ◦ n unique so Graph R we Graph ) F tr are ◦ ,  ( Rel Rel n an . +1 ) +1 a )( ) ace

= n α the n +1 +1 relati n Graph Graph Graph Graph R Graph n xponents ( tr case colimit we = ⊇ F step S n n e S = x ( S is R = ⊆ = is S S find ) , assume )( , as )( c +1 So ) b n n = = = ⊆ = = ( b Rel F . +1 +1 to (IH) base F S ( α ) n n n ( Graph )( b × α α ace α ◦ ( +1 c ) (0)) X i id tr infinite × × square Rel n ) Rel The alently n (! = +1 α id id O need ) induction X n S v e ` n n X ( n F ) or ) ) v ace c α obtained 0 ( ` ` = N S α ( n n that F F b c tr ( steps. we the 1 ∈ N α α ( ◦ Draft a is equi F ( ( Eq n − ◦ uniqueness: w abo o ∈ ) = × F F α or R inclusions n c +1 ) course. S ace A ∈ or F tw is id 1 × × × n ◦ sho S tr +1 werset n , Graph ) the . ∈ id id id − with of α n b 1 1 1 ` x ) in R R α ) po e to c − − − α and (ii): ` ` ` of ( N b, a v ( step α α α ◦ , ( (0) ∈ N N N ⊆ is wn i × × × ascending. n ha ) ∈ ∈ ∈ x, A pair requires ace xt 0 id id id ( F 1 n n n S is tr 3.2.1 sho − ∈ ne aim ` S ` ` S S = Graph we ∈ Graph )( or the α , is without a 0 b induction, F This ( commute. F ( ) ) = = = = = Our = = The = F chain ercise ⊆ ⊇ Rel ( ( tor Graph Hence 132 Then: Commutation the Ex Finally gram which

135 SEMANTICS Draft

CE

TRA

4.5. ? ◦ . . the A } d and the with three 4.5.2 N 4.5.2. ∧  via ∈ ace A and tr 4 The initiality m → A . ARIANTS functor . n, ∧ by that 4 a A | Example hi 5.2.1) A Example e instance

INV is v m → a ords  F map − for Pro

4. from m w from mapping a b . 4 ) ? W 4 n ) A y } a • the ( b A ª¯atº { hold, where c @ d Subsection . productions: @ ].] ,  a, @ + ) } to @ set { De®ne a a that ? not Y tree: ace · • • W X and [109 (see A tr a ( , F ~ → the ( CHAPTER ~ ords and V alence: W ~ -coalgebras). = W as } ~ v is ords. { b · P w does see 7→ , ) F w b • a a a V x V W P wn → ( , X F J J equi (ii) 4.5.1). c F J J

→ V by F J J space Y dra − { ªmonadsº F J J (of in languages : parsed : : : a a a ace d parsed g ) be trace y u u functorial, all W tr of structure, y u u = state u y u c functor in is u y u ace and ⇐ . • • can maps Theorem are ( b b b tr ” ) a 4 @ ) ⇒ span @ the generated with ∧ S in @ non-terminals A X = V in®nite @ epi. monad W ( e A ◦ that o of F g • , map ( 7→ ? R tw → y ~ included the 4 and (lik ~ P split A “ −

~ d e . A ace A is ~ a a f , homomorphisms tr R V → language ? • • ↔ × with → is implication a coalgebra b c f transformation. ∈ id A ®nite } a e. X × is fundamental t b coalgebra x language 4 v : ‘ id preserv c A as xponents erse 7→ the a, Y e ‘ = V v { · term re A natural wing ®nal S = unparsed function assignment → a pictures. bisimilarity injecti a them a CFG both parsed ◦ o ed R is the the . X the → ” the follo of this c ◦ : tw it that function that the in®nite − Draft this olv R f ) form be alphabet v coalgebras a w f that f the that V that ace that in ( o ∧ that × and (i) between tr wing e e the id sho es A tw v v w v = consists ‘ gi follo and sho Pro “ from f It Describe Pro Check Assume Check Conclude Let Consider Graph De®ne wersets [This (ii) (ii) (iii) (i) (iii) (iii) po mappings (i) (ii) (ii) operations (iii) Consider Assume (i) 4.5.3. 4.5.5. 134 4.5.4. , . e in In In In v es and Mis- ools Lect. 1990. Notes ´ T e, 389 Comp. Seman- in Science . iterati M. systems. 1994. 294:3–29, and 1998. Structur , Lect. gories. 2003. Poign Amsterdam, 2701 , Theor in containers. containers. . Sci. number A. cate 1988. amming , Melton, of Berlin, of vier , 117 gr 92:161–218, Computer hniques 2003. Berlin, es A. o completely , Pitt, , v ec number Else in functor Comp. Pr T , . ati gories Decomposable 1969. and Science v Computation of concrete set Stanford, 1989. D.H. 279(2):54–61, Sci. Main, Comp. number Springer , a , Cate in In Deri Theor Springer and & 14, trees Hall, of M. . (1-3):1–45, Methods theory:

1–28. Inf es, Berlin, Comp. Principles, , . 2003. Theory Computer 300 Applications point Notes aic alence s: 23–38. , American oundations Infinite v Science F functors. ed Prentice theorem. e McBride. ebr system pages Brook McBride. and and . Sci. Theor 1985. fix 1981. equi of S. C. Berlin, C. pages Springer in , Lecture elebil. Sci., In Coalg V Compiler and Scientific and Softwar bisimulation. 183 Comp. Calculi Theory Sci., J. utomata

Computation . Berlin, coalgebra greatest of Notes nerode A continuous A. CSLI , for of . Comp. Springer and of Mathematical 357–365. the gory oundations act DN Ghani, Ghani, Theor final and F Ullman. Comp. editors. sets processes. Elect. . Lambda Massachusetts, On A N. N. w Cate 1974. Notes in of with ??–?? Abstr Springer y . pages equation J.D. Milius, vie editors, oundations of yped Notes ability F S. Manes. 106 T coalgebras , Milius, and Lect. , erses oubek. Sci., pages Draft 1–15. v K Fundamentals editors, Reading, in S. 1995. . , Mendler , Lect. domain E.G. uni V y final ´ Altenkirch, Observ amek, Altenkirch, editor editor A in Sci., Sethi, Computing N. Schmidt, Theories 802 number . 10:285–302, pages and Comp. and On y , . Ad , esle and coalgebraic editor R. Th. Th. D. Non-well-founded Final a J. and g, 2620 Sci., Comp. ´ ´ amek. Arbib amek Arbib Notes and Gordon, Rydeheard, ´ ´ amek amek. Aho, 150:57–75, number ´ ecse . , Abott, Abott, , Hofmann, e, Ad Adleman. Ad Abramsk Aczel G Aczel. Aczel, Aczel. Ad Ad v utomatica . . . . . tics lo Notes theories: number A.D. D.E. M. Lect. (CMCS’04) Sci. 2004. F 2003. Comp. Addison-W A P P P S. P M. M. J. J. J. L. A.V J. M.A. M.A. [6] [4] [7] [3] [5] [2] [1] [8] [9] [11] [12] [13] [10] [15] [14] Bibliograph

ALGEBRA

CO

MEETS

ALGEBRA

6.

CHAPTER 182 Draft , , . a in in & o- h- in- and 185 ec Pr with base ebr T Press, Eifrig, Berlin, of e and racts editors, , Comput. Alg , T Series 1998. Springer Theory ative (J. Hall ability of Encyclope- in Reidel. 1991. implementa- specification Computation Int. 1988. Iter Specification of . change 53 ocess Softwar objects 11(4):481–494, of the 2001. Berlin, , Springer 52 Pr Non-wellfounded to and observ Group , ype Hall 1984. in programming T Guenthner and Prentice Science methods. of gic of vioural CM . . and appear edition, F A 1993. Lo . ell o Mathematics. Number v 51 T Data beha Science . re 32(1):47–95, and Springer Objects between binary e approach 152–168. , Prentice features in . 50, ourn. of Hask nd f Methods 35(1):1–29, gic parametrised J . Berlin, 2 , Dordrecht, On , 2001. Handbook semantics. Lo Dif

aic Synchronous graduate ends Mathematics pages r using Equational ork, its duality gorical Softwar Gabbay olume T Appl. ebr Y 1996. v Hopkins 174–189. the ´ eom. of , et D. algebra: Pierce. w the Berlin, 1994. a The Modal and G . Under Sci., Alg ammming Springer , editors. 167–247, correctness On 2001. 2-cate 1996. In . Ne et The gr xpressions. ebr ´ eor On computational e pages amming . o Recent A B.C. the , Th gr Press, Pr op. Alg Jacquemot. hidden Stanford, cles: . o . T pages and Comp. Press, enema. Sons, gories editors, v , and Sci., urz. of ood. . Springer

language Pr gular V Inf C. oundations Smolka, Theories: theory Cir II de v ving K for 60, & a . F editor W re at, Uni , Y v y Cate ens, AL Castagna, Sci. A. Pro gic Uni gorical of and Monographs. ebr v Notes ational S.A. Ni ile Cah. ation 2001. R.J. . Comp. Lo 1(3):221–242, icious and es Notes G. W and Alg , er editor V I. Lea v and M. Cate systems. SIGN Iter e, TCS and , . and Lect. ati Functional Comp. Presicce, , G. semantics gic of er observ v EA Notes John and the in to Rijk Cambridge Lo 1991. . v), elly Moss. ´ in Lecture . Esik. Moor Systems Draft Cambridge Deri arisi Hennick LeGuernic, K gy de Ponse, Honsell, Correspondence Cardelli, Notes P 936 . . ?? Z. Lect. de Amsterdam, P . F grating Sets, R. L.S. morphisms Hennick A. dynamical Sci. F 1996. M. Alagar rifono L. in Philosophical CSLI In O. T Coalgebra opolo Handbook G.M. and oduction 1998. wski. . . Object Inte R. In Lect. . relations: T of and .S. and , V urn, V Sci., of Intr eniste, and gstra, number 1376 es Number 16:103–149, v Comp. and , Benthem. In wn. Mathematics . , Bruce, . . Bloom ırstea. Ber Brzozo ¨ ırstea. ¨ gy geometric Cameron. of edition, Bidoit Bidoit, gr an Ben Bird C Carboni, Bro C Bird. state-based Smith, Blackb actice Borceux. o v ents Barwise nd . . .J. v Theor cesses Comput. dia and 2 1999. nolo 1964. Pr tions. S. North-Holland, 1995. Structur reachability Phenomena Pr e number heritance. of Handbook S.L. P F R. R. K.B. A. R. C. P J.A. J.A. M. M. J. A. J. C. [44] [43] [45] [42] [46] [47] [50] [41] [51] [49] [48] [38] [39] [40] [35] [37] [36] [52]

BIBLIOGRAPHY . , - v of xts du- and e Sci. Dis- Her MA, Hall, T Appl. Uni 1985. types. Series. Report 2004. matrix. gorical . and ıbi, ¨ H. ourn. & a J Sci. el v Sa 1994. e 71(3):431, realization. constrained Cate Ja Comp. thesis, formats. A. Berlin, system ´ . enez, Prentice Pur Sci. , polymorphism. Hank North-Holland, echnical . The The of Cambridge, . PhD T Semantics Comm. Gim machines, highly BIBLIOGRAPHY . system . s. the . Theor Amsterdam, l e . E. am g Comp. v and . 6.1. . and ourn. gr components. Press, need Springer Science viour J o 124:189–192, duality Uni . ˆ Functorial atre, specification probabilistic . Pr Functor Semantics not are theory: t.htm Theor MIT theory Sci. aulin-Mohring, Comp. Langua ersion of to . with do Filli P Free V in gory and and . of matrices set softw 1975. Scott. C. hes state-beha es el Theories cate system Computing types

Comp. .J. theory oac 1986. a Dep. . P obabilistic thesis, URL: Guide J.-Chr of amming Syntax hierarchy and for s pr arent, Hank in Semantics gr data P o and A Appr Its 140, 1997. 1975. Structur PhD Theor from , 1982. and Pr . C. v Berlin, state-based Corrigendum 6:313–344, machines, User’ 1980. , in aic , Flow 2003. , riples 1980. rep. ink. well-founded ork, Courant, a T ealization Theory May of ows, r V ol Y ava 2004. ebr J J. in oundations ailable ebr Machines w 1990. Scedro Arr F de v

Calculus. Alg echn. a Generalized arametrized gory Murthy Adjoint 1997. Ne T modelling Alg P Contr The 1984. Springer E. A. Assistant France, oposes, C. coinduction calculus 52:139–158, minimal T Cate aic , Cornes, yd, 11:405–424, a and . ink. ersion Corrigendum 20:330–378, , Appl. Sci.,. Manes. Press, Manes. Manes. 1972. V v ˜ 9(8):891–909, , ebr noz, a, Manes. Lambda Manes. Proof C. Manes. , Fre coalgebras edition, , Manes. v edition, & alised ells. ells. E. ards . Sci unified 327(1-2):3–22, e Contr nd Mu 70(1):35–64, 1980. .J. v Gosling. W w W olo , The Sci. 2 , E.G. P E.G. E.G. 1993. Coq A E.G. E.G. coalg o E.G. re & , E.G. ener J. Comp. C. and Arbor T Pur Draft y . Analysis g in Syst. nd Sci. Sok gt. Sci. Boutin, Ch. Ch. in er and and 2 and corrected of erminal and Rocquencourt, and Inf The and Academic . and esle T and On S. A. . Ann Comp. . Huet, 19:9–20, and laws and and Math. . , Bakk . Comp. Comp. sal ourn. Comp. a G. J Arbib Arbib Arbib Arbib Arbib ative Arbib J Arbib . . erner Barbosa. INRIA de Bainbridge, Barendre Bainbridge. . Monogr Barr Barr Barr . utive . ebr Arnold W Barras, vised Bartels, Bartels. . . ourn. Univer Amsterdam, B. www.cwru.edu/artsci/math/wells/pub/tt Michigan, 203, belin, 1996. 1990. Re 1990. Theor Imper ality Theor J Addison-W trib 114(2):299–315, SIAM and parameters. Alg H.P M. L.S. J.W B. E.S. F F M.A. E.S. M. M.A. M.A. M. M.A. K. M.A. M.A. M.A. [28] [31] [27] [26] [32] [25] [34] [33] [16] [24] [30] [18] [17] [29] [19] [23] [22] [20] [21] 184 , , . . e in In on .T and 187 P Sci- data Sci. Lect. bind- Com- gic Press, North- Scuola 22–37. Berlin, in in Lo Science , 1972. . Computer Computer Handbook unfold? In Cambridge Comp. , Knowledg Amsterdam, abstract of ariable ourman, . bisimulation. pages an , 1488 v Annali F in Computer Symposium Pedicchio, in 1999. . vier/MIT or on Theory Springer vier in Methods editor Maps About Computer 467–480, with M.P Else binding. fold Set Math., M.C. gic aic in Else number a Struct. Press, Theoretical In based 1992. and , of Lo concepts oundations ebr artial in principles. F Sci. syntax P In Notes 576–587. ariable Colloquium. gories Leeuwen, types v Math. of xts Press, 1990. Carboni, Reasoning e Theory . Science Coalg 7:1–76 function ability gories. 995–1072. an v T gic , a v Cate

Lect. and Comp. A. data types. pages . . Lo abstract is cate J. e Uni of a in oundations e gory Press, In gories Soc. ardi. v F v to In 1991. V pages In 2000. Observ construction editors, ebr Sci., . . 453 syntax Mathematical Theor Cate Cate B, When Computer , signatures. vy 1983. Alg 2002. in Math. free recursi in on M.Y inducti gories. . Science compact Le Berlin, 1973. logic. Berlin, , to , for approach Comp. Cambridge editor ustr olume IEEE, A. cate with and number Applications

ocess ence Notes v A Abstract w , Montanari. without , functionals. Montanari, Pr Theory ne 1996. modal ??:??–??, and U. Altenkirch. wicz, edition, uri. , ws Notes U. to A 1995. Bull. . 1973 T Computer Springer theory reduced Elect. Springer la Confer v 95–106. Moses, - principle editors, and and Th. X(3):493–522, re . complete in 193–202. D. and Science algebraically Set , Y between MA, Lect. Pitts. Domain nd Comp. -Hillel, 44 and topoi. types 2 IEEE, on 1972 pages and Pitts, Como in Mazurkie Series. of e Pisa oduction 95–104. of pages v Bar , Datatype Draft , e A. emporal Gimona, 45 . A.M. Lenisa, 1975. . T Intr Y TCS Honsell. F A.M. In LMS, Halpern, Computer Equality coinduction number Hutton, 127(2):186–198, . M. Boston pages , and . , F editors, Plotkin, el, EA in Axiomatic Aspects 1996. Remarks A 498–507. Recursi Cambridge, G. Algebraically at Aspects and Science J.Y G. Berlin, Superior Amsterdam, number An and , etical 177 1996. okkinga. , yd. yd. yd. yd. okkink. F Comp. Math., held Press, ormal Fraenk Science pages Emerson. Fiore. F Fiore. Press, Gabbay . orti F , agin, Fre Fre Fre & . . Fre v F Fiore, Friedman. Rosolini, F Corradini, . Theor gic Giarrantana, .J. Gibbons, . .J. .J. .J. .J. Science ing. A. 1976. Springer puter specifications. Lo 2001. Normale Inf Uni Johnstone, number 6:1–32, Holland, Computer ence G. MIT Science. Notes of 1990. V J. M.J. P H. M.M. A.A. P M.P M. P W M. P M.P E.A. R. [84] [85] [83] [78] [82] [74] [77] [79] [73] [76] [80] [75] [71] [81] [72] [69] [70]

BIBLIOGRAPHY , , . , - in in In on xt- ol- for and and e Sci- v vier Sci., Cor Dep. T Com- Com- 1975. pages 2 Seely Higher 2001. editors, A. 2028 ustness. in in issue Applied Else logic , Springer Rose in In Cambridge rob ´ Comp. ery Math. 1985. 1974. and Sci. language. R.A.G. term . H.E. Computer . vs. Equations Th ving co-induction 92/480/18, Special number o in A In In I: Methods Methods der , L. Notes

BIBLIOGRAPHY Amsterdam, Pr wer Proceedings, 182–197. Press, Berlin, II: I. xtbooks. Amsterdam, Or Comp. 0661 stream aic aic , Po e , . using and em T 2003. Report Axiomatic Lect. , ebr ebr 1995. and vier , 2001. (ESOP) pages Methods theories. in cut-elimination. Theor 1978. Sci. /1571 Theor 175–230, aulin, critics: 1980. aic Else Springer in P Academic datatypes datatypes Coalg Coalg Specification Naive Sci., and Conference 1690 . echnical ebr Berlin, erification C. Lattices T Sci. synchronous , Press, v Systems aic proof pages Comp. Press, a ,

algebraic Notes to o editors, Mathematical Sets: . hines CMS e in 139:69–113, ebr v gorical gorical , are in Comp. Coalg and tw editors. editors. v , witz, ’73 in number Comp. Alg of es art. , Uni Mac gamum cate cate . ahar Charity. Springer Elect. Sci. g Monographs. 13 T of iterati Sw Struct. Hardw in Notes Per gics oduction and S. editors, Hirscho transformation, de 44 Theor causality Lo TCS Cambridge and es About Intr Strong Strong Comp. A. . g Langua Montanari, Montanari, in . and 1999. H. Lect. Math. Colloquium EA .

Math. 1990. number . . der 237–251. y , Cambridge comparison U. U. in of in ypes . Or gic and wek, A T 1992. ˜ 6 noz, program number Jakubiec. Theor . , Notes , Modular Lo and and Langua Montanari, 1991 Press, Berlin, Do pages Fundamentals amming for L. . Mu , applied 2410 Spencer Spencer 13(2) Priestle v . U. Fukushima. gr computation G. & Higher . Doets, o D. D. Elect. Bundy Sci., T and Uni Calgary Number and Pr C.A. in Lenisa, Lenisa, editors, H.A. . in Theory Mahr gories . Pouzet. A. , v olume utomata, Pure and and Springer Draft number and H.C. v A ˜ (CMCS’01) 44 Computability no, M. M. B. , , Bertot, in M. ving 2001. and and 1993. Uni ett ett Cate Deforestation, Comp. Monadic . ett o gory programming. g. editor y Y Lenisa, 1992. e and gics Pr 106 and v Carre ett. In Dalen, 2002. Sci., Cambridge Cate Cock Cock M. Lo Semantics Cock 91–108. Press, Science em Science number , Notes Da Elgot. Crole. Dennis . Cutland. , Shepherson, .A. an gorical v Sands, v Ehrig Corradini, Corradini, Coupet-Grimal V Cock Eilenber der Cuoq . In Berlin, Or Initial Number North-Holland. umes. books. J.C. Lect. D. CMCS’01. COQ. Uni Theor Amsterdam, puter pages puter ence www.sciencedirect.com/science/journal radini, 141–169, editor Comp. cate H. L.A. B.A. S. C.C. D. N.J. S. R.L. P A. A. J.R.B. J.R.B. J.R.B. R. [66] [65] [64] [67] [68] [63] [62] [59] [60] [61] [58] [57] [55] [53] [54] [56] 186 , , . - v in In 33 gh, gic cir ype 189 Pitt, T ur func- Uni Aste- Lo AIMI of thesis, Linear ailable D number number v of E. . , Radboud , Springer Struct. 846:163– A D.H. v Economic Data fibrational 1995. semantics. , number and Edinb In coalgebras. 2005. PhD In , a thesis, . in of gories recursion. Uni Specification v . ourn. of J salis in Math. 1985. trace preserving Science Science 1997. Uni PhD ype Cate Berlin, ends 2005., 1987. r T ourn. , Sciences, . 237–254. Science J T Systems, gories PVS. Aarhus Hall, iterated ocesses limit Univer in Pr coalgebras. as a Data 2000. thesis, Berlin, cate constructors. , pages Berlin, with in Computer ebr , Recent CALCO weak Springer Computer of coinduction and beliefs. coalgebraic processes: Prentice PhD of Computer Alg type ailable . and Sci., of Information Dynamical polymorphism. ends and vity v . and

via from terminal in a e tr Data sequences Indeterminates Springer g uti editors, in Springer and datatypes of Amsterdam, gory 307–318. for gorical , Also and ocesses Theory Comp. for Recent Pr typology Dahl, Distrib langua structure Cate cate vier Methods coalgebras. proceedings induction Equations, parametric . languages implementing pages gory 220–241. of theories 1974. 140–157. Notes in equations aic 1998. O.-J. Else on with ¨ edicates oder Computing

Cate Sci., editors, Principles w ential ebr LNCS ork, Pr 1999. 2003. 1999. editors, amming principles pages and xt-free Sci. for , Y Lect. types pages Sequential fer Schr vie y gr oof the . Structural LFCS-93-277. w o Products in Coalgebraic opology-free T A Dif Defining Pr gical Coalg . . calculus Sci., in Comp. Inst. T pr data editors, Owe, Ne . . Conte Proof arlecki, , Sci., Coalgebraic rep. Lo T Comp. 1998. and . O. ¨ ¨ oder oder and 1130 German 1994. 145:107–152, A. , Notes Rydeheard, Jacobs. editor Smale. Comp. Press, appear lambda echn. gorical gorical 308:131–143, 87/38. Comp. Samet. Draft Schr Schr 9(4):463–500, Reichel. Spooner o T Jacobs. Theor and , ations, S. . . , Jacobs. B. Jacobs. Rosolini, T T T eraaen, D. D.E. in Hughes, H. D. Lect. cate B. v Communicating ibr Cate Comp. B. number B. Sci. G. Notes Rep. typed and F Dresden, J. , and A Notes in ICIS-R05004, Definition ggio, gen. & and . 4:71–109, and Ha a. PB-462. 1993. Reichel, and A and v . , and and and and w and and Re Academic Notes M. ´ H. e, 82(2):324–341, 906 Inf Lect. . gh, ga echn. Hoare. 1996. Uni rep. Rep. Sci. , Lect. Comp. a T G. Hirsch In Nijme ur . In in 2001. . Gumm, . Gumm Gumm Computation in v . . . ebr Hensel. Hermida Heifetz Hensel Hensel Hensel Hermida. Hensel Hase Hagino. Moggi Poign Elect. Hagino. www.usingcsp.com Hasuo echn. echn. echn. . . siano, number Berlin, and cuits. Alg Specification T Edinb at setting. T E. Theory 1290 185, Comp. 1987. in Theor Uni tors. T A 283 U. U. C. C.A.R. U. M.W C. U. U. T A. I. H.P H.P R. H.P T [115] [114] [116] [119] [112] [118] [117] [113] [111] [106] [110] [109] [105] [103] [108] [104] BIBLIOGRAPHY [107] , , , . - nd w in o- as of es, 2 l/ Pr Ne spec- , Amer 715 editor editor editor Math., Comp. 327 of landed. number lectures Amster 1978. Science, , Brook the utomated , eh, 1973. A of Press, s.ps n/htm Bull. Y S. to Best, Amsterdam, wski, ourn. Specification Stanford, have Notes vier J In Hall, olume number In R. I ers e E. bisimulation v 7, 245(1):55–101, I. , v g , , In Else In In Notes Ri

BIBLIOGRAPHY 2003. Lect. oundations Computer and gories. Sci. F /Luatc editio (CMCS’03) II. approach Notes 2000. in Banasche Sci. Prentice gories. Theory writing. ay? Langua cate Science Three types. B. re 6(4):359–374, 915 , yw cate e . Comp. In ency apers cond_ 1993. v North-Holland, Press, ava Science . an . J Comp. . data algebra semantics Lecture programming. . closed spectrum 80–149. Amsterdam, coalgebras. Theoretical 2000. , gic Theor , in The IEEE Theor y of 241–256. number Mathematical mean Lo Berlin, Computer theory CSLI

Concurr initial time vier , , monoidal Theor 1992. . coinducti pages of Syst. abstract in esle , Computer on ord in An Else functional pages of CMCS’03. w Algebra, in operational . theory , agenda. editors, closed of Bracha. 123–131. machines on ence Math. Analysis Sci. Springer “E” in e, Notes Circular ersal Analysis branching v probability G. of agner Methods v - history and W to issue Addison-W hidden Computation pages general Methodoloy Methods ersal. theory Confer , al and Uni aic v

Comp. 1982. E. Structured 66–81. gy A Elect. a Mislo . gorial time Rosu. . aic 100(2):202–260, and dreaded the uni ebr 1972. in , as machines M. and G. natur Series. is 1 implementation ebr of Special , Cate opolo as the realization ime pages a amming . Logic, Theor T Steele, approach in Berlin, T linear v and (ASE’00) , Coalg and gr and in Comp. Ja of of The o G. Malcolm. Coalg aandrager Sci., . does 2004. 1975. & , The International . Pr V , ailable y number . G. Lin, . The v th Thatcher gics gorical , 1984. in F Jo ginning . Draft Minimal 4 Elements Bisimilarity opoi. Notes A Inf Sci. J. Realization TCS’99: T Springer editor Melton, Lo K. Discrete-time be What and editor Aspects g. A 1992. cate B. Comp. 78(5):777–783, and a , ’93. ends A. ur A r correctness 10:1–43, Engineering LU of Elect. T , . edition, Edition e Glabbeek. Comp. . Soc. at 68–85. 2002. in Semantics . Notes v Gordon. 1995. Sci Gumm. Gumm, Goguen. Goguen, ent Gumm, Goguen. gorical Goguen Gould. Goguen. end Goguen, an edition, Groote re Main, Giry . . . en v . Goldblatt. Goldblatt. . Gosling, am v v congruence. ork, nd 82(1) Theor j.title.doc.html The 1999. Y www.mathematik.uni-marburg.de/˜gumm/P Second Johannesb a gi http://java.sun.com/docs/books/jls/se dam, CONCUR pages gr Cate M. re Lect. 2 Math. Syst. Softwar ification, 2000. Curr J.F S.J. J. R. A.D. M. R. J.A. J.A. J.A J.A. J.A. R. J.A. H.P H.P H.P [99] [98] [97] [87] [96] [86] [95] [88] [90] [91] [89] [92] [94] [93] [102] [101] [100] 188 . , . . - in on and and 191 The Sci. per Sci- Bul- vier Com- 2003. struc- olume Theor Theor Mathe- editors, v Science Theory in and Security issue , Else 1998. in TCS the 134–153. 1995. a. e v gen., Cambridge Comp. Methods EA Amsterdam, On Ja Sci. automata , anced elopments aic System Milius, Notes pages v of Science Special Information Methods Computing: Nijme vier Softwar LMS. Adv S. 2001. ebr De elopments Computer orrell. of v in Comp. in 8:277–320, aic Sci., . and . Else , W in v Australian Elect. 25:251–283, and De 2001. , ebr J. gen: . 220 Coalg , in in Sci. editors, editors, Uni Sci. 1977. gr semantics Computer deterministic Theor (co)induction. o gen: 18 and Studies Comp. Sci. ´ amek in CMCS’99. 106 nijme in Coalg Pr Mathematical the Inst., 260:87–117, and Methods Ad on

at Comp. in , in Comp. Computing nijme Number .Eades, editors. onezaki, J. . 1969. P Notes in London, . at Sci. Comp. Y aic Notes number Sci. atanabe, . for In , editors. issue number Methods opics xpressions, N. Comput. W ebr , and Cambridge T e Theor Lect. of Press, aic Math., . monads Rutten, H. Theory Struct. in Elect. Inst. Theor and in erification Comp. in 3 (co)algebras v J. . ebr Comput. in Coalg Rutten, gular of Special Set erification and Houle Science v re on Arbib oceedings J. Appl. 11

Math. and 2004. 3233 Notes 2005. aic Science Pr coalgebras. of Theor & Coalg 1982. and 2002. Academic M.E. w Number ebr Tsujishita, , M.A. program 2003. . for . . gen, Mizoguchi, 260(1/2) editors. tutorial In a T vie Pure Elect. number . program Alg , v shape. Sci. , F ICIS-R05003, algebra. re number Press, Computer NIII-R0318, a A and in Reichel, Coalgebras in Ja . editors. v , v for Reichel, wer in 1996. Nijme Theory Ja Spaces H. 19 . Symposium Amsterdam, olume alb, coalgebras. Rep. v Po Rep. v , H. Uni F Rutten, Comp. Draft 1997. gories. semantics , Poll. Series Poll. of . 2004. opos Rutten. emporal Poll. Uni Rutten, J. Systems vier T Stone .L. Moerdijk. T A.J. Futatsugi, E. E. 21–28, cate P J. Moss, Int. J. echn. (CMCS’98) E. . echn. bialgebraic race I. Theory Methods Moss, number 1998. T 1995. T semantics K. 291(3):329–349, T Theor Else , and L. and A gories ger , Science and and L. and e. and and A Berlin, In aic of Data and v pages , . Cambridge Sci. Kar cate Sci. w-Hill e. Radboud . ebr Press, Science v 62:222–259, yal alasian Kalman, Jay . of , Johnstone. Johnstone. Johnstone, on v Jacobs Jay Jacobs, Jacobs Jacobs Jacobs. Jo . . . Jacobs Jacobs. v Jacobs Jacobs Jacobs, Theories ustr .T .T .T McGra Uni CMCS’98. perspecti letin (CMCS’99) Springer specti Comm., Computer – Comp. 1999. matics. 280(1/2) A Comp. ture Amsterdam, Coalg puter languages. ences, R.E. B. B. C.B. B. P B. B. A. B. B. P P B. B. B. B. B. [153] [154] [142] [148] [141] [149] [145] [144] [152] [143] [146] [150] [151] [147] [140] [138] [137] BIBLIOGRAPHY [139] . . . , , , - w of in in er gie ´ eor and and P vier Ne 44 opean Jones, Th editor editor Theor Comp. Comp. Comp. theory 1999. . editors, number and Methods Else Carne , in Struct. 237–280. Eur Inf at, Routledge, , . gy v C.B. Lenisa, aic refinements. Books, . Notes 327(1-2):71– Notes Sci. Notes e-type number Sands, Ni , v Reichel, Backhouse , ebr gic thesis, M. Mathematics pages Math. Notes study allelism editor D. hnolo 1997. M. Sci. H. Lo Basic BIBLIOGRAPHY R. Lect. Lect. Lect. ar ec Amsterdam, the . In P T Comp. In PhD Freitag, in Sci., and in Coalg in . . e Elect. , in Science aid coalgebraic as B. Berlin, Crole Comp. 936 with Cointe, br Modal in (co)inducti , algebras. . . 2001. logic. 2028 of Corradini, 1098 ebr In Theor R. P to editor in Alagar Holland, Comp. 33 Softwar in A. In In . .S. Theor Methods model-theoretic golden V number Galois In Coalg modal mechanism. Computer Springer a , and Moss, number North Notes number In

, aic in . gy , Notes via number oduction L. gy and 1996. -calculus correctness , π Amsterdam, ebr In eternal as logic: , Intr Lect. hnolo the coalgebra. xception Elect. w an Theory ebr 276–291. (ESOP) e in Publ., ec 1995. 2001. 1996. vier Object-Orientation amming in specification. coalgebraic T Coalg s Methods in Ne h: Science and constructions. 2001. co-algebraically gr e modal Alg coalgebras. ype a’ in coequations. o A coalgebras Methodolo Else T v 2000. of aic 2297 Bac pages Pr and Acad. Ja of Scagnetto. ,

Berlin, Berlin, Berlin, for 65(1) coalgebras. aic Systems editors, , , , ebr Sci. and I. cofree of result cofree her aic Softwar Sci., for ebr classes, gories gic and logic Computer Simulations 2002. coalgebraic and ebr Esc and and number Kluwer 1996. and coalgebraic Alg Coalg Lo es Cresswell. Schek, in , 2001. number and Comp. in bisimulations , g Cate Alg duality Springer Springer Springer . gy , Amsterdam, operators Comp. a , ¨ ork, of odel, 253(2):239–285, M.J. Y , H.-J. G Jacobs. 2002. editor temporal vier . gorical w 83–103. Theor Object-Oriented Draft Miculan, editors, y-sorted ards formalisation ercises B. Langua 2001. ariants, Sci. Notes Objects and Science and w Methods Study v Modal editors, 2002. in ., Ne Inheritance , A o on 12:875–903, Ex Else M. The v 245–260. 284–301. 210–231. In A Cate Comprehension , T Mongruences Man and Methodolo Construction Berlin, aic pages 35(1):31–59, , and Lect. , Uni , Sci. Sci. Comp. ence Johnson, aic Notes ebr 1979. amming am . in Hofstadter Hughes pages pages pages 2004. gr gr Jacobs. ebr Montanari, Jacobs. Jacobs. Jacobs. Jacobs. M. Jacobs. Jacobs. Lengauer Jacobs. Jacobs. Jacobs. Jacobs. Computer Gibbons, Hughes. Honsell, Appl. o o Hughes Hughes. ork, . Mellon 108, Alg Theor Comp. Pr Sci., sistence Confer Sci., U. 1349 Sci., Y Elect. Coalg et C. London In Amsterdam, J. Comp. in Pr Springer J. B. B. B. B. J. B. B. B. F G.E. D.R. B. J. B. B. B. [125] [126] [127] [133] [128] [124] [131] [129] [132] [121] [122] 190 [120] [130] [123] [134] [135] [136] , , . . 193 oint vier oofs J Appl. 1999. Notes North 2003. 1991. Pr number number Dennet, & London, Systems Methods Else 2001. Int. , Deussen, , Springer computer the e , Computer . Rydeheard, constructed and Lect. Cambridge, decidability P at ent aic in D.C. Sci. Sec. Sci. Pur and in In Press, ebr In and gic Science D.E. ASSLLI), and notes 1993. Press, 2002. 240 Ann. Lo (N Soc. 93(1):55–92, Concurr (CMCS’00) Comp. Comp. 1981. and , Coalg In . 2003. 1989. coalgebras MIT Algorithms ´ e, 96(1-3):277–317, Publ., . and Course , 1998. es programs. connections gories. number Notes Comp. Computer 1999. sequences. g Comp. 260(1-2):139–163 Hall, final Theor , gic Berlin, form. Hofstadter Science , , Poign editors, completeness e & cate Acad. Lo in Amsterdam, v . Information 1974.

, and Press, Lect. A. Sci. in etical . Reactive D.R. , Galois Inf British y Langua between infinite 1981. esentations, and vier amming of Prentice . In Appl. coalgebras. 1985. Milius, Notes Springer . gr er trees Kluwer on Computer Berlin, Theor o spaces & of Comp. S. gic . Else Repr , coinducti Science . e 309(1-3):177–193, Systems in Pr Soundness, ency Lo , on in monads. beast. amming Elect. Abramsk and king 481–489. Berlin, Sci. Penguin, type Streck Pur 15–32. al 99(1-3):241–259, , gr simulation Language Sci. , theory Theor III in S. o yi and

ence logic: automata of Springer Chec Pr gic ellfounded G.E. the ´ . amek Ann. Methods pages Concurr Computer pages 106 empor Comp. Pitt, of W Lo , Computer Calculus Arithmetic: T to Mark . Logic, and Ad Comp. 2004. Springer Harsan 109–113. aic . and Confer and ´ y modal o. J. in Model Sci., the 2000. ence and The logic. D.H. IEEE, ebr Communicating Appl. 1992. GI In gen, definition Theor Exact Theories of corecursion. number Theor In of & computation pages in , , e 5th Escard aic I Moerdijk. iglizzo. School of oundations Comp. Coalg Draft Intellig 299–312. soul s Schmidt, Theory F Nijme V Pnueli. I. introduction . Berlin, Pur M. ebr . Symbolic Concurrenc v I. 408–417. Notes A. theories. Coalgebraic algebraic The Science An Alg and arametric Calculus 2004. gory Notes and Coalgebraic Mind’ pages ormalising D.A. . Uni P Ann. editor and F Communication erlag, Notions A ´ An c Summer and ark. oceedings . . . Artificial in pages vi -V Elect. P Cate consequence. applications. Mitchell. The , 1989. Sci., Pr Lect. 104(1/3):189–218, on in , , satisfied vlo 1996. C. McMillan. Manes. thesis, Moss. Moss . Moss, Moss. attinson. a in attinson. almgren Niqui. atum Melton, P P P P Milner Computer Milner Manna Milner Moggi. local Miedaner gic . Science American of 104 editor MA, Lo Berlin, 1971. PhD Amsterdam, Err editors, Conf 65(1) Comp. science Springer editors, in from D. D. D.M.R. D. E. E. L.S. R. R. L.S. K.L. John A. M. L.S. Z. R. E.G. L.S. T [192] [191] [189] [190] [182] [188] [184] [180] [179] [183] [175] [181] [176] [187] [185] [174] [178] [173] [186] BIBLIOGRAPHY [177] , e e- to in In E. aic Sci. 5:1– final non- Pur 303– gular C. 1999. , Math- Speci- thesis, ebr 327(1- Comp. Berlin, re in of of Science 1971. . Coalg , In , oduction of , Struct. e Alg of ype PhD oduction pages T Comp. Sci. gories ESSLLI’01, Intr . . ourn. Theor J 260(1-2):119– st editor intr at realisation. Berlin, , Math. Some enriched ir 1983. Annals in , Sci., Springer Cate 1986. Softwar st Data F algebra en BIBLIOGRAPHY Amsterdam, in Theor realization Comp. Sci. automata. fir of v of A in . and gi a the Theories 34 the Notes Gumm, . gic. Comp. minimal Berlin, :23–46, Springer finite aic ends , processes. and Theor r 1956. . Comp. processes 359–378. Lo and T H.P Holland, . of coalgebras. ebr and of Elect. theorem. and number In lectures Theories XXIV Notes and oundations , , in for Alg . F Press, Applications f pages Theor of North Springer aic nets of gories algebras Recent . . mathematics: gories

Dif e Lect. and ebr 82(1) gic Sci., Studies coalgebras. ersity in logic. coalgebra Notes v Cofibrations Cate editors, nerv Lo Alg Bicate ´ Mathematician eom. Geometry coalgebras. bisimulation equations Kleene ´ c. editors, G in Uni 1994. of in Function 1992. vi 2030 final Theory Stone Semantics Comp. et number for and modal utomata 1997. , Modal logic. Stone in Conceptual alters. ents vlo Rossi. 1997. A orking and ork, a Dahl, v op. . alence, Miculan, W in W e P T Y F v small with

Notes Sheaves w of orm number M. de 1999. D. .C. Press, enema. Princeton A O.J. the F , , Science . Semantics 2005. modal theorem V and equi enema. Ne v editors, Functorial 2003. . es , , R.F V and for , Lect. and Operations Y . and hniques Reprinted Cah. , Schanuel. of Y Uni and 3–41. in elly ec ´ y. 2001. 110(2):366–390, Mori. and xt T K ury , coalgebras and vioural as Moerdijk. and 2000. S.H. gories Owe, Structur M. , 115(2):141–178, Computer Springer I. 1963. Honsell and 1130 pages Functorial , conte . urz, . McCarthy O. ., Rosick a Draft urz, in G.M. F Beha Berlin, and v Comp. K Representation Mathematics: Cate completeness and Amsterdam, automata. , J. K and J. 2004. the ools ailable , Launchb In 15(1):149–166, ebr Sabadini, Cambridge & T A v Coalgebras ere. A. ere , Uni . A. . in J. A Specifying and Theory N. number and vier e, Alg e, Studies, wv wv Inf ´ Lane eraaen, Lane. Lane. c, ahara , Sci. v Methods w La La urz. Kleene. 2004. Springer 2001. urz upk ozen. urz. Computation upk Else gories . . opos Ha K Kracht. Malcolm. K K K K Ka Kasangian, K Mac Krsti Mac Mac T Appl. oblems Katis, ents. aic . .W .W . v 121, br fication Sci. cate Helsinki. www.cwi.nl/˜kurz/?? 1996. Comp. Columbia Pr 317. to 138, 2):109–134, M. and coalgebras. e ematics Shannon 233(1-2):129–145 & deterministic F S. S. A. G. S. C. C. A. A. F S. M. D. Y S.C. P S. [171] [168] [169] [165] [172] [167] [162] [163] [166] [164] [170] [161] [160] [159] [157] [158] [156] 192 [155] . . y es v and 195 Con- Lect. num- num- ati Elect. Math. Symb Moss, , , 260(1- Berlin, v Oxford Studies domain in of , , streams, streams, Nielsen, in Comput. L. e 15(1):93– 249:3–80, Maibaum, Sangiorigi v deri Mathemat- , 2000. of of of , 11 M. Sci. ourn. Reichel, concurrenc J 1466 1999. of D. Science amming Sci. Sci. 2001. H. and .S.E. I. Decade for input , In gr Springer 641–761. recursi T Jacobs, 1998. o A Cambridge Comp. Science of number Pr calculus calculus B. . bisimulation. Berlin, type , in number and Comp. Boas, Moss, , e e Comp. aking , pages In v v . T for and in SEN-R0023, Computer 59 L. Springer 2003. 1, Theor . 530–582. semantics editors, es in finite Encyclopedia g Emde solution Science coalgebra). Theor g, Theory of of Gabbai, Amsterdam, PVS. Springer 1998. an Struct. , in 1999. Report

models v olume Jacobs, coinducti coinducti pages 25 1998. Number . v ocesses M. P a a . , ency vier B. 308:1–53, Langua with 1982. v Methods Pr , coalgebra coinduction: representations. CWI theoretic Math. In Sci., Press, ercise Berlin, of coalgebras. Rozenber systems. Do . x Computer Else , aic olume 645–654. v Sci. e , and v y of functionals final G. data in Science , ebr gory calculi Concurr Sci. Uni report, (an of utomata, of Comp. Amsterdam, and iedermann, A equations: equations: and 1992. pages streams. cate , operties Mathematics Comp. terminal , series, Springer

W theory . 11:761–783, Coalg on of Pr er of , to J. utomata a Abramsk non-well-founded v vier Comp. Methods process The Sci., Notes A wer al . bisimulations. Computer echnical In S. algebra Theor T po 1985. Roe aic Else in ferential ferential Cambridge Concur’98: logic and In coinduction correctness editors, Lect. 194–218. de Theor dif dif terms: calculus ebr empor Comput. . interpretation Comp. gic . Sci. T metric e in Plotkin. Initial in Press, v as .P 2(3):257–275, and Colloquium Lo series. series. oundations coalgebra: . , Modelling 1967. F abstract). modal W v editors, and and of Draft pages Coalg ourn. 803 , Rutten, uri. vioural 1990. Notes Automata, J G.D. wer wer Sci. vioural vioural T o. er opology Comp. J. Uni Notes ersal . T po po v Sci., D. From Mathematics. Beha Computation and 2001. coinducti actical 1992. Intensional Lect. Modal and Beha Beha . xtended Processes Bakk Automata SIAM Uni editors, and and Simone, A Relators Pr number Comp. (e and Elect. Rutten. in Theor , . de Handbook International ait. 14:43–57, de in in 32:198–212, anced . in Comp. T , Press, Smyth. Smyth , . ¨ oßiger 2005. . . Cambridge R. ency 11 1644 v aylor R gr Schamschurk Schoett. Reichel, Salomaa. J.W Stirling. . gic Adv Rutten. Rutten. Rutten. Rutten. o T Rutten, Rutten. Rutten Rutten. Rutten. .W . automata, equations. 2000. Uni in 147, editors, seriously automata, Lo editors, 1994. Notes ics J. curr In ber H. ber Pr Struct. and Notes 2):209–228, J. J. M.B. A. J. D. P C. J. J.J.M.M. W O. J. J. M.B. J. J. M. [218] [217] [225] [221] [219] [222] [228] [226] [216] [220] [227] [223] [215] [213] [224] [214] [212] BIBLIOGRAPHY [211] , . . , , . - v in as J.P and and aph Sci. Sci. vier Cor Hof- Lect. num- Uni 2001. Math. Meth- ebr equiv- Gr Comp. Kiado, , 46–57. 1999. FN-19, Rutten, and A. Science in . M. Notes Else al y Alg J. aic Computer In In Bezem echn. Comp. Cambridge, allel Comp. 664 T in ebr . Sci. Calculus AIMI . pages Theor and ar 1980. M. , D Elect. P artial Hindle P In 2000. in Press, Computer Amsterdam, (CMCS’00) BIBLIOGRAPHY Akademiai Sci. Theor Coalg Theor co-algebras. Behaviour , thesis, . Amsterdam, and , Comp. J.R. number , Jacobs 19 . semantics. and Lambda , dialgebras. 1987. Methods Report In and London, In MIT vier domains. B. . . PhD to vier Comp. editor . gic, aic time In Science and Else Theor terminal amming Lo Press, Else gic ebr number . in Theory Amsterdam, coalgebra. gr programs. 1993. v ork , on defined , Lo Sci. o ound. Y linear specifications semantics. Sci. polymorphism. F hierarchy Scientists Pr Applications Uni Reichel, ely w gory vier conference. Coalg final

coalgebras v for In Notes Specifications, based Computer a Ne H. Berlin, type final Modal Science and Comp. Else , Cate . and in as In datafunctors. Comp. aic . 1999. Combinatory Oxford full concurrent recursi Elect. and and science on editors, Sci. Computer ebr , Press, parametric operational on of in Theor Functional the for Sci. Calculi logic. for foundation to Alg Theor editors, semantics Springer programs. in for in 33 , algebras 1995. Computer initial Methods in of Theory Comp.

continuum in elen. . Essays for aic computer modal logic Comp. 1993. Notes object Theory Academic coalgebras Amsterdam, From , principle Montanari, Lambda Eek semantics , The y A Notes in ebr logic number approach to Rosolini, Clone g. 361–375. , and Theor for U. an coalgebraic ur gory vier Curry: esle definability G. v Elect. in 1994. as, yped 5:129–152, Methods A concept T , Coalg Elect. 2002. Computability Pratt. in 2000. hugarian and M. ebr pages Else Abadi. , Cate H.B . and 363–373. . aic y in uri. Science anenb temporal V Sci. ´ 44 c o temporal structural approach T Notes T M. Draft vi and 1981. 29 ebr Sci. co-induction Lambda Zw A Sci., Third Monographs Initial Languages D. Coalgebras 2000. Coalg ., and Basic editors, An editor unifying The pages The A J. vlo v . . . Addison-W Lenisa, and ´ c , 1981. in a 1981. a . Comp. German Elect. P and vi 2 number Coalg Uni , editors, and M. — in Comp. in Computer 1977. Comp. number D. Pitts. . vlo Plotkin. ¨ ¨ Plotkin. ¨ 1991. oßiger oßiger oßiger Pierce. , 124(2):195–219, wer a (1-2):105–122, Groote, in 33 , R R R Pnueli. Reichel. Reichel. Reichel, Pnueli. P Plasmeijer Reichel. Plotkin Poll . writing Po ormalism Amsterdam, Dresden, ods mann Theor Budapest, Struct. editors, ber Number 1999 alence Aarhus F Science 31:45–60, radini, Seldin, IEEE, Notes Sci. Re J.F MA, 280 M. M. M. H. H. H. H. J. A. G.D. E. A. G.D. G. R. D. A.M. B.C. [210] [208] [209] [205] [206] [207] [204] [203] [200] [199] [202] [201] [198] [197] [196] 194 [193] [195] [194]

197 INDEX Draft

SUBJECT , , y in 11 dic Re- Sci sets, Rut- TCS D.E. Lect. gic Notes Theo- thesis, H. J. Nor 1998. ariants. 1996. EA in Sydne (1-2):3– Lo of v systems: Syst. and 1990. in in number and In ´ PhD e, , Elect. 389 280 Moss, . 25 , and in 1997. Press, L. Comp. Poign Sci. Jacobs 19 dual BIBLIOGRAPHY non-standard transition 1992. Groningen, Handbook comonads. Science . , A. number B. Publications, v 8(5):481–540, Press, , ourn. semantics. 28, Number , J In Jacobs, w 1998. Comp. from Uni xt . vier/MIT 1999. Pitt, . number editor B. e Sci. , T bisimulations In Else Science semantics: Computer Science Carsla of 1989. D.H. denotational probabilistic Theor thesis, . in xtension. Comp. In operational e schemes its Scientists for Science final

Science in Leeuwen, PhD Amsterdam, endofunctors. of Berlin, , algebras. . type and 673–788. an , 1999. 221:271–293, Science Computer v Computer , Properties Methods vier J. Struct. data coalgebras. Sci. and Recursion aic Computer In datatypes. hidden Computer pages Else Computer IEEE, Springer and mathematical in accessible and 2001. Bisimulation B, ebr Semantics for semantics and a Math. Computer Sci. foundations methods: a 2001. Comp. for

1992. ardo. Amsterdam, Theory . gorical P , Coalg ebr ards the and olume ixpoint w Rutten. v A. cate 280–291. vier ational Methods F o orders. , 118–127. gory Comp. Alg Cambridge binary semantics Theor On automata, T 1996. . Berlin, specification. on , coalgebras aic and Else as: for gories sal and oper sequences Cate editors, 35(1):83–111, of pages pages , ebr partial , Theor Science note partial J.J.M.M. Sci. 8(3):366–390, ene, algebra Cate , Rutten. in Plotkin. Draft V A Univer and ailable Springer approach. Sci., . Appl. Algebraic v J. and Rutten, Coalg erminal oposes editors, V G. a . CSP, T Amsterdam, T et Final 1979. Science J. . . . Simulation Comp. Functorial Coalgebras alters. ink Notes v . and and V W Computer spaces Comput. ´ eor Also Comp. and echler irsing. and. Wraith. ws. olter Uni uri uri. uri de editors, e orrell. orrell. Th 2002. W W W .C. T . T W T Thijs. T Uustalu, . Theor Elect. W W . coalgebraic . ourn. etical Notes in Rydeheard, ten, in 34, ichel, Free r Inf J a Monographs. 19:27–44, 1991. Computer metric G.C. J. J. A. D. D. M. H. U. M. W E.P D. R.F T [243] [242] [241] [230] [231] [232] [239] 196 [229] [240] [237] [238] [235] [233] [236] [234]