← Blog

Publication2 Dec 2026 · Yan Liu and Alex Potanin

CoreFi is on arXiv, and its Lean 4 proofs are open source

The core calculus behind Fiducia now has a paper you can read and a mechanisation you can build.

Read the paper on arXiv fidus on GitHub

Two things became public this week. The paper CoreFi: A Core Calculus for Embedded Systems with Bounded Shared-Memory Channels is on arXiv as arXiv:2611.40661. And fidus, the Lean 4 formalisation that the paper's theorems are checked in, is open source under the Apache License 2.0.

What the paper is about

Embedded systems are built from components that compute on private state and talk over bounded buffers in shared memory. A component has to keep running rather than wait on a slower one, so a sender drops a message when the buffer is full, and a receiver blocks when it is empty. Process calculi usually model such channels as queues that block the sender, and C code mixes computation and communication so closely that the message-passing protocol is hard to recover for verification.

CoreFi is a core calculus, derived from CSP, that addresses both:

fidus: the proofs, in Lean 4

Fīdūcia is Latin for trust, and fīdus for trustworthy. The fidus repository is where the trust is earned by proof. It has no sorry, and its main theorems depend only on Lean's standard axioms. It mechanises:

The translation to UPPAAL's timed automata is not mechanised yet. The repository stands alone and will keep developing beyond the paper. To build it, install elan and run:

git clone https://github.com/fiducia-lang/fidus
cd fidus
lake exe cache get   # mathlib's prebuilt files
lake build CoreFi

Cite

@misc{liu2026corefi,
  title         = {CoreFi: A Core Calculus for Embedded Systems
                   with Bounded Shared-Memory Channels},
  author        = {Liu, Yan and Potanin, Alex},
  year          = {2026},
  eprint        = {2611.40661},
  archivePrefix = {arXiv},
  primaryClass  = {cs.PL}
}

Questions and issues are welcome on GitHub. All our papers are listed under Publications.