MCP
arXivarXiv
Preprint
Published: August 3, 2026
cs.GR

PTI: A Hierarchical Symbolic Color Addressing System

Abstract
This paper introduces PTI (Persistent Traversal Identity), a hierarchical symbolic addressing system for digital color derived from the recursive binary subdivision of the RGB color cube. Standard hierarchical color processing systems organize colors via recursive space partitioning but conventionally discard the traversal path once computation is complete. PTI formalizes the preservation of that traversal path as a persistent symbolic identifier. The resulting address is a finite sequence of eight-valued digits from the set {0, ..., 7}, each encoding the octant selected at one level of subdivision. Concatenated, they constitute a lossless alternative representation of any 8-bit-per-channel RGB color. PTI is structurally equivalent to the Morton (Z-order) code of a color interpreted as a sequence rather than an integer, and its construction algorithm is the octree traversal procedure of classical octree quantization, as established by Gervautz and Purgathofer. PTI does not introduce a new color space, nor does it claim to improve upon these foundational methods. Its contribution is a color representation that is simultaneously machine-precise and hierarchically interpretable, revealing a color's family lineage directly from its address structure. The same 8-digit address decodes losslessly to RGB and reads compositionally as a named sequence of weighted color directions. PTI's well-defined prefix semantics support direct address operations suited to color catalog organization, truncation-based image-processing routines, and structured exploration of colors. The address structure invites further operations beyond this. A simple one, successively rotating the address by one digit position, creates structurally harmonious color palettes derived directly from the geometry of the RGB cube, never leaving RGB.
0
AI overview
Reviews
Citation graph
Structured
This preview uses generator v1; v2 is available

Overview

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.

Problem Background and Subject of Study for Hierarchical Digital Color Representation

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.

How PTI Differs in Positioning from Existing Hierarchical Indexing Schemes such as Morton Codes

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.

Core Design and New Capabilities of the PTI System

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.

Operational Logic of PTI Core Mechanisms and Address Operations

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 256/2d256/2^{d} 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.

Fig. 1: Hues sampled at 30-degree intervals on the HSL color wheel, with each swatch labeled with its corresponding PTI address; anchor hues have single-digit repeated addresses, and midpoint hues have mixed addresses.

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 Rotk(a)Rot^{k}(a), 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.

Verification of PTI Core Properties and Practical Effects

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 ai=4ri+2gi+bia_i = 4r_i + 2g_i + b_i, where rir_i, gig_i, bib_i 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.

Fig. 2: A catalog of 768 random digital colors: the left side shows the original random arrangement, the right side shows them automatically grouped and arranged by PTI depth-2 families.

PTI's Design Trade-offs and Core Conclusions

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.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first