AlphaLogo Project · Heptapod B · Mathematical Linguistics

Decoding
Heptapod B

The first formal mathematical parameterization of the circular written language from Arrival encoding alien logograms into a navigable geometric space.

49 known logograms · Fourier skeleton · Live morphing

A Language That Encodes Time

In Denis Villeneuve's Arrival (2016), a species of seven-limbed heptapods communicates through circular ink glyphs, each one encoding a complete sentence in a single continuous mark. Unlike linear human languages, Heptapod B has no beginning and no end. Its circularity reflects a non-linear perception of time: the writing of a sentence implies knowledge of the whole sentence before the first mark is made.

Heptapod Ink Form

AlphaLogo treats each logogram as a closed parametric curve in the complex plane decomposing it via Fourier analysis into a compact 783-dimensional vector Φ(L). This encoding is invertible, translation-invariant, and machine-readable.

The analogy is the Laplace transform: just as a differential equation can be solved algebraically in the s-domain, logograms can be studied, compared, and morphed in Φ(L)-space then inverted back to their original form.

The work sits at the intersection of computational linguistics, differential geometry, and Fourier analysis applied to a language that has never before been formally described.

49 logograms encoded 783-dim Φ(L) space N=64 harmonics Track 1 complete Open source

How It Works

Three steps take a raw logogram PNG to a machine-readable geometric fingerprint which is lossless, invertible, and ready for computational analysis.

01
Skeleton Extraction

Each 224×224 PNG is binary-thresholded and reduced to its medial axis skeleton via the Zhang-Suen algorithm. Thick brushstrokes become 1-pixel centerlines of the true geometric curve beneath the ink.

02
Complex-Plane Lift

Each skeleton curve becomes γ(t) = x(t) + i·y(t), a closed complex-valued parametric curve. Its Discrete Fourier Transform yields coefficients c_n of rotating circles at different frequencies that together trace the logogram's shape. This is the Ptolemaic epicycle representation made rigorous.

03
The Φ(L) Encoding

Normalized Fourier coefficients are packed into a 783-dimensional vector Φ(L) with translation, scale, and rotation invariant. The vector is the logogram's geometric fingerprint: unique, invertible, and directly usable as input to any ML pipeline.

Join the Research

AlphaLogo is an open project. Whether you are a linguist, a mathematician, a developer, or simply a fan who watched Arrival and never quite recovered, there is a place for you here.

GH
GitHub Repository

Full source code, the heptapod_encode pipeline, Track 1 results, and the research paper are all publicly available. Fork, star, open issues, submit PRs.

https://github.com/binarybrainspy/alphalogo →
∿
For Developers

The encoding pipeline is a clean Python module. Install it, run it on your own logogram dataset, extend the scoring, or build new visualization tools on top of the Φ(L) matrix.

Quick start guide →
Lx
For Linguists

The generated candidate logograms need grammatical validation. If you work in constructed languages, semiotics, or computational linguistics and want to collaborate on formalizing Heptapod B grammar then reach out.

lucascollections31@gmail.com →
@
Send a Message