Skip to content

Research

Verification is usually an afterthought in programming language design. It doesn't have to be. I think languages can and should do more of the work for us, taking on some of the burden of proof. Hear me out.

Philip Wadler argued in 1990 that linear types can change the world, but it wasn't until Rust that they did. In safe Rust, a mutable reference gives exclusive access to the value it borrows. A proof can rely on that exclusivity to rule out interference from other references and focus on the behavior of the code itself. I think that's pretty cool. Just getting our code to compile makes it safer to run and gives us less to prove.

I want to design expressive, practical programming languages that treat verification as a first-class concern.

Publications

All
2026

Partial Borrows in Rust

Sasha Pak, Richard Willie, Umang Mathur, Fabian Muehlboeck, Alex Potanin

Preprint, November 2026

Read the paper

Abstract

Rust ensures memory safety by requiring exclusive access to mutably borrowed data. However, a borrow can prevent access to more data than necessary. For example, a method with an &mut self parameter borrows the entire struct, even when the method uses only some of its fields. Calling the method can therefore conflict with an existing borrow of a field the method never uses, causing Rust to reject the program. Resolving such conflicts can require programmers to compromise useful abstractions, make non-local changes to their programs, or worse, resort to unsafe code.

We introduce view types, a backward-compatible refinement of reference types that specifies which fields a reference may access. This allows methods to partially borrow a struct, accessing only the fields they need without blocking access to the rest. We establish the first fully mechanized foundation for Aeneas in Rocq. Along the way, we uncover and fix gaps in the original semantics and proofs. Building on this foundation, we formalize partial borrows and prove the extended borrow checking sound. We implement view types in rustc and extend the Aeneas interpreter to support partial borrows. Our evaluation shows how view types systematically resolve borrowing conflicts across method boundaries at no runtime cost.