Update 2026-06-11-tripartite_synapse_v7.md
This commit is contained in:
@@ -2,7 +2,639 @@
|
|||||||
include_toc: true
|
include_toc: true
|
||||||
---
|
---
|
||||||
|
|
||||||
Shockwave Lockdown
|
# Tripartite Synapse — Pseudocode v7
|
||||||
|
|
||||||
|
## Part 1 — Conventions
|
||||||
|
|
||||||
|
```
|
||||||
|
SCOPE = { DAY, NIGHT }
|
||||||
|
CONTEXT = { AP, NOT_AP, bAP, NOT_bAP, CONTINUOUS }
|
||||||
|
|
||||||
|
DAY variable types:
|
||||||
|
BUDGET = combined fast energy + fast consumable materials
|
||||||
|
one variable per component
|
||||||
|
replenished in NOT contexts (received from upstream)
|
||||||
|
consumed in AP/bAP/CONTINUOUS contexts (execution behaviors)
|
||||||
|
|
||||||
|
NIGHT variable types:
|
||||||
|
ENERGY = ATP for structural assembly — NOT recoverable after LTD
|
||||||
|
MATERIAL = slow structural proteins — RECOVERABLE after LTD
|
||||||
|
|
||||||
|
STRUCTURE = slow architectural ceiling
|
||||||
|
READ in DAY, WRITTEN only in NIGHT
|
||||||
|
|
||||||
|
FAST_TRACE, TAG = as before
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 2 — Fixed Parameters
|
||||||
|
|
||||||
|
```
|
||||||
|
// Thresholds — all FIXED
|
||||||
|
FIXED Ca_TAG_threshold // Ca²⁺ sufficient to set POST CANDIDATE
|
||||||
|
FIXED Ca_HIGH // LTP-driving Ca²⁺ amplitude
|
||||||
|
FIXED Ca_LOW // LTD-driving Ca²⁺ amplitude
|
||||||
|
FIXED spillover_threshold // cleft saturation for mGluR activation
|
||||||
|
FIXED eligibility_threshold // minimum fast_trace for tagging eligibility
|
||||||
|
FIXED dopamine_threshold // minimum dopamine for tag stabilization
|
||||||
|
FIXED tagging_threshold // minimum possible_tagging for tag accumulation
|
||||||
|
FIXED tag_expiry_threshold // minimum tag strength to survive to NIGHT
|
||||||
|
FIXED homeostatic_ceiling // max soma firing before global downscale
|
||||||
|
FIXED structural_decay_rate // passive decay rate of all structures per NIGHT
|
||||||
|
FIXED recycling_fraction // fraction of material recovered after LTD
|
||||||
|
|
||||||
|
// Organism-level signals — FIXED (externally driven)
|
||||||
|
FIXED dopamine_level // VTA broadcast — reward/save signal
|
||||||
|
FIXED NE_level // locus coeruleus — arousal/gain
|
||||||
|
FIXED ACh_level // basal forebrain — attention/threshold
|
||||||
|
|
||||||
|
// Physical constraints — FIXED
|
||||||
|
FIXED vascular_glucose_supply // hard energy ceiling — astrocyte root
|
||||||
|
FIXED branch_geometry // dendritic topology — bAP decay profile
|
||||||
|
FIXED Ca_cooperativity_n // Hill coefficient for Ca²⁺-driven NT release
|
||||||
|
FIXED Ca_half_max_K // half-maximal Ca²⁺ for NT release
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 3 — Budget, Energy, Material Declarations
|
||||||
|
|
||||||
|
```
|
||||||
|
// ── DAY BUDGETS: one per component ────────────────────────────────────
|
||||||
|
// Replenished in NOT contexts. Consumed in execution contexts.
|
||||||
|
|
||||||
|
VAR astro_budget
|
||||||
|
// SOURCE: vascular_glucose_supply → glycolysis (ROOT — self-produced)
|
||||||
|
// COVERS: EAAT clearance ATP
|
||||||
|
// D-serine synthesis (serine racemase ATP + serine precursor)
|
||||||
|
// lactate production and export
|
||||||
|
// fast process motility
|
||||||
|
// REPLENISHED: CONTINUOUS context (self-produced continuously)
|
||||||
|
|
||||||
|
VAR pre_budget
|
||||||
|
// SOURCE: astro_lactate × pre_fraction (primary)
|
||||||
|
// axon→pre shipment in AXON NOT_AP (secondary)
|
||||||
|
// COVERS: VGCC opening + vesicle fusion + VATPase refill
|
||||||
|
// fast vesicle membrane lipid turnover
|
||||||
|
// synaptotagmin recycling
|
||||||
|
// REPLENISHED: PRE NOT_AP context (receives from AXON)
|
||||||
|
|
||||||
|
VAR post_budget
|
||||||
|
// SOURCE: astro_lactate × post_fraction (primary)
|
||||||
|
// dend→post shipment in DEND NOT_bAP (secondary)
|
||||||
|
// COVERS: NaK pump reset + NMDA current handling
|
||||||
|
// AMPA lateral diffusion + rapid recycling
|
||||||
|
// actin monomers for transient spine changes
|
||||||
|
// PKA phosphorylation (minor)
|
||||||
|
// REPLENISHED: POST NOT_bAP context (receives from DEND)
|
||||||
|
|
||||||
|
VAR dend_budget
|
||||||
|
// SOURCE: astro_lactate × dend_fraction (primary)
|
||||||
|
// soma→dend shipment in SOMA NOT_AP (secondary)
|
||||||
|
// COVERS: bAP propagation along branch (NaK reset at each segment)
|
||||||
|
// local mRNA translation (ribosome running cost)
|
||||||
|
// fast Ca²⁺ handling (SERCA pump)
|
||||||
|
// fast mRNA consumables for local translation
|
||||||
|
// REPLENISHED: DEND NOT_bAP context (receives from SOMA)
|
||||||
|
|
||||||
|
VAR soma_budget
|
||||||
|
// SOURCE: own mitochondria (self-produced — independent of astrocyte)
|
||||||
|
// COVERS: AP generation (Na⁺/K⁺ currents + NaK reset)
|
||||||
|
// CREB phosphorylation (minor fast cost)
|
||||||
|
// nuclear Ca²⁺ handling
|
||||||
|
// shipping costs to DEND and AXON
|
||||||
|
// REPLENISHED: SOMA NOT_AP context (self-replenished from mitochondria)
|
||||||
|
|
||||||
|
VAR axon_budget
|
||||||
|
// SOURCE: soma→axon shipment in SOMA NOT_AP (primary)
|
||||||
|
// astro_lactate × axon_fraction along shaft (secondary)
|
||||||
|
// COVERS: AP propagation at nodes of Ranvier (NaK reset)
|
||||||
|
// kinesin/dynein motor running cost
|
||||||
|
// fast myelin maintenance
|
||||||
|
// REPLENISHED: AXON NOT_AP context (receives from SOMA)
|
||||||
|
|
||||||
|
VAR astro_lactate
|
||||||
|
// Fuel exported by astrocyte → all neuronal components
|
||||||
|
// = min(glycolysis(vascular_glucose_supply), astro_budget × export_fraction)
|
||||||
|
// Distributed continuously in ASTRO CONTINUOUS context
|
||||||
|
|
||||||
|
// ── NIGHT ENERGY: ATP for structural assembly — NOT recoverable ────────
|
||||||
|
|
||||||
|
VAR astro_energy // process retraction + ECM secretion + racemase upregulation
|
||||||
|
VAR pre_energy // AZ scaffold incorporation + VGCC clustering
|
||||||
|
VAR post_energy // CaMKII anchoring + actin polymerization + PSD remodeling
|
||||||
|
VAR dend_energy // mitochondria incorporation + cytoskeletal reinforcement
|
||||||
|
VAR soma_energy // ribosome biogenesis + ion channel incorporation
|
||||||
|
VAR axon_energy // myelination + microtubule stabilization
|
||||||
|
|
||||||
|
// ── NIGHT MATERIAL: slow structural proteins — RECOVERABLE after LTD ──
|
||||||
|
|
||||||
|
VAR astro_material // EAAT proteins + racemase enzyme + ECM proteins
|
||||||
|
// + process cytoskeleton
|
||||||
|
// SOURCE: astrocyte cell body synthesis (overnight)
|
||||||
|
// RECOVERY: partially after LTD (recycling_fraction)
|
||||||
|
|
||||||
|
VAR pre_material // RIM + Munc13 + VGCC subunits + structural vesicle proteins
|
||||||
|
// SOURCE: soma_material → axon_material → pre_material
|
||||||
|
// RECOVERY: significantly after LTD → axonal pool
|
||||||
|
|
||||||
|
VAR post_material // AMPA subunits + PSD scaffold + structural actin + CaMKII
|
||||||
|
// SOURCE: soma_material → dend_material → post_material
|
||||||
|
// RECOVERY: significantly after LTD → dendritic reserve
|
||||||
|
|
||||||
|
VAR dend_material // Arc mRNA + plasticity mRNAs + mitochondria
|
||||||
|
// + cytoskeletal proteins + AMPA in transit
|
||||||
|
// SOURCE: soma_material → dend_material
|
||||||
|
// RECOVERY: partially after branch pruning
|
||||||
|
|
||||||
|
VAR soma_material // ALL structural proteins for downstream components
|
||||||
|
// SOURCE: CREB-driven synthesis (peaks in NIGHT, soma_tag driven)
|
||||||
|
// DISTRIBUTES TO: dend_material + axon_material → pre_material
|
||||||
|
|
||||||
|
VAR axon_material // motor proteins + microtubule components + myelin proteins
|
||||||
|
// SOURCE: soma_material → axon_material
|
||||||
|
// RECOVERY: partially after axon structural reduction
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 4 — Structural Variables (NIGHT only)
|
||||||
|
|
||||||
|
```
|
||||||
|
VAR pre_structure // RRP_capacity + VGCC_coupling + refill_ceiling
|
||||||
|
VAR post_structure // anchoring_slots + spine_volume + local_reserve_ceiling
|
||||||
|
VAR dend_structure // bAP_fidelity(position) + translation_ceiling + transport_speed
|
||||||
|
VAR soma_structure // baseline_threshold + AP_reliability + synthesis_ceiling
|
||||||
|
VAR axon_structure // propagation_reliability + transport_rate_ceiling
|
||||||
|
VAR astro_structure // perisynaptic_distance⁻¹ + EAAT_density
|
||||||
|
// + D_serine_tonic + ECM_integrity
|
||||||
|
// SELF-REINFORCING in both directions
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 5 — Trace Variables
|
||||||
|
|
||||||
|
```
|
||||||
|
// Fast traces (DAY only, decay automatically)
|
||||||
|
FAST_TRACE pre_fast_trace // residual Ca²⁺ — τ ≈ 100ms
|
||||||
|
FAST_TRACE post_fast_trace // spine Ca²⁺ × rise_speed — τ ≈ tens of ms
|
||||||
|
FAST_TRACE dend_fast_trace // branch Ca²⁺ integration — τ ≈ 300ms
|
||||||
|
FAST_TRACE soma_fast_trace // nuclear Ca²⁺ — τ ≈ seconds
|
||||||
|
FAST_TRACE axon_fast_trace // AP propagation load — τ ≈ seconds
|
||||||
|
FAST_TRACE astro_fast_trace // perisynaptic Ca²⁺ from mGluR5 — τ ≈ seconds
|
||||||
|
|
||||||
|
// Possible tagging (intermediate — τ ≈ seconds to minutes)
|
||||||
|
VAR pre_possible_tagging
|
||||||
|
VAR post_possible_tagging // POST: CANDIDATE lifetime
|
||||||
|
VAR dend_possible_tagging
|
||||||
|
VAR soma_possible_tagging
|
||||||
|
VAR axon_possible_tagging
|
||||||
|
VAR astro_possible_tagging
|
||||||
|
|
||||||
|
// Tags (slow, DAY→NIGHT bridge — τ ≈ hours)
|
||||||
|
TAG pre_tag
|
||||||
|
TAG post_tag // POST only: CANDIDATE→STABLE before NIGHT
|
||||||
|
TAG dend_tag
|
||||||
|
TAG soma_tag
|
||||||
|
TAG axon_tag
|
||||||
|
TAG astro_tag
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
|
# SCOPE: DAY
|
||||||
|
Execution contexts (AP, bAP, CONTINUOUS): behaviors run, budgets consumed, traces deposited
|
||||||
|
Replenishment contexts (NOT_AP, NOT_bAP): budgets replenished, traces decay, shipments received
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## PRE
|
||||||
|
|
||||||
|
### CONTEXT: AP
|
||||||
|
```
|
||||||
|
scope DAY | context AP:
|
||||||
|
|
||||||
|
// Budget gate — behavior requires resources
|
||||||
|
if pre_budget < AP_release_cost:
|
||||||
|
suppress(NT_flux)
|
||||||
|
exit context
|
||||||
|
|
||||||
|
// Fast trace: residual Ca²⁺ deposited
|
||||||
|
pre_fast_trace += spike_Ca_influx(input_freq)
|
||||||
|
pre_fast_trace *= decay(τ = 100ms)
|
||||||
|
pre_budget -= Ca_handling_cost
|
||||||
|
// cost covers: PMCA + NCX pump ATP to remove Ca²⁺
|
||||||
|
|
||||||
|
// NT flux: Hill function Ca²⁺ drive × RRP level
|
||||||
|
Ca_drive = pre_fast_trace^Ca_cooperativity_n /
|
||||||
|
(Ca_half_max_K^Ca_cooperativity_n + pre_fast_trace^Ca_cooperativity_n)
|
||||||
|
|
||||||
|
if RRP_level > 0:
|
||||||
|
NT_flux = RRP_level × Ca_drive
|
||||||
|
glutamate += NT_flux × Δt // cleft concentration rises
|
||||||
|
RRP_level -= NT_flux × Δt // pool depletes
|
||||||
|
pre_budget -= NT_flux × fusion_cost
|
||||||
|
// cost covers: SNARE_ATP + fast_membrane_lipid_turnover
|
||||||
|
|
||||||
|
// RRP refill — rate limited by pre_budget + pre_structure (READ)
|
||||||
|
RRP_refill = min(refill_rate_constant, pre_structure.refill_ceiling)
|
||||||
|
RRP_level += RRP_refill × Δt
|
||||||
|
RRP_level = clamp(RRP_level, 0, pre_structure.RRP_capacity)
|
||||||
|
pre_budget -= RRP_refill × VATPase_cost
|
||||||
|
// cost covers: VATPase refilling vesicles with NT
|
||||||
|
|
||||||
|
// Overflow brake: mGluR2/3 Gi — cross-compartment, no pre_budget cost
|
||||||
|
if glutamate > spillover_threshold:
|
||||||
|
Ca_drive *= mGluR_brake_factor
|
||||||
|
```
|
||||||
|
|
||||||
|
### CONTEXT: NOT_AP
|
||||||
|
```
|
||||||
|
scope DAY | context NOT_AP:
|
||||||
|
|
||||||
|
// Fast trace decays — eligibility window closing
|
||||||
|
pre_fast_trace *= decay(τ = 100ms)
|
||||||
|
|
||||||
|
// RRP refills during silence — STP recovery
|
||||||
|
RRP_refill = min(refill_rate_constant, pre_structure.refill_ceiling)
|
||||||
|
RRP_level += RRP_refill × Δt
|
||||||
|
RRP_level = clamp(RRP_level, 0, pre_structure.RRP_capacity)
|
||||||
|
pre_budget -= RRP_refill × VATPase_cost
|
||||||
|
|
||||||
|
// Budget replenishment — received from AXON shipment
|
||||||
|
// (axon ships to pre in AXON NOT_AP context — see below)
|
||||||
|
// astro_lactate also delivered here as top-up
|
||||||
|
pre_budget += astro_lactate × pre_fraction
|
||||||
|
// Note: astro_lactate is the primary continuous supply
|
||||||
|
// axon shipment provides the structural protein transport channel
|
||||||
|
|
||||||
|
// Possible tagging: graded accumulation while eligible
|
||||||
|
if pre_fast_trace > eligibility_threshold:
|
||||||
|
pre_possible_tagging += pre_fast_trace
|
||||||
|
pre_possible_tagging *= decay(τ = seconds)
|
||||||
|
|
||||||
|
// Dopamine decays locally
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
|
||||||
|
// Tag: local eligibility AND global validation coincide
|
||||||
|
if dopamine_local > dopamine_threshold and
|
||||||
|
pre_possible_tagging > tagging_threshold:
|
||||||
|
pre_tag += dopamine_local × pre_possible_tagging
|
||||||
|
pre_tag *= decay(τ = hours)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## POST
|
||||||
|
|
||||||
|
### CONTEXT: NOT_bAP
|
||||||
|
```
|
||||||
|
scope DAY | context NOT_bAP:
|
||||||
|
|
||||||
|
// Budget replenishment — received from DEND shipment
|
||||||
|
// (dend ships to post in DEND NOT_bAP context — see below)
|
||||||
|
// astro_lactate also delivered as top-up
|
||||||
|
post_budget += astro_lactate × post_fraction
|
||||||
|
post_budget += dend_shipment_to_post // received from DEND NOT_bAP
|
||||||
|
|
||||||
|
// AMPA current — occupancy of existing slots, gated by post_structure (READ)
|
||||||
|
AMPA_current = glutamate × post_structure.sensitivity
|
||||||
|
Vm += AMPA_current
|
||||||
|
post_budget -= AMPA_current_cost
|
||||||
|
// cost covers: NaK_reset_ATP + fast_receptor_recycling_lipids
|
||||||
|
|
||||||
|
// NMDA gate: depolarization + D-serine + glutamate — three-way coincidence
|
||||||
|
if Vm > Mg_eject_threshold and
|
||||||
|
astro_D_serine > D_serine_threshold:
|
||||||
|
Ca_influx = NMDA_Ca_influx(glutamate)
|
||||||
|
post_fast_trace += Ca_influx × rise_speed(Ca_influx)
|
||||||
|
post_budget -= NMDA_current_cost
|
||||||
|
// cost covers: NMDA_handling_ATP + fast_actin_transient_cost
|
||||||
|
|
||||||
|
// Fast trace decays
|
||||||
|
post_fast_trace *= decay(τ = tens_of_ms)
|
||||||
|
|
||||||
|
// CANDIDATE tag: Ca²⁺ above threshold — Hebbian anticipation window
|
||||||
|
if post_fast_trace > Ca_TAG_threshold:
|
||||||
|
post_possible_tagging += post_fast_trace
|
||||||
|
post_possible_tagging *= decay(τ = minutes)
|
||||||
|
post_budget -= PKA_priming_cost
|
||||||
|
// cost covers: PKA phosphorylation of GluA1-Ser845 (minor)
|
||||||
|
|
||||||
|
// Dopamine decays
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
|
||||||
|
// STABLE tag: CANDIDATE + dopamine within stabilization window
|
||||||
|
if dopamine_local > dopamine_threshold and
|
||||||
|
post_possible_tagging > tagging_threshold:
|
||||||
|
post_tag += dopamine_local × post_possible_tagging
|
||||||
|
post_tag *= decay(τ = hours)
|
||||||
|
```
|
||||||
|
|
||||||
|
### CONTEXT: bAP
|
||||||
|
```
|
||||||
|
scope DAY | context bAP:
|
||||||
|
|
||||||
|
// bAP arrives — strength set by dend_structure.bAP_fidelity (READ)
|
||||||
|
Vm += bAP_depolarization × dend_structure.bAP_fidelity
|
||||||
|
post_budget -= bAP_reset_cost
|
||||||
|
// cost covers: NaK_reset_ATP for bAP-driven depolarization at spine
|
||||||
|
|
||||||
|
// Coincidence confirmation: bAP finds CANDIDATE already set
|
||||||
|
if post_possible_tagging > Ca_TAG_threshold:
|
||||||
|
post_fast_trace += bAP_Ca_boost()
|
||||||
|
// supralinear Ca²⁺ summation — trace amplified above Ca_HIGH
|
||||||
|
// no extra budget cost — Ca²⁺ boost driven by voltage, not pumps
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## DEND
|
||||||
|
|
||||||
|
### CONTEXT: bAP
|
||||||
|
```
|
||||||
|
scope DAY | context bAP:
|
||||||
|
|
||||||
|
// bAP propagates from soma downward through branch
|
||||||
|
// strength attenuates with distance — set by dend_structure (READ)
|
||||||
|
bAP_local = propagate_bAP(SOMA.AP_fired,
|
||||||
|
dend_structure.bAP_fidelity,
|
||||||
|
branch_geometry)
|
||||||
|
dend_budget -= bAP_propagation_cost
|
||||||
|
// cost covers: NaK_reset_ATP at each branch segment
|
||||||
|
// Na⁺ channel re-activation along branch length
|
||||||
|
|
||||||
|
// Fast trace: branch Ca²⁺ from bAP
|
||||||
|
dend_fast_trace += bAP_Ca_influx(bAP_local)
|
||||||
|
dend_fast_trace += spine_Ca_spillover(active_spines)
|
||||||
|
dend_fast_trace *= decay(τ = 300ms)
|
||||||
|
dend_budget -= branch_Ca_handling_cost
|
||||||
|
// cost covers: SERCA pump re-sequestration of Ca²⁺
|
||||||
|
|
||||||
|
// Integrate spine signals upward toward soma
|
||||||
|
branch_Vm = integrate(POST.Vm, all_spines_on_branch)
|
||||||
|
dend_budget -= integration_cost
|
||||||
|
// cost covers: passive membrane maintenance during integration
|
||||||
|
```
|
||||||
|
|
||||||
|
### CONTEXT: NOT_bAP
|
||||||
|
```
|
||||||
|
scope DAY | context NOT_bAP:
|
||||||
|
|
||||||
|
// Fast trace decays
|
||||||
|
dend_fast_trace *= decay(τ = 300ms)
|
||||||
|
|
||||||
|
// Budget replenishment — received from SOMA shipment
|
||||||
|
dend_budget += soma_shipment_to_dend // received from SOMA NOT_AP
|
||||||
|
dend_budget += astro_lactate × dend_fraction // astrocyte top-up
|
||||||
|
|
||||||
|
// Ship budget to POST spines — downstream replenishment
|
||||||
|
dend_shipment_to_post = min(dend_budget × post_delivery_fraction,
|
||||||
|
post_demand(active_spines))
|
||||||
|
post_budget += dend_shipment_to_post
|
||||||
|
dend_budget -= dend_shipment_to_post
|
||||||
|
// Note: this is fast operational budget (energy + consumables)
|
||||||
|
// structural post_material ships in NIGHT, not here
|
||||||
|
|
||||||
|
// Possible tagging
|
||||||
|
if dend_fast_trace > eligibility_threshold:
|
||||||
|
dend_possible_tagging += dend_fast_trace
|
||||||
|
dend_possible_tagging *= decay(τ = seconds)
|
||||||
|
|
||||||
|
// Dopamine decays
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
|
||||||
|
// Tag
|
||||||
|
if dopamine_local > dopamine_threshold and
|
||||||
|
dend_possible_tagging > tagging_threshold:
|
||||||
|
dend_tag += dopamine_local × dend_possible_tagging
|
||||||
|
dend_tag *= decay(τ = hours)
|
||||||
|
|
||||||
|
// Local translation: activated when tag set, gated by dend_budget
|
||||||
|
if dend_tag > tag_expiry_threshold and dend_budget > translation_cost:
|
||||||
|
local_proteins = translate(dend_fast_trace)
|
||||||
|
dend_budget -= translation_cost
|
||||||
|
// cost covers: ribosome_running_ATP + fast_mRNA_consumed
|
||||||
|
// Note: uses fast mRNA pool (in dend_budget)
|
||||||
|
// slow structural mRNA pool (dend_material) consumed only in NIGHT
|
||||||
|
|
||||||
|
// ACh modulates commit threshold globally
|
||||||
|
commit_threshold *= (1 / (1 + ACh_level × ACh_gain))
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## SOMA
|
||||||
|
|
||||||
|
### CONTEXT: AP
|
||||||
|
```
|
||||||
|
scope DAY | context AP:
|
||||||
|
|
||||||
|
// Firing threshold: structure (READ) × adaptation × neuromodulators × refractory
|
||||||
|
AP_threshold = soma_structure.baseline_threshold
|
||||||
|
× (1 + adaptation_factor(soma_fast_trace))
|
||||||
|
× neuromod_factor(NE_level, ACh_level)
|
||||||
|
× refractory_factor(time_since_last_AP)
|
||||||
|
|
||||||
|
if branch_Vm > AP_threshold:
|
||||||
|
AP_fired = True
|
||||||
|
soma_budget -= AP_generation_cost
|
||||||
|
// cost covers: Na⁺/K⁺ current ATP + NaK_reset + fast_signaling_consumables
|
||||||
|
|
||||||
|
// Fast trace: nuclear Ca²⁺
|
||||||
|
soma_fast_trace += nuclear_Ca_influx()
|
||||||
|
soma_fast_trace *= decay(τ = seconds)
|
||||||
|
soma_budget -= nuclear_Ca_handling_cost
|
||||||
|
// cost covers: nuclear Ca²⁺ pump ATP
|
||||||
|
|
||||||
|
// Refractory timer
|
||||||
|
refractory_timer = absolute_refractory_duration
|
||||||
|
|
||||||
|
// Possible tagging
|
||||||
|
if soma_fast_trace > eligibility_threshold:
|
||||||
|
soma_possible_tagging += soma_fast_trace
|
||||||
|
soma_possible_tagging *= decay(τ = seconds)
|
||||||
|
|
||||||
|
// Dopamine decays
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
|
||||||
|
// Tag: nuclear Ca²⁺ AND dopamine coincidence
|
||||||
|
if dopamine_local > dopamine_threshold and
|
||||||
|
soma_possible_tagging > tagging_threshold:
|
||||||
|
soma_tag += dopamine_local × soma_possible_tagging
|
||||||
|
soma_tag *= decay(τ = hours)
|
||||||
|
soma_budget -= CREB_phosphorylation_cost
|
||||||
|
// cost covers: CREB phospho ATP (minor fast cost)
|
||||||
|
// full CREB-driven synthesis is NIGHT operation consuming soma_energy
|
||||||
|
```
|
||||||
|
|
||||||
|
### CONTEXT: NOT_AP
|
||||||
|
```
|
||||||
|
scope DAY | context NOT_AP:
|
||||||
|
|
||||||
|
// Fast trace decays — threshold returning to baseline
|
||||||
|
soma_fast_trace *= decay(τ = seconds)
|
||||||
|
refractory_timer = max(0, refractory_timer - Δt)
|
||||||
|
|
||||||
|
// Budget self-replenishment — soma fuels itself from own mitochondria
|
||||||
|
soma_budget += mitochondria_output_rate × Δt
|
||||||
|
// Note: soma is the only component that self-replenishes
|
||||||
|
// all other components receive from soma or astrocyte
|
||||||
|
|
||||||
|
// Integrate dendritic inputs
|
||||||
|
branch_Vm = integrate(DEND.branch_Vm, all_branches)
|
||||||
|
soma_budget -= integration_cost
|
||||||
|
|
||||||
|
// Ship budget to DEND — downstream operational replenishment
|
||||||
|
soma_shipment_to_dend = min(soma_budget × dend_delivery_fraction,
|
||||||
|
dend_demand(dend_tag))
|
||||||
|
dend_budget += soma_shipment_to_dend
|
||||||
|
soma_budget -= soma_shipment_to_dend + shipping_cost
|
||||||
|
// cost covers: fast organelle delivery running cost
|
||||||
|
// Note: structural dend_material ships in NIGHT, not here
|
||||||
|
|
||||||
|
// Ship budget to AXON — downstream operational replenishment
|
||||||
|
soma_shipment_to_axon = min(soma_budget × axon_delivery_fraction,
|
||||||
|
axon_demand(axon_tag))
|
||||||
|
axon_budget += soma_shipment_to_axon
|
||||||
|
soma_budget -= soma_shipment_to_axon + shipping_cost
|
||||||
|
// cost covers: fast axonal fuel delivery
|
||||||
|
// Note: structural axon_material and pre_material ship in NIGHT
|
||||||
|
|
||||||
|
// Dopamine decays
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## AXON
|
||||||
|
|
||||||
|
### CONTEXT: AP
|
||||||
|
```
|
||||||
|
scope DAY | context AP:
|
||||||
|
|
||||||
|
// AP propagation — reliability set by axon_structure (READ)
|
||||||
|
propagation_reliability = axon_structure.myelination
|
||||||
|
× (1 - failure_rate(axon_fast_trace))
|
||||||
|
APs_delivered = AP_fired × propagation_reliability
|
||||||
|
axon_budget -= AP_propagation_cost × APs_delivered
|
||||||
|
// cost covers: NaK_reset_ATP at each node of Ranvier
|
||||||
|
|
||||||
|
// Fast trace: propagation load deposited
|
||||||
|
axon_fast_trace += APs_delivered
|
||||||
|
axon_fast_trace *= decay(τ = seconds)
|
||||||
|
// high axon_fast_trace → Na⁺ channel inactivation → propagation failure
|
||||||
|
// this is axonal STD — frequency-dependent filtering
|
||||||
|
```
|
||||||
|
|
||||||
|
### CONTEXT: NOT_AP
|
||||||
|
```
|
||||||
|
scope DAY | context NOT_AP:
|
||||||
|
|
||||||
|
// Fast trace decays — propagation reliability recovering
|
||||||
|
axon_fast_trace *= decay(τ = seconds)
|
||||||
|
|
||||||
|
// Budget replenishment — received from SOMA shipment
|
||||||
|
axon_budget += soma_shipment_to_axon // received from SOMA NOT_AP
|
||||||
|
axon_budget += astro_lactate × axon_fraction // astrocyte top-up along shaft
|
||||||
|
|
||||||
|
// Ship budget to PRE boutons — downstream operational replenishment
|
||||||
|
axon_shipment_to_pre = min(axon_budget × pre_delivery_fraction,
|
||||||
|
pre_demand(pre_tag))
|
||||||
|
pre_budget += axon_shipment_to_pre
|
||||||
|
axon_budget -= axon_shipment_to_pre + axon_shipping_cost
|
||||||
|
// cost covers: kinesin_ATPase running cost for fast delivery to boutons
|
||||||
|
// Note: structural pre_material (AZ proteins) ships in NIGHT, not here
|
||||||
|
|
||||||
|
// Possible tagging
|
||||||
|
if axon_fast_trace > eligibility_threshold:
|
||||||
|
axon_possible_tagging += axon_fast_trace
|
||||||
|
axon_possible_tagging *= decay(τ = seconds)
|
||||||
|
|
||||||
|
// Dopamine decays
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
|
||||||
|
// Tag
|
||||||
|
if dopamine_local > dopamine_threshold and
|
||||||
|
axon_possible_tagging > tagging_threshold:
|
||||||
|
axon_tag += dopamine_local × axon_possible_tagging
|
||||||
|
axon_tag *= decay(τ = hours)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## ASTRO
|
||||||
|
|
||||||
|
### CONTEXT: CONTINUOUS
|
||||||
|
```
|
||||||
|
scope DAY | context CONTINUOUS:
|
||||||
|
|
||||||
|
// ROOT energy production — self-generated from vascular glucose
|
||||||
|
astro_budget += glycolysis(vascular_glucose_supply) × Δt
|
||||||
|
// hard cap: vascular_glucose_supply (FIXED) — cannot be exceeded
|
||||||
|
// cost covers: glycolysis running cost (minimal — glycolysis is the revenue here)
|
||||||
|
|
||||||
|
// Lactate export — distributes to ALL neuronal components continuously
|
||||||
|
astro_lactate = min(astro_budget × lactate_export_fraction,
|
||||||
|
vascular_glucose_supply × max_export_fraction)
|
||||||
|
astro_budget -= astro_lactate
|
||||||
|
// Distribution happens via specific component budgets in their NOT contexts:
|
||||||
|
// pre_budget += astro_lactate × pre_fraction (in PRE NOT_AP)
|
||||||
|
// post_budget += astro_lactate × post_fraction (in POST NOT_bAP)
|
||||||
|
// dend_budget += astro_lactate × dend_fraction (in DEND NOT_bAP)
|
||||||
|
// axon_budget += astro_lactate × axon_fraction (in AXON NOT_AP)
|
||||||
|
// Note: astro_lactate is the variable; delivery happens when components replenish
|
||||||
|
|
||||||
|
// Glutamate clearance — rate set by astro_structure (READ)
|
||||||
|
clearance = astro_structure.EAAT_density × glutamate × Δt
|
||||||
|
glutamate -= clearance
|
||||||
|
astro_budget -= clearance × EAAT_ATP_cost
|
||||||
|
// cost covers: EAAT cotransport ATP + secondary NaK pump cost
|
||||||
|
|
||||||
|
// Tonic D-serine baseline — from astro_structure (READ)
|
||||||
|
astro_D_serine += astro_structure.D_serine_tonic × Δt
|
||||||
|
astro_budget -= astro_structure.D_serine_tonic × tonic_synthesis_cost
|
||||||
|
// cost covers: constitutive racemase ATP + baseline serine fast cost
|
||||||
|
|
||||||
|
// Overflow detection and D-serine pulse release
|
||||||
|
if glutamate > spillover_threshold:
|
||||||
|
astro_fast_trace += mGluR5_Ca_influx()
|
||||||
|
astro_fast_trace *= decay(τ = seconds)
|
||||||
|
|
||||||
|
D_serine_pulse = min(proportional_to(astro_fast_trace),
|
||||||
|
astro_budget × Ds_fraction)
|
||||||
|
astro_budget -= D_serine_pulse × Ds_synthesis_cost
|
||||||
|
astro_D_serine += D_serine_pulse
|
||||||
|
// cost covers: racemase_ATP + serine_precursor_fast_cost
|
||||||
|
|
||||||
|
// Simultaneous presynaptic brake — cross-compartment, no astro cost
|
||||||
|
Ca_drive_pre *= mGluR_brake_factor
|
||||||
|
|
||||||
|
// Possible tagging
|
||||||
|
if astro_fast_trace > eligibility_threshold:
|
||||||
|
astro_possible_tagging += astro_fast_trace
|
||||||
|
astro_possible_tagging *= decay(τ = seconds)
|
||||||
|
|
||||||
|
// Dopamine decays
|
||||||
|
dopamine_local *= decay(τ = hundreds_of_ms)
|
||||||
|
|
||||||
|
// Tag
|
||||||
|
if dopamine_local > dopamine_threshold and
|
||||||
|
astro_possible_tagging > tagging_threshold:
|
||||||
|
astro_tag += dopamine_local × astro_possible_tagging
|
||||||
|
astro_tag *= decay(τ = hours)
|
||||||
|
|
||||||
|
// Global overload check
|
||||||
|
if astro_fast_trace > OVERLOAD_threshold:
|
||||||
|
trigger(shockwave_lockdown)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Special Case — Shockwave Lockdown
|
||||||
|
|
||||||
```
|
```
|
||||||
scope DAY or NIGHT | context OVERLOAD:
|
scope DAY or NIGHT | context OVERLOAD:
|
||||||
@@ -16,10 +648,13 @@ scope DAY or NIGHT | context OVERLOAD:
|
|||||||
// Note: in NIGHT, post_energy used if structural receptors affected
|
// Note: in NIGHT, post_energy used if structural receptors affected
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
# SCOPE: NIGHT
|
# SCOPE: NIGHT
|
||||||
# {component}_energy and {component}_material used — NOT {component}_budget
|
{component}_energy and {component}_material used — NOT {component}_budget
|
||||||
# Structural variables WRITTEN. Tags evaluated and cleared.
|
Structural variables WRITTEN. Tags evaluated and cleared.
|
||||||
# Budget variables replenished here for next DAY.
|
Budget variables replenished here for next DAY.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -271,39 +906,6 @@ ENERGY DISTRIBUTION (NIGHT assembly ATP):
|
|||||||
astro_energy → astro structural commits only
|
astro_energy → astro structural commits only
|
||||||
```
|
```
|
||||||
|
|
||||||
## Summary: Energy and Material Flow
|
|
||||||
|
|
||||||
```
|
|
||||||
DAY — {component}_budget (combined fast energy + fast consumables):
|
|
||||||
|
|
||||||
vascular_glucose_supply (FIXED)
|
|
||||||
→ astro_budget (glycolysis ROOT)
|
|
||||||
→ astro_lactate → pre_budget, post_budget, dend_budget, axon_budget
|
|
||||||
→ soma_budget (own mitochondria — independent root)
|
|
||||||
→ axon_budget (partial)
|
|
||||||
→ dend_budget (partial)
|
|
||||||
|
|
||||||
NIGHT — {component}_energy (structural assembly ATP, NOT recoverable):
|
|
||||||
|
|
||||||
vascular_glucose_supply (FIXED)
|
|
||||||
→ astro_energy (overnight glycolysis)
|
|
||||||
→ soma_energy (overnight mitochondria) → pre_energy, post_energy,
|
|
||||||
dend_energy, axon_energy
|
|
||||||
|
|
||||||
NIGHT — {component}_material (slow structural proteins, RECOVERABLE):
|
|
||||||
|
|
||||||
soma (CREB synthesis — soma_tag driven)
|
|
||||||
→ soma_material
|
|
||||||
→ dend_material → post_material (spine delivery)
|
|
||||||
→ axon_material → pre_material (bouton delivery)
|
|
||||||
astrocyte cell body (overnight synthesis)
|
|
||||||
→ astro_material (EAAT + racemase + ECM + process cytoskeleton)
|
|
||||||
|
|
||||||
LTD recovery flows (material only — not energy):
|
|
||||||
post LTD → post_material (receptors to dendritic reserve)
|
|
||||||
pre LTD → pre_material (AZ proteins to axonal pool)
|
|
||||||
astro LTD → astro_material (ECM fragments, recycling_fraction)
|
|
||||||
```
|
|
||||||
|
|
||||||
# Flows
|
# Flows
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user