
Recently at IRIS C2, while testing how reliably frontier AI models reason about low-dimensional topology, we noticed how quickly they lose track of Reidemeister moves and algebraic invariants without a mechanical checker. Building a fast A5 knot-coloring evaluator to keep them honest led to a more entertaining question. After our earlier hashquines inside shipping media decoders like JPEG XL and HEIC—files that hijack hidden state machines in image parsers to compute and render their own SHA-256 digests—we wondered whether we could leave media parsers behind and build a self-hashing computer directly inside knot theory.
We wanted a genuine one-component closed mathematical knot K ⊂ S3: a single unbroken loop of string embedded in three-dimensional space, where every crossing obeys a classical algebraic coloring law from 1905, and where the arcs at a designated equatorial cross-section encode the exact 64-character SHA-256 hash of the file describing the knot.
The resulting artifact, sha256_knot_hashquine.knot (1,303,296,552 bytes / 1,242.92 MiB), specifies a closed 31,808-strand braid closure with 651,648,265 crossings whose strand permutation forms a single 31,808-cycle. It admits a surjective closed-loop Wirtinger homomorphism ρ: π1(S3 ∖ K) → A5 (proving K is genuinely knotted rather than a disguised unknot). Evaluating the Wirtinger relation around the loop in our 283-line C verifier—code containing zero cryptographic primitives—produces an equatorial cross-section of 960 golden dipoles spelling out:
76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845
Running shasum -a 256 artifact/sha256_knot_hashquine.knot prints the exact same 64 hexadecimal characters.
Strands 13,314..15,233, Step 325,772,386), showing a stylized woven rendering of the exact verified 960-bit bitmap flanked by incoming P_fwd strands on the right and outgoing P_inv strands on the left.Scope and Prior Art
Two points of scope are worth stating plainly upfront.
First, unlike our JXL and HEIC hashquines—which executed inside shipping image decoders deployed on billions of devices—this artifact is evaluated by our own 283-line reference Wirtinger verifier (verify/verify_knot.c). The point of interest here is mathematical rather than a parser bug: a concrete tension between topological isotopy and cryptographic serialization.
Second, computational universality in braids and colored tangles builds on established academic work:
- Barrington (1986) proved that bounded-width branching programs over any non-solvable group (such as A5) simulate every circuit in NC1, at an exponential cost of 4d instructions in circuit depth d—the price paid to hold width constant.
- Alagić, Jeffery, and Jordan (2014) (Circuit Obfuscation Using Braids,
LIPIcs.TQC.2014.141) lifted universal reversible computation into braid-group representations and proposed braid-word circuit obfuscation. - Carmi and Moskovich (2015) (Computing with Colored Tangles, Symmetry 7(3), pp. 1289–1332) developed a diagrammatic model of computation using colored tangles grounded in self-distributivity.
- Kuperberg and Samperton (2019) (Coloring Invariants of Knots and Links Are Often Intractable) established
#P-hardness for counting non-abelian group colorings of closed knots and links.
Our compiler trades width (31,808 strands) for depth—the standard reversible-circuit space-time tradeoff—achieving gate count linear in circuit size plus non-local wire-routing overhead, which a bit-sliced dual-bank layout keeps small enough to compile 128 rounds of SHA-256 in 11 seconds. Our contribution is a concrete, cryptographic-scale, self-referential engineering synthesis inside a single-component closed knot.
1. A Five-Minute Primer on Knot Theory
Most of our readers work in security research, cryptography, or software engineering rather than low-dimensional topology, so let us start from first principles.
Take an ordinary shoelace, tangle it however you like, and fuse its two loose ends together so it forms one continuous closed loop in 3D space. That closed loop is a knot. Two knots are equivalent (ambient isotopic) if you can deform one into the other smoothly in 3D space without cutting the loop or letting the string pass through itself. A loop that untangles into a plain circle is the unknot; the simplest loop that cannot be untangled is the trefoil knot.
To draw a 3D knot on a 2D screen, mathematicians project it onto a plane as a knot diagram, leaving a small break in the lower strand at every crossing. In 1927, Kurt Reidemeister proved that any two diagrams of the same 3D knot can be converted into one another by a finite sequence of three local moves: adding or removing a twist (Reidemeister I), sliding one strand completely over another (Reidemeister II), and sliding a strand across an existing crossing (Reidemeister III).
To tell knots apart without testing infinitely many moves, topologists define knot invariants—properties computed from a 2D diagram that never change under Reidemeister moves. One of the most accessible is Fox 3-coloring. Assign each unbroken arc of a diagram one of three colors subject to one rule at every crossing: either all three meeting arcs share the same color, or all three have distinct colors.

NOT gate.As Figure 1 shows on the left, a trefoil admits a 3-coloring using all three colors, whereas the unknot has only one arc and can use only one color. Because valid colorings are preserved under Reidemeister moves, that coloring proves the trefoil cannot be untangled.
Algebraically, Fox 3-coloring applies the affine rule (2y − x) mod 3 whenever an under-strand x passes beneath an over-strand y. Dihedral Fox colorings are affine linear, which yields parity operations but cannot express an AND gate.
Now replace integers modulo 3 with elements of a non-abelian group G, where multiplication order matters (ab ≠ ba). At each crossing, the over-strand passes straight through unchanged (providing free fan-out), while the under-strand x passing beneath over-strand y emerges conjugated:
This is the classical Wirtinger presentation of the knot group π1(S3 ∖ K)—the fundamental group of the 3D complement of the knot, generated by one meridian (a small loop encircling each arc)—phrased as a quandle (an algebraic structure whose axioms match the three Reidemeister moves). Whenever every arc around the closed loop is labeled consistently with this rule, the coloring defines a group homomorphism ρ: π1(S3 ∖ K) → G.
Choose G = A5, the 60 rotational symmetries of an icosahedron and the smallest non-solvable finite group. Inside A5, the 15 elements of order 2 (double transpositions, each equal to its own inverse so y−1 = y, making y−1xy = yxy and LRL−1 = LRL) form a single conjugacy class D ⊂ A5 closed under conjugation. To avoid clashing with Artin braid generators σi below, we write β0 and β1 for our two bit colors in D:
- Bit
0: β0 = (1 2)(3 4) (index0in lexicographic order) - Bit
1: β1 = (0 1)(3 4) (index3)
Now take a third element of D as a constant over-strand, c6 = (0 2)(3 4). Passing a data strand beneath c6 once flips its logical value (easy to check by hand on 0..4):
- β0 ▷ c6 = c6β0c6 = (0 2)(3 4) · (1 2)(3 4) · (0 2)(3 4) = (0 1)(3 4) = β1 (
0→1). - β1 ▷ c6 = c6β1c6 = (0 2)(3 4) · (0 1)(3 4) · (0 2)(3 4) = (1 2)(3 4) = β0 (
1→0).
A single crossing in A5 implements a Boolean NOT gate. Because A5 is non-solvable, conjugation over D is computationally universal.
2. The Conservation Constraint and Involution Dipoles
Scaling from a single NOT gate to 128 rounds of SHA-256 runs straight into an algebraic conservation law.
Take the left-to-right product of all N strand colors (g1, g2, …, gN) across any horizontal slice of a braid. At a positive crossing σi mapping (L, R) ↦ (LRL−1, L), the local product is (LRL−1) · L = LR—identically conserved. At a negative crossing σi−1 mapping (L, R) ↦ (R, R−1LR), the product is R · (R−1LR) = LR—again conserved. (Because every element in D is an involution, LRL−1 = LRL and R−1LR = RLR.)
In practice, that conservation law means wires cannot cross transparently: routing strand A across strand B to reach a distant gate conjugates B and corrupts its state. Meanwhile, Barrington’s constant-width construction avoids wide routing only by paying an exponential 4d depth blowup that is infeasible for a circuit as deep as two-block SHA-256.
Our workaround is to encode each logical bit as an involution dipole: two adjacent strands carrying the same order-2 element (x, x) ∈ D × D. Because every x ∈ D satisfies x2 = e, every logical dipole contributes the identity to the conserved group product regardless of whether it encodes 0 or 1. That single representation yields two 4-crossing primitives in B4:
- Transparent Dipole Swap (
+2, +1, +3, +2): Crossing dipole (z, z) completely over dipole (a, a) conjugates each a-strand by z twice—first to zaz, then back to z(zaz)z = z2az2 = a. Both dipoles emerge intact on opposite sides: (z, z, a, a) ↦ (a, a, z, z). - Controlled-Conjugate (
-2, -1, +3, +2): Negating the first two crossings passes (a, a) over (z, z) once, producing the conjugated dipole w = aza, and then routes (w, w) over (a, a) twice. Because w2 = e, (a, a) is restored unchanged while the target becomes conjugated: (z, z, a, a) ↦ (a, a, aza, aza).

int16 crossing generators ±32,767).Exhaustive breadth-first search over D ⊂ A5 using six local constant dipoles per 32-bit slice (β0, c6, β1, c9, c7, c12, at lexicographic indices 0, 6, 3, 9, 7, 12) produced exact minimal reversible gates:
| Reversible Gate | Controlled-Conjugates | Exact Word (Target z conjugated sequentially by...) |
|---|---|---|
| NOT(z) | 1 | c6 |
| COPY(z, a) (clean z = β0) | 2 | a, β0 |
| In-place CNOT(z, b) | 6 | b, c7, b, c7, b, c12 |
| AND(z, a, b) (clean z = β0) | 8 | c6, a, c7, b, c7, b, c9, a |
Every wire inside the computational core remains a clean dipole (x, x) before and after each gate. Paired with Cuccaro’s (2004) in-place reversible ripple-carry adder (MAJ / UMA, which performs 32-bit addition with one single carry ancilla dipole) and local 6-constant sets in both the Core and W-Bank slices to keep wire-routing distances short, the full two-block SHA-256 circuit plus 3×5 hex font ROM compiles into 325,772,360 crossings (P_fwd).
3. Closing the Loop—and Locking the Computation Into the Knot
An open braid on N strands is not a knot; it has N loose ends at each boundary. By Alexander’s theorem, every knot can be written as the closure cl(W) of a braid word W ∈ BN obtained by connecting strand i at the output back to strand i at the input around a circle. Closing a computational braid cleanly introduces three distinct problems, each requiring its own topological mechanism.
3.1 Closing the Coloring (Pinv) and the Topological Fold Problem
After P_fwd finishes writing the 960 display dipoles, the output strands carry the hash rather than their initial seam colors, so gluing output directly to input violates the Wirtinger relation. Appending the exact mirror inverse Pinv = Pfwd−1 restores every strand color cleanly around the loop—just like Bennett’s reversible uncomputation.
However, placing Pinv directly adjacent to Pfwd creates a topological hole: at their junction, the last crossing of Pfwd and the first crossing of Pinv form a cancelling σiεσi−ε pair. Repeating that Reidemeister-II cancellation 325.8 million times erases both Pfwd and Pinv completely (PfwdPinv = 1). Without a barrier at the equator, the entire SHA-256 computation would live merely in a collapsible fold of the diagram, not in the underlying knot K.
3.2 The Equatorial Topological Lock (Leq)
Our response is an 8,698-crossing, strictly positive, pure-braid Equatorial Topological Lock Leq inserted right between Pfwd and Pinv:
- Intra-dipole full twists (σ2): A positive full twist between the two strands of every one of the 960 display dipoles, all 256 final SHA-256 state dipoles (
Core a..h), and all 256 decoded Hmid dipoles (1,472 × 2 = 2,944crossings). Because every dipole carries equal colors (x, x), σ2 leaves every valid dipole unchanged regardless of its bit value. - Inter-dipole 6-twists (σ6): A 6-crossing positive twist linking every adjacent pair of display dipoles
disp[d]anddisp[d+1](959 × 6 = 5,754crossings). Because every display dipole lies in {β0, β1} and ord(β0β1) = 3 divides 6, σ6 preserves every possible {β0, β1} pair identically for all 2256 possible hashes while keeping the strand permutation trivial (π(Leq) = id).
Because the evidence for topological locking operates at three distinct levels, we keep those levels strictly separated:
- Full-scale artifact (
651.6Mcrossings): Under cyclic Artin free reduction (σiεσi−ε → 1),639,671,759 / 651,648,265crossings (98.16%) survive intact. Free reduction is not a knot invariant (higher braid and Markov relations remain possible), so this establishes resistance to direct R2 fold cancellation rather than a complete proof of full-scale irreducibility. - Exact integer Alexander polynomials on miniature models (
verify/prove_topological_lock.py): Using zero-float modular Gaussian elimination + Lagrange interpolation + CRT (self-tested against the unknot[1], trefoil[1, -1, 1], and figure-eight[-1, 3, -1]), we computed exact normalized symmetric Alexander polynomials ΔK(t) ∈ ℤ[t, t−1] (with ΔK(1) = +1) and exact finite-field invariants IK(2) = ΔK(2)ΔK(2−1) mod (109 + 7) on both a 14-strand miniature (σ2 lock) and a 16-strand miniature (full σ2 + σ6 lock mirroring our artifact):
| Miniature Model & Variant | Exact ΔK(t) Span | Leading Coeff. | Exact IK(2) mod (109+7) |
|---|---|---|---|
| 14-str Unlocked (no tail, Tail A, Tail B — all collapse identically) | 12 | +1 | 232666147 |
14-str Locked (σ2), ref (no P_fwd) | 18 | +1 | 697087817 |
14-str Locked (σ2), with P_fwd | 26 | +1 | 331104060 |
14-str Locked (σ2), Tail A (+3/-5) | 24 | +4 | 769498896 |
14-str Locked (σ2), Tail B (-3/+5) | 28 | -1 | 322703305 |
16-str Locked (σ2 + σ6), ref (no P_fwd) | 26 | +1 | 158377791 |
16-str Locked (σ2 + σ6), with P_fwd | 34 | +1 | 639561969 |
16-str Locked (σ2 + σ6), Tail A (+3/-5) | 32 | +3 | 543561240 |
16-str Locked (σ2 + σ6), Tail B (-3/+5) | 36 | -1 | 448326447 |
- Generalization to
31,808strands: The exact miniature polynomials rigorously prove that removing Leq collapses both the fold and the tail midstate, whereas inserting Leq distinguishes the reference,P_fwd, Tail A, and Tail B ambient isotopy classes. Whether the full31,808-strand SHA-256 knot retains the entire circuit and midstate in its ambient isotopy class is motivated by the miniature result but remains unproved at full scale—a compelling open problem in its own right.
3.3 Sewing 31,808 Strands Into One Single Closed Loop (Cknot)
After Pinv finishes, the permutation of PinvLeqPfwd is the identity, which would close into 31,808 separate rings instead of a single knot. To fuse all 31,808 strands into one single cycle without altering a single arc color, we use odd-order torus twists.
For any two adjacent strands with involution colors a, b ∈ D, the subgroup 〈a, b〉 is dihedral of order 2m, where m = ord(ab) ∈ {1, 2, 3, 5}. Whenever m is odd, applying σim executes an odd number of crossings—transposing strand i and strand i+1—while returning the color pair (a, b) to (a, b) identically. Ordering our six gate constants in the chain [0, 6, 3, 9, 7, 12] ensures every adjacent pair in the core has odd product order in {1, 3, 5}, so a single sweep of odd-order twists stitches the entire central core into one cycle.
To keep the closed knot 1-component for all 2256 possible SHA-256 midstates—which aren’t known until after the prefix is compiled—we flank the core with two alternating bridge pairs BL = [β0, β1] and BR = [β0, β1]. Inside Cknot (84,421 crossings), BL sweeps leftward across all 6,656 left tail pairs (shifting every left tail slot rigidly by +2), while BR sweeps rightward across all 6,176 right tail pairs (shifting every right tail slot rigidly by -2). Across the wrap-around seam, we place the conjugate-shifted inverse tail Tinv at u′j = uj + 2 (left lanes) and u′j = uj − 2 (right lanes) with opposite sign. In the symmetric group S31,808, (SτujS−1) · S · τuj = S, guaranteeing a single 31,808-cycle and exact closed-loop Wirtinger closure for every possible midstate.
To inspect this locked closed-knot geometry without any schematic simplification, Figure 3 shows an exact 3D embedding of a 10-strand, 51-crossing locked miniature knot Kmini = cl(PfwdLeqPinvCknot) ⊂ S3:

3.4 Marked Meridians vs. Unmarked Knots
Now that we have defined meridians and the homomorphism ρ: π1(S3 ∖ K) → A5, one subtle distinction should be clear. Even with Leq blocking trivial fold collapse, visually reading a 64-character bitmap requires evaluating the conjugacy class [ρ] on a designated set of marked equatorial meridians (disp[0..959] and ref_0) of the decorated knot diagram—just as reading a hardware register requires knowing which pins hold bits 0..255. With a free choice of meridians, any colored knot could be read to say anything. The visual readout is therefore an invariant of the marked knot diagram under global A5 conjugation and under isotopies preserving the equatorial cross-section, rather than an unlabeled property of an unmarked circle under arbitrary meridian relabeling.
4. Breaking the Self-Reference Paradox Around the Circle
A hashquine must compute the SHA-256 hash of its own file even though modifying any byte at the end avalanches the digest. We resolve that circularity by aligning SHA-256’s left-to-right physical scan against the closed knot’s cyclic right-to-left evaluation (Figure 4).

sha256_knot_hashquine.knot (1,303,296,552 bytes) versus cyclic Wirtinger evaluation order around the closed knot.Bytes in artifact/sha256_knot_hashquine.knot are ordered physically left-to-right as:
[22B Header "KNOTSHA3"] [R2 Pad] [C_knot] [P_inv] [L_eq] [P_fwd] | [T_fwd (52B)] [T_inv (52B)] |<--------- 1,303,296,448 bytes (exact 64B multiple) ----------->|<------- 104 bytes -------->|
A single cycle on an even number of strands (31,808) is an odd permutation, which forces any braid closure on an even number of strands to have an odd total number of crossings (651,648,265). Because the tail holds 52 crossings (even), the prefix holds an odd number (651,648,213), occupying 2 (mod 4) bytes. A 22-byte header ("KNOTSHA3" + n_strands + n_crossings + display_step + flags) makes 22 + 2 × odd ≡ 0 (mod 4), allowing 5,187 Reidemeister-II padding pairs (+1, -1) to align the prefix onto an exact 64-byte SHA-256 block boundary (20,364,007 blocks).
- Physical SHA-256 (left → right): Hashes the fixed prefix to a 32-byte midstate Hmid (
de66c5a0...e7d6d4be), then compresses two final 64-byte blocks containing the 104-byte tail[T_fwd | T_inv]plus0x80padding and the 64-bit file bit-length. - Cyclic Closed-Knot Evaluation (right → left): Starting at the seam between
T_invandT_fwd, the evaluator crossesT_fwdfirst, injecting all 256 bits of Hmid into the 26 outer lanes. Unlike the clean dipoles inside the computational core, these 26 outer tail lanes start as alternating [β0, β1] pairs so a single crossing at odd index uj introduces a localized c6 perturbation whose position encodes 9 bits (5 bits in lane 25) and whose sign encodes the 10th bit. Next,P_fwddecodes Hmid into clean core dipoles, dynamically reconstructs all 104 tail bytes (using zero-adder XOR negation for odd uj inT_fwdand 16-bit Cuccaro ±2 arithmetic for u′j inT_inv), runs two 64-round SHA-256 compressions (uncomputing Block 1’s message schedule between blocks via ~((~b) + a) = b − a mod 232), and drives the 3×5 hex font ROM to set the 960 equatorial display dipoles. AtStep 325,772,386(just before Leq), each display dipole is read via the conjugation-invariant predicate ρ(disp[k]) ≠ ρ(ref0) against an untouched reference dipole ref0. Finally, Leq, Pinv, Cknot, the R2 pad, the wrap-around seam, and Tinv complete the single 31,808-cycle and return every strand to its exact initial color.
5. Seven Verification Checks
Our standalone verifier (verify/verify_knot.c, 283 lines of dependency-free C with zero cryptographic code) and harness (verify/run_knot_verification.sh) run seven checks on the generated artifact:
$ ./verify/run_knot_verification.sh [Check 1] Independent system SHA-256 of artifact/sha256_knot_hashquine.knot File bytes: 1303296552 (1,242.92 MiB) shasum: 76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845 [Check 2] Zero-crypto closed-knot evaluation (1-component + Wirtinger + A5 surjectivity) Strands: 31808 Crossings: 651648265 Components: 1 (cycle length 31808 / 31808) Closed Wirtinger: EXACT_CLOSURE Display dipoles: ALL_960_CLEAN Image |<im(rho)>|:60 / 60 (15 distinct colors in D) -> SURJECTIVE_ONTO_A5 (K != UNKNOT) Eval time: 1.655s Knot Display OCR: 76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845 [Check 3] Global A5 Conjugation Sanity Check (conjugating entire rho by g = #37 in A5) Components: 1 (cycle length 31808 / 31808) | Closed Wirtinger: EXACT_CLOSURE Knot Display OCR: 76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845 [Check 4] Single-Bit Tamper Check on a Still-Closed Knot (negating matched tail pair g_25, g'_25) Components: 1 (cycle length 31808 / 31808) | Closed Wirtinger: EXACT_CLOSURE Knot Display OCR: 09d60888758d6b43a1c1ad2e17917ebc32c184e02b68281f52c2e8a54ff4a1d8 Predicted: 09d60888758d6b43a1c1ad2e17917ebc32c184e02b68281f52c2e8a54ff4a1d8 [Check 5] Live R2+R3 Isotopy INSIDE P_fwd (exec step 50,000,026 << display_step 325,772,386) Replacing live Block-1 pair (17864, 17865) -> (17865, 17864, 17865, -17864) R2+R3 file shasum:6aed68cf2d2daa51a1441c6bddc535dd44521764ea64cb26e50b85bd1b9e52af (CHANGED) Crossings: 651648267 Components: 1 (cycle length 31808 / 31808) | Closed Wirtinger: EXACT_CLOSURE Knot Display OCR: 76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845 (UNCHANGED) [Check 6] Same-Length In-Place Isotopies (Live P_fwd Commutativity + C_knot R3 Yang-Baxter) (a) Live P_fwd move at exec step 50,000,014 << 325,772,386: (17864,17865,17863,17864) -> (17864,17863,17865,17864) (b) C_knot R3 move at idx 60741: (+3, -2, -3) -> (-2, -3, +2) (same file length & display_step) R3 file shasum: 051765ceddd80997940fd42b567c15ff7dde835e772142f29984bfb9883071ba (CHANGED) Crossings: 651648265 Components: 1 (cycle length 31808 / 31808) | Closed Wirtinger: EXACT_CLOSURE Knot Display OCR: 76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845 (UNCHANGED) [Check 7] Equatorial Topological Lock Verification (Cyclic Free-Reduction + Exact Delta_K(t)) Full 651.6M knot: 639,671,759 / 651,648,265 crossings survive cyclic free reduction (98.16%) 14-str & 16-str miniatures: exact integer Delta_K(t) in Z[t, t^-1] & mod-(10^9+7) residues all distinct
Note what each check actually verifies:
- Check 3 is true by construction (conjugating every color by g ∈ A5 cannot change the equality predicate
disp != ref_0); we include it as a sanity check on the verifier’s conjugation and closure logic. - Check 4 confirms the digest is computed live rather than hardcoded: flipping the matched tail crossing pair (g25, g′25) keeps the knot 1-component and Wirtinger-closed while changing its equatorial display to the exact 2-block
SHA256_compressof the modified decoded midstate and modified tail (09d60888...54ff4a1d8). - Checks 5 and 6 apply genuine braid isotopies directly inside the live Block-1 SHA-256 rounds of
P_fwdbeforedisplay_step—an R2+R3 rewrite(17864, 17865) -> (17865, 17864, 17865, -17864)at execution step50,000,026, and a same-length in-place commutativity move at step50,000,014paired with an in-place R3 Yang-Baxter move inC_knot. In both cases the modified diagram remains a 1-component closed knot with exact closed-loop Wirtinger closure and produces the exact same 64-character equatorial readout, whileshasum -a 256avalanches completely.
6. Mathematical Weird Machines and Cryptographic Implications
Beyond the spectacle of a knot spelling its own hash, compiling cryptographic circuits into closed knots raises concrete questions at the boundary of algebra, topology, and cryptography:
- Concrete Circuit Obfuscation in Closed Knots: Since Kilian (1988) randomized Barrington branching programs for oblivious transfer and Alagić–Jeffery–Jordan (2014) proposed disguising circuits as tangled braids, practical experiments have been blocked by bounded-width 4d blowup. Our dipole compiler demonstrates that reversible cryptographic circuits can be compiled at linear gate count inside A5-colored closed knots in seconds. That makes braid-and-knot obfuscation empirically testable: if a locked dipole knot is randomized via Reidemeister-II/III moves and Markov stabilizations, how well do modern heuristic untanglers (such as SnapPy or Regina) simplify it? Historical precedent in braid-group cryptography (where Anshel–Anshel–Goldfeld and Ko–Lee fell to length-based and Birman–Ko–Lee canonical-form attacks) calls for skepticism—making concrete benchmarks on locked dipole knots an interesting direction for future cryptanalysis.
- Other Algebraic Weird Machines: Non-abelian quandles are one instance of a wider class of mathematical structures whose local consistency relations support universal computation: finitely presented groups with undecidable word problems (Novikov–Boone, Higman embeddings), Wang tilings where local edge matching runs Turing machines, chemical reaction networks and Petri nets where conservation laws mirror our Wirtinger product constraint, and topological quantum computation (Fibonacci anyons and Jones-polynomial evaluation at roots of unity), the quantum counterpart to classical quandle braiding.
- Isotopy vs. Integrity: Checks 5 and 6 isolate a recurring conflict whenever cryptography meets geometry or topology. Topological invariants are blind to local diagram isotopies, whereas cryptographic hashes bind to a single exact byte serialization. Canonical normal forms and invariant-preserving commitments for topological objects remain an open engineering frontier.
7. Reproducing the Artifact
All source code—the closed-knot compiler (src/knot_compiler.c), standalone 283-line zero-cryptography verifier (verify/verify_knot.c), exact integer Alexander polynomial lock verifier (verify/prove_topological_lock.py), 7-check harness (verify/run_knot_verification.sh), and 2D/3D visualizers—is open-source at github.com/JayGLXR/KnotSHA256HashQuine:
git clone https://github.com/JayGLXR/KnotSHA256HashQuine.git cd KnotSHA256HashQuine # 1. Build the compiler and generate the 1,242.92 MiB locked closed knot (~11s) cc -O3 -Wall -Wextra src/knot_compiler.c -o knot_compiler ./knot_compiler artifact/sha256_knot_hashquine.knot --verify # 2. Run all 7 verification checks (zero-SHA256 verifier + live P_fwd R2/R3 + exact Delta_K(t)) ./verify/run_knot_verification.sh # 3. Render poster, 3D miniature knot, diagrams, SVG, 3D OBJ, and zoom GIF/MP4 python3 render_knot.py python3 render_diagrams.py python3 render_knot_zoom.py
Appendix: Exact Artifact Parameters
| Parameter | Value |
|---|---|
| Artifact | artifact/sha256_knot_hashquine.knot (1,303,296,552 bytes / 1,242.92 MiB) |
| SHA-256 Digest | 76122a6c95d671cc8175eec9cc8647f8b5dcfec6c26efb6f350051f794299845 |
| Prefix Midstate Hmid | de66c5a00d6e9e0b09fbd09cce906af63730241775e60f5390d80687e7d6d4be |
| Strands / Components | 31,808 strands / 1 closed component (single 31,808-cycle, K ⊂ S³) |
| Total Crossings | 651,648,265 (P_fwd: 325,772,360, L_eq: 8,698, P_inv: 325,772,360, C_knot: 84,421, R2 pad: 10,374 (5,187 pairs), Tail: 52) |
| Cyclic Free-Reduction Survival | 639,671,759 / 651,648,265 crossings (98.16%) |
| Image of ρ | All 15/15 elements of D ⊂ A₅, generating 60/60 elements of A₅ (K ≠ unknot) |
| Equatorial Display Slice | Step 325,772,386 (960 clean dipoles = 1,920 arcs, disp[k] != ref_0) |
| Compile / Verify Time | 10.82s compile / 1.66s zero-SHA256 verification (Apple Silicon, -O3) |
Get the compiler, verifier, and tests
Standalone C closed-knot compiler, 283-line zero-cryptography A5 verifier, exact integer Alexander polynomial lock prover, 7-check test suite, and 2D/3D renderers.
