docs/for-yaron-minsky.md

Your work, as one calculus

Yaron,

Nearly everything Part I of hyperactivity builds already exists in your work, as separate tools. Hyperactivity derives all of them from one calculus: computational cubical type theory, run as a programming language and an operating system. Your June post asks for proof to become as routine as types. In this language it is the default.

Your work, already here

Make illegal states unrepresentable → types that carry their evidence. You choose types so a bad value cannot be built. Here a type can state any property: sortedness, a frame decoder's contract, a mode. The value carries the evidence for it. The proof is written in the same language as the code, so the reasoning that makes code right is kept, not thrown away.

Incremental → dependency certificates. Incremental cuts recomputation off where a value did not change. Here every stored result keeps a certificate of the keys it read and the versions it saw, including the keys that were absent. Reuse is then a theorem. A maintained view is a proof that the update commutes with the query.

Set reconciliation → exchange between participants who hold different state. Your characteristic polynomials let two hosts find their difference at the cost of the difference. Here definitions are content-addressed together with their dependencies and evidence. Peers exchange exactly the constructions that differ, and check what they receive.

Mobile agents with fault tolerance → continuing processes. Your thesis work kept agents correct across failures. Here a running process is a guarded value with its continuation, its already-issued effects and its outstanding requests. Moving or re-specializing a live process is a proved transition, not a restart.

Your father's laws of interaction → interaction as the primitive. Law-governed interaction declares a system's regularities as laws over every exchange. Here interaction is the primitive. The kernel reduces interacting pairs, and a firm, an exchange or a fleet is one program whose laws are types.

Hyperactivity derives all of them from one calculus.

In OCaml terms

What it gives your formal methods team

Lineage

Hyperactivity composes the work it stands on, and each keeps full credit: Petri, McCarthy, Reynolds, Brian Cantwell Smith, Voevodsky, the cubical type theory authors (Cohen, Coquand, Huber, Mörtberg), Arthur Brock and Eric Harris-Braun, Unison and Statebox. Its C++ side descends from a protocol language that Gašper Ažman and I built at Citadel Securities. That language generated optimal reactive parser libraries for market data, written as C++ templates only. Your Incremental, and Umut Acar's self-adjusting computation before it, are direct ancestors of the persistent evaluator in §10.

Read further

Part I, hyperactivity: a decentralized operating system language for collective superintelligence. Start with §1 and §4.4, then §10. The Firm as One Program develops the trading-firm case.

I would like to talk with you about it.

Avik Jain · avikjain12345@gmail.com · linkedin.com/in/avikj