<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://lambda-the-ultimate.org">
<channel>
 <title>Lambda the Ultimate - Category Theory</title>
 <link>http://lambda-the-ultimate.org/taxonomy/term/22/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Applied Category Theory - The Emerging Science of Compositionality</title>
 <link>http://lambda-the-ultimate.org/node/5581</link>
 <description>&lt;p &gt;An enjoyable 25-minute introductory talk: &lt;a href=&quot;https://www.youtube.com/watch?v=iwvl0tBJhoM&quot;&gt;YOW! Lambda Jam 2019 - Ken Scambler - Applied Category Theory&lt;/a&gt; (&lt;a href=&quot;https://www.slideshare.net/kenbot/applied-category-theory-the-emerging-science-of-compositionality&quot;&gt;slides&lt;/a&gt;)&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;What do programming, quantum physics, chemistry, neuroscience, systems biology, natural language parsing, causality, network theory, game theory, dynamical systems and database theory have in common?&lt;/p&gt;
&lt;p &gt;As functional programmers, we know how useful category theory can be for our work - or perhaps how abstruse and distant it can seem. What is less well known is that applying category theory to the real world is an exciting field of study that has really taken off in just the last few years. It turns out that we share something big with other fields and industries - we want to make big things out of little things without everything going to hell! The key is compositionality, the central idea of category theory.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Previously: &lt;a href=&quot;http://lambda-the-ultimate.org/node/5571&quot;&gt;Seven Sketches in Compositionality: An Invitation to Applied Category Theory&lt;/a&gt;.&lt;/p&gt;
&lt;p &gt;(via &lt;a href=&quot;https://twitter.com/puffnfresh&quot;&gt;Brian McKenna&lt;/a&gt;)&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/10">Paradigms</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/25">Spotlight</category>
 <pubDate>Mon, 05 Aug 2019 14:08:02 +0000</pubDate>
</item>
<item>
 <title>Seven Sketches in Compositionality: An Invitation to Applied Category Theory</title>
 <link>http://lambda-the-ultimate.org/node/5571</link>
 <description>&lt;a href=&quot;http://xahlee.info/math/i/category_theory_brendan_fong_david_spivak_2018-03.pdf&quot;&gt;Seven Sketches in Compositionality: An Invitation to Applied Category Theory&lt;/a&gt;
&lt;p &gt;2018 by Brendan Fong and David I. Spivak&lt;/p&gt;
&lt;blockquote &gt;
Category theory is becoming a central hub for all of pure mathematics. It is unmatched
in its ability to organize and layer abstractions, to find commonalities between structures of all sorts, and to facilitate communication between different mathematical
communities.
But it has also been branching out into science, informatics, and industry. We believe
that it has the potential to be a major cohesive force in the world, building rigorous
bridges between disparate worlds, both theoretical and practical. The motto at MIT is
mens et manus, Latin for mind and hand. We believe that category theory—and pure
math in general—has stayed in the realm of mind for too long; it is ripe to be brought
to hand.
&lt;/blockquote&gt;
A very approachable but useful introduction to category theory. It avoids the Scylla and Charybdis of becoming incomprehensible after page 2 (as many academic texts do), and barely scratching the surface (as many popular texts do).</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/18">Teaching &amp; Learning</category>
 <pubDate>Sun, 28 Apr 2019 03:53:25 +0000</pubDate>
</item>
<item>
 <title>Comprehending Ringads</title>
 <link>http://lambda-the-ultimate.org/node/5525</link>
 <description>&lt;a href=&quot;http://www.cs.ox.ac.uk/jeremy.gibbons/publications/ringads.pdf&quot;&gt;Comprehending Ringads&lt;/a&gt;
&lt;p &gt;2016 by Jeremy Gibbons&lt;/p&gt;
&lt;blockquote &gt;
Ringad comprehensions represent a convenient notation for expressing
database queries. The ringad structure alone does not provide
a good explanation or an efficient implementation of relational joins;
but by allowing heterogeneous comprehensions, involving both bag and
indexed table ringads, we show how to accommodate these too.
&lt;/blockquote&gt;
Indexed/parametric/graded monads are the key (read the paper to understand the pun).</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Sat, 05 May 2018 02:59:11 +0000</pubDate>
</item>
<item>
 <title>Databases from finite categories</title>
 <link>http://lambda-the-ultimate.org/node/5435</link>
 <description>&lt;p &gt;Spivak and Kent (2011). &lt;a href=&quot;https://arxiv.org/abs/1102.1889&quot;&gt;Ologs: A categorical framework for knowledge representation&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
In this paper we introduce the olog, or ontology log, a category-theoretic model for knowledge representation (KR). Grounded in formal mathematics, ologs can be rigorously formulated and cross-compared in ways that other KR models (such as semantic networks) cannot. An olog is similar to a relational database schema; in fact an olog can serve as a data repository if desired. Unlike database schemas, which are generally difficult to create or modify, ologs are designed to be user-friendly enough that authoring or reconfiguring an olog is a matter of course rather than a difficult chore. It is hoped that learning to author ologs is much simpler than learning a database definition language, despite their similarity. We describe ologs carefully and illustrate with many examples. As an application we show that any primitive recursive function can be described by an olog. We also show that ologs can be aligned or connected together into a larger network using functors. The various methods of information flow and institutions can then be used to integrate local and global world-views. We finish by providing several different avenues for future research.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Ologs are essentially RDFs extended to encompass commuting diagrams, so a visual little language.  The paper talks about how database schema can automatically be extracted from ologs. &lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <pubDate>Wed, 24 May 2017 06:43:15 +0000</pubDate>
</item>
<item>
 <title>Philip Wadler: Category Theory for the Working Hacker </title>
 <link>http://lambda-the-ultimate.org/node/5366</link>
 <description>&lt;p &gt;&lt;a href=&quot;https://www.infoq.com/presentations/category-theory-propositions-principle&quot;&gt;Nothing you don&#039;t already know&lt;/a&gt;, if you are inteo this sort of thing (and many if not most LtU-ers are), but a quick way to get the basic idea if you are not. Wadler has papers that explain Curry-Howard better, and the category theory content here is very basic -- but it&#039;s an easy listen that will give you the fundamental points if you still wonder what this category thing is all about. &lt;/p&gt;
&lt;p &gt;To make this a bit more fun for those already in the know: what is totally missing from the talk (understandable given time constraints) is why this should interest the &quot;working hacker&quot;. So how about pointing out a few cool uses/ideas that discerning hackers will appreciate? Go for it!&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/20">Lambda Calculus</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <pubDate>Sun, 07 Aug 2016 17:26:26 +0000</pubDate>
</item>
<item>
 <title>Cakes, Custard, and Category Theory</title>
 <link>http://lambda-the-ultimate.org/node/5200</link>
 <description>&lt;p &gt;&lt;A href=&quot;http://www.eugeniacheng.com/&quot;&gt;Eugenia Cheng&lt;/A&gt;&#039;s new popular coscience book is out, in the U.K. under the title &lt;A href=&quot;http://www.amazon.co.uk/Cakes-Custard-Category Theory-understanding/dp/1781252874/ref=sr_1_1?ie=UTF8&amp;amp;qid=1422244697&amp;amp;sr=8-1&amp;amp;keywords=eugenia+cheng&quot;&gt;Cakes, Custard and Category Theory: Easy recipes for understanding complex maths&lt;/A&gt;, and in the U.S. under the title &lt;A href=&quot;http://www.amazon.com/How-Bake-Pi-Exploration-Mathematics/dp/0465051715/ref=sr_1_1?ie=UTF8&amp;amp;qid=1419352340&amp;amp;sr=8-1keywords=eugenia+cheng&quot;&gt;How to Bake Pi: An Edible Exploration of the Mathematics of Mathematics&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Most people imagine maths is something like a slow cooker: very useful, but pretty limited in what it can do. Maths, though, isn&#039;t just a tool for solving a specific problem - and it&#039;s definitely not something to be afraid of. Whether you&#039;re a maths glutton or have forgotten how long division works (or never really knew in the first place), the chances are you&#039;ve missed what really makes maths exciting. Calling on a baker&#039;s dozen of entertaining, puzzling examples and mathematically illuminating culinary analogies - including chocolate brownies, iterated Battenberg cakes, sandwich sandwiches, Yorkshire puddings and Möbius bagels - brilliant young academic and mathematical crusader Eugenia Cheng is here to tell us why we should all love maths.&lt;/p&gt;
&lt;p &gt;From simple numeracy to category theory (&#039;the mathematics of mathematics&#039;), Cheng takes us through the joys of the mathematical world. Packed with recipes, puzzles to surprise and delight even the innumerate, Cake, Custard &amp;amp; Category Theory will whet the appetite of maths whizzes and arithmophobes alike. (Not to mention aspiring cooks: did you know you can use that slow cooker to make clotted cream?) This is maths at its absolute tastiest.&lt;br &gt;
&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p &gt;Cheng, one of &lt;A href=&quot;https://www.youtube.com/user/TheCatsters&quot;&gt;the Catsters&lt;/A&gt;, gives a guided tour of mathematical thinking and research activities, and through the core philosophy underlying category theory. This is the kind of book you can give to your grandma and grandpa so they can boast to their friends what her grandchildren are doing (and bake you a nice dessert when you come and visit :) ). A pleasant weekend reading.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/4">Critiques</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/5">Fun</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/6">General</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/19">Theory</category>
 <pubDate>Fri, 17 Jul 2015 16:47:21 +0000</pubDate>
</item>
<item>
 <title>Conservation laws for free!</title>
 <link>http://lambda-the-ultimate.org/node/5078</link>
 <description>&lt;p &gt;In this year&#039;s &lt;A href=&quot;http://popl.mpi-sws.org/2014/&quot;&gt;POPL&lt;/A&gt;, &lt;A href=&quot;bentnib.org&quot;&gt;Bob Atkey&lt;/A&gt; made a splash by showing how to get &lt;A href=&quot;http://bentnib.org/conservation-laws.pdf&quot;&gt;from parametricity to conservation laws, via Noether&#039;s theorem&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
   Invariance is of paramount importance in programming languages and in physics. In programming languages, John Reynolds’ theory of relational parametricity demonstrates that parametric polymorphic programs are invariant under change of data representation, a property that yields “free” theorems about programs just from their types. In physics, Emmy Noether showed that if the action of a physical system is invariant under change of coordinates, then the physical system has a conserved quantity: a quantity that remains constant for all time. Knowledge of conserved quantities can reveal deep properties of physical systems. For example, the conservation of energy, which by Noether’s theorem is a consequence of a system’s invariance under time-shifting.&lt;/p&gt;
&lt;p &gt;   In this paper, we link Reynolds’ relational parametricity with Noether’s theorem for deriving conserved quantities. We propose an extension of System Fω with new kinds, types and term constants for writing programs that describe classical mechanical systems in terms of their Lagrangians. We show, by constructing a relationally parametric model of our extension of Fω, that relational parametricity is enough to satisfy the hypotheses of Noether’s theorem, and so to derive conserved quantities for free, directly from the polymorphic types of Lagrangians expressed in our system.
   &lt;/p&gt;&lt;/blockquote&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/5">Fun</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/20">Lambda Calculus</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/34">Scientific Programming</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/19">Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Tue, 28 Oct 2014 07:52:46 +0000</pubDate>
</item>
<item>
 <title>Seemingly impossible programs</title>
 <link>http://lambda-the-ultimate.org/node/5074</link>
 <description>&lt;p &gt;In case this one went under the radar, at &lt;A href=&quot;http://www.cse.psu.edu/popl/12/&quot;&gt;POPL&#039;12&lt;/A&gt;, &lt;A href=&quot;http://www.cs.bham.ac.uk/~mhe/&quot;&gt;Martín Escardó&lt;/A&gt; gave a tutorial on &lt;A href=&quot;http://www.cs.bham.ac.uk/~mhe/.talks/popl2012/escardo-popl2012.pdf&quot;&gt;seemingly impossible functional programs&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Programming language semantics is typically applied to&lt;br &gt;
prove compiler correctness and allow (manual or automatic) program&lt;br &gt;
verification. Certain kinds of semantics can also be applied to&lt;br &gt;
discover programs that one wouldn&#039;t have otherwise thought of. This is&lt;br &gt;
the case, in particular, for semantics that incorporate topological&lt;br &gt;
ingredients (limits, continuity, openness, compactness). For example,&lt;br &gt;
it turns out that some function types (X -&amp;gt; Y) with X infinite (but&lt;br &gt;
compact) do have decidable equality, contradicting perhaps popular&lt;br &gt;
belief, but certainly not (higher-type) computability theory. More&lt;br &gt;
generally, one can often check infinitely many cases in finite time.&lt;/p&gt;
&lt;p &gt;I will show you such programs, run them fast in surprising instances,&lt;br &gt;
and introduce the theory behind their derivation and working. In&lt;br &gt;
particular, I will study a single (very high type) program that (i)&lt;br &gt;
optimally plays sequential games of unbounded length, (ii) implements&lt;br &gt;
the Tychonoff Theorem from topology (and builds finite-time search&lt;br &gt;
functions for infinite sets), (iii) realizes the double-negation shift&lt;br &gt;
from proof theory (and allows us to extract programs from classical&lt;br &gt;
proofs that use the axiom of countable choice). There will be several&lt;br &gt;
examples in the languages Haskell and Agda.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;A &lt;A href=&quot;http://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/&quot;&gt;shorter version&lt;/A&gt; (coded in Haskell) appears in Andrej Bauer&#039;s blog.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/5">Fun</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/10">Paradigms</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/19">Theory</category>
 <pubDate>Wed, 22 Oct 2014 09:57:47 +0000</pubDate>
</item>
<item>
 <title>Luca Cardelli Festschrift</title>
 <link>http://lambda-the-ultimate.org/node/5044</link>
 <description>&lt;p &gt;Earlier this week Microsoft Research Cambridge organised a &lt;A href=&quot;http://research.microsoft.com/en-us/events/lucacardellifest/&quot;&gt;Festschrift&lt;/A&gt; for Luca Cardelli. The preface from the &lt;A href=&quot;http://research.microsoft.com/pubs/226237/Luca-Cardelli-Fest-MSR-TR-2014-104.pdf&quot;&gt;book&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Luca Cardelli has made exceptional contributions to the world of programming&lt;br &gt;
languages and beyond. Throughout his career, he has re-invented himself every&lt;br &gt;
decade or so, while continuing to make true innovations. His achievements span&lt;br &gt;
many areas: software; language design, including experimental languages;&lt;br &gt;
programming language foundations; and the interaction of programming languages&lt;br &gt;
and biology. These achievements form the basis of his lasting scientific leadership&lt;br &gt;
and his wide impact.&lt;br &gt;
...&lt;br &gt;
Luca is always asking &quot;what is new&quot;, and is always looking to&lt;br &gt;
the future. Therefore, we have asked authors to produce short pieces that would&lt;br &gt;
indicate where they are today and where they are going. Some of the resulting&lt;br &gt;
pieces are short scientific papers, or abridged versions of longer papers; others are&lt;br &gt;
less technical, with thoughts on the past and ideas for the future. We hope that&lt;br &gt;
they will all interest Luca.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Hopefully the videos will be posted soon.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/20">Lambda Calculus</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/9">Misc Books</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/19">Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Fri, 12 Sep 2014 10:10:08 +0000</pubDate>
</item>
<item>
 <title>Dependently-Typed Metaprogramming (in Agda)</title>
 <link>http://lambda-the-ultimate.org/node/4804</link>
 <description>&lt;p &gt;&lt;A href=&quot;http://www.strictlypositive.org&quot;&gt;Conor McBride&lt;/A&gt; gave an 8-lecture summer course on &lt;A href=&quot;http://www.cl.cam.ac.uk/~ok259/agda-course-13/&quot;&gt;Dependently typed metaprogramming (in Agda)&lt;/A&gt; at the &lt;A href=&quot;http://www.cl.cam.ac.uk/&quot;&gt;Cambridge University Computer Laboratory&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Dependently typed functional programming languages such as Agda are capable of expressing very precise types for data. When those data themselves encode types, we gain a powerful mechanism for abstracting generic operations over carefully circumscribed universes. This course will begin with a rapid depedently-typed programming primer in Agda, then explore techniques for and consequences of universe constructions. Of central importance are the â€œpattern functorsâ€ which determine the node structure of inductive and coinductive datatypes. We shall consider syntactic presentations of these functors (allowing operations as useful as symbolic differentiation), and relate them to the more uniform abstract notion of â€œcontainerâ€. We shall expose the double-life containers lead as â€œinteraction structuresâ€ describing systems of effects. Later, we step up to functors over universes, acquiring the power of inductive-recursive definitions, and we use that power to build universes of dependent types.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;The &lt;A href=&quot;https://github.com/pigworker/MetaprogAgda/blob/master/notes.pdf?raw=true&quot;&gt;lecture notes&lt;/A&gt;, &lt;A href=&quot;https://github.com/pigworker/MetaprogAgda&quot;&gt;code&lt;/A&gt;, and &lt;A href=&quot;http://www.youtube.com/playlist?list=PL_shDsyy0xhKhsBUaVXTJ2uJ78EGBpvQa&quot;&gt;video captures&lt;/A&gt; are available online. &lt;/p&gt;
&lt;p &gt;As with his &lt;A href=&quot;http://www.cl.cam.ac.uk/~ok259/agda-course/&quot;&gt;previous course&lt;/A&gt;, the notes contain many(!) mind expanding exploratory exercises, some of which quite challenging.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/20">Lambda Calculus</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/15">Meta-Programming</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/10">Paradigms</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/18">Teaching &amp; Learning</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/19">Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Fri, 30 Aug 2013 07:34:49 +0000</pubDate>
</item>
<item>
 <title>Lightweight Monadic Programming in ML</title>
 <link>http://lambda-the-ultimate.org/node/4321</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://www.cs.umd.edu/~mwh/papers/swamy11monad.html&quot;&gt;Lightweight Monadic Programming in ML&lt;/a&gt;&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Many useful programming constructions can be expressed as monads. Examples include probabilistic modeling, functional reactive programming, parsing, and information flow tracking, not to mention effectful functionality like state and I/O. In this paper, we present a type-based rewriting algorithm to make programming with arbitrary monads as easy as using ML&#039;s built-in support for state and I/O. Developers write programs using monadic values of type &lt;i &gt;M t&lt;/i&gt; as if they were of type &lt;i &gt;t&lt;/i&gt;, and our algorithm inserts the necessary binds, units, and monad-to-monad morphisms so that the program type checks. Our algorithm, based on Jones&#039; qualified types, produces principal types. But principal types are sometimes problematic: the program&#039;s semantics could depend on the choice of instantiation when more than one instantiation is valid. In such situations we are able to simplify the types to remove any ambiguity but without adversely affecting typability; thus we can accept strictly more programs. Moreover, we have proved that this simplification is &lt;i &gt;efficient&lt;/i&gt; (linear in the number of constraints) and &lt;i &gt;coherent&lt;/i&gt;: while our algorithm induces a particular rewriting, all related rewritings will have the same semantics. We have implemented our approach for a core functional language and applied it successfully to simple examples from the domains listed above, which are used as illustrations throughout the paper.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;This is an intriguing paper, with an implementation in about 2,000 lines of OCaml. I&#039;m especially interested in its application to probabilistic computing, yielding a result related to Kiselyov and Shan&#039;s Hansei effort, but without requiring delimited continuations (not that there&#039;s anything wrong with delimited continuations). On a theoretical level, it&#039;s nice to see such a compelling example of what can be done once types are freed from the shackle of &quot;describing how bits are laid out in memory&quot; (another such compelling example, IMHO, is type-directed partial evaluation, but that&#039;s literally another story).&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/8">Implementation</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Thu, 28 Jul 2011 18:11:27 +0000</pubDate>
</item>
<item>
 <title>Kleisli Arrows of Outrageous Fortune</title>
 <link>http://lambda-the-ultimate.org/node/4273</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://personal.cis.strath.ac.uk/~conor/Kleisli.pdf&quot;&gt;Kleisli Arrows of Outrageous Fortune&lt;/a&gt;&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
When we program to interact with a turbulent world, we are to some extent at its mercy. To achieve safety, we must ensure that programs act in accordance with what is known about the state of the world, as determined dynamically. Is there any hope to enforce safety policies for dynamic interaction by static typing? This paper answers with a cautious â€˜yesâ€™.&lt;/p&gt;
&lt;p &gt;Monads provide a type discipline for effectful programming, mapping value types to computation types. If we index our types by data approximating the â€˜state of the worldâ€™, we refine our values to witnesses for some condition of the world. Ordinary monads for indexed types give a discipline for effectful programming contingent on state, modelling the whims of fortune in way that Atkeyâ€™s indexed monads for ordinary types do not (Atkey, 2009). Arrows in the corresponding Kleisli category represent computations which a reach a given postcondition from a given precondition: their types are just specifications in a Hoare logic!&lt;/p&gt;
&lt;p &gt;By way of an elementary introduction to this approach, I present the example of a monad for interacting with a file handle which is either â€˜openâ€™ or â€˜closedâ€™, constructed from a command interface specfied Hoare-style. An attempt to open a file results in a state which is statically unpredictable but dynamically detectable. Well typed programs behave accordingly in either case. Haskellâ€™s dependent type system, as exposed by the Strathclyde Haskell Enhancement preprocessor, provides a suitable basis for this simple experiment.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;I discovered this Googling around in an attempt to find some decent introductory material to Kleisli arrows. This isn&#039;t introductory, but it&#039;s a good resource. :-) The good introductory material I found was &lt;a href=&quot;http://blog.downstairspeople.org/2010/06/14/a-brutal-introduction-to-arrows/&quot;&gt;this&lt;/a&gt;.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Sat, 14 May 2011 15:19:08 +0000</pubDate>
</item>
<item>
 <title>A Lambda Calculus for Real Analysis</title>
 <link>http://lambda-the-ultimate.org/node/3831</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://paultaylor.eu/ASD/lamcra/&quot;&gt;A Lambda Calculus for Real Analysis&lt;/a&gt;&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Abstract Stone Duality is a revolutionary paradigm for general topology that describes computable continuous functions directly, without using set theory, infinitary lattice theory or a prior theory of discrete computation. Every expression in the calculus denotes both a continuous function and a program, and the reasoning looks remarkably like a sanitised form of that in classical topology. This is an introduction to ASD for the general mathematician, with application to elementary real analysis.&lt;/p&gt;
&lt;p &gt;This language is applied to the Intermediate Value Theorem: the solution of equations for continuous functions on the real line. As is well known from both numerical and constructive considerations, the equation cannot be solved if the function &quot;hovers&quot; near 0, whilst tangential solutions will never be found.&lt;/p&gt;
&lt;p &gt;In ASD, both of these failures and the general method of finding solutions of the equation when they exist are explained by the new concept of overtness. The zeroes are captured, not as a set, but by higher-type modal operators. Unlike the Brouwer degree, these are defined and (Scott) continuous across singularities of a parametric equation.&lt;/p&gt;
&lt;p &gt;Expressing topology in terms of continuous functions rather than sets of points leads to treatments of open and closed concepts that are very closely lattice- (or de Morgan-) dual, without the double negations that are found in intuitionistic approaches. In this, the dual of compactness is overtness. Whereas meets and joins in locale theory are asymmetrically finite and infinite, they have overt and compact indices in ASD.&lt;/p&gt;
&lt;p &gt;Overtness replaces metrical properties such as total boundedness, and cardinality conditions such as having a countable dense subset. It is also related to locatedness in constructive analysis and recursive enumerability in recursion theory.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Paul Taylor is deadly serious about the intersection of logic, mathematics, and computation. I came across this after beating my head against &lt;a href=&quot;http://www.amazon.com/Probability-Theory-Logic-Science-Vol/dp/0521592712/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1266357272&amp;amp;sr=8-1&quot;&gt;Probability Theory: The Logic of Science&lt;/a&gt; and &lt;a href=&quot;http://axiomaticeconomics.com/&quot;&gt;Axiomatic Theory of Economics&lt;/a&gt; over the weekend, realizing that my math just wasn&#039;t up to the tasks, and doing a Google search for &quot;constructive real analysis.&quot; &quot;Real analysis&quot; because it was obvious that that was what both of the aforementioned texts were relying on; &quot;constructive&quot; because I&#039;d really like to develop proofs in Coq/extract working code from them. This paper was on the second page of results. Paul&#039;s name was familiar (and not just because I share it with him); he translated Jean-Yves Girard&#039;s regrettably out-of-print &lt;a href=&quot;http://paultaylor.eu/stable/Proofs+Types&quot;&gt;Proofs and Types&lt;/a&gt; to English and maintains a very popular set of tools for typesetting &lt;a href=&quot;http://paultaylor.eu/diagrams/&quot;&gt;commutative diagrams&lt;/a&gt; using LaTeX.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/20">Lambda Calculus</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/13">Logic/Declarative</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/15">Meta-Programming</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Tue, 16 Feb 2010 22:00:42 +0000</pubDate>
</item>
<item>
 <title>Simplicial Databases</title>
 <link>http://lambda-the-ultimate.org/node/3761</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://arxiv.org/abs/0904.2012&quot;&gt;Simplicial Databases&lt;/a&gt;, David I. Spivak. &lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;In this paper, we define a category DB, called the category of simplicial databases, whose objects are databases and whose morphisms are data-preserving maps. Along the way we give a precise formulation of the category of relational databases, and prove that it is a full subcategory of DB. We also prove that limits and colimits always exist in DB and that they correspond to queries such as select, join, union, etc. One feature of our construction is that the schema of a simplicial database has a natural geometric structure: an underlying simplicial set. The geometry of a schema is a way of keeping track of relationships between distinct tables, and can be thought of as a system of foreign keys. The shape of a schema is generally intuitive (e.g. the schema for round-trip flights is a circle consisting of an edge from $A$ to $B$ and an edge from $B$ to $A$), and as such, may be useful for analyzing data. We give several applications of our approach, as well as possible advantages it has over the relational model. We also indicate some directions for further research.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;This is what happens when you try to take the existence of ORDER BY and COUNT in SQL seriously. :-)  &lt;/p&gt;
&lt;p &gt;If you&#039;re puzzled by how a geometric idea like simplexes could show up here, remember that the algebraic view of simplicial sets is as &lt;a href=&quot;http://en.wikipedia.org/wiki/Presheaf_%28category_theory%29&quot;&gt;presheaves&lt;/a&gt; on the category of finite total orders and order-preserving maps. Every finite sequence gives rise to a total order on its set of positions, and tables have rows and columns as sequences!&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/19">Theory</category>
 <pubDate>Fri, 08 Jan 2010 11:44:03 +0000</pubDate>
</item>
<item>
 <title>An Innocent Model of Linear Logic</title>
 <link>http://lambda-the-ultimate.org/node/3727</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://www.pps.jussieu.fr/~mellies/papers/ag3-ctcs.pdf&quot;&gt;An Innocent Model of Linear Logic&lt;/a&gt; by Paul-Andr&amp;eacute; Melli&amp;egrave;s was &lt;a href=&quot;/node/3716#comment-53086&quot;&gt;referenced by Noam&lt;/a&gt; in a &lt;a href=&quot;/node/3716#comment-53069&quot;&gt;serendipitious subthread&lt;/a&gt; of the &quot;Claiming Infinities&quot; thread.&lt;/p&gt;
&lt;p &gt;Here&#039;s the abstract:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
Since its early days, deterministic sequential game semantics has been limited to linear or polarized fragments of linear logic. Every attempt to extend the semantics to full propositional linear logic has bumped against the so-called Blass problem, which indicates (misleadingly) that a category of sequential games cannot be self-dual and cartesian at the same time. We circumvent this problem by considering (1) that sequential games are inherently positional; (2) that they admit internal positions as well as external positions. We construct in this way a sequential game model of propositional linear logic, which incorporates two variants of the innocent arena game model: the well-bracketed and the non well-bracketed ones.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;The introduction goes on to refer to to Andr&amp;eacute; Joyal&#039;s &quot;&lt;i &gt;Category Y with Conway games as objects, and winning strategies as morphisms, composed by sequential interaction&lt;/i&gt;,&quot; and points out that &quot;&lt;i &gt;it is a precursor of game semantics for proof theory and programming languages&lt;/i&gt;,&quot; and is &quot;&lt;i &gt;a self-dual category of sequential games&lt;/i&gt;.&quot; The foreword mentions that the paper goes on to give &quot;&lt;i &gt;a crash course on asynchronous games&lt;/i&gt;&quot; and then &quot;&lt;i &gt;constructs a linear continuation monad equivalent to the identity functor, by allowing internal positions in our games, [which] circumvents the Blass problem and defines a model of linear logic&lt;/i&gt;.&quot;&lt;/p&gt;
&lt;p &gt;Jacques Carette called this paper mind-blowing.  My mind-blow warning light already exploded.  I&#039;m posting this paper because I know a number of LtUers are interested in these topics, and this way I can buttonhole one of them the next time I see them and ask them to explain it to me. ;)&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/22">Category Theory</category>
 <pubDate>Fri, 18 Dec 2009 03:23:36 +0000</pubDate>
</item>
</channel>
</rss>
