Unit
Let be a category with a terminal object .
Definition. A global element (or unit) of an object in is a morphism .
Proposition. Two global elements are equal iff they are equal as morphisms. Identity is determined entirely by content — there is no separate identity carrier.
Proposition. Since is the unit for products (), a global element is the canonical way to select a specific element of from outside.
In type theory, a global element corresponds to a closed term — a term with no free variables, fully determined without ambient context. Two closed terms are equal iff they reduce to the same normal form.
Definition. A unit in this system is any value whose equality is structural: two units of the same type with identical attributes are the same unit. This contrasts with an Entity, which carries a separate identity that persists across attribute changes.
Examples.
- Two morphisms with the same composite are the same global element.
- In , global elements of a set are exactly the elements of .
WorkUnitandPromptUnitare units: equality is by content, not by id.
Proposition. Units are closed under products: if and , then is a unit of the product.
Open questions
- Whether the product closure (Unit Unit = Unit) should be elevated to a formal axiom in the system.
- Whether ContextEntry is a unit (defined by content) or an entity (has local identity via heading).