Otterlo: Difference between revisions

From ifipwg21
(Created page with "== Meeting Information == The 79th meeting will be organised by Johan Jeuring. Location: Otterlo, The Netherlands. For practical information, go to Otterlo (practical). === Dates === Monday 2020-01-06 to Friday 2020-01-10. (Meeting starts on Monday morning.) === Participants === {| class="wikitable" style="margin:auto" ! Name !! Function |- | Carroll Morgan || chairman |- | Johan Jeuring || vice-chairman |- | Tom Schrijvers || secretary |-...")
 
 
(2 intermediate revisions by one other user not shown)
Line 24: Line 24:
| Lambert Meertens || Member  
| Lambert Meertens || Member  
|-
|-
| [[Member_79_PatrikJansson|Patrik Jansson]] || Member  
| Patrik Jansson || Member  
|-
|-
| Jeremy Gibbons || Member  
| Jeremy Gibbons || Member  
Line 150: Line 150:
</blockquote>
</blockquote>


Jennifer Hackett, ''Call-by_value is clairvoyant call-by-need'' (Tuesday, January 7 2020, 12:09 -- 14:28)
Jennifer Hackett, ''Call-by-value is clairvoyant call-by-need'' (Tuesday, January 7 2020, 12:09 -- 14:28)
<blockquote>
<blockquote>
Call-by-need evaluation, also known as lazy evaluation, provides two key benefits: compositional programming and infinite data. The standard semantics for laziness is Launchbury's natural semantics, which uses a heap to memoise the results of delayed evaluations. However, the stateful nature of this heap greatly complicates reasoning about the operational behaviour of lazy programs. In this article, we propose an alternative semantics for laziness, clairvoyant evaluation, that replaces the state effect with nondeterminism, and prove this semantics equivalent in a strong sense to the standard semantics. We show how this new semantics greatly simplifies operational reasoning, admitting much simpler proofs of a number of results from the literature, and how it leads to the first denotational cost semantics for lazy evaluation.
Call-by-need evaluation, also known as lazy evaluation, provides two key benefits: compositional programming and infinite data. The standard semantics for laziness is Launchbury's natural semantics, which uses a heap to memoise the results of delayed evaluations. However, the stateful nature of this heap greatly complicates reasoning about the operational behaviour of lazy programs. In this article, we propose an alternative semantics for laziness, clairvoyant evaluation, that replaces the state effect with nondeterminism, and prove this semantics equivalent in a strong sense to the standard semantics. We show how this new semantics greatly simplifies operational reasoning, admitting much simpler proofs of a number of results from the literature, and how it leads to the first denotational cost semantics for lazy evaluation.
Line 173: Line 173:
Joint work with Robert Krook, U. of Gothenburg. [http://tydeworkshop.org/2019-abstracts/paper18.pdf Extended abstract] presented at [[http://tydeworkshop.org/][TyDe'19]].
Joint work with Robert Krook, U. of Gothenburg. [http://tydeworkshop.org/2019-abstracts/paper18.pdf Extended abstract] presented at [[http://tydeworkshop.org/][TyDe'19]].


<a href='http://www.cse.chalmers.se/~patrikj/talks/WG2.1_Otterlo_Jansson_AlgSDP.pdf' target='_blank' title='AlgSDP slides'>slides</a>
[http://www.cse.chalmers.se/~patrikj/talks/WG2.1_Otterlo_Jansson_AlgSDP.pdf slides]
</blockquote>
</blockquote>


Line 220: Line 220:
In this presentation I will show how GCs form an additive category with biproducts and how these constructs offer (for free) other interesting ways to combine and fine-tune GCs in a scalable, correct-by-construction way. This is preliminary work to a revival and extension of the Galculator tool presented at meeting #65 (2010). It also links to the work of Roland and Kevin Backhouse on safety of abstract interpretations, for free. (Joint work with P. Silva and X. Pinho.)
In this presentation I will show how GCs form an additive category with biproducts and how these constructs offer (for free) other interesting ways to combine and fine-tune GCs in a scalable, correct-by-construction way. This is preliminary work to a revival and extension of the Galculator tool presented at meeting #65 (2010). It also links to the work of Roland and Kevin Backhouse on safety of abstract interpretations, for free. (Joint work with P. Silva and X. Pinho.)


[http://www4.di.uminho.pt/~jno/ps/wg21-79a-sl.pdf slides]
[http://www.di.uminho.pt/~jno/ps/wg21-79a-sl.pdf slides]
</blockquote>
</blockquote>



Latest revision as of 20:34, 3 May 2025

Meeting Information

The 79th meeting will be organised by Johan Jeuring.

Location: Otterlo, The Netherlands.

For practical information, go to Otterlo (practical).

Dates

Monday 2020-01-06 to Friday 2020-01-10. (Meeting starts on Monday morning.)

Participants

Name Function
Carroll Morgan chairman
Johan Jeuring vice-chairman
Tom Schrijvers secretary
Lambert Meertens Member
Patrik Jansson Member
Jeremy Gibbons Member
Nicolas Wu Member
Florian Rabe Member
Andres Löh Member
Jose Oliveira Member
Ralf Hinze Member
James McKinna Member
Sam Lindley Member
Wouter Swierstra Member
Janis Voigtländer Member
Peter Hoefner Member
Oleg Kiselyov Member
Bernhard Möller Member
Fritz Henglein Member
Nils Anders Danielsson Member
Tarmo Uustalu Member
Marco Gaboardi Observer
Brijesh Dongol Observer
Pierre-Evariste Dagand Observer
Matija Pretnar Observer
Helle Hvid Hansen Observer
Jennifer Hackett Observer
Niki Vazou Observer
Bastiaan Heeren Local Observer
Steven Pemberton Local Observer

See also the table of participants on the “practical” page for detailed practical information

Organizational and administrative matters

TBD

Technical presentations in scheduled order

Jeremy Gibbons, The School of Squiggol (Monday, January 6 2020, 12:05 -- 14:35 )

I re-presented the talk I gave at the History of Formal Methods workshop in Porto in October, on the history of the Bird-Meertens Formalism. Specifically, I talked about the ebb and flow of enthusiasm within the group for the "Squiggol" notation, with concise funny symbols rather than a longer but more accessible more closely resembling a functional programming language.

slides

Steven Pemberton, Declarative Programming (Monday, January 6 2020, 14:38 -- 15:20)

In the 50s, when the first programming languages were designed, computers cost millions, and relatively, programmers were almost free. Those programming languages therefore reflected that relationship: it didn't matter if it took a long time to program, as long as the resulting program ran as fast as possible.

Now, that relationship has been reversed: compared to the cost of programmers, computers are almost free. And yet we are still programming them in direct descendants of the programming languages from the 50's: we are still telling the computers step by step how to solve the problem.

Declarative programming is a new approach to applications. Rather than describing exactly how to reach the solution, it describes what the solution should look like, and leaves more of the administrative parts of the program to the computer.

One of the few declarative languages available is XForms. Large projects, at large companies such as the National Health Service, the BBC and Xerox, have shown that by using XForms, programming time and cost of applications can be reduced to a tenth.

This talk introduces XForms, and shows some advanced applications that can be written in s small number of lines.

slides

Nils Anders Danielsson, Logical Properties of a Modality for Erasure (Monday, January 6 2020, 15:50 -- 16:32)

slides

draft paper

Brijesh Dongol, Hoare Logic and Weakest Preconditions for C11 (Monday, January 6 2020, 16:40 -- 17:28)

Owicki-Gries reasoning for concurrent programs uses Hoare logic together with an interference freedom rule for concurrency. This talk describes a Hoare logic for a fragment of the C11 memory model (that includes both relaxed and release-acquire accesses). Our logic features novel assertions on thread-specific views and a set of Hoare logic axioms that describe how these assertions are affected by atomic program steps. Our framework is such that the standard Owicki-Gries proof rules for compound statements, including non-interference remain unchanged. We demonstrate the utility of our framework by verifying a number of standard C11 litmus tests and Peterson’s algorithm adapted for C11. Our proof calculus and its application to program verification have been fully mechanised in Isabelle. If time permits, I will describe recent efforts to develop a weakest precondition for weak memory. (Joint work with Sadegh Dalvandi, Simon Doherty, and Heike Wehrheim.)

slides

Pierre-Evariste Dagand, A Programming Model for Transiently-Powered Systems (Tuesday, January 7 2020, 9:02 -- 9:47)

Transiently-powered systems offer, perhaps surprisingly, an opportunity to follow an algebraic treatment of effects. I will first introduce a formal model of one such system and present our current correctness result. However, this result assumes that the CPU is able to maintain a shadow copy of the external devices it interacts with. We will see that not every device is compatible with such a model and we will therefore strive to design a language that would allow programmers to specify persistence-compatible interfaces (and only those) while automatically synthesizing the type and implementation of their shadow version. This is joint work with Rémi Oudin, Delphine Demange, Gautier Berthou and Tanguy Risset.

slides

Niki Vazou, Refinement Types & Functional Extensionality (Tuesday, January 7 2020, 9:50 -- 10:40)

In this talk I presented the interaction of functional extensionality with refinement types. The talk begins with a simple example that motivates the requirement of functional extensionality. Then,explains how the “natural” axiomatization of functional extensionality can lead to unsoundness and a simple solution. Finally, suggests an algorithmic extension of type checking that reduced functional to first order equality.

slides

Andres Loeh, Staged generics-sop (Tuesday, January 7 2020, 11:05 -- 12:08)

TBD

Jennifer Hackett, Call-by-value is clairvoyant call-by-need (Tuesday, January 7 2020, 12:09 -- 14:28)

Call-by-need evaluation, also known as lazy evaluation, provides two key benefits: compositional programming and infinite data. The standard semantics for laziness is Launchbury's natural semantics, which uses a heap to memoise the results of delayed evaluations. However, the stateful nature of this heap greatly complicates reasoning about the operational behaviour of lazy programs. In this article, we propose an alternative semantics for laziness, clairvoyant evaluation, that replaces the state effect with nondeterminism, and prove this semantics equivalent in a strong sense to the standard semantics. We show how this new semantics greatly simplifies operational reasoning, admitting much simpler proofs of a number of results from the literature, and how it leads to the first denotational cost semantics for lazy evaluation.

slides

Wouter Swierstra, A well-known representation of monoids and its application to the function 'vector reverse' (Tuesday, January 7 2020, 14:39 -- 15:30)

TBD

Tarmo Uustalu, Interaction laws of monads and comonads (Tuesday, January 7 2020, 15:58 -- 17:02)

TBD

Patrik Jansson, AlgSDP: Algebra of Sequential Decision Problems (Tuesday, January 7 2020, 17:10 -- 17:47)

Sequential decision problems are a well established concept in decision theory, with the Bellman equation as a popular choice for describing them. Botta, Jansson, Ionescu have formalised the notion of such problems in Idris (presented by Jansson at [[Uruguay][#75 Uruguay]], by Botta at [[Brandenburg][#77 Brandenburg]]). Here we focus on an Algebra of SDPs (in Agda): combinators for building more complex SDPs from simpler ones.

Joint work with Robert Krook, U. of Gothenburg. Extended abstract presented at [[1][TyDe'19]].

slides

Fritz Henglein, It's about time (Wednesday, January 8 2020, 09:02 -- 9:49)

We provide a model of calendar time, based on durations as abelian groups (Z-modules) of date actions freely generated by multiple time units, year, month, day (others if desired). Free dates are year-month-day triples of arbitrary integers. A calendar is a specified subset of those that can be mapped one-to-one to the integers. This date numbering function is extended canonically to free dates for the Julian calendar (analogous for Gregorian calendar). Multidimensional durations and free dates facilitate programming without complicated, calendar specific validity checking; such calendar specifics ('ugly' calculations with leap years, different month lengths) are relegated to the date numbering function and its inverse, which is often not needed can thus be elided; e.g. 2019-03-00 denotes the last day of February 2019, adding 6 months yields 2019-09-00, the last day of August.

slides

Matija Pretnar, Asynchronous operations (Wednesday, January 8 2020, 09:51 -- 11:02)

In the standard algebraic approach to effects, once an operation is called, the evaluation of the continuation stalls until it gets a result (either from a built-in primitive effect or through a handler). But we often desire asynchronous behaviour, when the continuation may proceed with the evaluation and suitably incorporates the result once it arrives. I will describe a small calculus with primitives for sending and receiving such signals.

slides

Peter Hoefner, New models for relation algebra (by categorical construction) (Wednesday, January 8 2020, 11:03 -- 11:50)

slides

Helle Hvid Hansen, (Co)Algebraic Techniques for Markov Decision Processes (Thursday, January 9 2020, 9:06 -- 10:00)

Markov Decision Processes (MDPs) are state-based models of sequential decision-making under uncertainty in which an agent chooses actions that result in a probabilistic state-transition and rewards. The aim of the agent is to find an optimal policy, that is, a mapping from states to actions that maximises expected future rewards. The classic theory of MDPs is well-developed, but it uses low-level analytic arguments involving limits in metric spaces. The aim of this work is to identify more abstract reasoning principles, and bring to bear some algebraic and coalgebraic techniques from program semantics. The talk has two parts. In the first part we formulate a proof-principle, called Contraction (Co)Induction, which is based on Banach’s Fixpoint Theorem (and an easy consequence of Kozen & Ruozzi's Metric Coinduction). Contraction (co)induction establishes an induction and coinduction principle for unique fixpoints of contractions, and we use it to isolate the main step in the correctness proof of Howard's policy iteration algorithm. In the second part, we show that the long-term value function of a policy with respect to the discounted sum criterion can be obtained via the universal property of a generalized notion of corecursive algebra. To get this result, we develop a categorical formulation of the relevant properties of bounded maps. In order to instantiate these abstract results we also explore boundedness features of the Kantorovich lifting of the distribution monad to metric spaces. (Joint work with Frank Feys and Larry Moss.)

slides

Marco Gaboardi, Type Systems for Relational Cost Analysis (Thursday, January 9 2020, 10:02 -- 11:20)

TBD

James McKinna, Parsing as a(n intrinsically typed) view (Thursday, January 9 2020, 11:3 -- 12:08)

TBD

Jose Oliveira, Biproducts of Galois Connections (Thursday, January 9 2020, 12:11 -- 13:46)

Static analysis of code is an increasingly important area of computer science and machine learning, typically relying on abstract interpretation (AI) as a way of handling the complex models that arise from real size software analyses. On its turn, AI often relies on Galois connections (GC) over complete lattices as chief way to structure abstraction and concretization functions. For this to work, GC (which are on themselves rich in useful properties) need to be combined to obtain more and more sophisticated, correct-by-construction abstractions.

In this presentation I will show how GCs form an additive category with biproducts and how these constructs offer (for free) other interesting ways to combine and fine-tune GCs in a scalable, correct-by-construction way. This is preliminary work to a revival and extension of the Galculator tool presented at meeting #65 (2010). It also links to the work of Roland and Kevin Backhouse on safety of abstract interpretations, for free. (Joint work with P. Silva and X. Pinho.)

slides

Bernhard Moeller, The theta-join as join with theta (Thursday, January 9, 13:48 -- 14:33)

Jules Desharnais and Bernhard Möller

We present an algebra for the classical database operators. Contrary to most approaches we use (inner) join and projection as the basic operators. Theta joins result by representing theta as a database table itself and defining theta-join as a join with that table. The same technique works for selection. With this, (point-free) proofs of the standard optimisation laws become very simple and uniform. The approach also applies to proving join/projection laws for preference queries. Extending the earlier approach of~\cite{MR15}, we replace disjointness assumptions on the table types by suitable consistency conditions. A substantial amount of the proofs has also been performed with the CalcCheck tool.

slides

Oleg Kiselyov, Lazy Type System: Recursive Generativity (Thursday, January 9, 15:30 -- 16:28)

http://okmij.org/ftp/ML/lazyT.ml

Abstract

In the IFL 2016 paper and many talks in this Group, Doaitse Swierstra outlined examples that call for `lazy type computation'. Non-strict evaluation, or `laziness', lets us delay the actual computation yet pretend its value is already available. Swierstra has demonstrated a series of examples showing that when existentials (i.e., packages) are involved, we may have to carry out this pretense not only with values but also with types. After all, the type of values packed in an existential is only known when the existential value itself is produced. If the value computation is delayed, so should be the type. Alas, the existing type systems, even for non-strict languages, insist on the type being available eagerly. (Languages like Agda allow non-normalized type expressions -- but only because the normalization is assured.) Although unbridled laziness at type level may lead to unsoundness, all Swierstra's examples are sound.

Swierstra's examples are extraordinarily subtle, and the need for type laziness is very difficult to see. The use of Haskell, with no distinction in types between a value and the promise of a value, and the implicit forcing of the promises, masks the problem. In the first part of the talk, we expound one of the Swierstra's examples, using OCaml, with its clear distinction of values and promises and explicit computations.

In the second part of the talk we demonstrate that manipulating types that haven't yet been determined is the problem that occurs in typing recursive modules. We then explain the work of Dreyer on recursive type generativity, who introduced a sound way to deal with `lazy' type. It seems the recursive type generativity is also the answer to problems posed in Swierstra's examples. (Alas, although recursive type generativity is extensively theoretically investigated, it is not implemented in any mainstream language.)

code/explanation

Schedule (subject to change)

Sessions will start at 9:00 on Monday and finish at noon on Friday.

Monday, Tuesday, and Thursday, the schedule is as follows:

  • session – 9:00 to 10:30
  • coffee break – 10:30 to 11:00
  • session – 11:00 to 12:30
  • lunch – 12:30 to 14:00
  • session – 14:00 to 15:30
  • coffee break – 15:30 to 16:00
  • session – 16:00 to 18:00
  • dinner – starts at 19:00

Wednesday and Friday we will have sessions only in the morning:

  • session – 9:00 to 10:30
  • coffee break – 10:30 to 11:00
  • session – 11:00 to 12:30
  • lunch (Wednesday) – 12:30 to 13:30

The Friday-morning session before the 10:30 coffee break is attended by members only.