Estonia2026: Difference between revisions

From ifipwg21
Line 297: Line 297:


Philipp Joram, ''Derivatives of Containers in Univalent Foundations'' (Wednesday, April 29 2026, 11:04--12:03)
Philipp Joram, ''Derivatives of Containers in Univalent Foundations'' (Wednesday, April 29 2026, 11:04--12:03)
<blockquote>[[File:Derivatives-in-uf.pdf|thumb]]slides,
<blockquote>
[[File:Derivatives-in-uf.pdf|slides]],  
[https://arxiv.org/abs/2512.17484 preprint],
[https://arxiv.org/abs/2512.17484 preprint],
[https://phijor.me/derivatives/ Agda code]
[https://phijor.me/derivatives/ Agda code]

Revision as of 19:02, 4 May 2026

IFIP WG 2.1 Meeting #84 Information

The 84th meeting will be organised by Tarmo Uustalu.
Location: Vihula, Estonia.

Dates

Monday 27 April 2026 to Friday 1 May 2026.
(Meeting starts at 8:50am on that Monday morning.)

Participants

Name Function
Johan Jeuring chair
Tom Schrijvers secretary
Tarmo Uustalu organizer
Alberto Pardo member
Andres Löh member
Carroll Morgan member
Florian Rabe member
James McKinna member
José Oliveira member
Lambert Meertens member
Marcos Viera member
Matija Pretnar member
Nick Wu member
Patrik Jansson member
Pierre-Evariste Dagand member
Sam Lindley member
Wouter Swierstra member
Farzaneh Derakhshan observer
Helle Hvid Hansen observer
Ningning Xie observer
Renato Neves observer
Annabelle McIver global observer
Chad Nester local observer
Philipp Joram local observer

Practical information

Consult the separate “practical” page for more detailed information: precise location, budget, travel advice etc.

Organizational and administrative matters

Friday morning, May 1, 2026.

Membership

These private matters are not recorded in the public version of the minutes.

Formal resolution

Nature has inspired and accompanied us in this former soviet paradise. Polynomials turned into magnolias, a fox fled our cameras, and we discovered a whole zoo of modal logics. We discussed irrelevant subjects at a temperature just above zero, but after we received a group-mission-relevant maximally offensive treatment the temperature rose more than ten degrees. Or was it the sauna? Without loss of generality, and after a careful analysis of the costs, participants transformed food and drinks into a wide range of effects, tastes, and connections.

The members and observers of WG 2.1, present at the 84th meeting in Vihula, Estonia, express their sincere gratitude to Tarmo Uustalu for having organised a meeting filled with ideas, memories, and Estonian hospitality.

Next meetings:

  • M85 (Feb 2027) Bruno Oliveira will organize the meeting in Thailand.
  • M86 (Oct 2027) Fritz Henglein offers to organize.
  • M87 (Jul 2028) Wouter Swierstra offers to organize.
  • M88 (Mar 2029) Canada would be a location of interest.

Technical presentations in scheduled order

Wouter Swierstra, Cost analysis & first order laziness (Monday, April 27 2026, 10:32 -- 11:40)

slides

Proof assistants are typically used to verify programs’ correctness – yet reasoning about the performance of programs appears to be less straightforward. This paper explores a lightweight technique for reasoning about the algorithmic complexity of purely functional data structures and algorithms: defining a cost function by induction on a program’s graph. To illustrate this approach, this paper presents the worst case and amortized analysis of several data structures, including batched queues and real time queues. Using recent work on first order laziness, this paper reasons formally about sharing in a purely functional setting, without introducing an explicit heap or resorting to separation logic. Simple induction suffices

Patrik Jansson, Navigating the incomparable: FP for Multi-Objective Optimization (Monday, April 27 2026, 11:43 -- 12:27, 13:04 -- 13:16)

2026-04-27_WG2.1_Jansson.pdf

In high-stakes domains like climate policy and fusion energy, empirical trial-and-error is impossible. Decisions require balancing conflicting objectives. This talk introduces a formally verified functional programming approach to compute multi-objective optimal control policies. By understanding orders and using strong type systems we move from single-objective total orders through partial product orders to the Pareto front. We aim to provide trustworthy tools for accountable decision-making.

Ningning Xie, Extensible Data Types for Tabular Data (Monday, April 27 2026, 13:21-- 15:18)

slides

This talk proposes a new language design that combines extensible data types, implemented through row types and row polymorphism, with ad-hoc polymorphism, implemented through type classes. We evaluate our type system using the Brown Benchmark for Table Types, demonstrating the utility of extensible rows with type classes for table types.

Florian Rabe, Lessons learned in industrial software verification (Monday, April 27 2026, 15:19-- 15:41)

Lessons I Learned from Industrial Software Verification

1) Size matters

   - applications are at large scales

   - new scales provide can totally different challenges

   - tool must always allow a way forward, e.g., prove interactively when automation fails

2) Maintenance is much harder than creation

   - large developments can be brittle (e.g., software updates)

   - brittle proofs are not reliable

3) Correctness alone is not enough

   - hard to convince practitioner

   - added value needed, e.g., verification-guarded aggressive optimization

4) Verification must take the target language for efficient execution into account

   - e.g., anticipated intended libraries for data structures

   - generating idiomatic target code makes reassures decision makers that verification will not get in the way

5) Verification is just 1 out of multiple ways to ensure correctness

   - documentation + human-code review

   - redundant implementation + differential testing

   - data sets + unit tests

   - logical specification + verification

6) LLMs will change everything

   - much code, proofs, and even specifications will be auto-written

   - humans will do relatively more (in)formal specification than now

   - makes formal verification both more important and less expensive

Nicolas Wu, Handling Higher-Order Effectful Operations (Monday, April 27 2026, 16:04-- 17:08)

slides

Any effectful language should have a construct for sequential composition of computations, such as let-bindings. A question then is how handling should interact with sequential composition. In the presence of scoped effects, there are two main approaches, and these differ in their views of the universal property of effectful computations. Crudely speaking, one approachviews computations with operation 𝑠 as the initial object among monads 𝑀 on types equipped with operations of type ∀𝛼. P → (S → M 𝛼) → M 𝛼, whereas the other approach computations with 𝑠 as the initial object among type constructors M : Type → Type equipped with operations for a monad. This talk motivates the need for higher-order effectful operations, and outlines these two approaches.

Chad Nester, Combinatory logic makes sense (Monday, April 27 2026, 17:12-- 17:53; Tuesday, April 28 2026, 9:06-- 9:38)

slides from RaMiCS 2026, paper at RaMiCS 2026

From the perspective of classical algebra, the axioms of combinatory logic are abhorrent. In this talk I will explain how they can be made less so, by viewing algebraic models of combinatory logic (i.e., combinatory algebras) in terms of structured multicategories.

Nils Anders Danielsson, Are Erased Postulates Safe? (Tuesday, April 28 2026, 9:56 -- 10:42)

slides

Some dependently typed programming languages do not allow one to prove potentially useful things like function extensionality or univalence. There is the option to use postulates, but if a postulate is used in a program, then the program might get stuck when one runs it. However, if the postulate is marked as *erased*, then one sometimes gets a guarantee of termination.

This is fairly straightforward if there is a strict separation of the erased and the non-erased parts of the language. However, it is more subtle in the presence of *erased matches*, which are similar to singleton elimination in Rocq. In particular, one form of erased match is not compatible with univalence.

I will talk about this, and speculate a little about a form of erased match that might be compatible with univalence.

Pierre-Evariste Dagand, Can Symmetric Cryptography Be Liberated from the Von Neumann Style? (Tuesday, April 28 2026, 11:07 -- 12:03)

slides

In defiance of Hinchliffe’s rule, this talk attempts to demonstrate that its title can be answered by the word “yes”. We show that modern symmetric ciphers can be modeled through a small set of algebraic structures (Boolean algebra, Naperian functors). We reveal that these ciphers exhibit some interesting compositional structure at the type-level. This enables systematic code transformation, known in the cryptographic folklore as “bitslicing” and “fixslicing”.

Renato Neves, Apparently Impossible Halting Problems (Tuesday, April 28 2026, 12:04 -- 12:23, 16:00-16:48)

slides

This talk is about halting problems that are surprisingly semi-decidable. The focus will be on **mixed** non-deterministic programs, i.e. those that harbour both non-deterministic and probabilistic operations (such as in concurrent programming).

The basis of these results is a generalised formulation of K\"onig's lemma, which will be sketched in the talk. Among other things, it replaces the classical `finitely-branching' assumption by `compactly-branching' in a suitable category of domain-based Cones.

The talk is related to M. Escardó's conjecture about semi-decidability w.r.t. may and must probabilistic testing.

Farzaneh Derakhshan, Quantified Underapproximation via Labeled Bunches (Tuesday, April 28 2026, 16:50--17:42)

slides

Large software systems are usually multi-component and concurrent.  While formal verification provides the highest assurance, it is not realistic to verify all components of a system. Instead, lower-effort approaches, such as testing, have been widely adopted in industry to analyze non-critical components. As such, a large system may include components analyzed differently: some are fully verified, and the rest are tested. Currently, there is no reasoning system that can soundly compose these heterogeneous analyses and derive the overall formal guarantees of the entire system. The traditional compositional reasoning technique is sound for verified components that undergo over-approximated reasoning, but not for components that undergo under-approximated reasoning, e.g., via testing. In this talk, I will present our proof system, LabelBI,  which provides a logical foundation for composing heterogeneous analysis, allowing for deploying both over-approximated (verification) and under-approximated (testing) reasoning. LabelBI focuses on systems that can be modeled as a collection of communicating processes. Each process owns its internal resources and a set of channels through which it communicates with other processes. The key idea of LabelBI is to quantify the guarantees obtained about the behavior of a process as a test level, which captures the constraints under which each guarantee is analyzed to be true. The domain of the test level is determined by the internal resources of the process. LabelBI is designed based on the logic of bunched implications that allows for distinguishing between shared and disjoint underlying resources. I will present the key ideas behind the design of LabelBI and explain its soundness properties, established via a trace semantics and cut elimination.

Matija Pretnar, Mathematical Foundations for Symmetric Programming (Wednesday, April 29 2026, 9:09--9:57)

slides

We propose abstractions for exploiting symmetries in programming and reasoning based on the mathematical proof principle "without-loss-of-generality" (wlog). We decompose such arguments into three components. The first component makes the symmetry explicit by defining appropriate groups and their action on the input/assumptions and output/conclusions. The second component explicates how to canonise the input, by choosing appropriate symmetries for each input. The third component is a core function/proof that transforms canonical inputs into outputs. The proposed wlog construct combines these components: given an input, calculate its canonising symmetry, use the symmetry to canonise the input, apply the core function to the canonical input, and apply the inverse symmetry to the output.

We illustrate the approach on running examples: sliding-tile merges in 2048, binary-tree insertion, and Schur's inequality as a mathematical instance of WLOG. We extend the framework to algebraic datatypes using initial algebra semantics, showing how a G-symmetry strength on a functor lifts group actions to inductive types and that the unique fold into an equivariant algebra is itself equivariant, allowing us to avoid using general recursion to define a symmetric version of tree insertion. Finally, we develop the theory of equivariant canonisers and explore the cases when the WLOG construction is guaranteed to produce an equivariant function. Additionally, we recast the well-known Orbit-Stabiliser theorem in terms of an equivariant isomorphism.

James McKinna, Harrop-Formulae, Definitional proof-irrelevance and Making `irrelevant` a proper `monad` (Wednesday, April 29 2026, 10:00--10:32)

Agda code

Philipp Joram, Derivatives of Containers in Univalent Foundations (Wednesday, April 29 2026, 11:04--12:03)

File:Derivatives-in-uf.pdf, preprint, Agda code

Containers are a convenient type-theoretic representation of a wide class of inductive data types. Derivatives of containers compute representations of types of "one-hole contexts", useful for implementing tree-traversal algorithms. We know that we can take the derivative of a container whenever its positions have decidable equality. In a univalent setting, types represent ∞-groupoids, and containers let us model inductive types with interesting symmetries, such as finite multisets. However, Hedberg's Theorem prevents us from taking derivatives of containers whose positions are higher types: types with decidable equality have trivial higher structure. In this talk, I will show how to circumvent this apparent restriction, and extend derivatives to arbitrary, untruncated containers. These derivatives satisfy the expected basic laws with respect to constants, sums, and products. I derive the chain rule and show that it is in general non-invertible. For traditional (set-valued) containers, the existence of an invertible chain rule is equivalent to a classical principle. If time permits, I will sketch the derivation of a rule for derivatives of smallest fixed points from the chain rule and characterize its invertibility.

Annabelle McIver & Carroll Morgan, How to make "adjacent databases", indistinguishable (Wednesday, April 29 2026, 12:10--12:37; Thursday, April 30 2026, 9:06--9:38)

TBD

Tarmo Uustalu, Substructural intuitionistic modal logics (Thursday, April 30 2026,9:40--10:38)

TBD

José Oliveira, On the (Relational) Algebra of Algorithmic Complexity (Thursday, April 30 2026, 11:05--12:07)

slides

The complexity of a program can be thought of as a relation between the size of its inputs and the cost of computing the corresponding outputs, an approach that embodies an 'abstract interpretation' of the programs themselves. Notations such as e.g. 'big-O' are popular in this context, but they have been criticized for being too informal, often leading to flawed proofs on paper.

In this talk I will focus on formalizing big-O notation in terms of indexed collections of typed, higher order relations on cost functions ('measures') addressed from a pointfree relational perspective. Such measures are in turn derived via cost rules defined for the standard AoP combinators. Some of these rules respect the AoP laws, but some others don't, most notably those involving pairing. From this basis one can measure and reason about the cost of generic, inductive constructs such as catamorphisms (etc), leading to relational fixpoint equations. Relation algebra is then used to find solutions to such equations.

(This is joint work with Carlos Ribeiro, MSc student at Minho.)

Alberto Pardo, Agda formalization of a security-preserving translation between programs (Thursday, April 30 2026, 12:12--12:40; 15:11--15:42)

slides

In this work we focus on the preservation of a security property, called non-interference, through program translation. Concretely, we formalize in Agda a program transformation between secure programs, which was introduced by Hunt and Sands in a POPL'06 paper and that converts While programs typable in a flow-sensitive information flow type system into equivalent programs typable in a flow-insensitive information flow type system. A particular aspect of our formalization is that it follows a fully intrinsically-typed approach in which only well-typed (i.e. secure) programs of the object language are represented, ensuring type safety by construction. A benefit of this approach is that, apart from inherently expressing the transformation between programs, the transformation function also stands for an inductive proof of security preservation.

Marcos Viera, A Type System for Modular Attribute Grammars (Thursday, April 30 2026, 16:04--17:00)

slides

Attribute Grammars (AGs) are commonly regarded as a modular formalism, allowing the definition of language syntax and semantics in a compositional way. However, such modularity usually remains at the level of user code structuring: most AG systems do not support true incremental extension, reprocessing the code when changes are made. In this talk we present a formalism of AGs designed to make both syntax and semantics naturally open to extension. We introduce a structural type system, where the well-definedness of the AGs is a compositional typing property. The type system includes a subtyping relation, allowing rule sets to be reused.

Florian Rabe, UniFormal: Towards a Universal Formal Language (Thursday, April 30 2026, 17:02--17:47)

slides

UniFormal is a work-in-progress logic and programming language partially motivated by the WG's discussion at meeting #80 about designing a new language. I present the high-level (partially controversial) design choices and examples.

Sam Lindley, Modal Effect Types (Friday, May 1 2026, 11:23-12:16)

sldes

"I return to the modal effect type system I talked about at Meeting #82 in Canberra. Whereas last time I focused on examples using the surface syntax, this time I explain a simplified version of the typing rules for a core calculus of modal effect types."

Schedule

Monday, Tuesday, and Thursday:

  • 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

Wednesday (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 – 12:30 to 14:00

Friday - same as Wednesday, but due to the business meeting the morning session before the 10:30 coffee break is attended by members only.