Eastern Canada Logic and Programming Seminar 2026
Participation #
ECLaPS took place on Saturday, November 14, 2026 at Université du Québec à Montréal (UQAM). There were ten presentations and thirty-six attendees. There was no cost to attend ECLaPS thanks to sponsorship from UQAM’s computer science department.
Schedule #
All regular talks are twenty minutes long followed by five minutes for questions. Several breaks are scheduled to encourage discussion between attendees.
We regret that weather-related flight cancellations prevented Sam Westrick (NYU) from giving his keynote, Above the Scheduler: High-Level Reasoning about Parallelism. We thank Brigitte Pientka (McGill) for agreeing to give a keynote with such short notice, and we hope to welcome Sam for a future iteration!
| Welcome | ||
| Session 0: Keynote Talk | ||
|---|---|---|
| A Type-Theoretic Framework for Meta-Programming: Lessons Learned from Writing Meta-Theoretic Proofs as Programs | Brigitte Pientka (McGill University) | |
| Break | ||
| Session 1: Quantum Programming Languages and Foundations | ||
| Linear types for linear algebra and beyond | Jennifer Paykin (University of Vermont) | |
| Deconstructed Proto-Quipper: A Rational Reconstruction | Ryan Kavanagh (Université du Québec à Montréal) | |
| Staged Hybrid Quantum-Classical Programming | Chuta Sano (McGill University) | |
| Lunch | ||
| Lunch @ Le Central (30 Sainte-Catherine West) | ||
| Session 2: Interoperability and Compilation | ||
| A User-Friendly Programming Language for a Logical Abstract Machine | Paul Downen (University of Massachusetts Lowell) | |
| A Pointer through Layers | Junyoung Jang (McGill University) | |
| Certified Compilation of Effect Handlers | Ningning Xie (University of Toronto) | |
| Break | ||
| Session 3: Types and Logic | ||
| McPTS: A Framework for Mechanizing Pure Type Systems | Antoine Gaulin (McGill University) | |
| Step by Step Type Inference | Luchino Allix-Lastrego (Université de Montréal) | |
| Ehrenfeucht-Fraïssé games and Hanf's locality theorem | Mathieu Cloutier (Université du Québec à Montréal) | |
| Closing Remarks | ||
Abstracts #
A Type-Theoretic Framework for Meta-Programming: Lessons Learned from Writing Meta-Theoretic Proofs as Programs #
Meta-programming is the practice of writing programs that generate and analyze code representations. It enables programmers to automate repetitive and error-prone tasks and to exploit domain-specific knowledge when generating code. As a result, meta-programming plays a central role across a wide range of applications, from splicing in optimized code that exploits memory layout, to generating representations of quantum circuits from classical programs, to writing meta-theoretic proofs as programs that transform derivation trees.
A fundamental question across all forms of meta-programming is how to design abstractions that support the correct generation, composition, and analysis of code representations. This question is challenging for two main reasons. First, it is important to distinguish between code as data (static structure) and the programs that generate and manipulate it (dynamic behavior). Second, representing code requires managing variables and scope, a task that is inherently error-prone and often exposes low-level implementation details.
In this talk, I discuss how advances in logical frameworks have informed the design of modern meta-programming languages. In particular, I revisit the development of the Beluga framework where formal systems are specified in the logical framework LF, using higher-order abstract syntax (HOAS) to represent binding constructs. On top of the LF layer sits a functional language where programmers write meta-theoretic proofs as transformations over HOAS representations. A key insight enabling recursive analysis and manipulation at the functional programming level is to treat HOAS objects together with their accompanying contexts — so-called contextual objects.
Over the past decade, this separation between static syntactic representations and dynamic program behaviour together with the use of contextual objects, has guided the development of a range of meta-programming systems. In particular, these ideas have informed the design of polymorphic and dependently typed meta-programming languages, and more recently, have been extended to support the generation, analysis, and evaluation of concurrent processes within a functional programming setting. These developments illustrate how ideas originating in automated reasoning — particularly techniques for representing and manipulating contextual objects — are having a broad and lasting impact beyond their original domain.
Biography: Brigitte Pientka is a Full Professor in the School of Computer Science at McGill University, and leading the Computation and Logic group. She received her PhD from Carnegie Mellon University in 2003, and studied previously at the University of Edinburgh and Technical University of Darmstadt.
Above the Scheduler: High-Level Reasoning about Parallelism #
Many parallel programs today rely upon a scheduler to dynamically assign tasks to processors. Ideally, we could reason about the behavior and performance of parallel programs abstractly, without needing to know the implementation details of the scheduler itself. A well-known approach is to focus on computation graphs, i.e., execution traces that hide any non-determinism due to scheduling, offering clean notions of determinism and cost. In this talk, I’ll present three recent works that build on computation graphs to prove and profile high-level properties of parallel programs: (1) program logics for proving determinism and leveraging it to simplify correctness proofs, (2) program logics for proving work and span bounds, and (3) lightweight techniques for directly instrumenting computation graphs to profile parallel programs. Together, these works enable high-level reasoning about parallel programs, from formal verification to profiling, entirely above the scheduler.
Biography: Sam Westrick is an Assistant Professor of Computer Science at New York University, where he leads the NYU ParCour lab and is also a member of the NYU ACSys group. His research focuses on parallel computing, programming languages, formal methods, and parallel algorithms. His work has been recognized with distinguished paper awards at conferences including POPL, ICFP, SPAA, and QCE. Sam completed his PhD at Carnegie Mellon University in 2022, and in 2023, he received the ACM SIGPLAN Dissertation Award for his work on MaPLe, a provably efficient compiler and run-time system for parallel functional programming on multicore shared-memory architectures.
Linear types for linear algebra and beyond #
Did you know you can program linear transformations over a vector space as terms in a linear lambda-calculus? This talk will explore the Curry-Howard correspondence between linear type systems and algebraic structures, specifically focusing on applications in quantum computing. We will start by looking at linear transformations over vector spaces, and briefly discuss two different applications in quantum computing: unitary transformations, and Clifford tableaux as morphisms over the Pauli group.
Deconstructed Proto-Quipper: A Rational Reconstruction #
The Proto-Quipper family of programming languages aims to provide a formal foundation for the Quipper quantum programming language. Unfortunately, Proto-Quipper languages have complex operational semantics: they are inherently effectful, and they rely on set-theoretic operations and fresh name generation to manipulate quantum circuits. This makes them difficult to reason about using standard programming language techniques and, ultimately, to mechanize. We introduce Proto-Quipper-A, a rational reconstruction of Proto-Quipper languages for static circuit generation. It uses a linear $\lambda$-calculus to describe quantum circuits with normal forms that closely correspond to box-and-wire circuit diagrams. Adjoint-logical foundations integrate this circuit language with a linear/non-linear functional language and let us reconstruct Proto-Quipper’s circuit programming abstractions using more primitive adjoint-logical operations. Proto-Quipper-A has a simple call-by-value reduction semantics. To illustrate its tractability as a foundation for Proto-Quipper languages, we prove and mechanize metatheoretic results using standard techniques. We give a logical relations technique to prove normalization of substructural systems, thus avoiding the complexity of existing linear logical relations.
This talk presents work that is to appear in the proceedings of The 2026 Joint International Symposium: LOPSTR+PPDP (Springer).
Staged Hybrid Quantum-Classical Programming #
Hybrid quantum-classical computing systems consist of a classical control system that sends quantum circuits and receives measurement results from a quantum co-processor. Such systems allow us to model algorithms that require the classical control system to generate quantum circuits on the fly, potentially based on prior measurement results. This is challenging, as the classical control system must generate quantum circuits that manipulate live quantum states. In this setting, the classical control system is generating further quantum circuits while the quantum co-processor is internally maintaining the state of the live qubits; this is not ideal, since this not only is costly but also introduces additional sources of noise to the live qubits. Thus, we want to minimize the latency between receiving measurement results and sending the next quantum circuit to be executed by pre-computing quantum circuits. We introduce HyQ (pronounced haiku), a multi-modal language based on adjoint logic that pre-generates quantum circuits before executing a hybrid quantum-classical program. We achieve this by separating our semantics into two distinct stages: 1) compile-time generation of quantum circuits and classical runtime code and 2) execution of the classical runtime code that instruments the quantum co-processor. This separation between stages allows us to formally guarantee that all circuit-generation logic occurs before the instrumentation logic, i.e., the actual runtime, and minimizes the idling of the quantum co-processor at runtime. We give a type system, a circuit-normalization semantics for the compile-time stage, which eagerly performs all circuit-generation logic, and a runtime semantics for HyQ that corresponds to the second stage. We prove type preservation and progress for both semantics.
A User-Friendly Programming Language for a Logical Abstract Machine #
For almost a century, the sequent calculus has proven to be an indispensable theoretical tool for studying logic, proofs, and now, computation. More recently, it also provided new insights about practical concerns of compilation and program optimization due to its connection with abstract machines. This has been a fruitful place to study concepts like logical duality in a computational setting with perfect symmetries, leading to new insights about how to efficiently express and structure real machine code. But what would it take to actually program directly using the features of the abstract machine without getting lost in low-level concerns? Here, we aim to address questions around designing a practical, high-level language based on the sequent calculus which gives the programmer full, unrestricted access to the underlying symmetric abstract machine. This provides new features in the source language which enable exotic forms of control flow and error handling, as well as new structured ways to manipulate and introspect on the program’s running evaluation context. However, it also introduces new problems to solve when designing a usable programming language: how to reflect the duality between values and contexts, how to express the differences and equivalences between data types and codata types, how to choose between implicit or explicit control flow, and how to weave weave between different ways of reacting to the structure of a value or context. In the end, we arrive at a higher-level interface that lets the programmer harness all the capabilities of the sequent calculus abstract machine while also leaving ordinary programming tasks to ordinary looking programs.
A Pointer through Layers #
Interoperability between programming languages is a cornerstone of modern software development, allowing developers to combine languages best suited to different tasks within a single system. Reasoning about interoperability requires answering two fundamental questions: how can code written in one language invoke functions defined in another, and how can data be translated between the representations used by different languages? In this talk, we discuss the foreign pointer type, which provides a logical foundation for interoperability. Its introduction enables foreign function calls, while its elimination allows built-in conversions to be composed into conversions for complex data structures. Furthermore, the foreign pointer type characterizes built-in conversions as functions in an interoperating language, making them programmable rather than meta-level constructs.
Certified Compilation of Effect Handlers #
Algebraic effect handlers provide an expressive, non-local control-flow mechanism that facilitates structured programming with delimited continuations. They subsume common programming patterns such as cooperative concurrency, backtracking, generators, and async/await, and have been implemented in various languages and runtimes. This talk presents a certified compiler for effect handlers. Specifically, we extend the CompCert C language with effect handlers, compile them down to stack switching operations in CompCert assembly, and establish semantics preservation of the pipeline by proving simulation properties across all compilation passes.
McPTS: A Framework for Mechanizing Pure Type Systems #
Mechanizing a type theory and its meta-theory in a proof assistant establishes a high degree of trust in its correctness. However, this is also an intricate and time-consuming endeavour, since such mechanizations often exploit the specific structure of the type theory considered. This results in a patch-work of developments for a range of type theories that are similar, but still largely incompatible. One way of uniformly describing a large family of calculi is to embrace pure type systems (PTS) as a type-theoretic framework for characterizing type systems generically. This is achieved by abstracting over sorts and sort relations using a PTS signature. In this paper, we expand on this idea and introduce the PTS∗ framework for studying extensions of PTSs in a principled, modular way, by associating each extension to a new relation in the PTS∗ signature. We demonstrate this design by considering extensions with recursion over natural numbers and subtyping. We leverage PTS∗ to develop a unifying, generic framework, called McPTS, for formalizing meta-theoretic results of PTS∗ in Rocq. We prove basic properties like presupposition for all PTS∗ and then prove normalization for predicative PTS∗ by constraining the PTS∗ signatures with appropriate properties. Next, we design and prove correct a generic type-checking algorithm for predicative and functional PTS∗ . By instantiating our development with the corresponding PTS∗ signature, we directly obtain normalization proofs for several important languages, including a version of MiniML, the logical framework LF, and Martin Löf type theory, as well as the corresponding verified type-checking implementations.
Step by Step Type Inference #
Haskell is a statically typed, purely functional language that uses the Hindley-Milner type inference algorithm to enforce type safety. While very useful for preventing certain errors at runtime, it is known to produce cryptic error messages. For my master’s research, I developed a tool that allows users to run Haskell code and see, step by step, how the type inference algorithm works — giving users a better understanding of it and making it easier to detect ill-written code. This presentation explains why and how this tool was built, and discusses its strengths and limitations.
Ehrenfeucht-Fraïssé games and Hanf’s locality theorem #
Finite model theory studies the expressive power of logic over finite structures. Many tools of classical model theory fail in the finite setting, motivating the development of new methods. I will introduce two closely related tools: Ehrenfeucht-Fraïssé games, which are combinatorial games used to compare structures, and Hanf’s locality theorem. I will illustrate how they can be used to establish limitations on the expressive power of first-order logic.