Cookies Policy
The website need some cookies and similar means to function. If you permit us, we will use those means to collect data on your visits for aggregated statistics to improve our service. Find out More
Accept Reject
  • Menu
About

About

Academic activities: 

 Academic Degrees:
  • PhD in Computer Science, University of Porto (2007)
  • MSc in Informatics, University of Porto (2001)     
  • Bsc in Computer Science, University of Porto (1999) 
 Research Topics:
  • Linearity, Lambda Calculus, Type Theory
  • Formal Specifications, Access Control Models

Interest
Topics
Details

Details

  • Name

    Sandra Alves
  • Role

    Senior Researcher
  • Since

    01st March 2015
Publications

2025

Extending the Quantitative Pattern-Matching Paradigm

Authors
Alves, S; Kesner, D; Ramos, M;

Publication
PROGRAMMING LANGUAGES AND SYSTEMS, APLAS 2024

Abstract
We show how (well-established) type systems based on non-idempotent intersection types can be extended to characterize termination properties of functional programming languages with pattern matching features. To model such programming languages, we use a (weak and closed) lambda-calculus integrating a pattern matching mechanism on algebraic data types (ADTs). Remarkably, we also show that this language not only encodes Plotkin's CBV and CBN lambda-calculus as well as other subsuming frameworks, such as the bang-calculus, but can also be used to interpret the semantics of effectful languages with exceptions. After a thorough study of the untyped language, we introduce a type system based on intersection types, and we show through purely logical methods that the set of terminating terms of the language corresponds exactly to that of well-typed terms. Moreover, by considering non-idempotent intersection types, this characterization turns out to be quantitative, i.e. the size of the type derivation of a term t gives an upper bound for the number of evaluation steps from t to its normal form.

2025

A quantitative approach to global state composition

Authors
Alves, S; Kesner, D; Ramos, M;

Publication
MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE

Abstract
We show that recent approaches to quantitative analysis based on non-idempotent typing systems can be extended to programming languages with effects. In particular, we consider two cases: the weak open call-by-name (CBN) and call-by-value (CBV) variants of the $\lambda$ -calculus, equipped with operations to write and read from a global state. In order to capture quantitative information with respect to time and space for both CBN and CBV, we design for each of them a quantitative type system based on a (tight) multi-type system. One key observation of this work is how CBN and CBV influence the composition of state types. That is, each type system is developed by taking into account how each language manages the global state: in CBN, the composition of state types is almost straightforward, since function application does not require evaluation of its argument; in CBV, however, the interaction between functions and arguments makes the composition of state types more subtle since only values can be passed as actual arguments. The main contribution of this paper is the design of type systems capturing quantitative information about effectful CBN and CBV programming languages. Indeed, we develop type systems that are qualitatively and quantitatively sound and complete.

2024

Proceedings 13th International Workshop on Developments in Computational Models, DCM 2023, Rome, Italy, 2 July 2023

Authors
Alves, S; Mackie, I;

Publication
DCM

Abstract

2024

Proceedings of the 9th ACM SIGPLAN International Workshop on Type-Driven Development, TyDe 2024, Milan, Italy, 6 September 2024

Authors
Alves, S; Cockx, J;

Publication
TyDe@ICFP

Abstract

2024

Preface

Authors
Alves S.; Mackie I.;

Publication
Electronic Proceedings in Theoretical Computer Science Eptcs

Abstract

Supervised
thesis

2023

Quantitative Types for Programming Languages

Author
Jorge Miguel Soares Ramos

Institution
UP-FCUP

2022

Quantitative Types for Programming Languages

Author
Jorge Miguel Soares Ramos

Institution
UP-FCUP

2022

Linear Rank Quantitative Types

Author
Fábio Daniel Martins Reis

Institution
UP-FCUP

2021

Synthesis of Programs from Linear Types

Author
Maria Inês Melo e Sousa

Institution
UP-FCUP

2021

Typed Languages for Events and their Applications

Author
Jorge Miguel Soares Ramos

Institution
UP-FCUP