# š§ UHX Glossary
*A semantic system architecture using 32-bit trait encodings and hex-based relationship modeling for universal system understanding*
---
## š· UHX ā Universal Hex
> The umbrella framework that unifies four layers of semantic modeling:
- **UHT** ā Universal Hex Traits (entity encoding)
- **UHR** ā Universal Hex Relationships (link encoding)
- **UHD** ā Universal Hex Diagrams (visual/topological representations)
- **SDR** ā Self-Describing Requirements (requirements enriched with semantic metadata)
---
## šø UHT ā Universal Hex Traits
> A **32-bit semantic fingerprint** that encodes the essence of any entity using binary traits.
### ā
Structure:
- 4 semantic layers, 8 traits each:
- **Physical** (bits 1ā8)
- **Functional** (bits 9ā16)
- **Abstract** (bits 17ā24)
- **Social** (bits 25ā32)
### ā
Purpose:
- Compress and encode *what something is*
- Enable filtering, clustering, reasoning, and explainability
- Bit-addressable semantic identity
### ā
Example:
```text
UHT: 00700300
ā Traits: Purposeful, Emits output, Processes logic, Transforms state, Symbolic, Logical
ā Meaning: Autonomous feedback logic controller
```
---
## šø UHR ā Universal Hex Relationships
**Definition:**
An 8-bit code that expresses _how entities are related_. Each bit describes a specific semantic property of the link.
### š¹ UHR Traits
|Bit|Trait|Meaning|
|---|---|---|
|1|Directional|A ā B|
|2|Causal / Influential|A causes or influences B|
|3|Hierarchical / Containment|A contains or governs B|
|4|Symbolic / Representational|A represents or encodes B|
|5|Governed / Constrained|Defined by rules or contracts|
|6|Temporal / Sequence-bound|Depends on time/order|
|7|Context-sensitive|Only valid in some conditions|
|8|Non-reciprocal|Not bidirectional|
**Example:**
```text
UHR: 0xD0
Traits: Directional + Causal + Symbolic
Means: A fulfills B as a causal symbolic implementation
```
---
## šø UHD ā Universal Hex Diagrams
**Definition:**
Visual representations of semantically encoded systems using UHT and UHR.
### š¹ Features
- Nodes = Entities (UHT)
- Edges = Relationships (UHR)
- Layer color-coding (Physical, Functional, Abstract, Social)
- Can be exported as Mermaid, Graphviz, or Obsidian Canvas
**Example (Mermaid):**
```mermaid
graph TD
REQ["REQ-T01 <br> UHT: 00008800"]
COMP["CTRL-01 <br> UHT: 00700300"]
REQ -->|SATISFIES <br> UHR: D0| COMP
```
---
## šø SDR ā Self-Describing Requirement
**Definition:**
A structured requirement enriched with its own semantic encoding via UHT and related traceability via UHR.
### š¹ Components
```yaml
id: REQ-T01
uht: 00008800
traits: [symbolic, behavior-guiding, regulated]
natural_language:
- The system shall maintain a defined room temperature range.
satisfied_by: [CTRL-01]
verified_by: [TEST-01]
```
### š¹ Benefits
- Machine-readable
- Traceable through lifecycle
- AI- and LLM-compatible
- Explainable and auditable
---
## How UHX Works as a System
|Component|What it Defines|Format|Key Use|
|---|---|---|---|
|`UHT`|What an entity _is_|32-bit hex|Compression, search, clustering|
|`UHR`|How things _relate_|8-bit hex|Explainable graph edges|
|`UHD`|What it _looks like_|Diagram|Visual modeling|
|`SDR`|What it _means_|YAML/JSON|Requirements management & traceability|
---
## š§° Additional Concepts
### š§© Trait Density
- Refers to how many layers (P, F, A, S) are active in an entity
- Helps assess complexity, abstraction, or implementation status
### š§® Semantic Delta
- Measures difference between two UHT or UHR codes
- Useful for change detection, diffing, or traceability gaps
### š Trait Clusters
- Logical groupings of frequently co-occurring traits
- Can be labeled as semantic archetypes (e.g. Interface, Agent, Standard)
---
_This glossary is intended as a live reference for UHX modeling, systems engineering, LLM integration, and knowledge architecture._
www.universalhex.org