Tagma

Hashless coordinate primitive in the fixed 16-bit Unicode composition block

Author
Affiliation

Taeho Lee

Published

July, 2026

Other Formats
Signed

Abstract

Tagma1 is a computing primitive where the address is the coordinate, not a flat pointer, but a point in an N-dimensional geometric space. This is made possible by a fixed 16-bit contiguous Unicode block whose closed-form composition rule holds over U+AC00..U+D7A3, so every valid value is at once a 1-D address, a 3-D coordinate (Axis 0, Axis 1, Axis 2), and a compositional character. This triple interpretation gives a collision-free, hash-less, structurally addressable space [4.4] and a single-cycle combinational decoder2. The coordinate arithmetic admits unbounded N-Coord composition: the address space grows as \(11,172^N\) while the index arithmetic grows as O(N) and a dense read stays constant. We present a gate-level decoder specification, a processor pipeline attachment reference (e.g., RISC-V XIF)3, a hardware reference implementation [5] of all three primitive operations (decode, compose, and distance) verified over their input spaces against the Rust reference, formally equivalent to the synthesized netlist, and reproduced on an FPGA against the reference anchors with a negative control that shows the check can fail, a software reference implementation [11], a full benchmark suite [12], and a run of the record layer on a minimum-class device, with no operating system under the engine, where the address a writer computes is the address a reader computes [5.11]. Measured in the software reference: a dense single-Coord lookup is 0.39 ns of throughput with the array resident in L1, and a 20-Coord tree lookup is 62 ns where SHA-256 takes 227 ns for one digest. The first is an array access and the second a dependent computation, so the pair is not a speed comparison. Structural prefix queries show the widest measured gap: a direct-address table answers a nonexistent prefix in 1.65 ns, where a hash table without a prefix index must scan ten million entries (23.05 ms); bit-set axis filters resolve compound queries at 329 Melem/s against a 2.4 Melem/s scan (137x); and 10M sparse gets complete in 44.9 ms against 1.05 s (23.4x). That standard is open, a public good whose composition rules carry no proprietary encumbrance. A production-scale validation in CERN’s ROOT TTree read path confirms the model in petabyte-scale high-energy physics software [21].

1 Introduction

Unicode is an international standard that assigns each script a fixed address in a shared encoding space. Within this space, this block [1] occupies a contiguous 16-bit segment whose closed-form composition formula embeds three independent structural axes into every code point. Most content-addressed systems derive their identifiers from a hash function. This indirection layer imposes a predictable cost: gate area, cycle latency, storage overhead, and probabilistic collision resolution. Tagma shows that this fixed 16-bit block can replace the hash function entirely where cryptographic integrity is not required, using a combinational decoder.

The composition formula [2] [3] is:

\[C(i,m,f) = \text{U+AC00} + 588i + 28m + f, \quad 0 \leq i < 19,\; 0 \leq m < 21,\; 0 \leq f < 28\]

2 The Structural Conjunction

Tagma rests on three structural properties and one durability guarantee. The absence of any of the three structural properties makes a Tagma-compatible coordinate space impossible:

Exception-free three-axis composition. Every valid character decomposes through the closed-form formula entries and no irregular exceptions. This is the definitional property: decoding is arithmetic, not a lookup, and the hardware validity check is a formula check.
Contiguity. The 11,172 valid values form a single contiguous run starting at U+AC00, so offset = code - U+AC00 is one subtraction and the space is a flat array: *(base + coord) is the entire lookup. Address is coordinate.
BMP membership. The block lies on Unicode’s Basic Multilingual Plane Zero, the foundational layer that every implementation must support, so one character is one UTF-16 code unit: one u16, one register, one SRAM word.

Every valid 16-bit value carries three simultaneous interpretations: a 1-D Unicode address, a 3-D coordinate, and a compositional character. Internally, the 16 bits are organized as a 3-axis coordinate packed into a 16-bit word:

Figure 1: Coordinate 0xB9E8: three-axis coordinate (6, 1, 4) packed into a 16-bit word.
Figure 2: Three-dimensional bitcell organization. 19 x 21 x 28 lattice, 11,172 of 65,536 states valid.

The durability guarantee is the open international standard itself: Unicode’s stability policy fixes the block, keeping the constants (U+AC00, U+D7A3, 11,172, 588, 28) permanent, and Hangul is the only writing system in existence that satisfies all three structural properties. The full comparison, including near-miss combinatorial, syllabic, and supplementary-plane cases, is in Appendix: Script Comparison [22].

3 The Encoding Problem

Variable-length encoding has architectural consequences that are independent of any particular implementation. Memory alignment is not guaranteed. Instruction decoding must detect boundary positions. Prefetch and pipeline efficiency are affected. These are structural properties of variable-length design, not engineering limitations. The structural constraint in Tagma arises from the fixed composition formula of this block. As established in the Structural Conjunction section, only 11,172 of 65,536 states satisfy the composition formula. A hardware decoder can distinguish valid from invalid states using combinational logic derived from that formula.

Encoding Storage unit Addressable symbols Wasted bits/unit Fixed alignment Structural HW check
ASCII 1 byte (8 bits) 128 of 256 1 bit (12.5%) yes no
Latin-1 1 byte 191 of 256 variable yes no
UTF-8 (English) 1-4 bytes unlimited none for ASCII no no
UTF-16 (BMP) 2 bytes 63,488 of 65,536 2,048 reserved no no
UTF-32 4 bytes unlimited 75-88% for common use yes no
Tagma 2 bytes 11,172 of 65,536 54,364 structurally invalid (error detection) yes yes (54,364 invalid)

Because the coordinate is a fixed 16-bit BMP value, the address role needs no decoder, no parser, and no operating system: *(base + coord) is the entire lookup, from a kernel bootloader to an MMU-less microcontroller. Text input still requires one conversion from the carrier encoding to the code point.

4 The Identity Problem

Every system that stores data by content rather than by location must generate identifiers. Current approaches and their hardware cost:

Method Identifier size Generation cost Collision Lookup structure Tagma result
Pointer 32-64 bits zero none direct (location-based) n/a
Hash (SHA-256) 256 bits ~10K gates, 64-75 cycles probabilistic hash table + resolution 17-21x fewer gates for assignment; no cryptographic property
UUID [4] 128 bits entropy-dependent probabilistic hash table deterministic, no entropy needed
CAM per-bit comparison 9-16 transistors/bit none associative [5] ~2.5x less area for sparse sets
Tagma 16 bits 1 cycle (combinational) none (formulaic) direct (coordinate = address) baseline

A single Coord covers 11,172 identifiers, which is sufficient for sensor arrays, embedded device registries, and moderate-scale lookups [6]. N-Coord composition (below) extends this to UUID-scale and SHA-256-scale spaces without changing the decoder or the arithmetic.

The practical implication for everyday identifiers is about size and validation, not speed. UUID generation requires entropy collection, version and variant insertion, and formatting, at approximately 100 ns or more, and its 128-bit output occupies 36 characters in hex or 22 in Base64. A 6-Coord Tagma identity (18 axes, \(1.9 \times 10^{24}\) space) costs approximately 150 ns to generate and write, and a 10-Coord identity exceeding UUID space costs approximately 260 ns; both use only multiplication and addition, and neither needs entropy or padding. A SHA-256 digest written as 64 hex characters is matched in size by 20 Tagma Coords (\(11{,}172^{20} \approx 2^{269}\)) at approximately 480 ns, extrapolated linearly from the 456 ns measured at 19 Coords (\(2^{255.5}\)) on an x86 CI runner. Generation is therefore in the same order as UUID and slower than hashing; what the encoding buys is a shorter text with no special characters and a checkable structure. A software reference implementation confirming these measurements is described in Appendix [11].

4.1 N-Coord Composition: From 16 Bits to SHA-256 Scale

A single Tagma Coord provides 11,172 unique identifiers over 16 bits. For larger address spaces, Coords compose linearly:

\[S(N) = 11,172^N \approx 10^{4.05N}\]

Linearization. An N-Coord coordinate (c_1, …, c_N) maps to a single linear index via row-major order:

\[\text{index}(c_1, \ldots, c_N) = \sum_{k=1}^{N} c_k \times 11,172^{\,N-k}\]

This requires exactly \((N-1)\) multiply-add pairs, a fixed sequence of \(2(N-1)\) arithmetic operations independent of the addressable space. The index arithmetic is O(N) and is paid per query; the read that follows is one array access in the dense layouts and one dereference per depth in the tree. The abstract’s O(N) is this arithmetic, and the O(1) claim holds only for the dense layouts.

Coords Axes Identifier space Equivalent to
1 3 \(1.12 \times 10^4\) Sensor tags
2 6 \(1.25 \times 10^8\) Database records
3 9 \(1.39 \times 10^{12}\) Distributed nodes
6 18 \(1.94 \times 10^{24}\) Below UUID (\(3.4 \times 10^{38}\))
8 24 \(2.43 \times 10^{32}\) Below UUID
9 27 \(2.71 \times 10^{36}\) Below UUID, by two orders
10 30 \(3.03 \times 10^{40}\) Exceeds UUID (\(3.4 \times 10^{38}\))
19 57 \(8.21 \times 10^{76}\) Just below SHA-256 (\(2^{256}\))
20 60 \(9.18 \times 10^{80}\) Exceeds SHA-256 (\(2^{269}\)), the depth that matches its address space

Each Coord retains independent hardware-verifiable validity (\(19 \times 21 \times 28 = 11,172\) valid triplets per Coord). The N-tuple identity space is the Cartesian product of \(N\) independent 3D spaces, yielding a \(3N\)-dimensional structural coordinate system. We call this N-Coord sequence a CoordPath, distinct from the atomic Coord.

This is not merely a larger address space, but a coordinate algebra of \(3N\) independent axes whose semantics are entirely application-defined: a sensor network may assign axis 0 to device type, axis 1 to geographic zone, and axis 2 to timestamp, while a database system assigns the same axis positions to table, partition, and row. The coordinate arithmetic (composition, decomposition, linearisation, Hamming distance, axis projection) is invariant under semantic reinterpretation because the axes are fungible; the algebra depends only on the invariant structural relations among them, not on what any particular axis represents. This distinguishes Tagma from Euclidean space, where axes are bound to physical dimensions, and from hash space, where all structure is destroyed.

4.2 Identity Text

A CoordPath is also an identifier, and the reference implementation fixes how it is written. The text is normative: a reader that accepts another spelling would accept an identifier this specification does not define.

An identity of depth \(N\) is \(N\) axis windows of exactly three characters each, so the text is \(3N\) characters and every character is ASCII. Each window is the axis value \(0 \le v < 11{,}172\) written in base 36, most significant digit first, over the alphabet 0123456789abcdefghijklmnopqrstuvwxyz in ascending code point order. The lowercase form is the only form. The uppercase form is refused, because two spellings of one value would cost both of the properties below.

Axis value Window Axis value Window
0 000 1,296 100
35 00z 11,171 8mb
36 010
1,295 0zz

At the default depth of twenty the text is sixty characters. That is the same number of bytes as the syllable spelling it replaces, because one syllable occupies three bytes of UTF-8.

Property Why it holds What it buys
Fixed width, three per axis every window has the same length a prefix of the text is a prefix of the axes, so a bounding box is a string range and a key listing answers it without parsing
Alphabet in ascending order digit order equals value order sorting the text sorts the coordinates
ASCII only no code point above U+007F no normalization form and no code page, so a name survives any filesystem, archive, shell, and C string
Three bytes per axis base 36 needs at most three digits below 11,172 the text is the same length as the syllable form, so keys, offsets, and stored layouts do not move

The coordinate value is still the structure of the syllable block: 11,172 is \(19 \times 21 \times 28\), the composition formula is unchanged, and the hardware decoder still validates a 16-bit value. What changed is the spelling of that value in text. The syllable spelling is refused for two reasons that belong to the medium rather than to the model. A Hangul syllable has a canonical decomposition, so a filesystem or an archive that normalizes text rewrites the identifier into conjoining jamo and the value is lost; and a filesystem with a fixed code page cannot hold the character at all. Base 36 has neither failure mode.

A text is refused unless it is exactly \(3N\) bytes, every byte is in the alphabet, and every window is below 11,172. The last rule refuses the surplus of the alphabet: three base-36 digits carry 46,656 values and the coordinate space holds 11,172. On the C surface the text crosses as a sixty-byte array with a terminator.

An identity derived from a digest reads the digest as a base-11,172 number, most significant digit first, and keeps the result as coordinates. At depth 20 the space is \(11{,}172^{20} \approx 2^{268.9}\), so every 256-bit digest maps to a distinct coordinate path. The text is then written from those coordinates in the notation above.

4.3 Recursive State Space Expansion

The composition formula \(C(i,m,f)\) accepts three axes whose ranges are fixed: 19, 21, and 28. Nothing in the formula requires these ranges to be atomic. A SynTagma is the structure that results when these axes are themselves composed of CoordPaths. An \(N\)-Coord CoordPath can occupy any axis position, replacing the original range with its own \(11,172^{\,N}\) values.

Let \(\mathbb{T}_0\) be the set of all valid 19-Coord CoordPaths:

\[S_0 = |\mathbb{T}_0| = 11,172^{19} \approx 8.21 \times 10^{76}\]

Define \(\mathbb{T}_1\) as the Cartesian product of three \(\mathbb{T}_0\) coordinates:

\[\mathbb{T}_1 = \mathbb{T}_0 \times \mathbb{T}_0 \times \mathbb{T}_0\]

\[S_1 = |\mathbb{T}_1| = S_0^{\,3} = (11,172^{19})^3 = 11,172^{57}\]

A CoordPath of length \(3k \cdot N\) Coords can be interpreted as either a flat sequence of \(3kN\) atomic coordinates or a \(k\)-deep nested structure of SynTagma triplets. Both interpretations produce the same linear index through the same arithmetic.

Figure 3: SynTagma contains three CoordPath triplets as its axes.

Access follows from the recursive linearisation formula:

\[\text{index}(a,b,c) = a \cdot S_{k-1}^2 + b \cdot S_{k-1} + c\]

Each of \(a,b,c\) is itself linearised recursively until atomic Coords are reached. The number of integer operations per lookup is proportional to the total Coord count, independent of the number of stored entries.

4.3.1 Sparse Allocation

The identifier space \(S_k\) is not a storage allocation. A CoordSpace (Appendix [11]) allocates a root array of 11,172 pointers (approximately 89 KB on 64-bit systems) and creates child nodes only along CoordPaths that are actually written to. Memory consumption is proportional to the number of stored entries, not the size of the address space.

4.3.2 Magnitude

For \(k=1\) with a 19-Coord base:

\[S_1 \approx 5.54 \times 10^{230}\]

The estimated number of atoms in the observable universe is approximately \(10^{80}\). The ratio:

\[\frac{S_1}{10^{80}} \approx 5.54 \times 10^{150}\]

A single recursive step on a 19-Coord base exceeds the atomic count of the observable universe by 150 orders of magnitude, and \(k=2\) gives \(S_2 = S_1^{\,3} \approx 1.70 \times 10^{692}\). The formula admits unbounded \(k\); the practical limit is the silicon and memory budget of an implementation, not the arithmetic. The \(10^{80}\) figure is used once, as a familiar order of magnitude, and no further comparison is claimed.

4.4 Hash-less computation: Direct structural addressing

In conventional computing, identity is established through indirection:

Figure 4: Traditional hash-based identity model.

Each step adds cost: hash computation, collision handling, dynamic resizing, cache-unfriendly access patterns. Tagma replaces this with direct structural addressing:

Figure 5: Tagma direct structural addressing.

This one-cycle path from data to address eliminates the scaling relationship between entry count and retrieval cost, a property that standard complexity analysis cannot capture.

4.5 Structural Consequences

The transition from hash-based indirection to coordinate-based addressing produces several interrelated consequences that define Tagma’s operational regime. They are not independent properties of the implementation; they are necessary corollaries of the coordinate identity model.

Query reduces to arithmetic. A coordinate’s three axes are independent fields in a 16-bit word. A query that filters by axis value is a range projection over that field, a bitmask and comparison, not an index scan. Proximity search is field-wise Hamming distance, computable as a single bitwise operation. The coordinate arithmetic is the query engine; no hash tables, B-trees, or CAM cells are needed.

Index structures are eliminated. In current systems, identity generation and index maintenance are separate concerns: SHA-256 produces an opaque identifier, then a separate hash table or B-tree maps that identifier to a storage location. The coordinate is identity and address simultaneously. A Tagma identifier can be used directly as a memory address, array index, or routing path without an intervening translation layer. The elimination is not an optimization of the index layer; the index layer ceases to exist as a separate structure.

The coordinate space is a physical structure, not a software abstraction. The decoder that maps a 16-bit coordinate to its three axis fields is a combinational circuit operating on a fixed encoding formula. A software library implementing the same formula on a general-purpose CPU is a faithful simulation of that circuit, not a design intent of its own. The space exists at the gate level before any software runs. This reverses the conventional relationship between software and hardware: software does not define the addressing scheme and then implement it in gates; the addressing scheme is already a gate-level structure, and software either uses it (on a Tagma-equipped processor) or simulates it (on a general-purpose CPU).

For example, the software reference implementation reveals this inversion clearly. The Coord::to_axes() method decomposes a Coord into its three axis fields using arithmetic:

pub fn to_axes(self) -> (u8, u8, u8) {
    let v = self.0 as usize;
    let initial = (v / 588) as u8;
    let medial = (v % 588 / 28) as u8;
    let final_ = (v % 28) as u8;
    (initial, medial, final_)
}

The code computes division and modulo because it is simulating a gate-level structure on a sequential processor. In hardware, the same fields are present as three contiguous 5-bit groups in the 16-bit word. The hardware does not compute; it reads. The division and modulo in the software are artifacts of simulating a parallel bit extraction on a sequential ALU. A Tagma-equipped processor executes to_axes() in zero cycles: the axes are already present on the output wires of the decoder. The software complexity inversely indicates the hardware simplicity: the more arithmetic the reference implementation requires, the more directly the hardware structure implements it. This is the opposite of hash functions, where software and hardware complexity are proportional: SHA-256 is expensive in both domains.

Range and set queries do not need a second index. A hash table answers an exact key and cannot answer “entries satisfying a condition” without scanning. A coordinate space answers axis ranges, projections, proximity, and set operations from the coordinate arithmetic itself, so those queries do not require an auxiliary tree. The distinction is in the query surface: a hash table answers one question, a coordinate space answers a family of them.

Property Key-value store (HashMap) Coordinate space (Tagma)
Input Key (string, hash) Coordinate (Coord, CoordPath)
Output Value Value + position in coordinate space
Query model Exact key match only Axis projection, range, proximity, set operations
String dependency String keys require encoding, parsing, hashing String is a display layer; the address is structural
Index requirement Separate index structures for conditional queries Identity is the coordinate; no separate index exists
Scaling variable Entry count (collision chains, rehashing) Coord Depth \(d\) (fixed per schema, data-independent)

The shift from string-based to coordinate-based addressing eliminates an entire class of costs that conventional systems treat as unavoidable:

Vanishing cost String-based Tagma (Coord-based) Effect
Memory allocation heap allocation a stack-allocated u16 Zero heap fragmentation; allocator and GC load eliminated
Encoding validation Every input string must be verified as valid UTF-8 A Coord is a pre-validated 16-bit integer; any valid u16 in range is structurally valid Validation circuit and cycles eliminated
Comparison str1 == str2 iterates bytes up to the shorter string length coord1 == coord2 is a single CPU compare instruction \(O(n) \rightarrow O(1)\); one cycle
Hashing (storage) A string key must hash its entire byte sequence before the map can be indexed A Coord is itself a complete array index Hash function call eliminated; zero collision resolution
Serialization / parsing Keys in JSON, MessagePack, or protocol buffers must be parsed, validated, and copied A Coord is a fixed 2-byte binary value; the serialized form is the in-memory form Parsing overhead eliminated; zero-copy direct mapping

These remove the string path rather than optimizing it. A system that never uses strings as addresses never pays string costs. The comparison with a hash table is therefore about the query surface: a hash table answers an exact key, and a coordinate answers ranges, projections, and set membership from the same value.

An application that stores “user:123:item:456” must parse, hash, and index that string before it can retrieve anything. A CoordPath is assigned directly: one Coord for user type, one for user ID, one for item, and the path is both identifier and address. The string remains a label generated from the path for display. This separation removes hashing from the critical path.

An unordered map keeps only key to value. Two keys that differ in one bit land in unrelated buckets, so proximity and axis structure are lost, and a range or a projection needs a second index built over the same data. A coordinate keeps its position: the axes are the address, so range, projection, proximity, and set membership are computed from the coordinate arithmetic and need no second structure. That is the difference the measurements above reflect.

4.6 The Complexity of Structure: Coord Depth

Standard complexity analysis classifies algorithms by how their cost scales with input size \(N\), the number of data items. Tagma’s retrieval cost does not scale with data volume at all. It scales with Coord Depth \(d\), the number of Coords required to uniquely identify an entity under a given scheme. These are fundamentally different kinds of quantities: one measures data inventory, the other measures structural dimensionality.

\(d\) is a system constant determined at schema design time. A sensor identifier requires \(d=1\) (single Coord, 11,172 identifiers). UUID-scale identity uses \(d=10\). SHA-256-scale identity uses \(d=20\); the 19-Coord type (\(2^{255.5}\)) sits just below it. Adding a billion entries does not increase \(d\).

\[\text{Retrieval cost} = O(d), \quad d \ll \log N_{\text{entries}}\]

Metric Hash table Tagma
Scaling variable Entry count \(N\) Coord Depth \(d\) (fixed per scheme)
Growth with data Increases None
Worst case \(O(N)\) (collision chain) \(O(d)\) (same as average)
Operation Chop and mix bits Decompose along structural axes
Lookup Hash + resolve + dereference Direct array access
Output Opaque 256-bit value Self-describing 16-bit value

A hash function receives a key and produces an address by destroying the key’s internal structure. The lookup is indirect: hash, resolve collision, dereference. Coord inverts this. The Coord sequence carries its own address, because the data is already the address. This inversion makes Coord Depth a distinct scaling regime, expressible neither as \(O(1)\) (which implies independence from any parameter) nor as \(O(N)\) (which implies dependence on data volume). Coord Depth \(O(d)\) parameterizes retrieval by the identifier’s inherent dimensionality, a quantity bounded by the application schema, not by the data set.

The engineering frontier. The mathematical bound holds for any fixed \(d\): \(2(d-1)\) arithmetic operations per lookup. On a general-purpose CPU, however, each operation incurs mechanical overhead: instruction dispatch, register pressure, pipeline latency, and cache hierarchy effects. At \(d=1\) these are negligible (one array access). At \(d=19\) the 18 multiply-add pairs accumulate approximately 456 ns on a GitHub Actions CI runner (x86_64), far from the O(1) ideal of a single cycle. This gap follows from running a structurally parallel operation on a sequential von Neumann machine rather than from a flaw in the theory. A dedicated combinational decoder will execute all \(d\) Coord decodes concurrently at gate level, collapsing the gap entirely.

The elimination of separate index structures is a direct consequence of coordinate identity:

Layer Current (SHA-256) Tagma
Identity \(H = \text{SHA256}(\text{data})\) (256-bit opaque) \(\text{Tagma}(i,m,f) = \text{U+AC00} + 588i + 28m + f\) (16-bit transparent)
Index separate structures: HashMap, OrderedIndex none: identity = coordinate
Query \(\text{Vec}[o] \cap \text{Vec}[c] \cap \text{Vec}[t]\): \(O(K \times N)\) intersection \(\text{coord}.\text{decompose}()\): \(O(1)\) direct field extraction

This property, verified in the reference implementation, is the software-level manifestation of the same principle the hardware decoder implements: the coordinate IS the identity, and the identity IS the coordinate. No indirection, no intersection, no hash tables.

5 Hardware Reference Implementation

This part states the hardware reference implementation of the primitive on its own terms, so that it can be read without the software benchmark sections above. The same formula the Rust reference evaluates in arithmetic is evaluated here in gates, and every claim in this part is reproduced by the hardware verification gate in the syntagma repository under hw/.

5.1 The primitive in gates

The primitive is three combinational functions over the same 16-bit value, each a separate module verified independently:

Operation Module Input Output
decode tagma_decoder 16-bit code point three axes, valid
compose tagma_compose three 5-bit axes 14-bit coordinate index, valid
distance tagma_dist two 16-bit code points three 5-bit distances

Axis 0, Axis 1, and Axis 2 are the initial, medial, and final axes of the composition formula; the RTL names them i, m, and f. Decode and distance take a code point; compose returns the coordinate index, the offset from U+AC00, which is the internal representation of the Rust Coord, so the code point is U+AC00 + index. The distance unit instantiates two decoders, one per operand, which is why it is the largest of the three. A fourth module, tagma_segment_store, realizes the address path as an 11,172-slot store and is described under Memory hierarchy penetration below.

5.2 The decoder

The decoder extracts three 5-bit fields from a 16-bit input in three combinational stages:

Figure 6: Three-stage decoder flow: range check, field extraction, validation.

Stage 1: Range check. Two comparators verify the input is within [U+AC00, U+D7A3]. An out-of-range value produces an immediate invalid flag.

Stage 2: Field extraction. For in-range values:

Step Operation Output Range
1 input - 0xAC00 offset 0-11,171
2 offset \div 588 Axis 0 0-18
3 offset \bmod 588 remainder 0-587
4 remainder \div 28 Axis 1 0-20
5 remainder \bmod 28 Axis 2 0-27

Stage 3: Validation. Three comparators check: Axis 0 < 19, Axis 1 < 21, Axis 2 < 28. Any failure sets the invalid flag. Tagma coordinates support proximity-based search without dedicated search hardware. Given two coordinates, the field-wise Hamming distance is computed by three banks of parallel XOR gates. This enables associative lookup without hash tables, B-trees, or CAM cells.

The division structure determines the cost. Two implementations of the same arithmetic were synthesized and measured with the open toolchain (Yosys 0.65) in three flows and placed and routed on the iCE40 UP5K:

Metric shift-subtract (naive) multiply-shift (current)
Generic cells (ev schema) 206 478
Gate-level estimate (2-input) 232 588
iCE40 LUT4 + SB_CARRY 95 + 66 201 + 41
Logic levels 72 33
Critical path (UP5K PnR) 115.90 ns 59.55 ns
Fmax 8.63 MHz 16.79 MHz
Meets 12 MHz board clock no yes
Figure 7: Gate count by synthesis flow: shift-subtract (naive) vs multiply-shift. The shaded region is below the ~300 gate claim; the ratios mark the cost of timing closure.
Figure 8: FPGA clock frequency before and after the multiply-shift optimization. The shaded region is above the 12 MHz board clock; the margin is the headroom of the optimized version.

The ~300 gate claim of earlier documents holds for the naive shift-subtract decoder (206 to 232 cells), but timing closure on a 12 MHz board requires the multiply-shift structure at about 2.5x the gate count. The current RTL implements the constant divisions with multiply-shift, exact over the valid domain: division by 28 becomes division by 7 on offset >> 2 (at most 2792), and division by 21 applies to values at most 398. Both structures are functionally identical, which the verification pipeline proves over all 2^16 inputs. The decoder is verified exhaustively over all 11,172 valid characters in three simulation channels (formula, Rust reference, gate netlist), plus formal equivalence over all 2^16 inputs. The full compliance criteria for Tagma-compatible implementations are defined in Section [9].

5.3 Coprocessor attachment

Tagma can be attached to any processor pipeline through a standard coprocessor interface for custom instructions that does not require modifying the core pipeline. An example implementation uses the RISC-V XIF interface [7], [8]. The Rust reference implementation (Coord) serves as the functional golden model: every hardware instruction must produce results bit-exact with the corresponding Rust function.

Figure 9: Tagma position in the system stack.

Three custom instructions implement the core Coord API:

tagma_check rd, rs1. Decodes the lower 16 bits of rs1. Returns a 16-bit value packed as: valid flag (bit 15, 1 = valid), reserved (bit 14, reads as zero), Axis 0 (bits 13–9, 5 bits, range 0–18), Axis 1 (bits 8–4, 5 bits, range 0–20), Axis 2 (bits 3–0, 5 bits, range 0–27). Invalid inputs produce a zero valid flag with undefined field values. Corresponds to Coord::new(rs1).map(|c| c.to_axes()). One cycle, combinational.

tagma_compose rd, rs1, rs2, imm5. Composes a coordinate from three 5-bit axis fields. rs1 supplies the Axis 0 field (selected by imm5 = 0), rs2 supplies the remaining two fields, or the immediate fields are extracted from rs1[14:0] directly (Axis 0 at bits 14–10, Axis 1 at bits 9–5, Axis 2 at bits 4–0). Returns the 16-bit coordinate index (0–11171) in rd, or zero if any axis is out of range. Corresponds to Coord::from_axes(initial, medial, final).map(|c| c.index()). One cycle, combinational.

tagma_dist rd, rs1, rs2. Computes field-wise absolute difference between the two 16-bit coordinates. Returns three 5-bit distances packed as: Axis 0 (bits 14–10), Axis 1 (bits 9–5), Axis 2 (bits 4–0); bit 15 is reserved. Corresponds to Coord::hamming_distance(rs1, rs2). One cycle, combinational.

All three instructions are realized in the hardware tree (hw/rtl/) as the modules tagma_decoder, tagma_compose, and tagma_dist, each verified in the same channels as the decoder; the cell counts are in Synthesis and timing below.

5.4 Verification

The coordinate space is exhaustively enumerable: 65,536 values, of which 11,172 are valid. A verification harness generates all 65,536 inputs, applies the decoder specification, and records the results. The bijection is verified by enumeration: no collisions, no unassigned values within the block.

The hardware reference implementation closes the loop against the Rust reference with four independent channels: formula simulation, golden anchors exported from Coord::to_axes, gate-level netlist simulation, and formal equivalence of the RTL against the synthesized netlist over all 2^16 inputs. All three simulation channels pass all 11,172 valid characters. The exhaustive tests surfaced the boundary correction: the last valid character is U+D7A3, not U+D7AF, and the testbench boundary was wrong initially. The pipeline is reproducible from a clean checkout with make -C hw check in the syntagma repository, and runs in the hw CI job.

The three units cover their own input spaces in the same channels:

Unit Simulation Formal equivalence
decoder all 11,172 valid characters all 2^16 inputs
compose all 32^3 axis combinations all 2^15 axis combinations
distance 11,172 code points against two references and a varying-operand sweep all 2^32 input pairs
segment store 11,172 slots, reserved addresses, read-during-write (behavioral model) not applicable
Figure 10: Hardware verification pipeline. The Rust reference is the single source of truth; every simulation and the formal equivalence check re-validate against it.

5.5 Architectural Mapping

A coordinate in this space is a 16-bit value whose identity is its structure. The composition rules of Axis 0, Axis 1, and Axis 2 correspond to the Scheme that defines which coordinates are valid. Validity predicates (range checks) implement the Field by defining admissible coordinate ranges. Enumerating coordinates under constraints implements Observation: a hardware-level selection of valid states.

5.6 Memory hierarchy penetration

The comparison is measured:

Figure 11: Per-decode latency, log scale: software reference vs hardware worst case on the UP5K. The arrow marks the software-to-hardware gap of the same decomposition.

The coordinate space maps onto physical memory as a flat array: 11,172 slots of 16 bits each, addressed by the 14-bit offset from the decoder. The store is configured as a single-port SRAM macro for SkyWater 130nm (16-bit words, 11,172 words, one read-write port): about 22 KB of raw storage, or 44 to 89 KB with values depending on the value width. Its behavior is verified today as a behavioral model over all 11,172 slots, the 5,212 reserved addresses, and the read-during-write case; the macro generation is pending the OpenRAM PDK install. 11,172 is not a power of two; the fallback is 16,384 words (2^14) with 5,212 reserved entries, since the 14-bit address space covers the valid range either way.

Path Latency Note
CoordSpace.get (software) 0.38 ns whole space in L1 cache
Coord::to_axes (software) 1.44 ns reference decode
HW decoder (UP5K PnR) 59.55 ns worst-case critical path at 16.79 MHz

The software numbers come from the hardware-comparison baseline (sw/rust/benches/bench_hw.rs); the main benchmark center measures 0.39 ns for CoordSpace.get [12].

For the N=1 dense case, hardware is not a speedup. The entire working set fits in L1 cache, and the software already runs at memory speed. A sweep goes the same way: the software loop decodes all 11,172 code points in 1.92 us where the pipeline needs 80 us at 140 MHz. Latency and throughput both belong to the software, so this realization is an anchor rather than a competitor. What it establishes is that the primitive runs, and what it makes visible is where a system’s cost would sit. The decode is 388 cells and about 3 pJ per coordinate in Sky130, which is a device figure with no measured software counterpart in this work. The store for the same space is thirty-two to one hundred and twenty-seven times the decoder’s area. The arithmetic is close to free and the memory is the design, so the forward question is the shape of the memory traffic rather than the speed of the decode.

The Sky130 standard cell flow runs in CI (ORFS, hw job in the syntagma repository): the registered demo top occupies 4430 \(\mu\)m\(^2\) at 33.7% utilization, closes at the 12 MHz board-equivalent clock (83.33 ns) with a 10.74 ns critical path, +72.77 ns slack, and 0.00 total negative slack. Power is 36.1 uW at the workload’s activity, of which about 3 pJ is the cost of one coordinate, and 57.8 uW at the tool’s default; the figure is provisional because two runs of the same flow differ by fifteen times on the same basis (Section [15]).

The coprocessor path (above) attaches Tagma to a linear memory system: the coordinate is decoded and the result is used as an address in conventional memory. Two extensions remain future directions:

5.6.1 Memory controller mapping

The Tagma coordinate space can be mapped to a physical address region configured to bypass virtual-to-physical translation through memory protection or non-standard memory region attributes. The controller then receives each coordinate directly as a physical address and maps Axis0-Axis1-Axis2 to row-column within the existing memory array. General-purpose platforms support custom address mapping logic at the memory controller or system level.

5.6.2 Three-dimensional decode

The bitcell array can be organized as a 19 x 21 x 28 grid (11,172 cells) rather than a linear array. Alternatively, a memory controller can map the 11,172 valid coordinates to a dense linear array through a simple packed-index transformation. The three coordinate fields each have their own decoder:

Figure 12: Three parallel decode paths from the 16-bit coordinate fields to the bitcell array wordlines.
Parameter Linear (SRAM) Tagma 3D (SRAM)
Decoder type 1 decoder (N-to-2^N) 3 decoders (5-to-19, 5-to-21, 5-to-28)
Worst-case decoder delay O(2^N) O(32) max
Address mapping row + column Axis 0 + Axis 1 + Axis 2
Address translation required none
Structural validity external (ECC) built-in

The bitcell array remains standard 6T SRAM. The change is in the peripheral circuitry: three independent decoders replace the single row-column decoder pair, and the sense amplifier layout must accommodate three-axis access. This increases peripheral complexity but leaves the bitcell array unchanged [9].

In a 28 nm CMOS process, a 6T SRAM high-density bitcell occupies approximately 0.127 \(\mu\)m\(^2\). The 11,172-cell core array therefore covers approximately 1,419 \(\mu\)m\(^2\) (0.0014 mm\(^2\)). With peripheral circuitry (three decoders, sense amplifiers, and wordline drivers) the total area approximately doubles to 0.003–0.004 mm\(^2\), roughly 30x smaller than a single 32-bit multiplier in the same process.

5.7 Synthesis and timing

The three units are synthesized with Yosys; the decoder is also placed and routed on the iCE40 UP5K and mapped to a Sky130 standard cell library. Every figure names its library or node, and figures from different flows are not comparable.

Decoder metric Value Flow
generic cells 478 Yosys proc; synth, ev-compatible schema
2-input gate estimate 588 abc -g AND,NAND,OR,NOR,XOR,XNOR
iCE40 LUT4 + SB_CARRY 201 + 41 synth_ice40
iCE40 placement 255 ICESTORM_LC of 5280 (4%) nextpnr-ice40, --freq 12
critical path 59.55 ns icetime, host Homebrew toolchain
Fmax 16.79 MHz icetime, host Homebrew toolchain
Sky130 area 388 cells, 2826 um^2 OpenROAD, yosys stat -liberty

The compose and distance units are measured in the 2-input gate library only: 258 and 1329 cells. The distance figure carries two decoders, because a pair needs both operands decoded; the comparators and subtractors around them are the remaining about 153 cells.

Place and route numbers are tool-version dependent: the image (nextpnr 0.6, Ubuntu) measured 62.35 ns / 16.04 MHz on the demo, while the host Homebrew toolchain measured 59.55 ns / 16.79 MHz.

The Sky130 part of the flow runs past synthesis. The demo top is placed and routed at the 12 MHz constraint, and both figures are drawn from the flow’s final GDS with the metal layers kept: met1 through met5 in the first, with the power grid the darkest element, and met1 through met3 in the second. The placed logic occupies part of the die and fill rows span the rest.

Figure 13: The die from above.
Figure 14: The same die without the power straps.

5.8 Hardware compliance

A hardware implementation is Tagma-compatible iff, in addition to the conditions in Section [9], it satisfies:

  1. Decode bit-exactness. Decode is a combinational function bit-exact with Coord::to_axes over all 2^16 inputs, reporting validity for the 11,172 valid values.
  2. Compose bit-exactness. Compose is bit-exact with Coord::from_axes: it returns the coordinate index for an in-range axis triple and reports invalidity otherwise.
  3. Distance bit-exactness. Distance is bit-exact with Coord::hamming_distance for valid operand pairs.
  4. Netlist equivalence. The RTL and the synthesized netlist are formally equivalent over the full input space of each operation.

The hardware contract mirrors the software contract: the two agree on every input, and the verification pipeline enforces it rather than assuming it.

The axis order and the strides are declared once in each implementation and derived everywhere else within it. Across substrates the declaration cannot be shared as a compiled constant, so agreement is enforced at the boundary: the anchor set is what each substrate is held to, and the conformance conditions above are the check. A convention repeated at each site drifts at one of them, and a check that fails in public is worth more than an assumption that cannot fail.

5.9 Status and reproduction

Realized and verified: the decode, compose, and distance units in RTL, each exhaustively simulated against the Rust reference, simulated at gate level, and formally equivalent to its synthesized netlist; the segment store as a behavioral model over all 11,172 slots, the reserved addresses, and the read-during-write case; the record layer whose addresses are coordinates, carried to a minimum-class device, with no operating system under the engine (Section Section 5.11); and the volume verification top, which takes one value per valid offset and closes a verdict on the die, published as a recorded run.

Pending: the OpenRAM macro for the segment store, which needs a PDK install, and the external switch and LED wiring that turns the FPGA demo into a decoder demonstration. The bitstreams program and boot on both boards, and the decoder is verified on the ECP5 against the reference anchors (Section Section 5.10).

Reproduction: make -C hw check runs the whole gate (simulation, synthesis, and equivalence) from the sources recorded with this document’s version, and the hw CI job runs the same gate. The HDL lives under hw/ in the syntagma repository [10].

5.10 Verification on a device

A reference implementation that has never run on a part is a claim about a netlist. Two FPGA targets close that gap, and neither is there to beat a processor.

The iCE40 UP5K is a second part and carries the demo top at 255 logic cells of 5,280, closing the 12 MHz board clock at 16.79 MHz, and the placed-and-routed bitstream is recovered and compared against the RTL over all 65,536 code points, so the bitstream and the source agree rather than merely deriving from it. The ECP5 carries the same RTL and adds a pipelined decoder at one code point per clock; the bench for both parts is in Appendix [15].

The device also checks the reference rather than only itself. A build sweeps the valid range, accumulates a checksum of the three axes over one sweep, and compares it on the die against a constant derived from the anchors tagma_core exports. The verdict leaves the part on pins that the on-board debugger reads, so the comparison is recorded without a person at the board.

On the device Value
iCE40 demo 255 ICESTORM_LC of 5,280, 16.79 MHz
iCE40 bitstream against the RTL every one of 65,536 code points
ECP5 demo 49 TRELLIS_COMB, 16 TRELLIS_FF, 22.28 ns cross-domain path
ECP5 pipeline 148.77 MHz register to register, four stages, four clocks of latency
Device checksum against the anchors passes at 40, 100, 120, 125 and 140 MHz
Negative control a deliberately wrong constant reads as a failure

The last two rows are what make the others worth reading. An indicator that can only show one value proves nothing, so the same build is also made with a wrong constant and shown to fail. The pins, the checksum, and the store’s cost against the device are in Appendix [15].

5.11 Minimum-class device run

The claim that a coordinate is an address has a floor: a part with no operating system under the reader, no file system, and no room for a directory. This run takes that floor and measures what the address costs above it.

The target is a 32-bit part at 160MHz, with 512KB of SRAM and 8MB of flash. The records sit in a 2MB region of that flash. A record is written under the coordinate it is addressed by, so a later reader reaches it by computing the address rather than by searching a table.

The part on the bench and the reader’s working set against the two budgets it must fit are in Appendix [15].

Measured on the part Value
Part 32-bit, 512KB of SRAM, 8MB of flash, 160MHz
Operating system under the reader none: the reader is no_std, allocates from the arena, and takes its time from a tick the host advances
Arena the host hands over 65,552 bytes: the 64KB minimum plus its alignment
First start, preparing the region 2,384 bytes
Working set at the peak after the first start 1,648 bytes
Image 447,968 bytes
Flash region 2MB, the records and their order on the medium
Address of a record twenty code points, computed from the record’s fields

The implementation is separate from this specification. The primitive supplies the address; the implementation supplies the log, the placement on the medium, and the recovery, and the run exercises the address on a part where nothing else could hold it.

Scope of this run: reads go through the memory mapping of the region, and a payload is copied into the caller’s buffer on delivery. The RTL decoder, the bitstream, and the segment store are other realizations of the primitive, and none of them is on this path.

6 Comparison with Existing Paradigms

Content-Addressable Memory provides content-based lookup in one cycle but at 9-16 transistors per bit versus 6 for SRAM [5]. At the Tagma maximum of 11,172 entries, Tagma with direct mapping uses standard SRAM cells at approximately 2.5x less transistor count than CAM, at the cost of 54,364 unused states. Tagma is more area-efficient when the stored set is sparse; CAM is more efficient when dense.

The power difference is larger than the transistor count difference. Every CAM search cycle precharges all matchlines (one per stored word) and conditionally discharges them through the comparison cells, consuming approximately 0.3–1.0 pJ per bit per search. By contrast, an SRAM read of the addressed word dissipates approximately 0.05–0.2 pJ per bit [5]. For an 11,172-entry, 16-bit array, a full CAM search activates all 11,172 matchlines and 16 searchlines simultaneously, whereas a Tagma direct SRAM read activates a single wordline and 16 bitlines, yielding an energy difference of approximately four orders of magnitude per operation.

Figure 15: Tagma occupies the structural coordinate space, replacing the hash-based addressing role in all three while leaving cryptographic functions to SHA-256.

Existing addressing paradigms each optimize a different axis: pointers minimize generation cost (zero) but provide no content-addressability; hash functions maximize identifier space at the cost of indirection; CAM cells offer full associativity at a transistor premium. Tagma occupies a fourth category, structural addressing, where identifier, address, and structure converge into a single 16-bit value decodable at the gate level. In the dense layouts a coordinate maps to one array slot in one access; deeper compositions walk one node per Coord. Hash-based systems accept probabilistic uniqueness and variable latency; a coordinate is unique by construction, and its decode is a fixed instruction sequence whose wall-clock cost still depends on the memory hierarchy. Combined with N-Coord composition (yielding up to \(8.21 \times 10^{76}\) identifiers at 19 Coords), the bound dissolves for practical purposes while per-Coord determinism is preserved.

A comprehensive comparison across dimensions not covered by individual paradigms above:

Attribute Traditional (Hash-based) Tagma
Identifier generation Hash (thousands of cycles) Arithmetic (1-2 cycles)
Collision resistance Probabilistic (finite hash space) Guaranteed (coordinate is unique)
Memory layout Dynamic hash table (variable size) Fixed array (predictable size)
Concurrency Requires synchronization Lock-free (slot-level atomic)
Self-validation Separate checksum/hash Built-in (16-bit range check)
Output form Opaque hex or Base64 Displayable as Unicode text
Structural operations None (random access only) Proximity search, slicing, distance
Hardware mapping Complex (hash function gates) Simple (decoder + address lines)

In addition to the differentiators listed above, structural coordinates enable two capabilities unavailable to hash-based addressing:

  • Proximity search: Coordinates (x+1, y+1, z+1) are neighboring positions, enabling locality queries without index intersection.
  • Axis slicing: All coordinates with a fixed medial value are extracted by projecting a single axis.

What Tagma replaces, partially replaces, and does not replace:

Domain Hash Role Tagma Replaces? Tagma Alternative
ID generation hash(data) to produce an identifier derived from content Partial Coordinate assignment, deterministic but not derived from content
Hash map key hash(key) to compute bucket index Yes CoordSpace (direct array index)
Content addressing data hash as storage address Partial Coordinate-to-data mapping; requires coordinator
Cache key file metadata hash as cache key Partial Composite Tagma coordinate from content attributes
Integrity verification data hash to detect tampering No Retain SHA-256 or BLAKE3
Digital signatures hash-then-sign for non-repudiation No Retain Ed25519 or ECDSA
Key derivation HKDF for key expansion No Retain HKDF
Password hashing bcrypt/Argon2 for work-factor No Retain bcrypt or Argon2

The rows marked No retain cryptographic functions. The tagma-sec layer (Appendix [18]) composes them with the coordinate primitives for coordination traffic, providing integrity, authorization, audit, and non-repudiation.

7 Application Domains

The deterministic single-cycle decode makes Tagma suitable for real-time and safety-critical systems. The three-decoder topology of the future path reduces worst-case decode latency compared to a single linear decoder.

Radiation-tolerant computing. The structural validity check embedded in every decode provides inherent error detection. A single-bit upset that maps a valid coordinate outside the valid range produces an immediate invalid flag. Errors that map one valid coordinate to another are not detected by the structural check alone and require ECC supplementation, as noted in Boundaries. The decoder’s small measured gate count makes triplication feasible at lower cost than protecting a full hash unit.

An exact enumeration of all 11,172 valid coordinates confirms the detection rate4. Each valid coordinate has 16 possible single-bit-flip destinations. Averaged across all valid states, 12.14 of those 16 destinations remain within [U+AC00, U+D7A3] (standard deviation 0.62; range 8–13). The resulting average SEU detection rate is 24.1% from the structural check alone, before any ECC supplementation. This detection rate comes at zero additional hardware cost, as a free byproduct of the structural encoding. When combined with ECC, the structural check handles the subset of errors that map valid coordinates outside the valid range, while ECC handles the remaining cases.

Real-time object identification. In sensor fusion for autonomous systems, Tagma coordinates serve as deterministic object identifiers that do not require hash computation or lookup tables. Each new object is assigned a coordinate at encoding time; subsequent frames reference the same coordinate without recomputation.

Proximity search. The three-axis structure enables field-wise Hamming distance computation through parallel XOR gates, supporting nearest-neighbor lookup without CAM cells or hash-based index intersection.

KV cache addressing. LLM inference engines reuse work across token sequence prefixes, and a radix tree is the structure that does it today, at one step per token. A prefix in a coordinate space is a CoordPath: a token contributes one coordinate, so a prefix of length \(L\) is \(L\) coordinates and a walk costs \(L\) array accesses with no hash. A token id above 11,172 is written as two coordinates by division and remainder, so the per-token step is arithmetic rather than a lookup. Production caches (\(10^4\) to \(10^7\) entries) fit in 2 to 4 Coords. What the coordinate form removes is the per-step key comparison and the variable branching, not the tree.

Graph adjacency and multi-dimensional query. Graph engines check adjacency via hash lookups or index intersections (\(O(\deg(v))\)) and query multi-dimensional attributes via composite indexes or join operations. Tagma represents each node as a Coord and each edge type as a CoordSet; adjacency over a node set that fits one CoordSet is a bitwise AND over 175 machine words, which is cheaper than a hash probe for dense sets and more expensive for sparse ones. Multi-dimensional queries (e.g., “nodes with Axis 0=a, Axis 1=b”) project directly to axis ranges without index intersection, with cost independent of graph size.

Secure coordination traffic. Routing updates, resolver evidence, and audit trails name target paths as CoordPaths. The tagma-sec layer turns the structural path into a security object: authorization over scopes, integrity seals over records and epochs, chained audit evidence, and non-repudiation receipts. Keyed primitives provide the cryptographic guarantees over public coordinate arithmetic. Design and benchmark details are in Appendix [18].

8 Boundaries

The 11,172-identifier bound per Coord is a consequence of the 19 x 21 x 28 composition formula, not a configurable parameter. It defines the single-Coord direct-address range. Applications requiring larger identifier spaces compose multiple Coords via CoordPath (Section N-Coord Composition). The decoder’s structural validity check does not eliminate the need for full error-correcting codes: single-bit errors that map one valid coordinate to another are not detected.

Tagma does not replace cryptographic primitives. SHA-256 remains for signatures, Merkle proofs, and preimage resistance. Encryption, authentication, and key derivation are outside its scope. Tagma replaces the use of hashes as structural identifiers and addresses. Coordination traffic obtains these guarantees from the tagma-sec layer (Appendix [18]), which composes keyed primitives with the coordinate primitives to provide integrity, authorization, audit, and non-repudiation.

For applications requiring content determinism, where the same data must always produce the same identifier, SHA-256 provides content fingerprinting while Tagma provides human-readable encoding of that fingerprint:

Property SHA-256 hex SHA-256 with Tagma
Output 64 hex characters 19 Coords
Determinism Yes Yes (SHA preserved)
Human readable No Yes
Self-validating No Yes (each Coord checked)
Collision resistance 2^-256 2^-255.5 (SHA preserved; 19 Coords)

The combination serves use cases such as file identification, content-addressed storage, and commit hashing where determinism is required but hex output is not. An implementation example combining SHA-256 with Tagma encoding is provided in Appendix [16].

9 Compliance

An implementation is Tagma-compatible iff it satisfies all of the following conditions:

  1. Composition correctness. The composition formula \(C(i,m,f) = \text{U+AC00} + 588i + 28m + f\) must produce the correct Unicode code point for every valid combination of axes (\(19 \times 21 \times 28 = 11,172\) triplets).

  2. Structural validity. Every 16-bit value in the range [U+AC00, U+AC00 + 11,172) must decode to a valid \((i,m,f)\) triplet. Every value outside this range must be rejected, including the 12 filler positions U+D7A4..U+D7AF within the Unicode block but outside the composition formula. Total: 11,172 valid values and 54,364 invalid values in the 16-bit space.

  3. Decomposition correctness. Decomposition must be the functional inverse of composition: \(\text{decompose}(\text{compose}(i,m,f)) = (i,m,f)\) for all 11,172 valid triplets.

  4. Linearization uniqueness. The linearization function must be injective over the N-Coord product space. Distinct N-Coord tuples must produce distinct linear indices.

  5. Bit-exactness. All implementations must produce identical results for the same input across all languages, platforms, and hardware configurations: composition, decomposition, and linearization.

  6. Coord atomicity. Coord is a single-Coord atomic value. An implementation must not impose application-level semantics on Coord’s three axis fields or assume any particular storage strategy for CoordPaths. Coord’s only invariant is structural validity.

10 Vision

Tagma defines a new type of silicon primitive: a combinational decoder that derives identity from structure in a single cycle. At a cost measured in hundreds of gates, content-addressable operation becomes viable where hash-based approaches are too expensive in power, area, or latency. The decoder is verified exhaustively over all 11,172 valid characters in three simulation channels, plus formal equivalence to the synthesized netlist over all 2^16 inputs; the compose and distance units are verified the same way. The structural validity check embedded in every decode provides inherent error detection, relevant for radiation-tolerant computing in space environments. The coordinate space that enables this is this Unicode block, an open international standard and a public good. Tagma is released as open-source hardware in hw/ in the syntagma repository, with the FPGA demo closing the 12 MHz board clock at 16.79 MHz. The decode is two constant multiplies and a shift chain; the store, not the arithmetic, is the design cost. The broader hardware design implications of this shift are discussed in Appendix [14].

The SynTagma specification [11] complements this document. It defines how the recursive state space expansion described in the previous section is realised across physical topologies: routing, transport framing, device-boundary resolution, and distributed coordination. Where this document defines the invariant, SynTagma defines the protocol.

References

[1]
Unicode Consortium, “Hangul syllables (u+AC00–u+D7AF).” Unicode Standard, Chapter 3: Conformance, 2020. Available: https://www.unicode.org/charts/PDF/UAC00.pdf
[2]
Unicode Consortium, “The arithmetically specified decompositions of precomposed hangul syllables.” Unicode Standard, Chapter 3: Conformance, Section 3.12, 2024. Available: https://www.unicode.org/L2/L2003/03203-arithmetic-decomp.pdf
[3]
K. Karlsson, “The arithmetically specified decompositions of precomposed hangul syllables.” Unicode Technical Report L2/03-203, Jun. 12, 2003. Available: https://www.unicode.org/L2/L2003/03203-arithmetic-decomp.pdf
[4]
P. Leach, M. Mealling, and R. Salz, “RFC 4122: A universally unique IDentifier (UUID) URN namespace.” Internet Engineering Task Force, Jul. 2005. Available: https://datatracker.ietf.org/doc/html/rfc4122
[5]
K. Pagiamtzis and A. Sheikholeslami, “Content-addressable memory (CAM) circuits and architectures: A tutorial and survey,” IEEE Journal of Solid-State Circuits, vol. 41, no. 3, pp. 712–727, 2006, doi: 10.1109/JSSC.2005.864128.
[6]
A. Banerjee and S. W. Hussain, “An 8T single bit-line content addressable memory cell for high-performance searching applications,” in 2024 international conference on microelectronics (ICM), 2024, pp. 1–6. doi: 10.1109/ICM63406.2024.10815912.
[7]
OpenHW Group, Core-v eXtension interface (CV-x-IF) specification. 2023. Available: https://docs.openhwgroup.org/projects/openhw-group-core-v-xif/
[8]
OpenHW Group, CV-x-IF interface and coprocessor: CVA6 user documentation. 2023. Available: https://cva6.readthedocs.io/en/latest/01_cva6_user/CVX_Interface_Coprocessor.html
[9]
Intelligent Computing Research Group, OpenRAM: An open-source static random access memory compiler. 2022. Available: https://github.com/VLSIDA/OpenRAM
[10]
SSCCS Initiative, “Tagma: Content-addressable structural primitive.” GitHub repository, 2026. Available: https://github.com/ssccsorg/syntagma
[11]
SSCCS Initiative, “synTagma: Spatial coordinate space computing system based on tagma.” SSCCS Document Suite, 2026. Available: https://docs.ssccs.org/projects/syntagma/tagma/
[12]
SSCCS Initiative, “synTagma benchmark suite.” GitHub repository, 2026. Available: https://github.com/ssccsorg/syntagma/blob/main/sw/rust/benches/bench.rs

© 2026 SSCCS Initiative — Open-source computing systems initiative building a computing model, software compiler infrastructure, and open hardware architecture.

  • Whitepaper: PDF / HTML DOI: 10.5281/zenodo.18759106 via CERN/Zenodo, indexed by OpenAIRE. Licensed under CC BY-NC 4.0.
  • Official repository: GitHub. Authenticated via GPG: BCCB196BADF50C99. Software under Apache 2.0; hardware sources (HDL, constraints, synthesis and PDK flow) in the proof of concept under CERN-OHL-P v2.
  • Governed by the Foundational Charter and Statute of the SSCCS Initiative (in formation).
  • Provenance: Human-in-Command, AI-assisted. Aligns with ISO/IEC JTC 1/SC 42. A document that is C2PA-signed states it on the page, and the manifest travels inside the file. Full intellectual responsibility with author(s).

Appendices

11 Reference Implementation

The coordinate space is implemented as a multi-crate Rust reference implementation5. The Coord type is defined in the core library and is bit-exact with the hardware decoder. The workspace is published on GitHub [10].

11.1 Core Types

Type Description Key property
Coord 16-bit newtype valid in \([0, 11171]\). Three-axis decomposition, composition, Hamming distance, Unicode display. Bit-exact with hardware decoder
CoordPath<N> Compile-time \(N\)-element Coord array. Index path through multi-level address table. Each element is a direct array index at the corresponding tree depth. No hashing, no equality comparison
CoordId<N> A CoordPath read as an identity, written as \(3N\) base-36 characters, three digits an axis [4.2]. Adds the derivation a record layer needs from content or from a label. The text sorts as the coordinate does, and no byte of it is outside ASCII
CoordSet Fixed-size bit array over 11,172-coordinate space. \([\texttt{u64}; 175]\) (1.4 KB, zero heap, Copy). Bitwise union, intersection, difference. Single-bit ops; 175-word AND for compound axis filter

These three types are always available (no allocator required). With the alloc feature, the Space family below is added.

The CoordPath types above treat coordinate space as a tree: index paths through multi-level arrays. CoordCube (from tagma-geo) reinterprets the same CoordPath keys as D-dimensional coordinates, enabling proximity, bounding box, and distance queries that CoordPath alone cannot express [13]. The two access patterns share the same underlying storage; CoordCube is a zero-cost view (construction 0.96 ns, axis extraction at raw path speed 319 ps).

11.1.1 Space Family

The CoordSpace series provides hash-free, collision-free coordinate-indexed spaces backed by direct array addressing.

Type Depth Address space Allocation Latency Exploration pattern
CoordSpace 1 \(11{,}172\) None (inline array) 0.39 ns General single-Coord, no_std, MCU
CoordSpace2 2 \(1.25 \times 10^8\) Dense heap (119 MB) 0.39 ns Two-axis space
CoordSpaceM3 3 \(1.39 \times 10^{12}\) mmap (1.27 TB) 0.39 ns Large-scale dense space
CoordSpaceN2 2 \(1.25 \times 10^8\) Heap (lazy) 0.90 ns Two-axis space
CoordSpaceN6 6 \(1.94 \times 10^{24}\) Heap (lazy) 5.44 ns Below UUID
CoordSpaceN19 19 \(2^{255.5}\) (\(8.2 \times 10^{76}\)) Heap (lazy) 58.6 ns Just below SHA-256
DynCoordSpace Runtime Unlimited Heap (lazy) N/A Variable-depth paths

11.2 Serialization: base11172

A no_std + alloc crate providing Tagma’s native serialization format. Every coordinate index 0..11171 maps to exactly one Unicode character (U+AC00 + index). A pair of Coords encodes a 16-bit value. The encoding is self-validating: characters outside U+AC00..U+D7A3 are immediately detectable as invalid. No special characters, padding, escaping.

This crate is the byte codec and the structural character map, not the identity text. An identifier is written in base 36 as defined in Identity Text [4.2]; Coord::to_char remains the mapping from a value to its syllable, which the codec and the hardware’s character interpretation use.

Code-level analysis of all types (including Coord bit layout, CoordSpace inline array with niche optimization, CoordSet bit iteration with trailing_zeros, and CoordSpaceN sparse tree with lazy node allocation) is in the software reference implementation.

12 Benchmarks

A SHA-256 engine requires approximately 10,000 gates and 64–75 cycles per operation, then needs collision resolution and dynamic resizing. UUID generation requires entropy collection and delivers probabilistic uniqueness. The Tagma decoder replaces this with a combinational decoder and a 16-bit register: one Coord covers 11,172 identifiers; six Coords (18 axes) exceed typical distributed system needs; nineteen Coords reach \(2^{255.5}\); twenty exceed the SHA-256 \(2^{256}\) space.

  • Dense lookup throughput: 0.39 ns for the layouts that fit a dense array (N <= 3), whose address spaces are 22 KB, 119 MB, and 1.27 TB of virtual mapping. The figure is throughput over independent loads, not the latency of a dependent chain; SHA-256’s 227 ns in the same table is a dependent computation.
  • Tree lookup cost scales with depth: 2.69 ns at N=3, 5.44 ns at N=6, 58.6 ns at N=19 (\(2^{255.5}\)), and 62 ns at N=20 (\(2^{269}\)). Depth is set by the schema, so \(10^4\) and \(10^{77}\) entries cost the same \(N\) dereferences.
  • Nonexistent prefix lookup: CoordSpace 1.65 ns against 23.05 ms for a HashMap that must scan ten million entries, because a HashMap has no prefix index. An ordered index answers the same query and is the fair comparison; it is not measured here. Sparse get at 10M entries: 44.9 ms against 1.05 s (23.4x).
Figure 16: Identity generation latency
Figure 17: Addressable space (bars, log) and lookup latency (line, right axis).
  • Identity generation: SHA-256 lookup costs 227 ns; the tree fallback (CoordSpaceN) exceeds \(2^{256}\) at 20 Coords for 62 ns (↑3.7x), while the measured 19-Coord depth costs 58.6 ns (↑3.9x). The native dense path (CoordSpace, CoordSpace2, CoordSpaceM3) holds at a flat 0.39 ns.
  • Address space: tree fallback lookup cost scales as O(N); native dense path is O(1) flat. Tagma recursion k=1 reaches \(5.5 \times 10^{230}\) identifiers (about \(10^{76}\) times the SHA-512 space) at 171 ns.
Figure 18: Spatial query throughput
Figure 19: Edge cases: sparse get, deep get, drain
Figure 20: Bulk operations
Figure 21: Single-get microbenchmark
Figure 22: Mixed workload (500k ops)
Figure 23: Deep tree: get and nonexistent key across the CoordSpace family

Tagma assigns a structural address that is at once a coordinate, an identifier, and a computation target. A hash map computes a bucket from the key; a coordinate is the address. Axis projection, set membership, proximity, and slicing are then arithmetic over the coordinate, and their cost does not grow with the entry count.

The baseline is Rust’s std::collections::HashMap with its default hasher. A hash map is amortized O(1) on exact lookups; it degrades under collision and resizing, and it cannot answer a prefix or a range without a scan. The coordinate space keeps an exact lookup at one access and answers range and set queries by arithmetic.

Metric SHA-256 CoordSpace (N=1) CoordSpace2 (N=2) CoordSpaceM3 (N=3) CoordSpaceN6 (tree) CoordSpaceN19 (tree)
Cost per operation (see note) 227 ns 0.39 ns 0.39 ns 0.40 ns 5.44 ns 58.6 ns
Backing hash inline array heap alloc_zeroed mmap MAP_NORESERVE sparse tree sparse tree
Allocation per-entry heap 22 KB 119 MB 1.27 TB (virtual) per-node per-node
Identity size 32 bytes 2 bytes 4 bytes 6 bytes 12 bytes 38 bytes
Addressable space \(2^{256}\) \(1.12 \times 10^4\) \(1.25 \times 10^8\) \(1.39 \times 10^{12}\) \(1.94 \times 10^{24}\) \(8.21 \times 10^{76}\)
Collision probabilistic (\(2^{-128}\)) zero zero zero zero zero
Native n/a Yes (dense) Yes (dense) Yes (dense) No (fallback) No (fallback)

All figures are software measurements on ARMv8.4-A silicon, compiled with rustc stable in release mode. The dense figures are throughput over independent loads with the array resident in L1, not the latency of a dependent chain, and the SHA-256 figure is the latency of one dependent computation, so the two are not the same quantity. Full benchmark source is included in the repository [12].

13 CoordCube: Spatial Interpretation Layer

The CoordCube layer reinterprets existing CoordPath storage keys as D-dimensional coordinates without modifying the underlying key, enabling proximity queries, bounding box enumeration, and distance metrics that fall outside the core CoordPath scope. The full design, benchmarks, and comparison with existing systems are described in the TagmaGeo whitepaper6; the reference implementation lives in sw/rust/geo7.

Figure 24: Compound query efficiency: iterator fusion vs collect-then-filter
Figure 25: Proximity path generation throughput: manual CoordPath vs CoordCube
Query CoordPath CoordCube
Point lookup O(k) direct O(k) direct
Neighborhood of P external index required proximity(r)
Bounding box manual loop bounding_box()
Distance metric manual compute 1.75 ns hamming
Scale cost (10M entries) O(k log N) bounded O(paths)
Empty region check O(k log N) None 15.7 ns immediate
Compound axis filter O(N) scan 85.7 ns AND

14 Hardware Design Implications

Tagma changes the problem that hardware must solve alongside the speed at which it solves it. Conventional hardware spends area and energy on finding data through hash computation, cache tag matching, and address translation. Tagma replaces finding with knowing: the coordinate is known at encoding time, so the hardware need only decode.

Layer Conventional approach Tagma-based approach
ISA Instructions compute or look up addresses Instructions carry Tagma coordinates as direct operands
Pipeline Branch prediction, cache miss handling Predictable access patterns from coordinate regularity
Cache Tag comparison, associative lookup Direct-indexed cache lines, no tag match
Accelerator Dedicated hash unit for DHT or content addressing Coordinate arithmetic only; hash unit eliminated
Energy Dynamic voltage scaling to cover worst-case hash latency Fixed, minimal decode path; predictable power

Conventional hardware searches. Tagma hardware interprets. This shifts the hardware design problem from faster computation to simpler decoding. The measured trade is explicit: timing closure costs about 2.5x gates [5.2], and the N=1 dense case is examined in Section [5.6]. All three operations of the primitive are realized and verified in RTL; the reference implementation and its remaining work are stated in Section [5].

15 Hardware verification record

This appendix holds what the body states in numbers: the bench, the two device runs, and the figures that support them. The body keeps the results; the detail that makes them checkable lives here.

15.1 The bench

Two targets, and each answers a question the other cannot. The iCE40 UP5K carries the demo top, which is the decode read by eye: a code point in, three axes out, and no host in the loop. Its placed-and-routed bitstream was recovered and compared against the RTL over all 65,536 code points, so the source and the programmed part agree rather than merely deriving from one another.

The ECP5 carries the images that answer without a person. It is given the anchors tagma_core exports, either as a sweep of the valid range or as one value per valid offset drawn from the format’s own alphabet, and it recomputes the checksum of the three axes on the die. The host divides and the die multiplies by a reciprocal, so agreement is between two implementations and not one binary run twice. Over 11,172 values, the two agree.

Figure 26: The ECP5 target on the bench: an iCESugar-Pro v1.3 module seated in its Ext-Board. The verification image runs on the module’s ECP5 and reports its verdict over the on-board iCELink, the USB-C port on the module; the carrier’s ports reach no FPGA.

The verdict leaves the part on the debugger’s pins: a pin and a two-bit stage that the top turns into a colour. The stage is two bits because the third pin is the iCELink’s SWD clock, which no host write reaches. That is how the record is made without a person at the board.

The check is shown failing, because a check whose only output is a pass is not a check. The volume image is built a second time with one value moved to 11,172, the first value outside the alphabet: the die counts it, keeps it out of the sum, and turns the pin to 0. The exact package goes further and compares the anchors one line at a time on two files that carry the same sum with two packs exchanged; the die refuses the file whose values moved, which a sum cannot see.

Wiring, tools, and the procedure each image follows are in hw/boards/icesugar_pro/README.md and hw/demo/.

15.2 The minimum-class device run, in detail

Figure 27: The part that carries the coordinate as a record address, on the bench.

The reader’s working set peaks at 1,648 bytes of a 65,552-byte arena, the 64KB handed over plus its alignment, and the image occupies 447,968 bytes. The first start prepares the region and peaks at 2,384 bytes; later starts hold 1,648 bytes. No index structure stands between a record and its address: the value a writer computes is the value a reader computes, and there is nothing to build as the region fills. A reader that starts after the first does no storage work to find them, because the address is recomputed from the fields rather than restored from a table. There is no rebuild for a start to pay, and the working set stays flat as the region fills.

Figure 28: Footprint against the two budgets the run must fit: 1,648 bytes of the 64KB arena, and 447,968 bytes of the 1MB image slot.
Figure 29: The reader’s working set against the memory of the part, on a log scale: 1,648 bytes inside a 64KB arena, inside 512KB of SRAM.

15.3 What the decoder costs on a device

The ECP5 numbers in the body come from one flow at one place and route run. The demo top is 49 combinational cells and 16 registers with a 22.28 ns cross-domain path, because its inputs come from pins. The pipelined decoder takes its input from a counter, which is what makes nextpnr report a register-to-register clock at all: 148.77 MHz, four stages, four clocks of latency, and the critical path is the multiply by 9363 at 6.72 ns. No register can divide a multiplier, which is why the pipeline stops there.

The checksum is the part that ties the device to the reference. tagma_pipe_verify_top accumulates (i << 10) | (m << 5) | f over one sweep of the valid range and compares the total against a constant that hw/tools/tagma_checksum.py derives from hw/rtl/golden_anchors.hex, the file tagma_core writes. The verdict, a heartbeat, and a sweep counter leave the die on three balls that the on-board iCELink reaches as GPIO, and make board-verify reads them back over the programming cable.

Build Timing pin_match Measured clock
40 MHz PASS 1 40.00 MHz, 40.06 MHz
100 MHz PASS 1 100.16 MHz, 99.90 MHz
120 MHz PASS 1 120.10 MHz, 120.02 MHz
125 MHz PASS 1 124.97 MHz, 124.91 MHz
140 MHz PASS 1 139.90 MHz, 139.99 MHz
150 MHz rejected, 145.99 MHz achievable not built not run

Each row reports the clock from two dividers that count different things, clocks and sweeps, and they agree to a tenth of a percent. The negative control is a build with EXPECTED = 32'h00000001: it reads as a failure, so the pass above is a comparison that ran.

15.4 What the store costs on a device

The store is 178,752 bits, which is 17.3 percent of the 1,032,192 bits of block RAM on the ECP5 25F, eleven blocks of its fifty-six. A block RAM read costs one clock, or two with the output register, which is the same order as a decode, so on that device the constraint moves from latency to capacity and access pattern. In Sky130 the decoder is 2,826 um^2 and the same bits are 89,000 to 358,000 um^2 at an estimated half to two square micrometres per bit, thirty-two to one hundred and twenty-seven times the decoder.

Figure 30: Where the silicon goes. Left: the segment store against the block RAM of the ECP5 25F. Right: decoder area against the store’s estimated area in Sky130, log scale, with the store drawn as a range because it has no measured macro yet.

The sweep comparison is here because it is the number that stops the decode rate being read as a speed claim.

Figure 31: One full sweep of the valid space, software against the device. The software loop finishes in 1.92 us and the device needs 80 us at 140 MHz, so throughput belongs to the CPU and not to this hardware. The figure is here to stop the decode rate being read as a speed claim.

16 SHA-256 with Tagma Encoding

SHA-256 output is uniformly distributed, so the modulo-11172 mapping to each Coord value is statistically unbiased. The overall collision probability of the 20-Coord output remains \(2^{-256}\), preserved from the underlying hash. The 20-Coord space (\(2^{269}\)) exceeds the \(2^{256}\) domain, so no collision is forced by the encoding.

17 TagmaMap8: Key-Value Store on Coordinate Primitives

TagmaMap builds a practical key-value storage engine on top of the coordinate primitives described in this document. Where the core Tagma library provides collision-free O(1) addressing within a single address space, TagmaMap extends the model to handle legacy infrastructure requirements that fall outside the core library scope: multi-node coordinated sharding, persistence to backing stores, protocol adaptation (Redis RESP, S3 REST), and operational tooling.

The structural addressing model handles what legacy systems delegate to hash functions and index structures: key placement, collision resolution, and range partitioning. TagmaMap supplies what the coordinate model intentionally abstracts away: durable storage, wire protocols, and cluster management.

The full design and benchmark results are described in the TagmaMap whitepaper; the reference implementation lives in sw/rust/map9. Selected CoordCube benchmarks that measure KV-relevant metrics are reproduced below.

17.1 Throughput: Store Density and Proximity

Figure 32: Query cost vs store size: CoordCube proximity vs HashMap filter
Figure 33: CoordCube vs sequential lookup: hit-rate crossover
Figure 34: Scale-invariant KV get latency: CoordMap2 vs HashMap
  • CoordCube proximity on dense stores adds 127 ns overhead over sequential lookup, but this overhead is dominated by Vec allocation/push (87%), not coordinate arithmetic (13%).
  • On sparse stores, CoordCube is up to 3.3x faster than sequential lookup (48.5 ns vs 158 ns) because it avoids tree lookups for nonexistent paths.
  • On empty stores, CoordCube returns immediately at 15.7 ns (pure path generation cost), while sequential lookup still pays 158 ns for 9 tree misses.
  • The crossover point where CoordCube becomes faster than sequential is at roughly 55% hit rate. Below this, generating paths and checking is cheaper than looking up known paths.
  • CoordCube query cost is bounded by region size (path count), not store size. HashMap spatial queries cost O(N) full scan. At 10M entries, CoordCube proximity is 285 ns against a HashMap filter at 238 ms, a factor of roughly 8 x 10^5.
  • Hierarchical queries (CoordCube proximity + manual post-filter) are faster than direct KV proximity on multi-character dimensions (547 ns vs 639 ns).

17.2 Throughput: General KV Operations

  • Edge: CS2 sparse get sustains 23.4x at 10M entries; CS19 get shows 19-dereference cost (0.50x); drain is 0.72x on the full space.
  • Bulk operations: CoordSpace outperforms HashMap by 14.6–17.3x across all operations on the full 11,172-entry space.
  • Single-get microbenchmark isolates the per-operation cost: 0.82 ns vs 8.50 ns.
  • Stress test: under 500,000 interleaved insert, get, remove, and update operations, CoordSpace completes in 3.64 ms vs HashMap 12.2 ms.
  • Deep tree: CoordSpaceN19 at 100 entries shows the 19-dereference tree traversal cost (7.04 us vs 3.53 us for HashMap). Nonexistent key lookup remains depth-independent: CoordSpace2 0.39 ns, CoordSpaceN19 2.30 ns, HashMap 20.1 ns.

18 Tagma Security10: Security Layer on Coordinate Primitives

Tagma Security builds the security primitive layer for coordination traffic on top of the coordinate primitives described in this document. Routing updates name target paths, resolvers exchange evidence, and the audit trail records what happened; Tagma Security answers the accompanying questions: which principal may act on which path, whether a record is intact, whether the origin of an update can be denied, and what evidence remains. The layer provides integrity, authorization, audit, and non-repudiation over Tagma coordinate objects and coordination traffic.

The security model rests on keyed primitives over public coordinate arithmetic. The composition formula, the linearization rule, and the validity bounds are public specifications, so coordinate structure contributes collision-free addressing while the security guarantees come from keyed hashing (blake3 in the reference implementation). Four modules expose small interfaces: authority (CoordPath Exact/Prefix scope authorization, epoch-scoped revocation), integrity (epoch-bound seals), audit (chained evidence log with inclusion proofs), and channel (non-repudiation receipts). The implementation covers specification milestones 1 to 4 with a legacy pattern as a reverse-verification mirror: the same workflow suite must pass identically on both stacks.

Figure 35: Route update cost: the tagma-sec pattern workflow equals the sum of its module costs
Figure 36: Authorization decision cost and scope-depth scaling
  • Route update workflow: 696.1 ns, the exact sum of its module costs (authorize 36.8, seal 171.4, verify 129.2, append 110.3, append 110.3, exchange 132.7). The proxy and trait-object dispatch add no measurable overhead.
  • Epoch replay detection: the four-way seal (record, path, principal, epoch) costs 171.4 ns against 138.8 ns for the record-and-path legacy seal, a 33 ns price for binding the epoch.
  • The tagma-sec pattern adds ~87 ns per update over the legacy baseline (696.1 vs 609.5 ns), the price of replay detection.
  • Authorization is O(scope depth): 36.8 ns for a 2-coord prefix scope, 62.7 ns at 19-coord depth, independent of store size. Deny short-circuits at the first mismatching coord (3.1 ns, ~12x cheaper than Allow); a revoked scope adds one map lookup (40.5 ns).
  • Audit chaining: append costs 110.3 ns (keyed payload hash); chain verification over 10,000 entries costs 9.9 µs, about 1 ns per entry prev-link walk with no hashing. Prove and export are about 20 ns per entry and memory-bound, so offline investigation scales with evidence size rather than log size.
Figure 37: Audit operations: append cost and 10k-entry verification scale

The full design, benchmark charts, and implementation status are described in the Tagma Security whitepaper and in the Tagma security layer specification11 in the synTagma repository.

19 TagmaMatrix12: Coordinate-Addressed Matrices

TagmaMatrix carries the coordinate model to numeric arrays. An element of a rank-2 matrix already has an address in this system: a row and a column are two Coords, and two Coords are a CoordPath<2>. Where the core library addresses a path and TagmaMap addresses a stored value, TagmaMatrix addresses the element a path names when the elements form a structure the program computes with.

The crate makes one property checkable. The physical order of the backing bytes is a type parameter and never part of the address, so the same coordinate names the same element whether the bytes are stored row-major or column-major: the same logical matrix in the two orders answers the same coordinates with the same values, produces a byte-identical product, and writes identical bytes. That is relocation invariance, held by test, and it is what lets a matrix move between devices without changing its identity. A wire form follows from the same statement, because a matrix can cross as its coordinates and their values while the receiver lays the bytes out as it likes.

The crate adds the integer product over the elements, i8 by i8 into i32, whose accumulator is bounded by the coordinate space itself at 181,612,032, so no widening is needed at any addressable width. It is the family member that takes no allocator: tagma-core is taken with its defaults off, and a link into a program with no operating system and no global allocator is part of the crate’s verification.

The full design and the verification surface are described in the TagmaMatrix whitepaper; the reference implementation lives in sw/rust/matrix13.

20 Structural Enumeration in Practice: RISC-V Verification

ExaVerif14 exhaustively verifies RISC-V custom instruction encodings. Its standard pipeline generates the full Cartesian product of field domains and filters each combination through constraint checks. At the CVA6 CV-X-IF space (5 fields, 33,554,432 raw combinations), this takes 29.7 seconds and yields 229,376 valid encodings.

The Tagma-based structural pipeline replaces post-hoc filtering with structure-preserving generation. Cross-field constraints (funct3→funct7 mapping, oneof, enable_mask) are encoded into a DynCoordSpace<CoordSet> during enumeration setup. The iterator visits only combinations that satisfy those constraints a priori. Constraint evaluation on visited combinations is identical to the standard pipeline.

The two charts below capture the result. The first shows the speedup across all fixtures from the standard pipeline to structural enumeration: 79x at Ibex scale, 766x at CVA6 R4 scale. The second zooms into the CVA6 encoding space, showing the full 33M space in 29.7 seconds versus 31.3 milliseconds, a 950x reduction in verification time.

Figure 38: Verification time: standard evaluate vs structural enumeration across four fixture sizes. At CVA6 R4 2M scale, structural enumeration achieves 766x speedup.
Figure 39: CVA6 CV-X-IF encoding space: standard evaluate (29.7s for 33M) vs structural_verify with all constraint checks (31.3ms), a 950x speedup.
Fixture Raw space Valid space Density Standard evaluate Structural verify Speedup
Ibex R-type 524,288 92,160 17.6% 3.66 s 46.1 ms 79x
CVA6 R4 2,097,152 12,288 0.6% 1.23 s 1.60 ms 766x
CVA6 full 33,554,432 229,376 0.7% 29.7 s 31.3 ms 950x

The speedup is not algorithmic optimization. It is a change in enumeration strategy: the standard pipeline generates all 33,554,432 combinations then filters, while the structural pipeline generates only the 229,376 valid combinations by construction. Every combination that the structural pipeline visits, it evaluates with the same constraint checks as the standard pipeline. The 99.3% of the space that is invalid is never allocated, never iterated, and never tested. This is not faster filtering; it is the absence of filtering.

21 Petabyte-Scale Science Software: CERN ROOT TTree

ROOT is the data analysis framework of the CERN community, and its TTree columnar format stores the events of nearly every physics analysis. A documented production bottleneck limits the read path: a Fermilab CCESOP analysis over CMS NanoAOD issues 372,000 singular reads averaging 4.6 KB, sustains an effective 33 KB/s, and runs for roughly 14 hours. The measured cause is per-request I/O overhead (system call, cache lookup, context switch), so the cost is per request, not per byte.

A fork of CERN’s ROOT replaces branch, basket, and cache traversal with closed-form coordinate arithmetic: an event addressed as (run, luminosity block, event number) resolves to a direct byte offset with no hash and no index scan, while the TTree API and existing analysis code stay unchanged. The store is a fixed-width projection of each event, 320 of the tree’s 1,380 leaves with the 276 array fields truncated to their leading element. The table compares the read paths on the full CMS Run2016G DoubleMuon NanoAOD first file (2,315,223 events, 2,155,974,646 bytes).

Metric ROOT TTree baseline Tagma coordinate Tagma mapped
Full-file read 187.0-188.2 s 2.71-2.81 s (66.9-69.1x) 1.55-1.61 s (116.6-120.5x)
Read throughput 11.5 MB/s 2,190 MB/s 3,819 MB/s
Reads per event 0.20 1.00 1.00
Syscalls per event 0.20 1.00 0.00
Analysis workload (20,861 events) 187.9 s 2.72 s (69.2x) n/a

The ratios compare against the all-branch baseline, and the rows move different payloads: 2.15 GB of compressed file against 5.93 GB of raw records, so the throughput figures are not like for like. The component controls narrow the claim. Decompression removal accounts for 2.2x to 2.3x; against an uncompressed baseline reading the same columns the store is 13.1x, or 22.8x mapped; and against ROOT’s best configuration for that payload, 40.5x, or 70.5x mapped. The store’s cost does not fall with the number of columns an analysis selects, so on the two-column selection of the analysis workload ROOT’s column-selective reader is 4.9x faster, and the store is the cheaper unit above a crossover near 11 columns for the projection, or about 6 with the store mapped. A one-time conversion of the full dataset costs 226.3 s, so the mapped path breaks even within the second read pass.

The analysis workload reproduces the baseline exactly (20,861 selected events, histogram mean 132.696), and the served bytes match the conversion checksum (233,262,869,086). The full report is the ROOT TTree I/O report15.

The fork has since carried the store past the projection. The store now carries the whole event, 974 scalar fields and 19 collections at two reads per event, with the read path at 10.2 s against the baseline’s 176.7 s; the whole-event row with the branches active runs 117.6 s, 1.5 times, because the entry layer rather than the read path decides that comparison. The store compresses under the same addressing, 7,082,290,985 to 2,897,372,833 bytes, 2.44 times, with the read path at 12.4 s and 572 MB/s, while the compressed store file remains 1.34 times the baseline file’s 2,155,974,646 bytes.

The regime the work was aimed at is event-selected access. Reading selected events in list order rather than a scan, the store reads the whole event, the index record and the slice with the 1,380 field branches delivered, in 0.101 s scattered against 0.109 s sequential over 2,000 events, two reads per event, against the baseline’s 202.2 s and 682.6 requests per event: 2,000 times payload for payload and delivery for delivery, or 345 times through the block-compressed store. The coordinate also addresses a dataset rather than one file: one shard per run over 38 runs, a run resolved by arithmetic with no scan against the 11.1 s run-branch scan a TChain needs, at 18.1 ms per file to attach against the chain’s forced 9.3 ms, and the entry layer at 2.8 times the chain’s per-event read over a whole run. The boundaries stay with the results: for the collection store ROOT wins a narrow column selection below about 42 scalar columns for the read path, near 810 with delivery; thread scaling narrows the lead from 14.3 to 11.2 times over eight cores; the entry layer’s per-cell cost rises with the scale of the walk, 54.5 microseconds over a shard’s first 2,000 cells against 78.9 over 368,008; and multi-terabyte samples, the remote medium, and 128 cores are not measured.

The two charts below capture the result. The first shows the speedup across all measured conditions; the second shows the mechanism on the full dataset: the baseline scatters one event across many small requests, while the coordinate path serves every event with one aligned request and the mapped path adds zero application-level read system calls.

Figure 40: Speedup over the ROOT baseline across measured conditions, log scale. The mapped row is the coordinate+map path and the analysis row is the analysis workload. The synthetic and M1 slice bars are indicative microbenchmark-scale ratios; the full-dataset and analysis bars are the measured claims.
Figure 41: Requests and read system calls per event on the full dataset. The mapped path serves every event with one aligned request and zero application-level read system calls.

22 Script Comparison

The full comparison across all examined writing systems. Main-stream computing alphabets (ASCII/Latin, Cyrillic, Greek, Hebrew) are atomic assignments with no combinatorial structure. Devanagari, Thai, and Tibetan combine consonants and vowels with irregular joining rules; not every combination maps to a predefined code point, so no closed-form three-axis decomposition exists. Braille is genuinely combinatorial, but as a 2^6 dot bit pattern rather than a three-axis algebra. Hangul Jamo composes characters as conjoining code-point sequences, so the composition exists but spans multiple code points instead of one closed-form block. Ethiopic and Cherokee are syllabaries: each character is an individually assigned code point, a one-dimensional enumeration. Hangul is the only script that combines a fully contiguous BMP valid range with a complete three-axis decomposition.

Script Contiguous Address Combinatorial Structure 3-Axis Decomposition Compatible?
Hangul Y U+AC00..U+D7A3 Y 19x21x28, no exceptions Y Onset-Nucleus-Coda Y
ASCII Y U+0000-U+007F N N N
Cyrillic Y U+0400-U+04FF N N N
Greek Y U+0370-U+03FF N N N
CJK Unified Ideographs Y U+4E00-U+9FFF N (infinite, irregular) N N
Japanese(Kana) Y U+3040-U+30FF N N N
Arabic Y U+0600-U+06FF N N N
Hebrew Y U+0590-U+05FF N N N
Devanagari N N (2D consonant+vowel) N N
Thai N N (2D consonant+vowel) N N
Tibetan N N (2D consonant+vowel) N N
Braille Y U+2800-U+28FF Y (2^6 dot bit pattern) N (bit pattern, no axis algebra) N
Hangul Jamo Y U+1100-U+11FF N (conjoining sequences) N (multi-code-point composition) N
Ethiopic Y U+1200-U+137F N (1D syllabary) N N
Cherokee Y U+13A0-U+13FF N (1D syllabary) N N

23 CoordSpace20

This is a single unique atom’s address in our observable universe:

2qw00052t3m08mb4rx2ge5vl2b384f6gp04o1601mc1rs2m432g3l44hs5xw

Twenty axis windows of three base-36 digits form a coordinate path. Each window encodes a value drawn from 11,172 possibilities through the initial, medial, and final decomposition of the syllable behind it, yielding 11,172²⁰ ≈ 9.2 × 10⁸⁰ possible addresses. This is enough to assign a unique address to each atom in a volume 9.2 times larger than the observable universe. Yet the entire address is sixty ASCII characters. It is not a hash of a larger datum but the address itself, written so that a filesystem, an archive, a shell, and a C string carry it unchanged; the syllable each window stands for is still the unit the decoder validates.

Footnotes

  1. Greek τάγμα from σύνταγμα (syn-tagma, co-ordinate in English), “a well-ordered arrangement of constituent elements”. Tagma is the system name; Coord is the concrete implementation type.↩︎

  2. Tagma hardware series: docs.ssccs.org/projects/syntagma/hardware/↩︎

  3. Repository: Github (Pre-release), Benchmark github.com/ssccsorg/syntagma/blob/main/sw/rust/benches/bench.rs↩︎

  4. Computed by exhaustive enumeration: for each of the 11,172 valid Coord values, all 16 single-bit-flip neighbors are tested against the valid range [U+AC00, U+D7A3].↩︎

  5. Tagma Reference Implementations: docs.ssccs.org/projects/syntagma/impl↩︎

  6. TagmaGeo whitepaper (draft): docs.ssccs.org/projects/syntagma/tagma-geo↩︎

  7. TagmaGeo reference implementation: github.com/ssccsorg/syntagma/tree/main/sw/rust/geo↩︎

  8. TagmaMap whitepaper (DOI: 10.5281/zenodo.21550431): docs.ssccs.org/projects/syntagma/tagma-map↩︎

  9. TagmaMap reference implementation: github.com/ssccsorg/syntagma/tree/main/sw/rust/map↩︎

  10. Tagma Security whitepaper: docs.ssccs.org/projects/syntagma/tagma/security↩︎

  11. Tagma Security Layer Specification: github.com/ssccsorg/syntagma/blob/main/docs/spec/tagma-sec.md↩︎

  12. TagmaMatrix whitepaper (draft): docs.ssccs.org/projects/syntagma/tagma-matrix↩︎

  13. TagmaMatrix reference implementation: github.com/ssccsorg/syntagma/tree/main/sw/rust/matrix↩︎

  14. Project ExaVerif, Exhaustive Verification for RISC-V Custom Instructions docs.ssccs.org/projects/ev↩︎

  15. Solving CERN’s ROOT TTree I/O bottleneck: docs.ssccs.org/works/cern/root-ttree/; measured evidence reproducible from the ROOT fork, its benchmark, and the measured artifact that records every row.↩︎