<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://lambda-the-ultimate.org">
<channel>
 <title>Lambda the Ultimate - Semantics</title>
 <link>http://lambda-the-ultimate.org/taxonomy/term/29/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Applications of Blockchain to Programming Language Theory</title>
 <link>http://lambda-the-ultimate.org/ltu-blockchain-plt-thinktank</link>
 <description>&lt;p &gt;Let&#039;s talk about Blockchain.  Goal is to use this forum topic to highlight its usefulness to programming language theory and practice.  If you&#039;re familiar with existing research efforts, please share them here.  In addition, feel free to generate ideas for how Blockchain could improve languages and developer productivity.&lt;/p&gt;
&lt;p &gt;As one tasty example: Blockchain helps to formalize thinking about &lt;a href=&quot;https://en.wikipedia.org/wiki/Mutual_knowledge_(logic)&quot;&gt;mutual knowledge&lt;/a&gt; and &lt;a href=&quot;https://en.wikipedia.org/wiki/Common_knowledge_(logic)&quot;&gt;common knowledge&lt;/a&gt;, and potentially think about sharing intergalactic computing power through vast distributed computing fabrics.  If we can design contracts in such a way that maximizes the usage of mutual knowledge while minimizing common knowledge to situations where you have to &quot;prove your collateral&quot;, third-party transactions could eliminate a lot of back office burden.  But, there might be benefits in other areas of computer science from such research, as well.&lt;/p&gt;
&lt;p &gt;Some language researchers, like Mark S. Miller, have always dreamed of &lt;a href=&quot;https://www.youtube.com/watch?v=j5SuqIrgRJU&quot;&gt;Agoric and the Decades-Long Quest for Secure Smart Contracts&lt;/a&gt;.&lt;/p&gt;
&lt;p &gt;Some may also be aware that &lt;a href=&quot;https://www.innoq.com/en/articles/2019/07/verifikation-von-smart-contracts/&quot;&gt;verification of smart contracts&lt;/a&gt; is an important research area, because of the notorious theft of purse via logic bug in an Ethereum smart contract.&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/5">Fun</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>
 <pubDate>Mon, 13 Apr 2020 14:38:12 +0000</pubDate>
</item>
<item>
 <title>The Gentle Art of Levitation</title>
 <link>http://lambda-the-ultimate.org/node/5526</link>
 <description>&lt;a href=&quot;http://jmchapman.github.io/papers/levitation.pdf&quot;&gt;The Gentle Art of Levitation&lt;/a&gt;
&lt;p &gt;2010 by James Chapman, Pierre-Evariste Dagand, Conor McBride, Peter Morrisy&lt;/p&gt;
&lt;blockquote &gt;
We present a closed dependent type theory whose inductive types
are given not by a scheme for generative declarations, but by encoding
in a universe. Each inductive datatype arises by interpreting its
description—a first-class value in a datatype of descriptions. Moreover,
the latter itself has a description. Datatype-generic programming
thus becomes ordinary programming. We show some of the
resulting generic operations and deploy them in particular, useful
ways on the datatype of datatype descriptions itself. Surprisingly
this apparently self-supporting setup is achievable without paradox
or infinite regress.
&lt;/blockquote&gt;
It&#039;s datatype descriptions all the way down.</description>
 <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>Fri, 11 May 2018 19:26:31 +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>Sequent Calculus as a Compiler Intermediate Language</title>
 <link>http://lambda-the-ultimate.org/node/5519</link>
 <description>&lt;p &gt;&lt;a href=&quot;https://www.microsoft.com/en-us/research/wp-content/uploads/2016/04/sequent-calculus-icfp16.pdf&quot;&gt;Sequent Calculus as a Compiler Intermediate Language&lt;/a&gt;&lt;br &gt;
2016 by Paul Downen, Luke Maurer, Zena M. Ariola, Simon Peyton Jones&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
The typed λ-calculus arises canonically as the term language for a logic called natural deduction, using the Curry-Howard isomorphism: the pervasive connection between logic and programming languages asserting that propositions are types and proofs are programs. Indeed, for many people, the λ-calculus is the living embodiment of Curry-Howard.&lt;/p&gt;
&lt;p &gt;But natural deduction is not the only logic! Conspicuously, natural deduction has a twin, born in the very same paper, called the sequent calculus. Thanks to the Curry-Howard isomorphism, terms of the sequent calculus can also be seen as a programming language with an emphasis on control flow.
&lt;/p&gt;&lt;/blockquote&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/6">General</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>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/21">Type Theory</category>
 <pubDate>Mon, 02 Apr 2018 17:06:41 +0000</pubDate>
</item>
<item>
 <title>Implementing Algebraic Effects in C</title>
 <link>http://lambda-the-ultimate.org/node/5457</link>
 <description>&lt;p &gt;&lt;a href=&quot;https://www.microsoft.com/en-us/research/publication/implementing-algebraic-effects-c/&quot;&gt;Implementing Algebraic Effects in C&lt;/a&gt; by Daan Leijen:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;We describe a full implementation of algebraic effects and handlers as a library in standard and portable C99, where effect operations can be used just like regular C functions. We use a formal operational semantics to guide the C implementation at every step where an evaluation context corresponds directly to a particular C execution context. Finally we show a novel extension to the formal semantics to describe optimized tail resumptions and prove that the extension is sound. This gives two orders of magnitude improvement to the performance of tail resumptive operations (up to about 150 million operations per second on a Core i7@2.6GHz)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Another great paper by Daan Leijen, this time on a C library with immediate practical applications at Microsoft. The applicability is much wider though, since it&#039;s an ordinary C library for defining and using arbitrary algebraic effects. It looks pretty usable and is faster and more general than most of the C coroutine libraries that already exist.&lt;/p&gt;
&lt;p &gt;It&#039;s a nice addition to your toolbox for creating language runtimes in C, particularly since it provides a unified, structured way of creating and handling a variety of sophisticated language behaviours, like async/await, in ordinary C with good performance. There has been considerable discussion here of C and low-level languages with green threads, coroutines and so on, so hopefully others will find this useful!&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/35">Effects</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/8">Implementation</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>Thu, 27 Jul 2017 13:50:17 +0000</pubDate>
</item>
<item>
 <title>The Syntax and Semantics of Quantitative Type Theory</title>
 <link>http://lambda-the-ultimate.org/node/5453</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://bentnib.org/quantitative-type-theory.html&quot;&gt;The Syntax and Semantics of Quantitative Type Theory&lt;/a&gt; by Robert Atkey:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;Type Theory offers a tantalising promise: that we can program and reason within a single unified system. However, this promise slips away when we try to produce efficient programs. Type Theory offers little control over the intensional aspect of programs: how are computational resources used, and when can they be reused. Tracking resource usage via types has a long history, starting with Girard&#039;s Linear Logic and culminating with recent work in contextual effects, coeffects, and quantitative type theories. However, there is conflict with full dependent Type Theory when accounting for the difference between usages in types and terms. Recently, McBride has proposed a system that resolves this conflict by treating usage in types as a zero usage, so that it doesn&#039;t affect the usage in terms. This leads to a simple expressive system, which we have named Quantitative Type Theory (QTT).&lt;/p&gt;
&lt;p &gt;McBride presented a syntax and typing rules for the system, as well as an erasure property that exploits the difference between “not used” and “used”, but does not do anything with the finer usage information. In this paper, we present present a semantic interpretation of a variant of McBride&#039;s system, where we fully exploit the usage information. We interpret terms simultaneously as having extensional (compile-time) content and intensional (runtime) content. In our example models, extensional content is set-theoretic functions, representing the compile-time or type-level content of a type-theoretic construction. Intensional content is given by realisers for the extensional content. We use Abramsky et al.&#039;s Linear Combinatory Algebras as realisers, yield a large range of potential models from Geometry of Interaction, graph models, and syntactic models. Read constructively, our models provide a resource sensitive compilation method for QTT.&lt;/p&gt;
&lt;p &gt;To rigorously define the structure required for models of QTT, we introduce the concept of a Quantitative Category with Families, a generalisation of the standard Category with Families class of models of Type Theory, and show that this class of models soundly interprets Quantitative Type Theory.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Resource-aware programming is a hot topic these days, with Rust exploiting affine and ownership types to scope and track resource usage, and with &lt;a href=&quot;http://lambda-the-ultimate.org/node/5003&quot;&gt;Ethereum&lt;/a&gt; requiring programs to spend &quot;gas&quot; to execute. Combining linear and dependent types has proven difficult though, so making it easier to track and reason about resource usage in dependent type theories would then be a huge benefit to making verification more practical in domains where resources are limited.&lt;/p&gt;</description>
 <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, 25 Jul 2017 17:28:17 +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>Fully Abstract Compilation via Universal Embedding</title>
 <link>http://lambda-the-ultimate.org/node/5364</link>
 <description>&lt;p &gt;&lt;a href=&quot;https://www.williamjbowman.com/resources/fabcc-paper.pdf&quot;&gt;Fully Abstract Compilation via Universal Embedding&lt;/a&gt; by Max S. New, William J. Bowman, and Amal Ahmed:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;A &lt;em &gt;fully abstract&lt;/em&gt; compiler guarantees that two source components are observationally equivalent in the source language if and only if their translations are observationally equivalent in the target. Full abstraction implies the translation is secure: target-language attackers can make no more observations of a compiled component than a source-language attacker interacting with the original source component. Proving full abstraction for realistic compilers is challenging because realistic target languages contain features (such as control effects) unavailable in the source, while proofs of full abstraction require showing that every target context to which a compiled component may be linked can be back-translated to a behaviorally equivalent source context.&lt;/p&gt;
&lt;p &gt;We prove the first full abstraction result for a translation whose target language contains exceptions, but the source does not. Our translation—specifically, closure conversion of simply typed λ-calculus with recursive types—uses types at the target level to ensure that a compiled component is never linked with attackers that have more distinguishing power than source-level attackers. We present a new back-translation technique based on a deep embedding of the target language into the source language at a dynamic type. Then boundaries are inserted that mediate terms between the untyped embedding and the strongly-typed source. This technique allows back-translating non-terminating programs, target features that are untypeable in the source, and well-bracketed effects.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Potentially a promising step forward to secure multilanguage runtimes. We&#039;ve previously discussed security vulnerabilities caused by full abstraction failures &lt;a href=&quot;http://lambda-the-ultimate.org/node/3830&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://lambda-the-ultimate.org/node/1588&quot;&gt;here&lt;/a&gt;. The paper also provides a comprehensive review of associated literature, like various means of protection, back translations, embeddings, etc.&lt;/p&gt;</description>
 <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>
 <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>Wed, 27 Jul 2016 15:57:02 +0000</pubDate>
</item>
<item>
 <title>Simon Peyton Jones elected into the Royal Society Fellowship</title>
 <link>http://lambda-the-ultimate.org/node/5332</link>
 <description>&lt;p &gt;&lt;A href=&#039;http://research.microsoft.com/en-us/people/simonpj/&#039;&gt;Simon Peyton Jones&lt;/A&gt; has been &lt;A href=&quot;https://royalsociety.org/fellows/fellows-directory/#?earliestelectedyear=2016&quot;&gt;elected&lt;/A&gt; as a &lt;A href=&#039;https://royalsociety.org/people/simon-peyton-jones-12889/&#039;&gt;Fellow of the Royal Society&lt;/A&gt;. The Royal Society biography reads:&lt;BLOCKQUOTE &gt;&lt;br &gt;
Simon&#039;s main research interest is in functional programming languages, their implementation, and their application. He was a key contributor to the design of the now-standard functional language Haskell, and is the lead designer of the widely-used Glasgow Haskell Compiler (GHC). He has written two textbooks about the implementation of functional languages.&lt;/p&gt;
&lt;p &gt;More generally, Simon is interested in language design, rich type systems, compiler technology, code generation, runtime systems, virtual machines, and garbage collection. He is particularly motivated by direct use of principled theory to practical language design and implementation -- that is one reason he loves functional programming so much.&lt;/p&gt;
&lt;p &gt;Simon is also chair of Computing at School, the grass-roots organisation that was at the epicentre of the 2014 reform of the English computing curriculum.&lt;br &gt;
&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p &gt;Congratulations SPJ!&lt;/p&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/11">Functional</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/6">General</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/8">Implementation</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/17">Software Engineering</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/25">Spotlight</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>
 <pubDate>Sat, 30 Apr 2016 19:44:24 +0000</pubDate>
</item>
<item>
 <title>Running Probabilistic Programs Backwards</title>
 <link>http://lambda-the-ultimate.org/node/5215</link>
 <description>&lt;p &gt;I saw this work presented at ESOP 2015 by &lt;a href=&quot;http://www.cs.umd.edu/~ntoronto/&quot;&gt;Neil Toronto&lt;/a&gt;, and the talk was excellent (&lt;a href=&quot;http://www.cs.umd.edu/~ntoronto/papers/toronto-2015esop-slides.pdf&quot;&gt;slides&lt;/a&gt;).&lt;/p&gt;

&lt;p &gt;&lt;a href=&quot;http://arxiv.org/abs/1412.4053&quot;&gt;Running Probabilistic Programs Backwards&lt;/a&gt;&lt;br &gt;
Neil Toronto, Jay McCarthy, David Van Horn&lt;br &gt;
2015&lt;/p&gt;

&lt;blockquote &gt;
&lt;p &gt;Many probabilistic programming languages allow programs to be run under constraints in order to carry out Bayesian inference. Running programs under constraints could enable other uses such as rare event simulation and probabilistic verification---except that all such probabilistic languages are necessarily limited because they are defined or implemented in terms of an impoverished theory of probability. Measure-theoretic probability provides a more general foundation, but its generality makes finding computational content difficult.&lt;/p&gt;
&lt;p &gt;We develop a measure-theoretic semantics for a first-order probabilistic language with recursion, which interprets programs as functions that compute preimages. Preimage functions are generally uncomputable, so we derive an abstract semantics. We implement the abstract semantics and use the implementation to carry out Bayesian inference, stochastic ray tracing (a rare event simulation), and probabilistic verification of floating-point error bounds.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p &gt;(also on &lt;a href=&quot;https://scirate.com/arxiv/1412.4053&quot;&gt;SciRate&lt;/a&gt;)&lt;/p&gt;

The introduction sells the practical side of the work a bit better than the abstract.

&lt;blockquote &gt;
&lt;p &gt;Stochastic ray tracing [30] is one such rare-event simulation task. As illus-
trated in Fig. 1, to carry out stochastic ray tracing, a probabilistic program
simulates a light source emitting a single photon in a random direction, which
is reflected or absorbed when it hits a wall. The program outputs the photon’s
path, which is constrained to pass through an aperture. Millions of paths that
meet the constraint are sampled, then projected onto a simulated sensor array.&lt;/p&gt;

&lt;p &gt;The program’s main loop is a recursive function with two arguments: &lt;code &gt;path&lt;/code&gt;,
the photon’s path so far as a list of points, and &lt;code &gt;dir&lt;/code&gt;, the photon’s current direction.&lt;/p&gt;

&lt;code &gt;&lt;pre &gt;
simulate-photon path dir :=
  case (find-hit (fst path) dir) of
    absorb pt −→ (pt, path)
    reflect pt norm −→ simulate-photon (pt, path) (random-half-dir norm)
&lt;/pre&gt;&lt;/code&gt;

&lt;p &gt;Running &lt;code &gt;simulate-photon (pt, ()) dir&lt;/code&gt;, where &lt;code &gt;pt&lt;/code&gt; is the light source’s location and
&lt;code &gt;dir&lt;/code&gt; is a random emission direction, generates a photon path. The &lt;code &gt;fst&lt;/code&gt; of the path
(the last collision point) is constrained to be in the aperture. The remainder of
the program is simple vector math that computes ray-plane intersections.&lt;/p&gt;

&lt;p &gt;In contrast, hand-coded stochastic ray tracers, written in general-purpose
languages, are much more complex and divorced from the physical processes they
simulate, because they must interleave the advanced Monte Carlo algorithms
that ensure the aperture constraint is met.&lt;/p&gt;

&lt;p &gt;Unfortunately, while many probabilistic programming languages support random real numbers, none are capable of running a probabilistic program like &lt;code &gt;simulate-photon&lt;/code&gt; under constraints to carry out stochastic ray tracing. The reason is not lack of
engineering or weak algorithms, but is theoretical at its core: they are all either
defined or implemented using [density functions]. [...] Programs whose outputs are deterministic
functions of random values and programs with recursion generally cannot denote
density functions. The program &lt;code &gt;simulate-photon&lt;/code&gt; exhibits both characteristics.&lt;/p&gt;

&lt;p &gt;Measure-theoretic probability is a more powerful alternative to this naive
probability theory based on probability mass and density functions. It not only
subsumes naive probability theory, but is capable of defining any computable
probability distribution, and many uncomputable distributions. But while even
the earliest work [15] on probabilistic languages is measure-theoretic, the theory’s
generality has historically made finding useful computational content difficult.
We show that measure-theoretic probability can be made computational by&lt;/p&gt;

&lt;ol &gt;
&lt;li &gt;Using measure-theoretic probability to define a compositional, denotational
semantics that gives a valid denotation to every program.&lt;/li&gt;
&lt;li &gt;Deriving an abstract semantics, which allows computing answers to questions
about probabilistic programs to arbitrary accuracy.&lt;/li&gt;
&lt;li &gt;Implementing the abstract semantics and efficiently solving problems.&lt;/li&gt;&lt;/ol&gt;

&lt;p &gt;In fact, our primary implementation, Dr. Bayes, produced &lt;a href=&quot;http://s13.postimg.org/7fki8zeg3/figure1.jpg?noCache=1438446927&quot;&gt;Fig. 1b&lt;/a&gt; by running a probabilistic program like &lt;code &gt;simulate-photon&lt;/code&gt; under an aperture constraint.&lt;/p&gt;
&lt;/blockquote&gt;</description>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/29">Semantics</category>
 <pubDate>Sat, 01 Aug 2015 16:49:24 +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>sml-family.org</title>
 <link>http://lambda-the-ultimate.org/node/5058</link>
 <description>&lt;p &gt;In his &lt;A href=&quot;http://existentialtype.wordpress.com/2014/09/26/sml-family-org-up-and-running/&quot;&gt;blog&lt;/A&gt;, &lt;A href=&quot;http://www.cs.cmu.edu/~rwh/&quot;&gt;Bob Harper&lt;/A&gt;, in joint effort with &lt;A href=&quot;http://people.cs.uchicago.edu/~dbm/&quot;&gt;Dave MacQueen&lt;/A&gt; and &lt;A href=&quot;http://www.lars.com/&quot;&gt;Lars Bergstrom&lt;/A&gt;, announces the launch of &lt;A href=&quot;http://sml-family.org&quot;&gt;sml-family.org&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
The Standard ML Family project provides a home for online versions of various formal definitions of Standard ML, including the &quot;Definition of Standard ML, Revised&quot; (Standard ML 97). The site also supports coordination between different implementations of the Standard ML (SML) programming language by maintaining common resources such as the documentation for the &lt;A href=&quot;http://sml-family.org/Basis/index.html&quot;&gt;Standard ML Basis Library&lt;/A&gt; and standard test suites. The goal is to increase compatibility and resource sharing between Standard ML implementations. &lt;/p&gt;
&lt;p &gt;The site includes a &lt;A href=&quot;http://sml-family.org/#History&quot;&gt;history section&lt;/A&gt; devoted to the history of ML, and of Standard ML in particular. This section will contain a collection of original source documents relating to the design of the language.
&lt;/p&gt;&lt;/blockquote&gt;</description>
 <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/7">History</category>
 <category domain="http://lambda-the-ultimate.org/taxonomy/term/8">Implementation</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>Tue, 30 Sep 2014 19:27:43 +0000</pubDate>
</item>
<item>
 <title>Inferring algebraic effects</title>
 <link>http://lambda-the-ultimate.org/node/5055</link>
 <description>&lt;p &gt;&lt;a href=&quot;http://www.lmcs-online.org/ojs/viewarticle.php?id=1469&amp;amp;layout=abstract&quot;&gt;Logical methods in computer science&lt;/A&gt; just published &lt;a href=&quot;http://matija.pretnar.info/&quot;&gt;Matija Pretnar&lt;/A&gt;&#039;s &lt;A href=&quot;http://arxiv.org/pdf/1312.2334.pdf&quot;&gt;latest take on algebraic effects and handlers&lt;/A&gt;:&lt;/p&gt;
&lt;blockquote &gt;&lt;p &gt;
We present a complete polymorphic effect inference algorithm for an ML-style language with handlers of not only exceptions, but of any other algebraic effect such as input &amp;amp; output, mutable references and many others. Our main aim is to offer the programmer a useful insight into the effectful behaviour of programs. Handlers help here by cutting down possible effects and the resulting lengthy output that often plagues precise effect systems. Additionally, we present a set of methods that further simplify the displayed types, some even by deliberately hiding inferred information from the programmer.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p &gt;Pretnar and &lt;A href=&quot;http://andrej.com/&quot;&gt;Bauer&lt;/A&gt;&#039;s &lt;A href=&quot;http://eff-lang.org/&quot;&gt;Eff&lt;/A&gt; has made &lt;A href=&quot;http://lambda-the-ultimate.org/node/4090&quot;&gt;previous&lt;/A&gt; &lt;A href=&quot;http://lambda-the-ultimate.org/node/4481&quot;&gt;appearances&lt;/A&gt; here on LtU. Apart from the new fangled polymorphic effect system, this paper also contains an Eff tutorial. &lt;/p&gt;</description>
 <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/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>Sat, 27 Sep 2014 23:16:37 +0000</pubDate>
</item>
</channel>
</rss>
