Vx: A Programming Language for Scalable, Maintainable and Secure Systems
Aditya Kumar
cs.PL
Nov 24, 2026 · v1
TL;DR
Lean 4 proofs (60 files, 777 theorems, no sorry) establish data-race freedom, DRF-SC, and scheduler properties for model languages of Vx's concurrency checks.
Abstract
A program for a modern machine runs on several kinds of chips. Its memory spaces, links and capacities are invisible to the compilers of today. So a host that reads device memory, a working set that does not fit, or a data race shows up only when the program runs. Vx is a systems programming language that puts these facts in the program text. A machine is a source file of declarations. A value's type says which memory it lives in. Apart from one stated exception, a function's signature is the whole contract that its callers see. A flag lists the code and the facts that the compiler trusts without a proof. This report is a tour of the language at one commit. It describes six design principles, the core language, and the features that serve three qualities. Vx is scalable because one program text runs across machines, cores and GPU threads. With an option, the compiler also checks its function bodies in parallel. It is maintainable because a signature is the contract of a function and most diagnostics have codes. The output of the parallel compiler does not depend on the number of threads. It is secure because safe code has ownership, borrow, race and placement checks, and in safe code, a file or a socket of the standard library opens only with a right. For every feature, the report gives its status and the evidence for it. It also lists where the implementation does not yet meet the design.
Problem
Programs for heterogeneous machines run on CPUs, GPUs and remote nodes. Their memory spaces, capacities and links are invisible to today's compilers, so placement errors, out-of-capacity working sets and data races appear only at run time.
Approach
Vx is a systems language in which machines are source files of declarations and a value's type records its memory space. Function signatures form the whole contract, and safe code gets ownership, borrow, race and placement checks plus capability-gated I/O. The concurrency model's soundness is backed by Lean 4 proofs on model languages, alongside herd7, memalloy, GenMC and TLA+ checks. The Lean proofs concern models, not the vxc compiler itself.
Results
The report gives a status and evidence for each feature. The Lean development is 60 files, 18,446 lines and 777 theorems with no sorry or axioms, and it agrees with herd7 on 36 litmus tests. It also lists known gaps, such as bounds checks being off by default.