Halcyra Neuro

Whitepaper

A fruit fly brain, mapped cell by cell, plays GTA live. Her eyes get the game, her tongue gets the trades of one coin, her descending neurons hold the controller.

CuBcKa4zTYqWoSzmLjoBphqHbcbRXm9qAjZ1hFG2pumpSolscanBuy $HALCYRA

What she is

She is the female adult fruit fly brain mapped by FlyWire, dataset FlyWire FAFB v783: 139,255 neurons and 2,700,513 connections carrying 34,153,566 synapses (pairs with at least 5 synapses). 44,044 cells are inhibitory. The wiring is used as mapped. The one change is the sign of her 11,118 photoreceptors, set inhibitory because they are histaminergic.

She runs on a graded rate model in steps of 5 ms, with three fitted global gains and nothing fitted per cell. Each look she lives 70 ms of brain time, 14 steps.

tau dV/dt = −V + Gc · Σ sign · synapses · a / (synapses in) + input − Ga · w
a = clamp((V − theta) / beta, 0, 1)
tauA dw/dt = a − w

How she sees

The game picture is shrunk to a 160 by 90 grid of brightness and laid across her lamina cells L1 to L5: 7,685 cells, 3,850 in the left eye and 3,835 in the right. Each cell sits on the picture where its body sits on her retina. The left eye covers the left of the screen, the right eye the right, and both share the middle 18%.

A lamina cell is driven hardest where its spot is darker than its surround and darker than a moment ago, as a fly's lamina is:

drive = rTonic + (rLamina − rTonic) · min(1, kSpatial · max(0, surround − spot) + kTemporal · max(0, before − spot))
rTonic 0.05, rLamina 1, kSpatial 5, kTemporal 9, surround = blur over 7 grid cells

She takes the picture in again every 5 ms of brain time, and her gaze jitters by 0.006 of the screen width each time.

How trades reach her

A buy drives her 29 sugar sensing cells (type LB3). A sell drives her 20 bitter sensing cells (types LB1c, LB1a,LB1d, LB1b). These are the labellar taste cells published by Shiu et al. 2024 (Nature 634:210), matched to FlyWire FAFB v783 by FlyWire root ID.

The size of a trade sets how strong the taste is, on a log scale:

level(sol) = 0.08 + (1 − 0.08) · clamp(log(sol / 0.01) / log(10 / 0.01), 0, 1)

A trade of 0.01 SOL or less tastes at 0.08; 10 SOL or more tastes at 1. Each taste halves every 4 s. Buys add up on the sugar side and sells on the bitter side, each capped at 1. A taste below 0.001 is dropped. Each sugar cell is driven at sugar level × 1, each bitter cell at bitter level × 1, on every look. The levels are rounded to 4 decimals and stored in the record of the look that used them.

How she controls the game

She plays through a virtual gamepad. Every value on it is a fixed function of her descending neurons, averaged over the look. Which cell drives which control is our choice of mapping; what the cells do is her own wiring.

L and R are the mean activity of all 1,295 descending cells on her left and right side. DNp09 (2 cells), MDN (4 cells), oviDNb (2 cells) and DNp01 (2 cells) are read by cell type.

ControlCellsRule
axes[0] left stick X (steer)descending class, left vs right sideclamp((R − L) / kTurn, −1, 1)
buttons[7] right trigger (gas)descending class (both sides), cut by DNp09clamp(((L + R) / 2) / kFwd, 0, 1) / (1 + DNp09 / hzStop)
buttons[6] left trigger (brake, then reverse)MDNclamp(MDN / kBack, 0, 1)
axes[1] left stick Y (walk on foot)the two aboveclamp(LT − RT, −1, 1)
commitButton (Y / Triangle: enter or leave the vehicle)oviDNbpressed for the look when oviDNb >= hzLay held layMs, then refractoryMs
escapeButton (RB / R1: handbrake)DNp01 (giant fiber)pressed for the look if DNp01 >= hzEscape at any brain step of the window
axes[2..3] right stick and every other buttonnone0

kTurn 0.3, kFwd 0.11, hzStop 0.35, kBack 0.11, hzLay 0.2 held 120 ms then 1,500 ms rest, hzEscape 0.2. Enter or leave a vehicle is button Y, handbrake is RB.

The ladder

She starts on GTA 1 and moves up as the coin's market cap in USD grows. A stage opens when the market cap is at or above its mark on 3 readings in a row, about 20 s apart, each at a newer Solana slot. A failed reading starts the count again. Market cap is the coin's price in SOL, from the bonding curve or the PumpSwap pool, times its supply, times SOL in USD from the Pyth SOL/USD account, all read on chain in one call. An unlock is permanent and is written into the ledger with its readings and slots.

GameMarket cap
GTA 1Start
GTA 2$30,000
GTA III$100,000
GTA Vice City$300,000
GTA San Andreas$1,000,000
GTA IV$3,000,000
GTA V$10,000,000
GTA VI$30,000,000

The ledger

Every look is one record. It holds the step number, the time, the brain time lived, the taste going in with every trade first tasted on that look (signature, side, SOL, wallet, level), how many cells were driven (lamina, sugar, bitter), the descending readouts, how many cells were active, and the full gamepad state. Each unlock is a record too.

hash = sha256(prevHash + canonicalJSON(record without hash, prevHash, lit))

canonicalJSON sorts keys at every level and leaves out keys with no value, with no spaces. Numbers that are not whole are rounded to 4 decimals before hashing, and that rounded record is what is stored and served. Step 0 links to 64 zeros. Records are stored in blocks of 300, each with a checkpoint that is kept for good. The proof page shows the head and how to check it.

Rules table

RuleValue
DatasetFlyWire FAFB v783
Neurons139,255
Connections2,700,513
Synapses34,153,566
Least synapses per connection5
Inhibitory cells44,044
Model step5 ms
Brain time per look70 ms
Gains Gc, tau, theta, beta8, 30 ms, 0.12, 0.55
Adaptation Ga, tauA0.5, 400 ms
Noise, senseIn0.05, 0.25
Picture grid160 × 90
Lamina cells (L1 to L5)7,685 (left 3,850, right 3,835)
Shared field of both eyes18%
rTonic, rLamina0.05, 1
kSpatial, kTemporal5, 9
Surround blur7 grid cells
Sugar cells (buys)29
Bitter cells (sells)20
Taste floor, at SOL0.08, 0.01 SOL or less
Full taste at10 SOL or more
Taste half life4 s
Taste cap per side1
Taste drive gain sugar, bitter1, 1
Descending cells (L, R)646, 649
Steer full lock at R − L0.3
Full gas at mean descending activity0.11
DNp09 that halves gas0.35
Full brake at MDN0.11
Vehicle enter or exit, oviDNb0.2 held 120 ms, then 1,500 ms rest
Handbrake, DNp010.2
Stage 1, GTA 1from the start
Stage 2, GTA 2$30,000 market cap
Stage 3, GTA III$100,000 market cap
Stage 4, GTA Vice City$300,000 market cap
Stage 5, GTA San Andreas$1,000,000 market cap
Stage 6, GTA IV$3,000,000 market cap
Stage 7, GTA V$10,000,000 market cap
Stage 8, GTA VI$30,000,000 market cap
Readings to unlock3 in a row, 20 s apart
Ledger rounding4 decimals
Ledger start hash64 zeros
Records per stored block300