140 likes | 315 Vues
From Corecursive Algebras to Corecursive Monads. Stefan Milius joint work with Jiři Adámek und Mahdieh Haddadi. Why corecursive algebras ?. No general recursion in: languages of total functional programming type- theoretic proof assistants dependently typed languages. Gerhard Osius.
E N D
FromCorecursiveAlgebrastoCorecursiveMonads Stefan MiliusjointworkwithJiřiAdámek und MahdiehHaddadi
Whycorecursivealgebras? • Nogeneralrecursion in: • languagesof total functionalprogramming • type-theoreticproofassistants • dependentlytypedlanguages Gerhard Osius Paul Taylor Instead: • Structured recursionandcorecursionschemesforinductiveandcoinductivetypes General structuredrecursionandinduction: • G. Osius (1974): Recursiveand well-foundedcoalgebrasfor • P. Taylor (1999): Recursiveand well-foundedcoalgebrasforpreimagepreservingsetfunctors General structuredcorecursionandcoinduction: • V. Capretta, T. Uustalu, V. Vene (2009): corecursivealgebras Ourgoal: systematicmathematicalstudyof (free) corecursivealgebras
Whycorecursivealgebras? • E. Nelson (1983): • iterative algebrasas an easy approachto Calvin Elgot‘siterative theories S. Milius (2005): • completelyiterative algebras(cia) andcompletely iterative theories(cim) • Corecursivealgebras/monadsare a naturalweakeningofcia/cim theycallfor a systematicstudy
Main result Example.
Rest ofthe Talk • Definitions • Details andresults • Examples • Conclusions
Whatarecorecursivealgebras? Definition. Facts.
Example: Streams (Capretta, Uustalu, Vene ’09)
Constructionoffreecorecursivealgebras Assumption. Construction 1. Recall theFree Algebra Chain (Adámek 1974) Theorem. • Construction 2. Free Corecursive Algebra Chain Theorem.
Free corecursivealgebra Corollary. Questions.
Ad question 1: Bloom algebras Definition. Theorem.
Characterizationof Bloom algebras Theorem.
Ad question 2: CorecursiveMonads Definition. Theorem. Theorem.
Conclusions + Future work • CorecursiveAlgebrascapturegeneralstructuredcorecursionandcoinduction • Freecorecursivealgebrasexistandcaniterativelybeconstructionasthealgebracoproduct • Bloom algebrasaretheEilenberg-Moore algebrasforthemonadoffreecorecursivealgebras • The monadoffreecorecursivealgebrasisthefreecorecursivemonad. • Future work • Finitarycorecursivealgebras, i.e., finitecoalgebrasadmit a uniquecoalgebra-to-algebrahomomorphism • The analog ofIteration Theoriesof Bloom andÉsik