This article introduces PTI, a hierarchical symbolic digital color addressing system derived from recursive bisection of the RGB cube. It preserves the traversal paths of spatial subdivision as persistent symbolic identifiers, achieving lossless bidirectional RGB conversion along with a set of native address operations.
Conventional hierarchical color processing systems organize colors by performing recursive spatial partitioning on the RGB color cube; the generic processing logic of such systems is to discard the traversal path information generated during subdivision immediately after computation is complete. PTI (Persistent Traversal Identity) is a hierarchical symbolic addressing system for digital colors, based entirely on recursive binary subdivision of the RGB color cube. Its core design idea is to retain the traversal path from the subdivision process, formalized as a persistent symbolic identifier. The addresses PTI generates are finite sequences of eight-valued digits with values in the range {0, …, 7}, where each digit corresponds to the octant selected at a given level of subdivision; concatenating all digits yields a lossless alternative representation for any 8-bit-per-channel RGB color.
PTI addresses share the same locality-preserving structure as Morton codes; the two are structurally equivalent, and this shared basis is why the two schemes are easily grouped together as hierarchical indexing methods. Their core difference lies in bit grouping logic: Morton codes do not aggregate channel bits, directly interleaving independent bits from different channels with no weighting; PTI, by contrast, packs the three channel bits of each bit plane into a single weighted digit, and this one digit alone—rather than three independent bits scattered across the encoding sequence—identifies a complete, nameable direction.
PTI is not a new class of color space, but a persistent traversal identity system designed for hierarchical traversal of the RGB cube; its most fundamental core capability is bidirectional lossless encoding and decoding. PTI-Encode and PTI-Decode are strictly inverse operations: encoding any 24-bit RGB color and then decoding the result exactly recovers the original color value, with no information loss anywhere in the process.
PTI features a unique dual-semantic vocabulary mechanism: its two-channel anchor digits simultaneously carry both subtractive naming (cyan, magenta, yellow) and additive RGB decomposition semantics, so a single identifier maps to the expressive logic of both color systems without any additional conversion.
Unlike traditional color representation schemes, where all operations must be performed on RGB values, PTI supports native operations directly on the address sequence itself, including additive complement, truncation, and address rotation. The entire derivation of a harmony palette is done entirely on the address sequence, with no need to decode addresses back into RGB values and without departing from the native geometric properties of the RGB cube; at the same time, this address structure supports hierarchical drill-down navigation across the full color space, directly supporting color catalog organization applications.
Truncated PTI addresses are the basic unit of hierarchical addressing in the PTI system. A truncated PTI address of depth d retains only the first d digits of the full address, locating the sub-cube at the corresponding level that contains the target color. This sub-cube has edge length on all three RGB channels, and all RGB colors sharing that truncated prefix fall within the same sub-cube. You can combine this with the visualization immediately following to intuitively grasp the spatial distribution relationships of hue cubes with PTI addresses at different depths.
The additive complement operation on PTI addresses has a clear numerical mapping rule: replacing each digit t in the address with 7−t yields the PTI address of the corresponding complement. This transformation flips all bits within each color channel, and the resulting complement color's three-channel values sum with the original color's to exactly pure white (255, 255, 255).
PTI's rotation–channel correspondence theorem establishes the equivalence between cyclic shifts of an address and color channel operations. If a color C = (R, G, B) has PTI address a, cyclically shifting the address left by k positions yields a new address , whose corresponding color is exactly the result of cyclically shifting each of the original color's three channels left by k positions, i.e. (ROL_k(R), ROL_k(G), ROL_k(B)).
As an extension of the rotation–channel correspondence theorem, any PTI address other than the 8 anchor addresses naturally contains an associated color set of size 2, 4, or 8. This set can be extracted directly by performing address rotation on a single seed PTI address, requiring no additional color samples as input and no cross-color-space coordinate conversion; the entire computation takes place entirely within RGB space, making it a viable alternative to traditional palette generation methods.
The paper provides complete proofs of two core theorems in its appendix, corresponding respectively to the correspondence between address rotation and per-channel bit rotation, and the equivalence between PTI depth-4 periodic representative points and CSS three-digit hexadecimal shorthands. PTI's single-digit packing logic is defined as follows: the values of the RGB three channels are expanded in most-significant-bit-first order into 8-bit binary sequences, and each PTI digit takes 1 bit from the same bit position of each of the three channels, given by the formula , where , , are the binary values of the red, green, and blue channels at the corresponding bit position, each being only 0 or 1.
Through recursive color exploration operations based on PTI addresses, selecting a family generates a new 64-cell grid focused on that selection, with the address narrowing by two further digits. This recursive process can continue at depths 2, 4, 6, and 8, of which depths 2, 4, and 8 are canonical levels and depth 6 is non-canonical. Canonical levels display exact periodic representative points, while colors at the non-canonical depth-6 level are expressed via alternative representative points; all colors converge to exact values at depth 8. Each selection generates a combinatorial name, and each level adds one anchor pair. You can use the figure below to directly compare the structural difference between a randomly arranged color grid and color bands grouped by PTI depth-2 families.
PTI's canonical representative points at each prefix depth are defined by address periodicity, not by Euclidean proximity to the original color; this is a deliberate design trade-off. This periodic prefix convention prioritizes level consistency—that is, the same set of rules that defines PTI's own depth structure—rather than numerical optimality. One observable consequence of this design is that some coarser-depth representative points are actually closer to the original color in Euclidean distance than finer-depth representative points; among all 16777216 possible colors, this occurs 86448 times, roughly 0.52%.
PTI addresses natively support a formal query-layer capability: membership testing, set-intersection-like operations, prefix-bounded enumeration, and digit-value filtering at specified positions—direct address-level constraints—all derivable directly from the address string, without decoding addresses back into RGB space.
PTI's core positioning is as a hierarchical symbolic addressing system for digital colors; its core contribution is the formal definition of a persistent traversal identity within the framework of recursive RGB cube subdivision. Rather than locating a color in an octree and then discarding the octant index sequence, it retains that sequence as the color's identifier. Structurally, a complete PTI address corresponds to the color's Morton code, merely split into consecutive 3-bit segments and interpreted symbolically rather than treated as a scalar numerical value.