Recursive Formation and First-Class Reuse of Compositional Capabilities
Abstract
We introduce FormCraft, a framework for representing acquired operations as first-class capabilities that can be recursively composed, directly invoked, and selectively retained in a persistent library through domain-specific verification. The framework separates capability well-formedness and public callability from later admission to persistent storage while preserving formation provenance and operational identity. We formalize recursive compositional closure over a uniform capability space and show that formed composites can be reused through the same public interface without re-forming their historical derivation. Experiments across continuous, discrete, propositional, and sequence domains demonstrate instance-independent reuse, independent checking, persistent acquisition, and reduced reuse-time search work under first-class exposure.
Figures & tables
| Capability-record field | Role in the lifecycle |
|---|---|
| Record identity | Distinguishes concrete records and serialized objects. |
| Represents operational identity independently of a particular formation history. | |
| Typed input/output ports | Declare the public contract used for invocation and compatibility checks. |
| External-parameter schema | Declares the form of invocation-specific while keeping call-specific values external. |
| Executable body | Implements the observable operation . |
| Parent references and wiring | Record the static formation relation for a composite capability record. |
| Measure | Result |
|---|---|
| Composite capabilities formed | 5/5 |
| Composite theorem reuses | 10/10 |
| Lean checks accepted (exit code 0) | 10/10 |
| Capability-record hash and formation provenance preserved | Yes |
| Stage | Start | Goals | Added | End |
|---|---|---|---|---|
| Stage I: Example-driven acquisition | 12 | 7 | 14 | 26 |
| Stage II: Increasing-depth chain (D01–D12) | 26 | 12 | 12 | 38 |
| Search-work measure | Expanded | First-class | Reduction |
|---|---|---|---|
| Candidate attempts | 16,570 | 144 | 99.1% |
| Composition expansions | 37,300 | 0 | 100% |
| Intermediate materializations | 16,778 | 0 | 100% |
| Verification batches | 17,116 | 192 | 98.9% |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Snapshot | Persistent records | Executable capabilities | Auxiliary records |
|---|---|---|---|
| Initial seed | 12 | – | – |
| After Stage I | 26 | 24 | 2 |
| After Stage II | 38 | 36 | 2 |
Compositional Reasoning
Compositional reasoning studies how models combine facts, concepts, rules, and skills to solve tasks that require multiple structured steps.
See all 39 papers