[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655829-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655829-en":130,"doc-similar-655829":212},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","programs-as-diagrams-from-categorical-computability-to-computable-categories-preface","Programs as Diagrams - From Categorical Computability to Computable Categories - Preface","","Programs as Diagrams presents a categorical approach to computability and computable categories, moving from string-diagram language toward a compact model of computation. The book motivates why computer science studies computation as structured processes, then develops drawing types and functions, monoidal computers, fixpoints, and limits on what can be computed. It also connects program construction to categorical properties such as program-closed categories and stateful computing, aiming for self-contained learning aligned with category theory and computability.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/programs-as-diagrams-from-categorical-computability-to-computable-categories-preface/655829/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/programs-as-diagrams-from-categorical-computability-to-computable-categories-preface/655829.png","ImageObject",300,407,{"name":42,"@type":43},"Terk","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",8,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What main framework does the book use to present programs and computation?","Question",{"text":63,"@type":64},"It uses a categorical language based on string diagrams, treating them as basic building blocks for mathematical models of computation.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What does the book cover regarding what can and cannot be computed?",{"text":68,"@type":64},"It includes dedicated chapters on what can be computed and on what cannot be computed, developing the categorical viewpoint behind these limits.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the book treat state and programming in categorical terms?",{"text":72,"@type":64},"It has chapters on computing programs and on stateful computing, and it connects these ideas to categorical properties such as program-closed categories.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655829,1793114985,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":146,"preview_urls":147},1099525198933,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","arXiv :2208 .03817v4 [ cs .LO] 28 Mar 2023  \nPrograms as Diagrams  \nFrom Categorical Computability to Computable Categories  \nDusko Pavlovic  \nContents  \nPreface ............................................ v  \nWhat? ............................................. vii  \n1 Drawing types and functions ............................. 3  \n2 Monoidal computers: computability as a structure ................ 23  \n3 Fixpoints ......................................... 39  \n4 What can be computed ................................. 53  \n5 What cannot be computed ............................... 71  \n6 Computing programs .................................. 79  \n7 Stateful computing ................................... 97  \n8 Program-closed categories: computability as a property ............. 109  \nBibliography ......................................... 125  \nIndex ............................................. 136  \nPreface  \nPythagoreans discovered that the world was built of numbers. Their rituals with numbers, allowing you to measure some sides of objects and to compute the size of other sides, were called mathemata. Systematized into mathematics, those rituals demonstrated that the world was regular and predictable.  \nThe world spanned by computers and networks is de􀀂nitely built of numbers. Mathematics, in the meantime, evolved beyond and away from the Pythagorean computing rituals. While programmers program computers in a great variety of languages, mathematicians study mathematics in a great variety of completely di􀀋erent languages. A great variety of languages is a good thing, provided that the languages do not isolate but diversify the views of the world and that there are multi-lingual communities to connect them. Many mathematicians speak programming languages; many programmers are conversant with mathematics. The language of categories seems convenient for both, and to some extent connects the communities.  \nIn this book, we use a categorical language based on string diagrams that is so basic that it must be contained in every mathematical model of computation, and so compact that every programming language must project onto it. It evolved through many years of teaching mathematics of computation. The diversity of the mathematical and the programming languages makes such teaching and learning tasks into lengthy a􀀋airs, loaded with standard prerequisites. By peeling o􀀋 what got standardized by accident and following the shortcuts that emerged, and then peeling o􀀋 what became unnecessary after that, we arrived at a mathematical model of computation generated by a single diagrammatic element, which is also a single-instruction programming language. I know it sounds crazy, but read on.  \nThe presentation is self-contained, assuming enough con􀀂dence and curiosity. The early chapters have been taught as undergraduate courses, the middle chapters as graduate courses. The 􀀂nal chapters contain the results that make a point of it all. Without a teacher, a reader familiar with categories is hoped to get easy access to the basic concepts of computability, a reader familiar with computability to basic category theory, and a reader familiar with both is hoped to make use of the many opportunities to improve the approach.  \nThe ”workouts” and ”stories” should probably be skipped the 􀀂rst time around. They used tobe called Exercises and Historic Background but that was misleading. The workouts concern the issues that the reader might like to consider on their own 􀀂rst. Some are presented as guided exercises, but some are much more than exercises, and some are just asides. Most are worked out in Appendix ??. The stories are sort of like philosophical gossips, precisely what the math is meant to defend us from, so you are welcome to skip them altogether.  \nWhat?  \n1 What are we talking about? ............................. vii  \n2 What is computer science? .............................. vii  \n3 What is computer science about? .......................... ","cbCaioYivL2z7mxZ","https://ap.wps.com/l/cbCaioYivL2z7mxZ","pdf",1838622,150,"English","# Preface\n# What?\n## 1 What are we talking about?\n## 2 What is computer science?\n## 3 What is computer science about?\n## 4 What is computation?\n## 5 What is a computer?\n# 1 Drawing types and functions\n# 2 Monoidal computers: computability as a structure\n# 3 Fixpoints\n# 4 What can be computed\n# 5 What cannot be computed\n# 6 Computing programs\n# 7 Stateful computing\n# 8 Program-closed categories: computability as a property\n# Bibliography\n# Index","[{\"question\":\"What main framework does the book use to present programs and computation?\",\"answer\":\"It uses a categorical language based on string diagrams, treating them as basic building blocks for mathematical models of computation.\"},{\"question\":\"What does the book cover regarding what can and cannot be computed?\",\"answer\":\"It includes dedicated chapters on what can be computed and on what cannot be computed, developing the categorical viewpoint behind these limits.\"},{\"question\":\"How does the book treat state and programming in categorical terms?\",\"answer\":\"It has chapters on computing programs and on stateful computing, and it connects these ideas to categorical properties such as program-closed categories.\"}]","Programs as Diagrams - From Categorical Computability to Computable Categories - Preface | PDF",1792964159,378,15,[148,152,156,160,164,168,172,176,180,184,188,193,198,203,208],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4081dd9c5cc55d345d40077a00ee4739.webp",983,1390,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/70230d1dba2523f79ffe4ceb71add3d8.webp",982,1389,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/d2e3290c6357419234c679de2423a2e4.webp",981,1387,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/230020add6ae0cf551ce7c68d1e1fd80.webp",980,1386,{"page_no":97,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3787b9594b673a2808c8718d504cd8b5.webp",979,1385,{"page_no":102,"url":169,"width":170,"height":171},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b600394408e6bfa93d21216a7f68a88c.webp",978,1383,{"page_no":107,"url":173,"width":174,"height":175},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ae90a143747daa78935bb4097bc8813e.webp",977,1382,{"page_no":55,"url":177,"width":178,"height":179},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e662faa11cbd5fd33d13d83506f1022e.webp",976,1380,{"page_no":115,"url":181,"width":182,"height":183},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/935baa3af0e5dd0cd331750a457fd813.webp",975,1379,{"page_no":123,"url":185,"width":186,"height":187},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/932df11ffae4343c28a090fa68d28364.webp",974,1378,{"page_no":189,"url":190,"width":191,"height":192},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a8feaae4c517580a1a3303da42889356.webp",973,1376,{"page_no":194,"url":195,"width":196,"height":197},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/912cd826bfcfb4cf739b376a2e6572da.webp",972,1375,{"page_no":199,"url":200,"width":201,"height":202},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9a128d9db7577acb0027962a5ee9aa35.webp",971,1373,{"page_no":204,"url":205,"width":206,"height":207},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/06e13800cd8e07a8b0e7684964a22406.webp",970,1372,{"page_no":146,"url":209,"width":210,"height":211},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f019e28d3139f712ec95a6b4c02eee17.webp",969,1370,{"list":213,"token":11},[214,220,227,233,239,246,252,259,265,271],{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":115,"category_name":29,"create_tm":219},665538,"Categorical E-Graphs for Lambda Calculi","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983496729/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=T7uX33Vio1HWTeufatZmfTEYQMI%3D","categorical-e-graphs-for-lambda-calculi",1793304820,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":225,"category_name":29,"create_tm":226},84703,"Finite Observations, Infinite Behaviour: Bicategorical Semantics for Stateful Monoidal Processes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809197665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=crKqfGSPG8STlj5vOlxqNpC2f6A%3D","finite-observations-infinite-behaviour-bicategorical-semantics-for-stateful-monoidal-processes",26,1784197748,{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":225,"category_name":29,"create_tm":232},86227,"Computable Ergodic Optimisation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809391406/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=geH9dv3Y7mq6eg7rFCm99Sl9tt4%3D","computable-ergodic-optimisation",1784209644,{"doc_id":234,"doc_title":235,"file_type":137,"home_preview_img_url":236,"slug":237,"view_count":115,"category_name":29,"create_tm":238},657604,"DisCoPy: the Hierarchy of Graphical Languages in Python","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975611176/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=EgPRfxK23NxLT7wQTDcyXbO%2BVtg%3D","discopy-the-hierarchy-of-graphical-languages-in-python",1792984607,{"doc_id":240,"doc_title":241,"file_type":137,"home_preview_img_url":242,"slug":243,"view_count":244,"category_name":29,"create_tm":245},85171,"Computable Functions as Reeb Flows","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809293364/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=ER2tfaJjR6TzysTVA4TZtSJ3ODU%3D","computable-functions-as-reeb-flows",23,1784201522,{"doc_id":247,"doc_title":248,"file_type":137,"home_preview_img_url":249,"slug":250,"view_count":204,"category_name":29,"create_tm":251},397341,"Picturing Quantum Processes II - ZX-calculus and automation - Graphical calculi","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919117848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=2AtlFccLwh6lUmqigFZW1Assmso%3D","picturing-quantum-processes-ii-zx-calculus-and-automation-graphical-calculi",1790461152,{"doc_id":253,"doc_title":254,"file_type":137,"home_preview_img_url":255,"slug":256,"view_count":257,"category_name":29,"create_tm":258},84665,"Compact Enumeration of Maximal Closed Substrings in Run-Length Encoded Strings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809067500/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=VSEdefBylzljQQUqmHDJXlqXrv0%3D","compact-enumeration-of-maximal-closed-substrings-in-run-length-encoded-strings",24,1784197559,{"doc_id":260,"doc_title":261,"file_type":137,"home_preview_img_url":262,"slug":263,"view_count":117,"category_name":29,"create_tm":264},84581,"Online Computation of Maximal Closed Substrings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809187907/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=65ofzC3DUTpMqHHAfKGoiddvX1o%3D","online-computation-of-maximal-closed-substrings",1784196925,{"doc_id":266,"doc_title":267,"file_type":137,"home_preview_img_url":268,"slug":269,"view_count":204,"category_name":29,"create_tm":270},534519,"Illinois State Board of Education CDS File for Y9192","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229943639229/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=gDahIjcG0rsHBUU1i2%2FNyB1gNMY%3D","illinois-state-board-of-education-cds-file-for-y9192",1791598533,{"doc_id":272,"doc_title":273,"file_type":137,"home_preview_img_url":274,"slug":275,"view_count":55,"category_name":29,"create_tm":276},665541,"A first-order logic for string diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983860486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=8%2FUBSml3Ue1EIvtGAJkx3WMehsw%3D","a-first-order-logic-for-string-diagrams",1793304829]