# Programmable Logic

***

## Recursive Composition and Token-Scoped Reasoning

CROME agents incorporate advanced programmable logic engines, allowing both token-scoped reasoning and recursive composition:&#x20;

<details>

<summary>Token-Scoped Reasoning</summary>

* Defined as individual decision-making capabilities at the token level, allowing agents to autonomously respond to blockchain events based on embedded logic.
* Facilitates localized execution of logic, enabling quick and adaptive responses to environmental changes.&#x20;

</details>

<details>

<summary>Recursive Composition</summary>

* Allows an agent to own, control, and manage other agents, establishing hierarchical organizational structures and enabling layered governance.&#x20;
* Formally expressed mathematically as follows:&#x20;

</details>

$$
C\_{ERC6551}^1 = { C\_2, C\_3, \dots, C\_n }
$$

This recursive capability enables the formation of complex hierarchical relationships, nested governance structures, and strategic swarm management.

{% hint style="info" %}
Recursive composition allows agents to manage and coordinate subordinate agents, creating multi-layered, intelligent autonomous organizations.
{% endhint %}
