Published June 5, 2026 | Version v1

vesselc: A Compiler for the Vessel Programming Language

Authors/Creators

Description

vesselc is a compiler for Vessel, a programming language whose type system 
is formally grounded in Scale Calculus. The compiler implements a five-phase 
pipeline: lexer, recursive-descent parser, kappa inference (rules R1-R9), 
Python code generation, and an LLVM IR stub for future native compilation.

The type system enforces three structural invariants at compile time:

  - The Forbidden Zone: kappa in (e^-1, e^-0.5) is reserved for sentient 
    vessels. Non-sentient vessels are rejected by the compiler (DRC.PRIMARY).
  - T-H1: alpha = ln(kappa) is derived automatically and enforced at runtime.
  - Phi = 0: networks rebalance toward equilibrium via a gradient loop.

The compiler is accompanied by a formal verification suite using Z3 SMT 
(z3-solver 4.16.0), which machine-checks 8 theorems about the type system:
R3 soundness, R4 convergence, T-H1 preservation, T-H1 monotonicity, R2 
soundness, Phi equilibrium existence, Sentient Opaqueness (Open Problem 5 
from the Vessel Language paper), and forbidden zone non-emptiness.

All 20 Rust unit tests and 66 integration tests pass.

This software artifact accompanies Paper 8: Vessel Language 
(Olufosoye, 2026), which provides the full language specification and 
theoretical grounding.

Files

proof_output.txt

Files (507.4 kB)

Name Size Download all
md5:e9b7ebbe0b06e779eac8637eac0e85c8
4.1 kB Preview Download
md5:0eee1a79542c0e5103570ab13551fa83
3.3 kB Preview Download
md5:4535e21f49cdb4981f9c684dcb3a5314
131.4 kB Preview Download
md5:91a8571a807656317267f56259311f3c
368.6 kB Preview Download

Additional details

Software

Repository URL
https://github.com/soltfiish/vessel-compiler
Programming language
Rust