Published November 16, 2026 | Version v1.0.0

lean-nock: Jet correctness for Nock, in Lean 4

Authors/Creators

  • 1. ZeroAttest

Description

A Lean 4 mechanization of jet correctness for the Nock 4K combinator calculus: the companion artifact to "Jet-Accelerated Code and the Co-Design Problem" (N. E. Davis, Urbit Systems Technical Journal). It states the three-valued jet contract, proves the naive two-valued contract unsound under virtualization (++mock), and develops co-derivation of a Nock formula and its native jet from a common concatenative source via a composition theorem, with extensions to conditionals, loops, named definitions, and gate dispatch. The Class A and B leaf contracts and the full Class C arithmetic (dec, add, sub, lt, mul, div, mod) are discharged against a reference semantics. An audit manifest elaborated at build time fails the build if any cited theorem's axiom footprint exceeds {propext, Quot.sound} or if any sorry is present; there is no Mathlib dependency.

Files

sigilante/lean-nock-v1.0.0.zip

Files (189.8 kB)

Name Size
md5:280a5a96db10af6b6d308ba261c5dfdc
189.8 kB Preview Download

Additional details

Related works