Livid Work
Projects

Overview

Reflective Subsystems is a series of papers, in preparation, and three Lean 4 libraries that machine-check them on top of Mathlib. It asks one question:

How much can a bounded observer, living inside a system, work out about the rules of that system, and what does it cost to hold on to what it works out?

A subsystem that keeps a model of the world it lives in, and can use it, is called reflective.

Motivation

Matter, given enough time, starts doing mathematics: it does not only obey rules, it represents them. The program looks for the reason in mathematics alone, with no physics assumed. Its through-line: reflection is what happens when a bounded thing has to compress a rich but learnable world and keep the compressed rule around. The papers price each step: keeping a model that survives being used, learning the rule rather than the data, affording the computation, paying for memory in a world that overwrites everything, and finding the learner’s data inside the world itself. The capstone proves reflective subsystems inevitable in an abstract class of systems, conditional on a named damage model, by building an explicit system that meets every prerequisite.

Parts

Three packages, each requiring the one above it.

lean-classical-upstream

Classical theorems of algorithmic information theory, learning theory, information theory, ergodic theory, realizability and combinatorics. Every statement is one the literature already makes; the package adds its proof in Lean, and labels each module by its standing: formalized first here, as far as a search of the Lean libraries found; ported from a proof in another library that could not be used; or duplicating a proof that exists elsewhere. Formalized first: Chaitin’s incompleteness theorem under consistency alone, the statistical-query model, the conjunction and decision-list learners, the category of assemblies, Jen’s kink annihilation for rule 18, two mistake bounds of online learning, and Erdős’s condition for property B. Also in the package, with Lean proofs that exist elsewhere: Levin’s coding theorem, Ville’s inequality, Fano’s inequality and the pointwise ergodic theorem.

GitHub · API reference · DOI 10.5281/zenodo.23257423

lean-elementary-cellular-automata

The 256 rules on a line of binary cells in which a cell’s next value depends on itself and its two neighbors. What their orbits do: which rules grow from a finite configuration, what a column, a window or a ray of an orbit looks like, which rules reproduce a pattern, and what it costs a rule to erase a local perturbation.

GitHub · API reference · DOI 10.5281/zenodo.23275249

lean-reflective-subsystems

The program’s own results: what nobody had stated before, however small. When a model a system holds of itself survives the system running, what memory costs in a world that overwrites everything, the capacity at which self-representation turns into incompleteness, and explicit systems shown to meet a learning theory’s prerequisites from their own dynamics.

GitHub · API reference · DOI 10.5281/zenodo.21284775

Verification

  • No sorry, admit or native_decide; standard axioms only (propext, Classical.choice, Quot.sound).
  • #print axioms guards pin each main result’s axiom set, and the build fails if one drifts.
  • Licensed under Apache-2.0.

Posts about this project

All posts
  1. Reflective Subsystems: an introduction

    An introduction to Reflective Subsystems, a research program in pure mathematics checked by Lean 4, and to how its proofs are written with a coding agent.

  2. research-kit: how a research project's records became a kit

    How five months of mathematical research with a coding agent led to research-kit: what failed in the project's records, what replaced it, and the effect.