Online Apr22

From ifipwg21

Meeting Information

This short online meeting was organised by the chair and secretary for members and observers to get in touch during the corona pandemic.

Date

Wednesday 2022-04-27. 5pm-8pm UTC

Participants

Individual participation is not recorded.

We had 19 participants in Zoom.

Technical presentations in scheduled order

The order of the presentations is not yet fixed.

Tarmo Uustalu: What makes a strong monad?

Monads are a mathematical structure we care about in functional programming, but we tend to underrate the significance of strength.

In this talk, I will first remind us why strength matters in functional programming applications of monads. I will then review a number of equivalent definitions of strength of a functor and a monad and discuss some conditions of uniqueness and existence of strength. A lot of this material is folklore that deserves to be known better, but some results and examples are new.

This is joint work with Dylan McDermott presented at MSFP 2022 (paper, Dylan's slides, I'll add my revision when I've recovered my laptop's hard disk).

Tom Schrijvers: Breadth-First Traversal Via Staging

In his Dec 15 2021 talk on "Digging for Christmas" Jeremy Gibbons has discussed the problem of one-pass breadth-first traversal. An effectful traversal of a data structure iterates over every element, in some predetermined order, collecting effects in the process. Depth-first effectful traversal is straightforward to define in a compositional way, since it precisely follows the shape of the data. What about breadth-first effectful traversal? An indirect route is to factorize the data structure into shape (a structure of units) and contents (a vector of elements, in breadth-first order), traverse the vector, then rebuild the data structure with new contents.

We now show that this can instead be done directly, using staging. That staging is captured using a construction related to free applicative functors. Moreover, the staged traversals lend themselves well to fusion; we prove a novel fusion rule for effectful traversals, and use it in another solution to Bird’s ‘repmin’ problem.

This is joint work with Jeremy Gibbons, Donnacha Oisín Kidney and Nicolas Wu.

Slides

Y. Annie Liu: Recursive Rules with Aggregation: A Simple Unified Semantics

Complex reasoning problems are most clearly and easily specified using logical rules, but require recursive rules with aggregation such as count and sum for practical applications. Unfortunately, the meaning of such rules has been a significant challenge, leading to many disagreeing semantics.

Consider even a simple example: ``Tom will attend the logic seminar if the number of people who will attend it is at least 20. What if only 19 other people will attend? Will Tom attend, or not?

This paper describes a unified semantics for recursive rules with aggregation, extending the unified founded semantics and constraint semantics for recursive rules with negation. The key idea is to support simple expression of the different assumptions underlying different semantics, and orthogonally interpret aggregation operations using their simple usual meaning.

We present a formal definition of the semantics, prove important properties of the semantics, and compare with prior semantics. In particular, we present an efficient inference over aggregation that gives precise answers to all examples we have studied from the literature. We also apply our semantics to a wide range of challenging examples, and show that our semantics is simple and matches the desired results in all cases. Finally, we describe experiments on the most challenging examples, exhibiting unexpectedly superior performance over well-known systems when they can compute correct answers.

An extended and revised version is being prepared and will be available at https://arxiv.org/abs/2007.13053

(Joined work with Scott D. Stoller)

-- Main.PeterHoefner - 19 Apr 2022