The Care Calculus: A Mechanized Linear Type Theory for Safe Agents
We present the Care Calculus: a multi-sorted linear logic with coalgebraic generators, guarded recursion, and resource-linear destructors. While initially developed to model the derivation of care in self-referential systems, the calculus provides a general framework for all unitary, non-duplicable resource flows. We mechanize the calculus in Lean 4, proving that the No-Cloning theorem and Unitarity emerge as structural theorems of the grammar: a derivation of contraction would be a cloner, and a derivation of vanishing would be an eraser. The artifact contains the complete Lean 4 development (Lean 4.35.0, no Mathlib): the library Dcare, a per-theorem axiom audit, the two build gates (build and disclosure, and the paper-anchor check), and the paper's markdown source. The two unrestricted classical linearity statements are carried as named conjectures with five proven fragment strengths each, the deepest of which integrate the care machinery; axioms beyond propext, Classical.choice and Quot.sound appear nowhere, and the one theorem asserting independence from the withheld constructive companion is enforced by the audit rather than claimed. The paper's section 16 states the tiered disclosure: the concrete constraint-type assignment and the constructive instantiation are withheld, and the companion is not part of this deposit.
Authors
- Jaye Timothy Marshall (ORCID: https://orcid.org/0009-0002-5209-8161)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-11
- DOI
- https://doi.org/10.5281/zenodo.24122159
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint