Logarchéon · Research Demonstration

MSIA Encryption Demo

This tool locks a short message so only someone with the same secret key can read it — like a padlock where the key is a set of numbers you choose. The lock is built from advanced math (the geodesic length spectrum of a Fuchsian group; the key is the entries of g Möbius generators), but you don't need to know any of that to use it. Just pick your numbers, type a message, and press a button. Everything runs on your own device — nothing is sent anywhere. This is a research demo, not a vetted security product. Source · U.S. Patent Pending 64/067,703.

How to use it — 3 simple steps

  1. Make your secret key. Tap Load demo key to fill in a ready-made one, or type your own numbers. Both sides — sender and reader — must use the exact same key. (Advanced: the key is g generator matrices; the page checks they're valid as you type.)
  2. To send a secret message: use the blue box below. Type your message, press Encrypt, then Copy the scrambled code and send it to your friend. Also tell them your key and the settings you used.
  3. To read a message you got: use the gold box. Put in the same key and settings, paste the scrambled code, and press Decrypt. Your message appears.

New to this? Start with the green practice box just below — it's the easy version. Then come down to the full tool.  ·  Already know how? Open the standalone tool ↗

★ Start here — simplified version

Try the cipher

This uses the same algorithm as the full tool below, with two generators fixed and standard mode only. Enter a key, type a message, encrypt it, then decrypt to see it come back. The trace formula check runs live as you type.

Step 1 · Your key — two 2×2 matrices

Each matrix must be hyperbolic: the trace (top-left + bottom-right diagonal) must satisfy |trace| > 2 — meaning the sum is greater than 2 or less than −2. This is the geodesic condition. The cipher checks it live for each matrix as you type.

T₁ — first generator
trace (a+d) = ?
T₂ — second generator
trace (a+d) = ?
Fill all eight boxes above, or tap a key below.
✓ Valid keys — tap to fill
✗ Invalid keys — tap to see why they fail
Step 2 · Encrypt a message
0 / 64
Scrambled code
Scrambled code appears here.
Step 3 · Decrypt
Your message
Your message appears here.

Ready for more?

The full tool below lets you choose 2–6 generators, High mode for stronger encryption, and an optional AES-GCM outer wrap.

Go to the full tool ↓   Open standalone ↗
Initializing…
Strength (generators)
Mode (precision)
Hide method (extra lock)

How hard is it to crack? (changes with your settings)

Number of possible keys
Time to crack — normal computer
fastest computers today
Time to crack — future quantum computer

① Send a secret message

Put in your key, type your message, and press Encrypt. You'll get scrambled code to copy and send.

Step 1 · Your secret key — the numbers
These boxes are your key. Tap Load demo key for a ready-made one, or type your own numbers (decimals and negatives are fine). The page shows a green check when the numbers work. (Advanced: each box-set is a 2×2 generator matrix; each must be hyperbolic — its two corner-to-corner numbers add to more than 2, or less than −2.)
Fill the boxes, or tap Load demo key.
Step 2 · Your message
Type anything — any language, emoji, or symbols.
message size: 0 / 64
Step 3 · Scramble it
Scrambled code — copy this and send it
Your scrambled code will appear here. Send it to your friend along with the key and settings.

② Read a secret message

Use the same key and settings the sender used, paste their scrambled code, and press Decrypt.

Step 1 · The same secret key
Enter the exact same numbers the sender used. If even one is different, it won't open. (And set the same Strength and Mode at the top.)
Enter the same numbers the sender gave you.
Step 2 · The scrambled code
Paste the code your friend sent, or open their saved file.
Step 3 · Open it
The message
The secret message will appear here.

Notes

MSIA is one small worked example from a larger study of post-quantum cryptographic primitives rooted in the Langlands program, hyperbolic geometry, and related number-theoretic structures. That study sits alongside Logarchéon’s primary research tracks in ASI seed architecture (the CEAS / Ψ-operator / GRAIL triadic framework) and Indo-Pacific lawfare — it is not the center of those programs, but draws on the same mathematical substrate.

The construction came from the matrix identity det(I − zA)⁻¹ = exp(Σ Tr(Aᵐ)zᵐ/m), which translates simultaneously between symbolic dynamics, linear algebra, and spectral geometry. Making that translation one-way is the cryptographic idea; the specific hard problem is the length-spectrum inverse problem for Kleinian groups in ℍⁿ, n≥3. See the detailed sections below the tool for the full mathematical development.

Pure algebraic (Sparse)

not secure as-is
Decryption by Vandermonde inversion of the power-sum traces — no hash. Mathematically closest to the bare construction; not cryptographically secure on its own and carries no authentication.

Hashed FO-KEM (this demo)

authenticated
Lengths → SHA-512 → 256-bit key, XOR keystream, HMAC-SHA-512 tag. Gives authentication (CCA2-style). The demo faithfully implements the geometric construction, but since the formal hardness proofs are still in progress, it derives the cipher key through SHA-512 so a guaranteed security floor is in place today; the brute-force and quantum figures in the live panel above measure that SHA-512 floor. Treating the geometry itself as the trapdoor (Option B) is the open research direction.

Brute-force & quantum resistance

Each generator adds four real key parameters (~97 bits at High precision). Once the key space exceeds the 256-bit derived key, the SHA-512 floor dominates; under Grover that floor is 2¹²⁸ — the NIST quantum-safe bar.

configkey spaceclassicalquantum (Grover)quantum-safe?
Standard g=22⁶¹~21 min (nation-state)instantno
High g=22¹⁹⁴> age of universe~10⁶ yrno (2⁹⁷)
High g=32²⁵⁶ (SHA-capped)> age of universe> age of universeyes (2¹²⁸)
High g≥42²⁵⁶ (SHA-capped)> age of universe> age of universeyes (margin)

Offline & air-gapped use

All computation runs locally in your browser. Once loaded, no network is needed — disconnect Wi-Fi and encrypt/decrypt still work. Verify by turning off networking and watching a round-trip succeed.

Choosing the key

Each number may be positive or negative and need not be a whole number (e.g. -2.5, 1.41421356). Each generator must be hyperbolic: its two diagonal numbers add to more than 2 or less than −2, checked live. Digit count does not affect speed — a double is 64 bits regardless. More digits give a larger key space at no speed cost.

Demo scope

This demo handles short messages (up to 64 bytes). The method generalizes to full documents and files in a native implementation; the limit is a property of this demo, not of the construction.

Logarchéon Research · Mathematical Background

MSIA in Depth

The sections below develop the mathematics, the construction, the hardness argument, and where MSIA sits in a broader research program.

§1 · The Core Mathematical Identity

MSIA originates in a single algebraic identity that holds for any square matrix A over any commutative ring, proved by expanding log det = tr log:

The Artin–Mazur / Bowen–Ruelle zeta identity det(I − z A)⁻¹  =  exp ( Σm=1 Tr(Am) · zm / m )

The left side is a rational function in z — the reciprocal of a characteristic polynomial. The right side is an exponential generating function of matrix traces. What makes the identity remarkable for cryptography is not the algebra but the triple simultaneous translation it performs:

Language 1

Symbolic Dynamics

The coefficients of log ζA(z) count primitive periodic orbits by length. Each (ℓi, ci) pair is an orbit of period ℓi with multiplicity ci.

Language 2

Linear Algebra

The left side det(I − zA)⁻¹ is the characteristic polynomial of the companion matrix A. Factoring it reveals the orbit structure.

Language 3

Spectral Theory

When A is the transfer matrix of a geodesic flow on ℍⁿ/Γ, the poles of ζA(s) are the eigenvalues of the Laplacian — the Selberg trace formula is the analytic version of this identity.

The cryptographic insight is: this identity can be made one-way if the primitive elements (the ℓi) are chosen from a mathematical structure whose inverse problem is computationally hard. Going from A to ζA is fast — matrix exponentiation. Going from ζA back to the primitive (ℓi, ci) data requires solving a problem that the entire mathematical community has worked on for decades without a general efficient algorithm.

This insight is not new as a mathematical observation — the identity has been known since Bowen, Ruelle, and Artin–Mazur in the 1960s–70s. What is new is recognizing it as a cryptographic primitive and building a concrete keyed encryption scheme on top of it. The key selects which Kleinian group Γ to use; the primitive geodesic lengths ℓi of Γ are the secret orbit data; the ciphertext is the characteristic polynomial of the companion matrix. Decryption recovers the ℓi using the key. An attacker without the key must recover ℓi from the ciphertext alone — which requires solving the length-spectrum inverse problem.

Why the origin matters. RSA came from basic modular arithmetic (Rivest, Shamir, Adleman 1977). Diffie-Hellman from discrete logarithms. ECC from the Weierstrass equation. In each case, the creative moment was recognizing that an existing mathematical structure has a natural one-way character. MSIA follows the same pattern — but the mathematical structure it draws on (the Selberg zeta function and hyperbolic geodesic flow) is substantially deeper than what underlies RSA or ECC.

§2 · Mathematical Foundations — Four Pillars

MSIA rests on four mathematical domains, each contributing an essential component of the construction.

Pillar 1 — Modular Representation Theory

Given a finite group G and a prime p, the modular representation theory of G over 𝔽p studies how modules decompose into indecomposable blocks. The key tool is the Brauer character, which tracks how ordinary complex characters reduce mod p. For MSIA, this machinery provides the algebraic ground in which the companion matrix A(p) lives: A lives in Matn(𝔽p), and its characteristic polynomial det(I − zA) factors into irreducibles in 𝔽p[z] corresponding to the symbolic orbit data. The factorization pattern — which irreducibles appear, with what multiplicities — encodes the secret message. Recovering the message from the polynomial requires inverting this block decomposition, which is hard precisely because modular decomposition is non-canonical and the blocks can be obfuscated by conjugation.

Pillar 2 — Symbolic Dynamics and the Artin–Mazur Zeta Function

A subshift of finite type (SFT) is a dynamical system on a finite alphabet where transitions are governed by a 0–1 adjacency matrix A. Periodic orbits of the SFT correspond to words that can be traced through A indefinitely. The Artin–Mazur zeta function ζA(z) = 1/det(I − zA) encodes the number of periodic orbits of each length. For MSIA, the symbolic dynamical system is the geodesic flow on ℍⁿ/Γ — the hyperbolic manifold associated to the Kleinian group Γ determined by the key. The "periodic orbits" of this flow are the closed geodesics; their lengths are the primitive lengths ℓi. The Artin–Mazur zeta function becomes the Selberg zeta function in this setting, connecting symbolic dynamics to spectral geometry.

Pillar 3 — Schottky and Kleinian Groups

A Schottky group Γ is a free group of Möbius transformations generated by parabolic or hyperbolic elements, constructed by specifying 2g disjoint Jordan curves C1, C1′, …, Cg, Cg′ in S² and taking the generators to be the Möbius maps sending the exterior of Ci to the interior of Ci′. The resulting quotient ℍ³/Γ is a hyperbolic 3-manifold (or handlebody); its primitive closed geodesics have lengths ℓi that are determined by the generator matrices — the conjugacy class lengths of the group elements.

For the key, the user supplies the 2×2 real matrices of these generators. The condition |trace| > 2 ensures each generator is hyperbolic — it has two fixed points on the boundary S² = ∂ℍ³ and acts by a pure stretch along the geodesic connecting them. The geodesic length is ℓ = 2 · acosh(|tr(G)|/2). With g generators, the group has infinitely many closed geodesics but they are generated by the finite set of primitives, and the key selects exactly which group Γ is used. Mostow rigidity (dimension ≥ 3) guarantees that the group Γ is uniquely determined by its geometry up to isometry — an attacker cannot find a different group with the same length spectrum.

Pillar 4 — The Selberg Zeta Function and Its Zeros

The Selberg zeta function ζΓ(s) is defined by the Euler product over primitive closed geodesics of ℍⁿ/Γ:

ζΓ(s) = Πγ primitive Πk=0 (1 − e−(s+k)ℓ(γ))

Its zeros lie at the eigenvalues of the Laplacian on ℍⁿ/Γ — a fact proved by the Selberg trace formula, which relates the spectrum of the Laplacian to the geodesic length spectrum. This is the continuous analog of the matrix identity above. The Riemann Hypothesis analog for the Selberg zeta is proven (Selberg 1956 for n=2, Patterson-Sullivan and others for n>2): all non-trivial zeros lie on the critical line Re(s) = (n−1)/2. This means the distribution of geodesic lengths is provably well-controlled — a stronger foundation than classical cryptography has for the distribution of rational primes, where the Riemann Hypothesis remains open.

The Prime Geodesic Theorem gives the density: #{γ primitive : ℓ(γ) ≤ L} ~ e(n−1)L / ((n−1)L) as L → ∞. This gives exact control over the number of available geodesics of each length, letting you calibrate key space precisely — analogous to knowing exactly how many RSA primes exist below a given bound.

§3 · The Encryption Construction

The full encryption pipeline maps a message to a ciphertext through the mathematical objects described above. Here is the complete flow, followed by the two implementation variants and the decryption path.

The Encryption Flow

Message m Symbolic pairs (ℓi, ci) Modular zeta ζp(z) Companion matrix A(p) Ciphertext χ(z) = det(I − zA)

Step 1: Symbolic encoding. Each byte (or chunk of bytes) of the message m is assigned a pair (ℓi, ci) where ℓi is a geodesic length derived from the key generators and i is the position in the message. The lengths are computed by the formula ℓi = 2 · acosh(|tr(G1(i+1) G2 … Gg(i+g))|/2), scaled and rounded to an integer modulo the prime P. Multiple chunks derive distinct lengths because the matrix product depends on the position index i.

Step 2: Modular zeta construction. The symbolic pairs define a modular zeta function over 𝔽p:

ζp(z) = Πi (1 − zi)−ci ∈ 𝔽p(z)

This is the algebraic / modular analog of the Selberg–Artin–Mazur zeta function, computed purely over the finite field 𝔽p = ℤ/Pℤ, requiring no analytic convergence.

Step 3: Companion matrix. The companion matrix A(p) ∈ Matn(𝔽p) is the matrix whose characteristic polynomial det(I − zA(p)) equals ζp(z)−1. Its block-diagonal structure encodes the orbit data; Brauer character obfuscation conceals the decomposition from an attacker who sees only the matrix.

Step 4: Ciphertext. The ciphertext is χ(z) = det(I − zA(p)) ∈ 𝔽p[z] — the characteristic polynomial of A(p) — together with an HMAC authentication tag. An attacker who intercepts χ(z) must factor it over 𝔽p[z] and match the factors to symbolic orbits without knowing the group Γ determined by the key.

Option A and Option B — The Design Fork

There are two fundamentally different ways to implement decryption, and they correspond to two different security postures:

Option A · Current implementation

Hashed / FO-KEM (SHA-512 security)

The full geometric construction is implemented faithfully — the geodesic lengths ℓi are derived from the key generators exactly as the scheme specifies. Because the formal hardness proofs (Lean 4 verification and external cryptanalysis) are not yet finished, the demo does not yet rely on the geometric inversion problem for its security guarantee; instead it feeds the ℓi into SHA-512 to produce the actual cipher key K, with an HMAC tag for authentication. This gives a guaranteed, well-understood security floor today, independent of how the geometric hardness ultimately resolves. Decryption recomputes the ℓi from the generators and re-derives K. Under Grover's algorithm, SHA-512's effective quantum security is 2128 at High mode with g≥3 generators — the NIST quantum-safe bar.

Option B · Research direction

Geometric trapdoor (spectral hardness)

The characteristic polynomial χ(z) is treated as the genuine ciphertext, and decryption requires inverting the length-spectrum map — recovering the ℓi from χ(z) without the key. This is the version where the geometry itself carries the security guarantee, resting on the inverse spectral problem for Kleinian groups, an open problem in arithmetic geometry. The geometric construction is already built (Option A uses the same lengths); what Option B requires, and what is not yet established, is the formal proof that recovering those lengths is hard. The pure-algebraic recovery path — companion blocks of x−1, block-diagonal assembly, diagonal disguise, and Vandermonde solve from the power-trace vector — is demonstrated live in the Algebraic constructions section below. Until the hardness proof and external cryptanalysis are complete, the everyday tool keeps the SHA-512 floor rather than relying on the geometric hardness alone.

The Decryption Path (Option A)

Decryption in Option A recomputes the geodesic lengths ℓi from the generator matrices, re-derives the SHA-512 key K = SHA-512(ℓ1, …, ℓt), and verifies the HMAC tag. If the key matches, the XOR keystream is regenerated and the plaintext is recovered. Wrong key → HMAC fails cleanly. The geometric structure — the matrix products, the acosh computation, the scaling and reduction mod P — is only a key-derivation mechanism; it does not appear in the ciphertext.

Option B's decryption path (not yet implemented) would require: (1) factoring χ(z) over 𝔽p[z], (2) matching the factors to primitive orbit lengths, and (3) inverting the length spectrum to recover Γ and the key. Step (3) is the hard step — it is open in the mathematical literature for dimension ≥ 3.

§4 · Hardness Analysis

The papers establish multiple independent hardness arguments for MSIA, targeting different complexity classes and attack models.

NP-Hardness via 3-SAT Reduction

The MSIA inversion problem — given a characteristic polynomial χ(z) ∈ 𝔽p[z], recover the symbolic orbit data (ℓi, ci) that produced it — can be used to solve 3-SAT in polynomial time if an efficient inversion algorithm exists. The reduction encodes 3-SAT clauses into the symbolic orbit structure: satisfying assignments correspond to consistent orbit decompositions of χ(z), and the inversion algorithm would find one if it exists. Therefore efficient MSIA inversion implies P = NP. The same reduction shows that even approximate inversion (within polynomial error) remains NP-hard.

#P-Hardness via Trace Counting

A stronger result: computing the power-sum traces Tr(Am) from χ(z) alone is #P-hard. This is established by reduction from the problem of counting independent sets in a graph (a #P-complete problem). The companion matrix A encodes a graph-like structure in its block decomposition; recovering the trace sequence from the characteristic polynomial requires counting independent sets in this structure. #P-hardness is strictly stronger than NP-hardness — it says that even a probabilistic polynomial-time oracle for NP cannot solve the problem efficiently.

The Schottky Conjugacy-Class Length Problem

A third hardness source: given the set of geodesic lengths {ℓ(γ)} of a Schottky group Γ (its "length spectrum"), recover the conjugacy classes of the generators of Γ. This is the Schottky conjugacy-class length problem. It is a variant of the inverse spectral problem and is not known to be in any subexponential-time algorithm. The reduction from this problem to MSIA inversion shows that breaking MSIA is at least as hard as solving the conjugacy-class length problem.

Quantum Resistance — Non-Abelian HSP for SO(n,1)

Shor's algorithm and its generalizations work by solving the Hidden Subgroup Problem (HSP) on an abelian group via quantum Fourier sampling. RSA's vulnerability: factoring reduces to HSP over ℤ. ECC's vulnerability: discrete log reduces to HSP over ℤ/nℤ. MSIA's geodesic flow has SO(n,1) symmetry — the group of orientation-preserving isometries of ℍⁿ. For n ≥ 2, SO(n,1) is a simple non-abelian Lie group. The non-abelian HSP over SO(n,1) is not known to be solvable in polynomial time even on a quantum computer. There is no known quantum Fourier transform that exploits SO(n,1) structure, and the representation theory of non-compact simple Lie groups is not amenable to the sampling techniques used in Shor's algorithm.

Mostow Rigidity as a Security Amplifier

Mostow's rigidity theorem (1968, extended by Prasad and others): if n ≥ 3 and Γ, Γ′ are lattices in SO(n,1) with isomorphic fundamental groups, then ℍⁿ/Γ ≅ ℍⁿ/Γ′ as Riemannian manifolds. In other words, for dimension ≥ 3, the geometry uniquely determines the group up to isometry. There are no non-isometric hyperbolic manifolds with the same volume, spectrum, or length spectrum (up to a conjecture by isospectral forms in higher dimensions, where even the Vignéras / Sunada construction produces distinct Γ).

For the MSIA inverse problem, Mostow rigidity means the inverse has a unique answer. An attacker is not searching for "any Γ that fits" but for the specific Γ that was used. This is harder than a problem with multiple valid inverses — the search space is the same but valid answers are isolated points, not large subsets.

The Prime Geodesic Theorem as a Security Parameter

The Prime Geodesic Theorem gives the precise asymptotic count of primitive geodesics of length ≤ L:

#{γ primitive : ℓ(γ) ≤ L}  ~  e(n−1)L / ((n−1)L)   as L → ∞

This exponential growth means the number of "cryptographic primes" (geodesics) available at a given length scale grows faster than polynomially. It also gives a precise handle on the key space — analogous to the prime counting function π(N) giving a handle on the RSA key space. Unlike π(N), the Prime Geodesic Theorem is a consequence of the proven Selberg zeta Riemann Hypothesis — the distribution of geodesics is provably well-controlled by a formula, not just conjectured to be so.

§5 · The Cryptographic Hierarchy and Prior Art

MSIA occupies a specific position in a hierarchy of cryptographic hardness assumptions, each corresponding to a different tier of mathematical depth. The table below places MSIA in context.

tiersystem / primitivehardness basiscomplexity floor †quantum status
0Motivic zeta functionsRecovering motive from ζ; Standard Conjectures openunmeasurableunknown● completely new
0–1Hyperbolic Neural CryptosystemBulk-to-boundary reconstruction (holography, quantum gravity) + O(n,1) continuous isometry key2500+resistant● completely new
1Automorphic L-functionsHecke eigenvalue inversion; full Langlands functoriality open2300+resistant● completely new
1MSIA — Selberg ζΓ, Kleinian n≥3 ← this demoLength spectrum inversion; Arthur–Selberg; Prime Geodesic Theorem; Mostow rigidity2200+resistant● completely new
1–2Artin L-functions / inverse GaloisRecovering Galois rep ρ from L(ρ,s); inverse Galois problem2200+resistant● new as primitive
1–2Dessins d'Enfants / BelyiAbsolute Galois action on dessins; anabelian geometry2200+resistant● completely new
2Hasse-Weil ζ (varieties, dim ≥ 2)Torelli problem for abelian varieties2150+subexponential● essentially new
2–3CSIDH / SQIsignSupersingular isogeny / class group action2128subexponentialdeployed PQC
3ML-KEM / ML-DSA (NIST 2024)Module-LWE21602130current standard
4McElieceSyndrome decoding2128264+deployed PQC
5NTRUNTRU lattice21282128deployed PQC
7SLH-DSA / LMSHash one-way function21282128 (Grover only)deployed PQC
8RSA / ECCFactoring / ECDLP2112polynomial (Shor)● broken by Shor

green = this demo   gold = Logarchéon research programme

Complexity floor — for deployed systems (Tiers 3–8): reflects cryptanalytic consensus on the minimum classical work to break the scheme. For research-stage entries (Tiers 0–2, marked ●): reflects the depth of the underlying open mathematical problem rather than a proven attack bound — no efficient classical attack is known, and in some cases no attack of any complexity has been formulated. Values above 2256 exceed the SHA-512 key floor and indicate mathematical rather than computational barriers. "Unmeasurable" means the underlying theory (Standard Conjectures, quantum gravity) is not yet complete enough to define an attack space.

What Is Genuinely New

Everything from Tier 0 through Tier 2 in the table — except the Hasse-Weil entry for elliptic curves specifically (which underlies existing isogeny crypto) — is unoccupied territory in cryptography. No deployed system, no NIST candidate, and no serious prior academic proposal uses any of these as the explicit cryptographic primitive. The reason is structural: the mathematics is too deep for most cryptographers, and most mathematicians working in these areas have not been thinking about cryptographic applications. The people who understand the Arthur-Selberg trace formula are not typically the people building encryption schemes.

The entries marked "completely new" have not appeared in any cryptographic proposal before MSIA and the Hyperbolic Neural Cryptosystem. The entries marked "new as primitive" have appeared peripherally in the mathematical literature in cryptographic contexts but have not been formalized as explicit hard problems for encryption. The Selberg zeta function has appeared in mathematics and physics for 70 years. It has never appeared as a cryptographic hardness assumption before this work.

The Langlands Unification Hypothesis

The systems at levels 0–2 share a striking structural property: they are all connected to either the Langlands program (automorphic forms, L-functions, Galois representations) or Grothendieck's program (motives, dessins, anabelian geometry, étale cohomology). These are the two grand unification programs of 20th–21st century mathematics. It is not coincidental that the hardest cryptographic problems sit exactly at this boundary.

The Langlands correspondence conjectures that all reasonable L-functions — Selberg zeta, Artin L-functions, automorphic L-functions, Hasse-Weil zeta functions of varieties — are all instances of a single object: automorphic L-functions attached to representations of adele groups. If this is true (the evidence is overwhelming, though the full correspondence remains open), then the different systems at Tiers 0–2 in the table might not give independent hardness assumptions — they might all reduce to the same underlying hard problem through Langlands functoriality.

This is analogous to how RSA, DH, and ECDLP seemed like three independent hard problems but are all vulnerable to Shor because they share the same abelian group structure. If the Langlands unification holds, MSIA — properly generalized to the full automorphic level — would not be one instance among many but the right framework for the entire class of Langlands-based cryptographic hardness.

§6 · Research Plan — Two Tracks and Their Unification

The research program that MSIA belongs to has two complementary directions and a Track C unification. All entries in the gold-highlighted rows of the table above are either existing work or planned contributions in this program. The two tracks are not independent: they are connected at their deepest mathematical level through a structural equivalence first proved by Kapustin and Witten (2006).

Langlands functoriality  ⟺  S-duality (Kapustin-Witten 2006)  ⟺  holographic duality

Track A approaches through the algebraic/arithmetic side; Track B through the geometric/physical side. Both are computational manifestations of the same underlying mathematical duality.

Track A — Langlands-Based Post-Quantum Cryptography (algebraic / discrete)

A hierarchy from specific to universal. MSIA sits in the middle; the program climbs upward toward more universal hardness assumptions and also examines the more specific cases below.

A5 · long horizonMotivic zeta functions — recovering arithmetic motives from ζ; hardness above all other levels; depends on Standard Conjectures (theory not yet complete)
A4Automorphic L-functions (full Langlands) — Hecke eigenvalue inversion across all reductive groups; functoriality conjecture as master primitive
A1 · existing workMSIA — Selberg ζΓ / Kleinian groups in ℍⁿ, n≥3 — length spectrum inversion; this demo
A2Artin L-functions / inverse Galois — Frobenius conjugacy classes over number fields; inverse Galois problem as trapdoor
A3Dessins d'Enfants / Belyi — absolute Galois group action on bipartite graphs on Riemann surfaces; Grothendieck's conjecture
papercontenttargethorizon
A1 · nowMSIA: Length Spectrum Inversion as post-quantum primitive. Formal hardness definition, Vandermonde correctness, FO-KEM, Lean 4 proofs.CRYPTO / EUROCRYPTimmediate
A2Artin L-function cryptosystem: inverse Galois problem as trapdoor. Explicit construction using Frobenius conjugacy classes over number fields.EUROCRYPT / TCCnear-term
A3Dessins d'Enfants cryptosystem: Belyi maps and absolute Galois group action as one-way function. Construction over Q̄.CRYPTO / Annals adj.medium-term
A4Full automorphic L-function crypto: unifying A1–A3 under the Langlands correspondence. Hecke eigenvalue inversion as master primitive.Journal of Cryptology / JACMlong-term
A5Motivic crypto: when Standard Conjectures admit partial resolution, motivic zeta functions give hardness strictly above A4.Future workdecade horizon

Track B — Physics-Based Post-Quantum Cryptography (geometric / continuous)

A second framework whose hardness comes from physics rather than mathematics. Operates on high-dimensional continuous data (model outputs, embeddings, sensor readings) where Track A operates on symbolic discrete data.

B3Quantum gravity inversion as formal computational primitive — formal complexity theory for holographic inversion; relationship to QMA-hardness and quantum circuit complexity
B2Holographic quantum error correction meets classical encryption — connecting AdS bulk reconstruction to complexity classes
B1 · existing workHyperbolic Neural Cryptosystem — key = isometry T ∈ O(n,1) in the latent layer of a hyperbolic autoencoder; hardness from holographic bulk-to-boundary reconstruction + Langlands obfuscation
papercontenttargethorizon
B1 · nowHyperbolic Neural Cryptosystem: formal construction, key = isometry T ∈ O(n,1), hardness from holographic bulk-to-boundary reconstruction + Langlands obfuscation in latent space.CRYPTO / NeurIPS Securityimmediate
B2Computational complexity of bulk reconstruction: connecting AdS inversion to complexity classes. Relationship to QMA-hardness and quantum circuit complexity.STOC / CCC / QICnear-term
B3Hyperbolic neural key exchange: replacing Diffie-Hellman with O(n,1) isometry agreement protocol.IEEE S&P / EUROCRYPTmedium-term

Is the Track B Identity Computable Today?

A natural question: MSIA rests on a concrete, computable identity — the Selberg / Artin–Mazur zeta product that translates geodesic lengths into a characteristic polynomial. Does the geometric Track B have an equally computable identity available right now, or is it purely aspirational? The answer is that it does, and which form it takes depends entirely on the dimension.

● 3D · already the same object

Thermal AdS₃ / BTZ — identical to MSIA

The BTZ black hole is ℍ³/Γ — precisely the Kleinian quotient MSIA uses. The Selberg zeta formalism has been applied directly to the Euclidean BTZ black hole, a quotient of ℍ³ by a discrete subgroup Γ. The one-loop bulk partition function, the boundary CFT partition function, and the Selberg zeta product over prime geodesics are the same object viewed three ways.

Given any two of: (i) the one-loop partition function, (ii) the quasinormal-mode frequencies, and (iii) the zeros of the Selberg zeta function, the third is constructible. In 3D the Track B computable identity is the MSIA identity — same prime geodesic lengths ℓ(γ), same product structure.

numerical · 4D / 5D

AdS₄ / AdS₅ — Horowitz-type, computable by ODE

In higher dimensions the holographic retarded Green's function GR(ω) is computed numerically: solve the bulk wave equation (a second-order linear ODE in the radial coordinate) with ingoing boundary conditions at the horizon, then read off the ratio of asymptotic modes at the boundary. This is the established Horowitz–Santos–Tong / holographic-conductivity computation.

The forward direction (bulk geometry → GR) is numerically stable and well-implemented. The inverse direction (GR → quasinormal modes → bulk geometry) is the hard, cryptographic direction.

The structural parallel between the two tracks is exact. In higher dimensions the boundary Green's function factorizes meromorphically over its quasinormal-mode poles:

Track B (holographic) — the direct analog of the MSIA identityGR(ω)  ∼  Πn (ω − ωn) / Πn (ω − ωn)

The quasinormal-mode frequencies ωn play the role of the geodesic lengths ℓi; the boundary Green's function plays the role of the characteristic polynomial det(I − zA). The key encodes the bulk geometry (black-hole parameters and field content); the ciphertext is sampled values of GR(ω); and the security would rest on recovering the quasinormal modes from those samples — an ill-posed inverse-scattering problem.

Forward map (computable now) — AdS₄-Schwarzschild bulk-to-boundary, scipy
def holographic_green(omega, rh=1.0, m2=0.0): # Bulk-to-boundary Green's function in AdS4-Schwarzschild. # omega: complex frequency (the parameter space). # Key = (rh, m2) = bulk geometry; returns G^R(omega). f = lambda r: 1 - (rh/r)**3 eps = 1e-6; r0 = rh + eps # ingoing (infalling) boundary condition at the horizon nu = -1j * omega / (3 * rh**2 * abs(f(r0+eps))) y0 = [(r0-rh)**nu, nu*(r0-rh)**(nu-1)] def eom(r, y): A, Ap = y App = -(omega**2 / (r**2 * f(r)**2) - m2/r**2) * A return [Ap, App] sol = solve_ivp(eom, [r0, 50*rh], y0, method='DOP853', rtol=1e-10, atol=1e-12) # G^R proportional to ratio of boundary modes return sol.y[1,-1] / sol.y[0,-1] * sol.t[-1]

Bottom line. The condensed-matter holographic-conductivity work (Horowitz and collaborators) is not merely analogous to the Track B primitive — it is a working implementation of the forward identity. In 3D the identity is literally the MSIA Selberg product; in 4D/5D it is the numerically-computed boundary Green's function. The gap between this and a deployable Track B scheme is not a computational gap — the forward map runs today — but a hardness-formalization gap: proving that the inverse direction (recovering quasinormal modes from sampled GR values) is computationally hard remains open, exactly as MSIA's Option B does.

Track C — Unification

The long-horizon contribution that most dramatically elevates both tracks. Track C formalizes the Kapustin-Witten connection as a cryptographic theorem: MSIA (Track A) and the Hyperbolic Neural Cryptosystem (Track B) are dual manifestations of the same underlying hard problem.

C1 — Unified Framework

S-duality, Langlands, and holography as a unified post-quantum cryptographic framework. MSIA and the Hyperbolic Neural Cryptosystem as dual manifestations of the same mathematical hardness. The Kapustin-Witten duality as a formal reduction between Track A and Track B security proofs.

Annals of Mathematics / JACM

C2 — Quantum Gravity Cryptography

Formal complexity theory for holographic inversion. Placing bulk-to-boundary reconstruction in a rigorous complexity class; connecting quantum gravity inversion to canonical hard problems. First formal bridge between quantum gravity and complexity-theoretic cryptography.

Nature Physics / Comm. Math. Physics

Scale of the Program

This program is comparable to what lattice cryptography represented in 1996 before Ajtai's worst-case to average-case reduction — a mathematical structure with deep hardness properties that had not yet been translated into a cryptographic framework. Three differences favour this program: the mathematical depth is greater (the Langlands program and quantum gravity are harder than lattice geometry); the work is already further along (two working implementations, a provisional patent, formal hardness papers); and the timing is better (NIST has just standardized lattice systems and the field is actively seeking diversity of hardness assumptions).

Why Hardness is Rare — and Where This Construction Sits

The core identity det(I − zA)−1 = exp(Σ Tr(Am)zm/m) holds for any matrix over any commutative ring — formally, there are infinitely many zeta-function-based constructions. Genuine cryptographic hardness, however, appears only when the inverse problem is computationally deep. The table below shows why most zeta functions do not yield hard cryptosystems, and which ones do.

Zeta functionPrimitivesInverse problemHard?
Riemann ζ(s)Rational primes {2,3,5,…}Factor integers / recover primesNo — primes are explicitly constructible
Ihara ζ(X) of a graphPrime cycles in finite graphFactor the Ihara zeta polynomialModerate — depends on graph structure
Ruelle ζ for generic mapPeriodic orbits of fRecover f from its orbit countDepends entirely on f
Selberg ζΓ(s) — MSIAPrimitive closed geodesics of ℍⁿ/ΓRecover length spectrum from ΓYes — inverse spectral problem is open
Artin L-function of Galois rep ρFrobenius conjugacy classesRecover ρ from L(ρ,s)Yes — inverse Galois problem
Automorphic L-functionHecke eigenvaluesRecover automorphic form from L-functionYes — conjectured hard; Langlands core
Hasse-Weil ζ(V/𝔽q)Points of variety over 𝔽qmRecover variety from zetaYes — Torelli problem
Motivic zeta functionsMotivic cohomology classesRecover motive from ζYes — deeply open

The hard cases are not arbitrary — they cluster around the same objects: automorphic forms, algebraic varieties over finite fields, Galois representations, and hyperbolic geometry. The Langlands program conjectures that all of these L-functions are instances of a single object (automorphic L-functions attached to representations of adèle groups), which would mean the different hard constructions may not yield independent hardness assumptions but rather different encodings of the same underlying problem. This is the direct analogue of how RSA, Diffie-Hellman, and ECDLP all seemed independent until Shor revealed they share abelian group structure. Whether that unification holds in the Langlands case remains an open conjecture — which is itself part of what makes this territory hard.

Why the Kleinian / Geodesic Instantiation is Particularly Suited

Among the hard instantiations in the table, the Selberg / Kleinian construction has four properties that distinguish it from the others as a cryptographic primitive.

  • Mostow rigidity (n≥3). For hyperbolic manifolds of dimension 3 or higher, the geometry uniquely determines the group Γ up to isometry. The inverse problem has a unique answer — the attacker is not searching for "any group that fits" but for the specific one. Uniqueness makes the problem harder, not easier.
  • Prime Geodesic Theorem as a calibration tool. The precise asymptotic #{γ : ℓ(γ) ≤ L} ~ ehL/hL gives exact control over the density of primitive geodesics used as key material. This is the analogue of knowing exactly how many RSA primes exist below a bound — it lets security parameters be calibrated rigorously.
  • No abelian Fourier structure. The geodesic flow on ℍⁿ/Γ has non-abelian symmetry for n≥2. For n≥3 the isometry group SO(n,1) is simple and non-abelian in a way that has no known Fourier sampling structure. Shor's algorithm has no obvious application.
  • Selberg's analogue of RH is proven. The zeros of the Selberg zeta function ζΓ(s) are the eigenvalues of the Laplacian on ℍⁿ/Γ. The Riemann Hypothesis analogue for ζΓ is proved (Selberg 1956 for n=2; subsequently for n>2). The distribution of the "cryptographic primes" (geodesics) is provably well-controlled — a stronger foundation than classical cryptography has for rational primes, where RH is still open.

Open Problems: Usable Identities Beyond Zeta Functions

Abstracting away the zeta / L-function structure entirely, the operative pattern is: a mathematical identity that translates between two representations, where the forward direction is efficient and the inverse direction connects to a deeply open problem. This pattern appears in several areas outside the Langlands hierarchy, constituting a broader landscape of potential post-quantum primitives.

Topology

Knot invariants / Chern-Simons TQFT

The Jones polynomial V(L; t) = Z(ℝ³, L) (Chern-Simons partition function on link L). Computing V from L is #P-hard in general. The inverse — recovering L from V(L; t) — is an open problem in low-dimensional topology. Quantum resistant: the relevant group structure (quantum groups at roots of unity) is non-abelian with no known Fourier sampling structure.

Topology

Mapping class groups / pseudo-Anosov dilatation

The mapping class group Mod(Σ) of a surface contains the hard conjugacy problem and subsurface projection machinery. The identity connecting pseudo-Anosov maps to their dilatation spectra (Thurston's geometrization) is a potential encryption primitive, with hardness from the conjugacy problem in Mod(Σ).

Algebraic Geometry

Dessins d'Enfants / Belyi correspondence

A finite bipartite graph on a Riemann surface (dessin) corresponds bijectively to a Belyi pair (X, β). The absolute Galois group Gal(Q̄/Q) acts on dessins in a way that is still deeply mysterious. Identity: dessin ↔ Belyi pair. Hard problem: given a dessin, recover the algebraic curve over Q̄. Grothendieck's conjecture (faithfulness of the Galois action on dessins) is still open. Already listed as A3 in Track A above — this is the same territory reached from a different angle.

Algebraic Geometry

Anabelian geometry / étale fundamental group

Mochizuki proved that the étale fundamental group π₁ét(X, x̄) completely determines X for hyperbolic curves over number fields. Identity: X → π₁ét(X). Hard problem: recover X from π₁ét(X). The proof is existential — no efficient algorithm is known. Hardness comes from the profinite structure of Gal(Q̄/Q).

Analysis / Inverse Problems

Inverse scattering (3D)

The 1D inverse scattering problem (given S-matrix, recover potential V(x)) is solved via the Marchenko equation. The 3D case remains open. Identity: V(x) → S-matrix via the Lippmann-Schwinger equation. Hard problem: recover V from S in 3 dimensions. Resistant to quantum attacks because the problem is analytic and spectral, not algebraic.

Analysis / Inverse Problems

Phase retrieval / crystallographic phase problem

Given |F̂(k)|² (diffraction magnitudes) but not the phase of F̂(k) = ∫ρ(x)eikxdx, recover ρ(x). Open in full generality for 2D and 3D. Identity: Fourier transform ρ ↔ F̂. Already used in some cryptographic proposals, though the hardness basis is less deep than the Langlands / spectral route.

Representation Theory

Yang-Baxter / quantum groups

Solutions R to R₁₂R₁₃R₂₃ = R₂₃R₁₃R₁₂ classify braided tensor categories. The identity connects R-matrices to knot invariants via the Reshetikhin-Turaev construction. Hard problem: given a knot invariant, recover R. Relevant to topological quantum computation; no known Fourier sampling vulnerability.

Representation Theory

Tensor decomposition

Computing tensor rank is NP-hard. Identity: a rank-r tensor T = Σi ai ⊗ bi ⊗ ci. Hard problem: given T, find its minimal decomposition. Resistant to known quantum attacks. The hardness is combinatorial rather than number-theoretic, distinguishing it from the Langlands cluster.

These alternatives converge on the same structural insight: deep mathematical hardness in the inverse direction tends to appear precisely where the relevant symmetry group is non-abelian and where the global mathematics community has worked for decades without a constructive inversion algorithm. The zeta / L-function route and the topological / anabelian route are different doors into the same territory — and the Langlands program conjectures they are ultimately different views of the same object.

Relation to ASI Architecture and Indo-Pacific Lawfare

This cryptographic study sits alongside, and is informed by, Logarchéon's two primary research tracks: ASI seed architecture (the CEAS / Ψ-operator / GRAIL triadic framework for recursive intelligence) and Indo-Pacific lawfare (legal-strategic analysis of the Taiwan Strait and associated legal instruments). The same spectral-geometric methods that appear in MSIA — Kleinian groups, geodesic flow, trace formulas — appear in the mathematical substrate of the CEAS architecture. The same concern with asymmetric capability gaps that drives the lawfare analysis drives the cryptographic research: encryption whose hardness assumptions are not yet in the adversary's threat model.

Algebraic constructions — companion matrices & trace recovery

The tool above uses the hashed FO-KEM path. The constructions here demonstrate the algebraic core of MSIA directly: each character’s count becomes a companion block of x−·1; the blocks are assembled by block-diagonal concatenation and disguised by a random diagonal similarity D−¹1AD; and for the pure-algebraic variant, decryption recovers the message by solving the Vandermonde system from the power-trace vector T — no hash involved.

Construction
Generators

Encryption key — generator matrices

The key is a set of 2×2 generators. Each must be hyperbolic: |trace| > 2. Lengths ℓ are derived from these, exactly like the tutorial. Three generators deepen the key space — a ciphertext made with 3 must be decrypted with 3.
G1 (T₁)
G2 (T₂)

Message0 / 128 bytes

Ciphertext object (JSON)

Companion structure (chunk 1)

Decrypt console — paste or upload a ciphertext

A clean station for the receiving side. Paste a JSON ciphertext (or upload the saved file) and decrypt it on its own — the variant and generator count are read from the object, and the companion structure is shown as it recovers the message.

Ciphertext object (JSON)

Recovered message

Companion structure (chunk 1)