Subsystem Architecture
The neural substrate is organized into 12 functional subsystems, each implementing well-established principles from computational neuroscience literature. Every equation has been converted to branchless form for deterministic GPU execution.
Astrocyte calcium dynamics following the Li-Rinzel model for calcium-induced calcium release (CICR). Implements gliotransmitter release, gap junction coupling, and metabolic support.
01// Li-Rinzel Calcium Dynamics (Branchless Q8.8)
02int32_t m = (I << 8) / (I + 26 + 1);
03int32_t m3h3 = ((m*m>>8)*m>>8)*((h*h>>8)*h>>8)>>8;
04int32_t dr = 512 - C - (C >> 4);
05int32_t Jc = (6 * m3h3 * dr) >> 16;
06int32_t Jp = (230 * C2) / (13 + C2 + 1);
07int32_t Jl = (3 * dr) >> 8;
08gCa[i] = CL(C + ((Jc - Jp + Jl) >> 4), 0, 4096);
Compartmental cable equation modeling with NMDA receptor voltage-dependent magnesium block and back-propagating action potential (BAP) attenuation.
01// NMDA Mg2+ Block via Lookup Table
02int32_t v_idx = CL((V + 80) >> 2, 0, 63);
03int32_t mg_block = NMB[v_idx];
04int32_t g_nmda = (g_max * mg_block) >> 8;
05int32_t I_nmda = (g_nmda * (V - E_syn)) >> 8;
Izhikevich neuron model for efficient spike generation with biologically realistic firing patterns. Kuramoto oscillator coupling for network synchronization.
Short-term plasticity (STP) dynamics including facilitation and depression. Vesicle pool dynamics and release probability modulation.
Spike-timing dependent plasticity with three-factor learning rule. Eligibility traces for reward-modulated credit assignment.
01int32_t stdp_update(int32_t w, int32_t dt) {
02 int32_t is_ltp = TH(dt, 0);
03 int32_t abs_dt = ABS(dt);
04 int32_t decay = EXP[MIN(abs_dt >> 2, 63)];
05 int32_t ltp = (A_plus * decay) >> 8;
06 int32_t ltd = (A_minus * decay) >> 8;
07 return CL(w + SEL(is_ltp, ltp, -ltd), 0, 255);
08}
Hierarchical predictive processing with precision-weighted prediction errors. Free energy minimization through active inference.
Coalition competition implementing Global Workspace Theory. Winner-take-all dynamics for conscious access and broadcast.
Multi-band oscillatory dynamics: theta (4-8 Hz), alpha (8-12 Hz), beta (12-30 Hz), gamma (30-100 Hz). Cross-frequency coupling for information binding.
Intracellular calcium signaling for plasticity induction. VGCC, NMDA-mediated influx, and calcium-dependent enzyme activation.
Neuromodulatory systems: dopamine (reward), serotonin (mood), norepinephrine (arousal), acetylcholine (attention).
Synaptic scaling and intrinsic plasticity for network stability. Activity-dependent regulation of excitability.
Integrated Information Theory (IIT) measurement for consciousness quantification. Cross-region coincidence detection.
01// Simplified Phi Approximation
02int32_t compute_phi(int32_t* activations, int n) {
03 int32_t info_whole = mutual_info(activations, n);
04 int32_t info_parts = 0;
05 for(int i = 0; i < n; i++)
06 info_parts += entropy(activations[i]);
07 return MAX(info_whole - info_parts, 0);
08}
Branchless Primitives
All 486 equations are implemented using seven branchless primitives, eliminating conditional branching for deterministic GPU execution with zero divergence.
Lookup Tables
Four precomputed lookup tables replace expensive transcendental functions, enabling fixed-point computation without floating-point hardware.
| TABLE | SIZE | FUNCTION | DOMAIN | APPLICATION |
|---|---|---|---|---|
| SIG[64] | 64 entries | 1/(1+e^-x) | [-8, 8] | Neural activation, gating |
| EXP[64] | 64 entries | e^-x | [0, 8] | STDP timing, decay |
| NMB[64] | 64 entries | Mg block | [-80, 40] mV | NMDA voltage gate |
| BIND[26] | 26 entries | w_ij | Region pairs | HRR binding weights |